Characters ‘ and ’ not displayed after compiling latex code












0















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 ?










share|improve this question























  • 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
















0















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 ?










share|improve this question























  • 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














0












0








0








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 ?










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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



















  • 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










1 Answer
1






active

oldest

votes


















0














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}


enter image description here



This is a screenshot of the document attached above:



enter image description hereenter image description here



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}


enter image description here






share|improve this answer



















  • 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













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
});


}
});














draft saved

draft discarded


















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









0














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}


enter image description here



This is a screenshot of the document attached above:



enter image description hereenter image description here



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}


enter image description here






share|improve this answer



















  • 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


















0














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}


enter image description here



This is a screenshot of the document attached above:



enter image description hereenter image description here



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}


enter image description here






share|improve this answer



















  • 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
















0












0








0







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}


enter image description here



This is a screenshot of the document attached above:



enter image description hereenter image description here



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}


enter image description here






share|improve this answer













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}


enter image description here



This is a screenshot of the document attached above:



enter image description hereenter image description here



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}


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










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
















  • 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




















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

ComboBox Display Member on multiple fields

Is it possible to collect Nectar points via Trainline?