How do I prevent "s from turning into ß with babel?












6














I'm writing a German document and thus I need äÄöÖüÜß to work. However I don't use it this way: "a"A"o... I just type äÄö...

My Problem is that "Test" s is displayed as "Testß



Here is a MWE:



% !TEX encoding=latin1
documentclass{article}
usepackage[ngerman]{babel}
usepackage[latin1]{inputenc}
usepackage[T1]{fontenc}

begin{document}
"Test" s
end{document}









share|improve this question




















  • 1




    use utf8 instead of latin1 and it should work IMHO. Or it is a ngerman issue.
    – sztruks
    Dec 1 at 18:01








  • 3




    You should never use straight quotes. Use glqq Term heregrqq if you want quotes in the output or resort to a package like csquotes.
    – TeXnician
    Dec 1 at 18:02










  • @sztruks I tried using utf8 in both places. Sadly that didn't change anything
    – Dr_DragonKiller
    Dec 1 at 18:05






  • 4




    the use of " is an error you should use left and right quotes
    – David Carlisle
    Dec 1 at 18:11






  • 2




    Add a character: "Test" s to "Test" s.
    – JouleV
    Dec 1 at 19:30
















6














I'm writing a German document and thus I need äÄöÖüÜß to work. However I don't use it this way: "a"A"o... I just type äÄö...

My Problem is that "Test" s is displayed as "Testß



Here is a MWE:



% !TEX encoding=latin1
documentclass{article}
usepackage[ngerman]{babel}
usepackage[latin1]{inputenc}
usepackage[T1]{fontenc}

begin{document}
"Test" s
end{document}









share|improve this question




















  • 1




    use utf8 instead of latin1 and it should work IMHO. Or it is a ngerman issue.
    – sztruks
    Dec 1 at 18:01








  • 3




    You should never use straight quotes. Use glqq Term heregrqq if you want quotes in the output or resort to a package like csquotes.
    – TeXnician
    Dec 1 at 18:02










  • @sztruks I tried using utf8 in both places. Sadly that didn't change anything
    – Dr_DragonKiller
    Dec 1 at 18:05






  • 4




    the use of " is an error you should use left and right quotes
    – David Carlisle
    Dec 1 at 18:11






  • 2




    Add a character: "Test" s to "Test" s.
    – JouleV
    Dec 1 at 19:30














6












6








6


2





I'm writing a German document and thus I need äÄöÖüÜß to work. However I don't use it this way: "a"A"o... I just type äÄö...

My Problem is that "Test" s is displayed as "Testß



Here is a MWE:



% !TEX encoding=latin1
documentclass{article}
usepackage[ngerman]{babel}
usepackage[latin1]{inputenc}
usepackage[T1]{fontenc}

begin{document}
"Test" s
end{document}









share|improve this question















I'm writing a German document and thus I need äÄöÖüÜß to work. However I don't use it this way: "a"A"o... I just type äÄö...

My Problem is that "Test" s is displayed as "Testß



Here is a MWE:



% !TEX encoding=latin1
documentclass{article}
usepackage[ngerman]{babel}
usepackage[latin1]{inputenc}
usepackage[T1]{fontenc}

begin{document}
"Test" s
end{document}






input-encodings characters german






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 1 at 23:17









Davislor

4,6871024




4,6871024










asked Dec 1 at 18:00









Dr_DragonKiller

403




403








  • 1




    use utf8 instead of latin1 and it should work IMHO. Or it is a ngerman issue.
    – sztruks
    Dec 1 at 18:01








  • 3




    You should never use straight quotes. Use glqq Term heregrqq if you want quotes in the output or resort to a package like csquotes.
    – TeXnician
    Dec 1 at 18:02










  • @sztruks I tried using utf8 in both places. Sadly that didn't change anything
    – Dr_DragonKiller
    Dec 1 at 18:05






  • 4




    the use of " is an error you should use left and right quotes
    – David Carlisle
    Dec 1 at 18:11






  • 2




    Add a character: "Test" s to "Test" s.
    – JouleV
    Dec 1 at 19:30














  • 1




    use utf8 instead of latin1 and it should work IMHO. Or it is a ngerman issue.
    – sztruks
    Dec 1 at 18:01








  • 3




    You should never use straight quotes. Use glqq Term heregrqq if you want quotes in the output or resort to a package like csquotes.
    – TeXnician
    Dec 1 at 18:02










  • @sztruks I tried using utf8 in both places. Sadly that didn't change anything
    – Dr_DragonKiller
    Dec 1 at 18:05






  • 4




    the use of " is an error you should use left and right quotes
    – David Carlisle
    Dec 1 at 18:11






  • 2




    Add a character: "Test" s to "Test" s.
    – JouleV
    Dec 1 at 19:30








1




1




use utf8 instead of latin1 and it should work IMHO. Or it is a ngerman issue.
– sztruks
Dec 1 at 18:01






use utf8 instead of latin1 and it should work IMHO. Or it is a ngerman issue.
– sztruks
Dec 1 at 18:01






3




3




You should never use straight quotes. Use glqq Term heregrqq if you want quotes in the output or resort to a package like csquotes.
– TeXnician
Dec 1 at 18:02




You should never use straight quotes. Use glqq Term heregrqq if you want quotes in the output or resort to a package like csquotes.
– TeXnician
Dec 1 at 18:02












@sztruks I tried using utf8 in both places. Sadly that didn't change anything
– Dr_DragonKiller
Dec 1 at 18:05




@sztruks I tried using utf8 in both places. Sadly that didn't change anything
– Dr_DragonKiller
Dec 1 at 18:05




4




4




the use of " is an error you should use left and right quotes
– David Carlisle
Dec 1 at 18:11




the use of " is an error you should use left and right quotes
– David Carlisle
Dec 1 at 18:11




2




2




Add a character: "Test" s to "Test" s.
– JouleV
Dec 1 at 19:30




Add a character: "Test" s to "Test" s.
– JouleV
Dec 1 at 19:30










3 Answers
3






active

oldest

votes


















12














The character " should never be used in running text to denote quotes. For double English quotes, use



``Test'' s


If you want German style quotes, use



"`Test"' s


With UTF-8 input, you can use



“Test” s


for English style and



„Test“ s


for German style. The alternative glqq Testgrqq s is less convenient.



Examples:



documentclass[a4paper]{article}
usepackage[T1]{fontenc}
%usepackage[utf8]{inputenc} % not needed with LaTeX after 2018-04-01
usepackage[ngerman]{babel}

usepackage{upquote,booktabs} % for the table

begin{document}

begin{tabular}{lll}
toprule
multicolumn{1}{c}{Style} &
multicolumn{1}{c}{Input} &
multicolumn{1}{c}{Output} \
midrule
English & verb|``Test'' s| & ``Test'' s
\
English & verb|“Test” s| & “Test” s
\
German & verb|"`Test"' s| & "`Test"' s
\
German & verb|„Test“ s| & „Test“ s
\
German & verb|glqq Testgrqq s| & glqq Testgrqq s
\
bottomrule
end{tabular}

end{document}


enter image description here






share|improve this answer























  • +1: Didn't know `"``. Congratulations to 700k btw.
    – Dr. Manuel Kuehner
    Dec 1 at 21:09












  • @Dr.ManuelKuehner Table 1 in texdoc babel-ngerman. Thanks!
    – egreg
    Dec 1 at 21:10








  • 1




    @JanusBahsJacquet Typo, sorry.
    – egreg
    Dec 2 at 8:11



















5














Solution 3: use left and right quotes in the source too, as David Carlisle auggested:



documentclass{article}
usepackage[ngerman]{babel}
usepackage[latin1]{inputenc}
usepackage[T1]{fontenc}

begin{document}
“Test”s, and “test” s too (but I’d use “test”~s, then).
end{document}


This is the output I get:



Output of the code






share|improve this answer



















  • 1




    +1: Good point: But I cannot find them on my German keyboard (as direct keys).
    – Dr. Manuel Kuehner
    Dec 1 at 20:09








  • 2




    @Dr.ManuelKuehner: I have a Mac with an “international English” keyboard, so I can type them rather easily. I couldn’t stand using LaTeX with a different keyboard! :-)
    – GuM
    Dec 1 at 20:15






  • 1




    @GuM My advice is: buy whatever keyboard you prefer, so long as it is International English.
    – egreg
    Dec 1 at 20:42






  • 1




    @egreg Never have heard of international English keyboards :)
    – Dr. Manuel Kuehner
    Dec 1 at 20:54



















3














If you want to use latin1 (which is ISO 8859-1), then I have collected two solutions which are already mentioned in the comments.




The problem is, that in some cases* "A, "O, "U, "a, "o, "u, "s are
commands for special characters (instead of "A, "O or ss{} for
example). So LaTeX cannot know what you mean in your example.



*Depending on the loaded packages, in this case, the babel package.




documentclass{article}
usepackage[ngerman]{babel}
usepackage[latin1]{inputenc}
usepackage[T1]{fontenc}

usepackage{csquotes}

begin{document}

section*{They are all the same regarding the ß}

begin{itemize}
item "Test" s
item " s
item "s
item But: " s % Thanks to comment of user Dũng Vũ
end{itemize}

section*{Solution 1: Use texttt{babel}'s quotation marks}
% See also https://www.namsu.de/Extra/befehle/Anfuehrungszeichen.html
% https://de.wikibooks.org/wiki/LaTeX-W%C3%B6rterbuch:_Anf%C3%BChrungszeichen
% glqq --> German Left Double Quote
% grqq --> German Right Double Quote
% glq --> German Left Single Quote
% grq --> German Right Single Quote

begin{itemize}
item glqq Testgrqq s (Don't forget the textbackslash after the command)
item glq Testgrq s
end{itemize}

section*{Solution 2: Use the texttt{csquote} package}
% For more information, have a look at the manual
% https://ctan.org/pkg/csquotes

enquote{Test} s

end{document}


enter image description here



Note: On the screenshot, you see on the bottom right that I use the correct encoding in the editor, in this case ISO-8859-1 which is latin1.






share|improve this answer























  • @dũng-vũ I mentioned you in the "solution".
    – Dr. Manuel Kuehner
    Dec 1 at 19:55











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%2f462728%2fhow-do-i-prevent-s-from-turning-into-%25c3%259f-with-babel%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes









12














The character " should never be used in running text to denote quotes. For double English quotes, use



``Test'' s


If you want German style quotes, use



"`Test"' s


With UTF-8 input, you can use



“Test” s


for English style and



„Test“ s


for German style. The alternative glqq Testgrqq s is less convenient.



Examples:



documentclass[a4paper]{article}
usepackage[T1]{fontenc}
%usepackage[utf8]{inputenc} % not needed with LaTeX after 2018-04-01
usepackage[ngerman]{babel}

usepackage{upquote,booktabs} % for the table

begin{document}

begin{tabular}{lll}
toprule
multicolumn{1}{c}{Style} &
multicolumn{1}{c}{Input} &
multicolumn{1}{c}{Output} \
midrule
English & verb|``Test'' s| & ``Test'' s
\
English & verb|“Test” s| & “Test” s
\
German & verb|"`Test"' s| & "`Test"' s
\
German & verb|„Test“ s| & „Test“ s
\
German & verb|glqq Testgrqq s| & glqq Testgrqq s
\
bottomrule
end{tabular}

end{document}


enter image description here






share|improve this answer























  • +1: Didn't know `"``. Congratulations to 700k btw.
    – Dr. Manuel Kuehner
    Dec 1 at 21:09












  • @Dr.ManuelKuehner Table 1 in texdoc babel-ngerman. Thanks!
    – egreg
    Dec 1 at 21:10








  • 1




    @JanusBahsJacquet Typo, sorry.
    – egreg
    Dec 2 at 8:11
















12














The character " should never be used in running text to denote quotes. For double English quotes, use



``Test'' s


If you want German style quotes, use



"`Test"' s


With UTF-8 input, you can use



“Test” s


for English style and



„Test“ s


for German style. The alternative glqq Testgrqq s is less convenient.



Examples:



documentclass[a4paper]{article}
usepackage[T1]{fontenc}
%usepackage[utf8]{inputenc} % not needed with LaTeX after 2018-04-01
usepackage[ngerman]{babel}

usepackage{upquote,booktabs} % for the table

begin{document}

begin{tabular}{lll}
toprule
multicolumn{1}{c}{Style} &
multicolumn{1}{c}{Input} &
multicolumn{1}{c}{Output} \
midrule
English & verb|``Test'' s| & ``Test'' s
\
English & verb|“Test” s| & “Test” s
\
German & verb|"`Test"' s| & "`Test"' s
\
German & verb|„Test“ s| & „Test“ s
\
German & verb|glqq Testgrqq s| & glqq Testgrqq s
\
bottomrule
end{tabular}

end{document}


enter image description here






share|improve this answer























  • +1: Didn't know `"``. Congratulations to 700k btw.
    – Dr. Manuel Kuehner
    Dec 1 at 21:09












  • @Dr.ManuelKuehner Table 1 in texdoc babel-ngerman. Thanks!
    – egreg
    Dec 1 at 21:10








  • 1




    @JanusBahsJacquet Typo, sorry.
    – egreg
    Dec 2 at 8:11














12












12








12






The character " should never be used in running text to denote quotes. For double English quotes, use



``Test'' s


If you want German style quotes, use



"`Test"' s


With UTF-8 input, you can use



“Test” s


for English style and



„Test“ s


for German style. The alternative glqq Testgrqq s is less convenient.



Examples:



documentclass[a4paper]{article}
usepackage[T1]{fontenc}
%usepackage[utf8]{inputenc} % not needed with LaTeX after 2018-04-01
usepackage[ngerman]{babel}

usepackage{upquote,booktabs} % for the table

begin{document}

begin{tabular}{lll}
toprule
multicolumn{1}{c}{Style} &
multicolumn{1}{c}{Input} &
multicolumn{1}{c}{Output} \
midrule
English & verb|``Test'' s| & ``Test'' s
\
English & verb|“Test” s| & “Test” s
\
German & verb|"`Test"' s| & "`Test"' s
\
German & verb|„Test“ s| & „Test“ s
\
German & verb|glqq Testgrqq s| & glqq Testgrqq s
\
bottomrule
end{tabular}

end{document}


enter image description here






share|improve this answer














The character " should never be used in running text to denote quotes. For double English quotes, use



``Test'' s


If you want German style quotes, use



"`Test"' s


With UTF-8 input, you can use



“Test” s


for English style and



„Test“ s


for German style. The alternative glqq Testgrqq s is less convenient.



Examples:



documentclass[a4paper]{article}
usepackage[T1]{fontenc}
%usepackage[utf8]{inputenc} % not needed with LaTeX after 2018-04-01
usepackage[ngerman]{babel}

usepackage{upquote,booktabs} % for the table

begin{document}

begin{tabular}{lll}
toprule
multicolumn{1}{c}{Style} &
multicolumn{1}{c}{Input} &
multicolumn{1}{c}{Output} \
midrule
English & verb|``Test'' s| & ``Test'' s
\
English & verb|“Test” s| & “Test” s
\
German & verb|"`Test"' s| & "`Test"' s
\
German & verb|„Test“ s| & „Test“ s
\
German & verb|glqq Testgrqq s| & glqq Testgrqq s
\
bottomrule
end{tabular}

end{document}


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 2 at 8:12

























answered Dec 1 at 20:57









egreg

709k8618823164




709k8618823164












  • +1: Didn't know `"``. Congratulations to 700k btw.
    – Dr. Manuel Kuehner
    Dec 1 at 21:09












  • @Dr.ManuelKuehner Table 1 in texdoc babel-ngerman. Thanks!
    – egreg
    Dec 1 at 21:10








  • 1




    @JanusBahsJacquet Typo, sorry.
    – egreg
    Dec 2 at 8:11


















  • +1: Didn't know `"``. Congratulations to 700k btw.
    – Dr. Manuel Kuehner
    Dec 1 at 21:09












  • @Dr.ManuelKuehner Table 1 in texdoc babel-ngerman. Thanks!
    – egreg
    Dec 1 at 21:10








  • 1




    @JanusBahsJacquet Typo, sorry.
    – egreg
    Dec 2 at 8:11
















+1: Didn't know `"``. Congratulations to 700k btw.
– Dr. Manuel Kuehner
Dec 1 at 21:09






+1: Didn't know `"``. Congratulations to 700k btw.
– Dr. Manuel Kuehner
Dec 1 at 21:09














@Dr.ManuelKuehner Table 1 in texdoc babel-ngerman. Thanks!
– egreg
Dec 1 at 21:10






@Dr.ManuelKuehner Table 1 in texdoc babel-ngerman. Thanks!
– egreg
Dec 1 at 21:10






1




1




@JanusBahsJacquet Typo, sorry.
– egreg
Dec 2 at 8:11




@JanusBahsJacquet Typo, sorry.
– egreg
Dec 2 at 8:11











5














Solution 3: use left and right quotes in the source too, as David Carlisle auggested:



documentclass{article}
usepackage[ngerman]{babel}
usepackage[latin1]{inputenc}
usepackage[T1]{fontenc}

begin{document}
“Test”s, and “test” s too (but I’d use “test”~s, then).
end{document}


This is the output I get:



Output of the code






share|improve this answer



















  • 1




    +1: Good point: But I cannot find them on my German keyboard (as direct keys).
    – Dr. Manuel Kuehner
    Dec 1 at 20:09








  • 2




    @Dr.ManuelKuehner: I have a Mac with an “international English” keyboard, so I can type them rather easily. I couldn’t stand using LaTeX with a different keyboard! :-)
    – GuM
    Dec 1 at 20:15






  • 1




    @GuM My advice is: buy whatever keyboard you prefer, so long as it is International English.
    – egreg
    Dec 1 at 20:42






  • 1




    @egreg Never have heard of international English keyboards :)
    – Dr. Manuel Kuehner
    Dec 1 at 20:54
















5














Solution 3: use left and right quotes in the source too, as David Carlisle auggested:



documentclass{article}
usepackage[ngerman]{babel}
usepackage[latin1]{inputenc}
usepackage[T1]{fontenc}

begin{document}
“Test”s, and “test” s too (but I’d use “test”~s, then).
end{document}


This is the output I get:



Output of the code






share|improve this answer



















  • 1




    +1: Good point: But I cannot find them on my German keyboard (as direct keys).
    – Dr. Manuel Kuehner
    Dec 1 at 20:09








  • 2




    @Dr.ManuelKuehner: I have a Mac with an “international English” keyboard, so I can type them rather easily. I couldn’t stand using LaTeX with a different keyboard! :-)
    – GuM
    Dec 1 at 20:15






  • 1




    @GuM My advice is: buy whatever keyboard you prefer, so long as it is International English.
    – egreg
    Dec 1 at 20:42






  • 1




    @egreg Never have heard of international English keyboards :)
    – Dr. Manuel Kuehner
    Dec 1 at 20:54














5












5








5






Solution 3: use left and right quotes in the source too, as David Carlisle auggested:



documentclass{article}
usepackage[ngerman]{babel}
usepackage[latin1]{inputenc}
usepackage[T1]{fontenc}

begin{document}
“Test”s, and “test” s too (but I’d use “test”~s, then).
end{document}


This is the output I get:



Output of the code






share|improve this answer














Solution 3: use left and right quotes in the source too, as David Carlisle auggested:



documentclass{article}
usepackage[ngerman]{babel}
usepackage[latin1]{inputenc}
usepackage[T1]{fontenc}

begin{document}
“Test”s, and “test” s too (but I’d use “test”~s, then).
end{document}


This is the output I get:



Output of the code







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 1 at 20:13

























answered Dec 1 at 20:06









GuM

16.1k2255




16.1k2255








  • 1




    +1: Good point: But I cannot find them on my German keyboard (as direct keys).
    – Dr. Manuel Kuehner
    Dec 1 at 20:09








  • 2




    @Dr.ManuelKuehner: I have a Mac with an “international English” keyboard, so I can type them rather easily. I couldn’t stand using LaTeX with a different keyboard! :-)
    – GuM
    Dec 1 at 20:15






  • 1




    @GuM My advice is: buy whatever keyboard you prefer, so long as it is International English.
    – egreg
    Dec 1 at 20:42






  • 1




    @egreg Never have heard of international English keyboards :)
    – Dr. Manuel Kuehner
    Dec 1 at 20:54














  • 1




    +1: Good point: But I cannot find them on my German keyboard (as direct keys).
    – Dr. Manuel Kuehner
    Dec 1 at 20:09








  • 2




    @Dr.ManuelKuehner: I have a Mac with an “international English” keyboard, so I can type them rather easily. I couldn’t stand using LaTeX with a different keyboard! :-)
    – GuM
    Dec 1 at 20:15






  • 1




    @GuM My advice is: buy whatever keyboard you prefer, so long as it is International English.
    – egreg
    Dec 1 at 20:42






  • 1




    @egreg Never have heard of international English keyboards :)
    – Dr. Manuel Kuehner
    Dec 1 at 20:54








1




1




+1: Good point: But I cannot find them on my German keyboard (as direct keys).
– Dr. Manuel Kuehner
Dec 1 at 20:09






+1: Good point: But I cannot find them on my German keyboard (as direct keys).
– Dr. Manuel Kuehner
Dec 1 at 20:09






2




2




@Dr.ManuelKuehner: I have a Mac with an “international English” keyboard, so I can type them rather easily. I couldn’t stand using LaTeX with a different keyboard! :-)
– GuM
Dec 1 at 20:15




@Dr.ManuelKuehner: I have a Mac with an “international English” keyboard, so I can type them rather easily. I couldn’t stand using LaTeX with a different keyboard! :-)
– GuM
Dec 1 at 20:15




1




1




@GuM My advice is: buy whatever keyboard you prefer, so long as it is International English.
– egreg
Dec 1 at 20:42




@GuM My advice is: buy whatever keyboard you prefer, so long as it is International English.
– egreg
Dec 1 at 20:42




1




1




@egreg Never have heard of international English keyboards :)
– Dr. Manuel Kuehner
Dec 1 at 20:54




@egreg Never have heard of international English keyboards :)
– Dr. Manuel Kuehner
Dec 1 at 20:54











3














If you want to use latin1 (which is ISO 8859-1), then I have collected two solutions which are already mentioned in the comments.




The problem is, that in some cases* "A, "O, "U, "a, "o, "u, "s are
commands for special characters (instead of "A, "O or ss{} for
example). So LaTeX cannot know what you mean in your example.



*Depending on the loaded packages, in this case, the babel package.




documentclass{article}
usepackage[ngerman]{babel}
usepackage[latin1]{inputenc}
usepackage[T1]{fontenc}

usepackage{csquotes}

begin{document}

section*{They are all the same regarding the ß}

begin{itemize}
item "Test" s
item " s
item "s
item But: " s % Thanks to comment of user Dũng Vũ
end{itemize}

section*{Solution 1: Use texttt{babel}'s quotation marks}
% See also https://www.namsu.de/Extra/befehle/Anfuehrungszeichen.html
% https://de.wikibooks.org/wiki/LaTeX-W%C3%B6rterbuch:_Anf%C3%BChrungszeichen
% glqq --> German Left Double Quote
% grqq --> German Right Double Quote
% glq --> German Left Single Quote
% grq --> German Right Single Quote

begin{itemize}
item glqq Testgrqq s (Don't forget the textbackslash after the command)
item glq Testgrq s
end{itemize}

section*{Solution 2: Use the texttt{csquote} package}
% For more information, have a look at the manual
% https://ctan.org/pkg/csquotes

enquote{Test} s

end{document}


enter image description here



Note: On the screenshot, you see on the bottom right that I use the correct encoding in the editor, in this case ISO-8859-1 which is latin1.






share|improve this answer























  • @dũng-vũ I mentioned you in the "solution".
    – Dr. Manuel Kuehner
    Dec 1 at 19:55
















3














If you want to use latin1 (which is ISO 8859-1), then I have collected two solutions which are already mentioned in the comments.




The problem is, that in some cases* "A, "O, "U, "a, "o, "u, "s are
commands for special characters (instead of "A, "O or ss{} for
example). So LaTeX cannot know what you mean in your example.



*Depending on the loaded packages, in this case, the babel package.




documentclass{article}
usepackage[ngerman]{babel}
usepackage[latin1]{inputenc}
usepackage[T1]{fontenc}

usepackage{csquotes}

begin{document}

section*{They are all the same regarding the ß}

begin{itemize}
item "Test" s
item " s
item "s
item But: " s % Thanks to comment of user Dũng Vũ
end{itemize}

section*{Solution 1: Use texttt{babel}'s quotation marks}
% See also https://www.namsu.de/Extra/befehle/Anfuehrungszeichen.html
% https://de.wikibooks.org/wiki/LaTeX-W%C3%B6rterbuch:_Anf%C3%BChrungszeichen
% glqq --> German Left Double Quote
% grqq --> German Right Double Quote
% glq --> German Left Single Quote
% grq --> German Right Single Quote

begin{itemize}
item glqq Testgrqq s (Don't forget the textbackslash after the command)
item glq Testgrq s
end{itemize}

section*{Solution 2: Use the texttt{csquote} package}
% For more information, have a look at the manual
% https://ctan.org/pkg/csquotes

enquote{Test} s

end{document}


enter image description here



Note: On the screenshot, you see on the bottom right that I use the correct encoding in the editor, in this case ISO-8859-1 which is latin1.






share|improve this answer























  • @dũng-vũ I mentioned you in the "solution".
    – Dr. Manuel Kuehner
    Dec 1 at 19:55














3












3








3






If you want to use latin1 (which is ISO 8859-1), then I have collected two solutions which are already mentioned in the comments.




The problem is, that in some cases* "A, "O, "U, "a, "o, "u, "s are
commands for special characters (instead of "A, "O or ss{} for
example). So LaTeX cannot know what you mean in your example.



*Depending on the loaded packages, in this case, the babel package.




documentclass{article}
usepackage[ngerman]{babel}
usepackage[latin1]{inputenc}
usepackage[T1]{fontenc}

usepackage{csquotes}

begin{document}

section*{They are all the same regarding the ß}

begin{itemize}
item "Test" s
item " s
item "s
item But: " s % Thanks to comment of user Dũng Vũ
end{itemize}

section*{Solution 1: Use texttt{babel}'s quotation marks}
% See also https://www.namsu.de/Extra/befehle/Anfuehrungszeichen.html
% https://de.wikibooks.org/wiki/LaTeX-W%C3%B6rterbuch:_Anf%C3%BChrungszeichen
% glqq --> German Left Double Quote
% grqq --> German Right Double Quote
% glq --> German Left Single Quote
% grq --> German Right Single Quote

begin{itemize}
item glqq Testgrqq s (Don't forget the textbackslash after the command)
item glq Testgrq s
end{itemize}

section*{Solution 2: Use the texttt{csquote} package}
% For more information, have a look at the manual
% https://ctan.org/pkg/csquotes

enquote{Test} s

end{document}


enter image description here



Note: On the screenshot, you see on the bottom right that I use the correct encoding in the editor, in this case ISO-8859-1 which is latin1.






share|improve this answer














If you want to use latin1 (which is ISO 8859-1), then I have collected two solutions which are already mentioned in the comments.




The problem is, that in some cases* "A, "O, "U, "a, "o, "u, "s are
commands for special characters (instead of "A, "O or ss{} for
example). So LaTeX cannot know what you mean in your example.



*Depending on the loaded packages, in this case, the babel package.




documentclass{article}
usepackage[ngerman]{babel}
usepackage[latin1]{inputenc}
usepackage[T1]{fontenc}

usepackage{csquotes}

begin{document}

section*{They are all the same regarding the ß}

begin{itemize}
item "Test" s
item " s
item "s
item But: " s % Thanks to comment of user Dũng Vũ
end{itemize}

section*{Solution 1: Use texttt{babel}'s quotation marks}
% See also https://www.namsu.de/Extra/befehle/Anfuehrungszeichen.html
% https://de.wikibooks.org/wiki/LaTeX-W%C3%B6rterbuch:_Anf%C3%BChrungszeichen
% glqq --> German Left Double Quote
% grqq --> German Right Double Quote
% glq --> German Left Single Quote
% grq --> German Right Single Quote

begin{itemize}
item glqq Testgrqq s (Don't forget the textbackslash after the command)
item glq Testgrq s
end{itemize}

section*{Solution 2: Use the texttt{csquote} package}
% For more information, have a look at the manual
% https://ctan.org/pkg/csquotes

enquote{Test} s

end{document}


enter image description here



Note: On the screenshot, you see on the bottom right that I use the correct encoding in the editor, in this case ISO-8859-1 which is latin1.







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 1 at 20:05

























answered Dec 1 at 19:52









Dr. Manuel Kuehner

8,94632767




8,94632767












  • @dũng-vũ I mentioned you in the "solution".
    – Dr. Manuel Kuehner
    Dec 1 at 19:55


















  • @dũng-vũ I mentioned you in the "solution".
    – Dr. Manuel Kuehner
    Dec 1 at 19:55
















@dũng-vũ I mentioned you in the "solution".
– Dr. Manuel Kuehner
Dec 1 at 19:55




@dũng-vũ I mentioned you in the "solution".
– Dr. Manuel Kuehner
Dec 1 at 19:55


















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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2f462728%2fhow-do-i-prevent-s-from-turning-into-%25c3%259f-with-babel%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

AnyDesk - Fatal Program Failure

How to calibrate 16:9 built-in touch-screen to a 4:3 resolution?

QoS: MAC-Priority for clients behind a repeater