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











up vote
4
down vote

favorite
1












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
    9 hours ago








  • 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
    9 hours ago










  • @sztruks I tried using utf8 in both places. Sadly that didn't change anything
    – Dr_DragonKiller
    9 hours ago






  • 4




    the use of " is an error you should use left and right quotes
    – David Carlisle
    9 hours ago






  • 2




    Add a character: "Test" s to "Test" s.
    – Dũng Vũ
    8 hours ago















up vote
4
down vote

favorite
1












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
    9 hours ago








  • 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
    9 hours ago










  • @sztruks I tried using utf8 in both places. Sadly that didn't change anything
    – Dr_DragonKiller
    9 hours ago






  • 4




    the use of " is an error you should use left and right quotes
    – David Carlisle
    9 hours ago






  • 2




    Add a character: "Test" s to "Test" s.
    – Dũng Vũ
    8 hours ago













up vote
4
down vote

favorite
1









up vote
4
down vote

favorite
1






1





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 4 hours ago









Davislor

4,142820




4,142820










asked 9 hours ago









Dr_DragonKiller

303




303








  • 1




    use utf8 instead of latin1 and it should work IMHO. Or it is a ngerman issue.
    – sztruks
    9 hours ago








  • 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
    9 hours ago










  • @sztruks I tried using utf8 in both places. Sadly that didn't change anything
    – Dr_DragonKiller
    9 hours ago






  • 4




    the use of " is an error you should use left and right quotes
    – David Carlisle
    9 hours ago






  • 2




    Add a character: "Test" s to "Test" s.
    – Dũng Vũ
    8 hours ago














  • 1




    use utf8 instead of latin1 and it should work IMHO. Or it is a ngerman issue.
    – sztruks
    9 hours ago








  • 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
    9 hours ago










  • @sztruks I tried using utf8 in both places. Sadly that didn't change anything
    – Dr_DragonKiller
    9 hours ago






  • 4




    the use of " is an error you should use left and right quotes
    – David Carlisle
    9 hours ago






  • 2




    Add a character: "Test" s to "Test" s.
    – Dũng Vũ
    8 hours ago








1




1




use utf8 instead of latin1 and it should work IMHO. Or it is a ngerman issue.
– sztruks
9 hours ago






use utf8 instead of latin1 and it should work IMHO. Or it is a ngerman issue.
– sztruks
9 hours ago






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
9 hours ago




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
9 hours ago












@sztruks I tried using utf8 in both places. Sadly that didn't change anything
– Dr_DragonKiller
9 hours ago




@sztruks I tried using utf8 in both places. Sadly that didn't change anything
– Dr_DragonKiller
9 hours ago




4




4




the use of " is an error you should use left and right quotes
– David Carlisle
9 hours ago




the use of " is an error you should use left and right quotes
– David Carlisle
9 hours ago




2




2




Add a character: "Test" s to "Test" s.
– Dũng Vũ
8 hours ago




Add a character: "Test" s to "Test" s.
– Dũng Vũ
8 hours ago










3 Answers
3






active

oldest

votes

















up vote
8
down vote



accepted










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
    6 hours ago












  • @Dr.ManuelKuehner Table 1 in texdoc babel-ngerman. Thanks!
    – egreg
    6 hours ago












  • Does the ampersand in “Test” & s in the second row have a purpose? I can’t see any reason why that row is different from the other three.
    – Janus Bahs Jacquet
    1 hour ago


















up vote
4
down vote













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
    7 hours ago








  • 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
    7 hours ago






  • 1




    @GuM My advice is: buy whatever keyboard you prefer, so long as it is International English.
    – egreg
    7 hours ago






  • 1




    @egreg Never have heard of international English keyboards :)
    – Dr. Manuel Kuehner
    6 hours ago


















up vote
2
down vote













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
    7 hours ago











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',
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








up vote
8
down vote



accepted










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
    6 hours ago












  • @Dr.ManuelKuehner Table 1 in texdoc babel-ngerman. Thanks!
    – egreg
    6 hours ago












  • Does the ampersand in “Test” & s in the second row have a purpose? I can’t see any reason why that row is different from the other three.
    – Janus Bahs Jacquet
    1 hour ago















up vote
8
down vote



accepted










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
    6 hours ago












  • @Dr.ManuelKuehner Table 1 in texdoc babel-ngerman. Thanks!
    – egreg
    6 hours ago












  • Does the ampersand in “Test” & s in the second row have a purpose? I can’t see any reason why that row is different from the other three.
    – Janus Bahs Jacquet
    1 hour ago













up vote
8
down vote



accepted







up vote
8
down vote



accepted






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










answered 6 hours ago









egreg

701k8618693142




701k8618693142












  • +1: Didn't know `"``. Congratulations to 700k btw.
    – Dr. Manuel Kuehner
    6 hours ago












  • @Dr.ManuelKuehner Table 1 in texdoc babel-ngerman. Thanks!
    – egreg
    6 hours ago












  • Does the ampersand in “Test” & s in the second row have a purpose? I can’t see any reason why that row is different from the other three.
    – Janus Bahs Jacquet
    1 hour ago


















  • +1: Didn't know `"``. Congratulations to 700k btw.
    – Dr. Manuel Kuehner
    6 hours ago












  • @Dr.ManuelKuehner Table 1 in texdoc babel-ngerman. Thanks!
    – egreg
    6 hours ago












  • Does the ampersand in “Test” & s in the second row have a purpose? I can’t see any reason why that row is different from the other three.
    – Janus Bahs Jacquet
    1 hour ago
















+1: Didn't know `"``. Congratulations to 700k btw.
– Dr. Manuel Kuehner
6 hours ago






+1: Didn't know `"``. Congratulations to 700k btw.
– Dr. Manuel Kuehner
6 hours ago














@Dr.ManuelKuehner Table 1 in texdoc babel-ngerman. Thanks!
– egreg
6 hours ago






@Dr.ManuelKuehner Table 1 in texdoc babel-ngerman. Thanks!
– egreg
6 hours ago














Does the ampersand in “Test” & s in the second row have a purpose? I can’t see any reason why that row is different from the other three.
– Janus Bahs Jacquet
1 hour ago




Does the ampersand in “Test” & s in the second row have a purpose? I can’t see any reason why that row is different from the other three.
– Janus Bahs Jacquet
1 hour ago










up vote
4
down vote













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
    7 hours ago








  • 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
    7 hours ago






  • 1




    @GuM My advice is: buy whatever keyboard you prefer, so long as it is International English.
    – egreg
    7 hours ago






  • 1




    @egreg Never have heard of international English keyboards :)
    – Dr. Manuel Kuehner
    6 hours ago















up vote
4
down vote













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
    7 hours ago








  • 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
    7 hours ago






  • 1




    @GuM My advice is: buy whatever keyboard you prefer, so long as it is International English.
    – egreg
    7 hours ago






  • 1




    @egreg Never have heard of international English keyboards :)
    – Dr. Manuel Kuehner
    6 hours ago













up vote
4
down vote










up vote
4
down vote









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 7 hours ago

























answered 7 hours ago









GuM

16k2254




16k2254








  • 1




    +1: Good point: But I cannot find them on my German keyboard (as direct keys).
    – Dr. Manuel Kuehner
    7 hours ago








  • 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
    7 hours ago






  • 1




    @GuM My advice is: buy whatever keyboard you prefer, so long as it is International English.
    – egreg
    7 hours ago






  • 1




    @egreg Never have heard of international English keyboards :)
    – Dr. Manuel Kuehner
    6 hours ago














  • 1




    +1: Good point: But I cannot find them on my German keyboard (as direct keys).
    – Dr. Manuel Kuehner
    7 hours ago








  • 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
    7 hours ago






  • 1




    @GuM My advice is: buy whatever keyboard you prefer, so long as it is International English.
    – egreg
    7 hours ago






  • 1




    @egreg Never have heard of international English keyboards :)
    – Dr. Manuel Kuehner
    6 hours ago








1




1




+1: Good point: But I cannot find them on my German keyboard (as direct keys).
– Dr. Manuel Kuehner
7 hours ago






+1: Good point: But I cannot find them on my German keyboard (as direct keys).
– Dr. Manuel Kuehner
7 hours ago






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
7 hours ago




@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
7 hours ago




1




1




@GuM My advice is: buy whatever keyboard you prefer, so long as it is International English.
– egreg
7 hours ago




@GuM My advice is: buy whatever keyboard you prefer, so long as it is International English.
– egreg
7 hours ago




1




1




@egreg Never have heard of international English keyboards :)
– Dr. Manuel Kuehner
6 hours ago




@egreg Never have heard of international English keyboards :)
– Dr. Manuel Kuehner
6 hours ago










up vote
2
down vote













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
    7 hours ago















up vote
2
down vote













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
    7 hours ago













up vote
2
down vote










up vote
2
down vote









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 7 hours ago

























answered 7 hours ago









Dr. Manuel Kuehner

8,87632766




8,87632766












  • @dũng-vũ I mentioned you in the "solution".
    – Dr. Manuel Kuehner
    7 hours ago


















  • @dũng-vũ I mentioned you in the "solution".
    – Dr. Manuel Kuehner
    7 hours ago
















@dũng-vũ I mentioned you in the "solution".
– Dr. Manuel Kuehner
7 hours ago




@dũng-vũ I mentioned you in the "solution".
– Dr. Manuel Kuehner
7 hours ago


















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

Le Mesnil-Réaume

Ida-Boy-Ed-Garten

web3.py web3.isConnected() returns false always