Characters ‘ and ’ not displayed after compiling latex code
I am trying to write the characters ‘ and ’ in latex.
But there is void in the compiled pdf in the region where they are supposed to appear.
Here is the sentence in my .tex :
we map ‘ and ’ to the same character '
After compiling, I obtain :
we map and to the same character
When I add usepackage[utf8,latin1]{inputenc}
in the preambule, I obtain :
we mapˆa andˆa to the same character
How can I show characters ‘ and ’ in the pdf doc after compiling the latex code ?
input-encodings characters
add a comment |
I am trying to write the characters ‘ and ’ in latex.
But there is void in the compiled pdf in the region where they are supposed to appear.
Here is the sentence in my .tex :
we map ‘ and ’ to the same character '
After compiling, I obtain :
we map and to the same character
When I add usepackage[utf8,latin1]{inputenc}
in the preambule, I obtain :
we mapˆa andˆa to the same character
How can I show characters ‘ and ’ in the pdf doc after compiling the latex code ?
input-encodings characters
You should use ` and ' instead.
– JouleV
Feb 27 at 9:57
1
usepackage[utf8,latin1]{inputenc}
is nonsense, your file is either utf8 encoded or latin1, not both at the same time.
– Ulrike Fischer
Feb 27 at 10:02
1
Also show a complete example. Your input works fine for me in an utf8 file.
– Ulrike Fischer
Feb 27 at 10:04
add a comment |
I am trying to write the characters ‘ and ’ in latex.
But there is void in the compiled pdf in the region where they are supposed to appear.
Here is the sentence in my .tex :
we map ‘ and ’ to the same character '
After compiling, I obtain :
we map and to the same character
When I add usepackage[utf8,latin1]{inputenc}
in the preambule, I obtain :
we mapˆa andˆa to the same character
How can I show characters ‘ and ’ in the pdf doc after compiling the latex code ?
input-encodings characters
I am trying to write the characters ‘ and ’ in latex.
But there is void in the compiled pdf in the region where they are supposed to appear.
Here is the sentence in my .tex :
we map ‘ and ’ to the same character '
After compiling, I obtain :
we map and to the same character
When I add usepackage[utf8,latin1]{inputenc}
in the preambule, I obtain :
we mapˆa andˆa to the same character
How can I show characters ‘ and ’ in the pdf doc after compiling the latex code ?
input-encodings characters
input-encodings characters
asked Feb 27 at 9:55
dadadada
1011
1011
You should use ` and ' instead.
– JouleV
Feb 27 at 9:57
1
usepackage[utf8,latin1]{inputenc}
is nonsense, your file is either utf8 encoded or latin1, not both at the same time.
– Ulrike Fischer
Feb 27 at 10:02
1
Also show a complete example. Your input works fine for me in an utf8 file.
– Ulrike Fischer
Feb 27 at 10:04
add a comment |
You should use ` and ' instead.
– JouleV
Feb 27 at 9:57
1
usepackage[utf8,latin1]{inputenc}
is nonsense, your file is either utf8 encoded or latin1, not both at the same time.
– Ulrike Fischer
Feb 27 at 10:02
1
Also show a complete example. Your input works fine for me in an utf8 file.
– Ulrike Fischer
Feb 27 at 10:04
You should use ` and ' instead.
– JouleV
Feb 27 at 9:57
You should use ` and ' instead.
– JouleV
Feb 27 at 9:57
1
1
usepackage[utf8,latin1]{inputenc}
is nonsense, your file is either utf8 encoded or latin1, not both at the same time.– Ulrike Fischer
Feb 27 at 10:02
usepackage[utf8,latin1]{inputenc}
is nonsense, your file is either utf8 encoded or latin1, not both at the same time.– Ulrike Fischer
Feb 27 at 10:02
1
1
Also show a complete example. Your input works fine for me in an utf8 file.
– Ulrike Fischer
Feb 27 at 10:04
Also show a complete example. Your input works fine for me in an utf8 file.
– Ulrike Fischer
Feb 27 at 10:04
add a comment |
1 Answer
1
active
oldest
votes
Welcome to TeX.SE. You can't use ‘ and ’ directly in LaTeX. However, in The Not So Short Introduction to LaTeX 2ε, you are suggested to use ` and ' instead:
documentclass{article}
begin{document}
Hello ` World '.
end{document}
This is a screenshot of the document attached above:
However, if you like inputting the characters directly from your keyboard, you can use inputenc
. However, as Ulrike Fischer said, you can't use utf8
and latin1
encoding at the same time. Use utf8
only, as latin1
will give you â
.
documentclass{article}
usepackage[utf8]{inputenc}
begin{document}
Hello ‘ World ’.
end{document}
2
you can use ‘ and ’ directly and you do not need to explicitly load[utf8]{inputenc}
in current releases. This answer is very misleading.
– David Carlisle
Feb 27 at 10:22
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476904%2fcharacters-and-not-displayed-after-compiling-latex-code%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Welcome to TeX.SE. You can't use ‘ and ’ directly in LaTeX. However, in The Not So Short Introduction to LaTeX 2ε, you are suggested to use ` and ' instead:
documentclass{article}
begin{document}
Hello ` World '.
end{document}
This is a screenshot of the document attached above:
However, if you like inputting the characters directly from your keyboard, you can use inputenc
. However, as Ulrike Fischer said, you can't use utf8
and latin1
encoding at the same time. Use utf8
only, as latin1
will give you â
.
documentclass{article}
usepackage[utf8]{inputenc}
begin{document}
Hello ‘ World ’.
end{document}
2
you can use ‘ and ’ directly and you do not need to explicitly load[utf8]{inputenc}
in current releases. This answer is very misleading.
– David Carlisle
Feb 27 at 10:22
add a comment |
Welcome to TeX.SE. You can't use ‘ and ’ directly in LaTeX. However, in The Not So Short Introduction to LaTeX 2ε, you are suggested to use ` and ' instead:
documentclass{article}
begin{document}
Hello ` World '.
end{document}
This is a screenshot of the document attached above:
However, if you like inputting the characters directly from your keyboard, you can use inputenc
. However, as Ulrike Fischer said, you can't use utf8
and latin1
encoding at the same time. Use utf8
only, as latin1
will give you â
.
documentclass{article}
usepackage[utf8]{inputenc}
begin{document}
Hello ‘ World ’.
end{document}
2
you can use ‘ and ’ directly and you do not need to explicitly load[utf8]{inputenc}
in current releases. This answer is very misleading.
– David Carlisle
Feb 27 at 10:22
add a comment |
Welcome to TeX.SE. You can't use ‘ and ’ directly in LaTeX. However, in The Not So Short Introduction to LaTeX 2ε, you are suggested to use ` and ' instead:
documentclass{article}
begin{document}
Hello ` World '.
end{document}
This is a screenshot of the document attached above:
However, if you like inputting the characters directly from your keyboard, you can use inputenc
. However, as Ulrike Fischer said, you can't use utf8
and latin1
encoding at the same time. Use utf8
only, as latin1
will give you â
.
documentclass{article}
usepackage[utf8]{inputenc}
begin{document}
Hello ‘ World ’.
end{document}
Welcome to TeX.SE. You can't use ‘ and ’ directly in LaTeX. However, in The Not So Short Introduction to LaTeX 2ε, you are suggested to use ` and ' instead:
documentclass{article}
begin{document}
Hello ` World '.
end{document}
This is a screenshot of the document attached above:
However, if you like inputting the characters directly from your keyboard, you can use inputenc
. However, as Ulrike Fischer said, you can't use utf8
and latin1
encoding at the same time. Use utf8
only, as latin1
will give you â
.
documentclass{article}
usepackage[utf8]{inputenc}
begin{document}
Hello ‘ World ’.
end{document}
answered Feb 27 at 10:12
JouleVJouleV
4,91111139
4,91111139
2
you can use ‘ and ’ directly and you do not need to explicitly load[utf8]{inputenc}
in current releases. This answer is very misleading.
– David Carlisle
Feb 27 at 10:22
add a comment |
2
you can use ‘ and ’ directly and you do not need to explicitly load[utf8]{inputenc}
in current releases. This answer is very misleading.
– David Carlisle
Feb 27 at 10:22
2
2
you can use ‘ and ’ directly and you do not need to explicitly load
[utf8]{inputenc}
in current releases. This answer is very misleading.– David Carlisle
Feb 27 at 10:22
you can use ‘ and ’ directly and you do not need to explicitly load
[utf8]{inputenc}
in current releases. This answer is very misleading.– David Carlisle
Feb 27 at 10:22
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476904%2fcharacters-and-not-displayed-after-compiling-latex-code%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You should use ` and ' instead.
– JouleV
Feb 27 at 9:57
1
usepackage[utf8,latin1]{inputenc}
is nonsense, your file is either utf8 encoded or latin1, not both at the same time.– Ulrike Fischer
Feb 27 at 10:02
1
Also show a complete example. Your input works fine for me in an utf8 file.
– Ulrike Fischer
Feb 27 at 10:04