How do I prevent "s from turning into ß with babel?
up vote
4
down vote
favorite
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
|
show 1 more comment
up vote
4
down vote
favorite
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
1
useutf8
instead oflatin1
and it should work IMHO. Or it is angerman
issue.
– sztruks
9 hours ago
3
You should never use straight quotes. Useglqq Term heregrqq
if you want quotes in the output or resort to a package likecsquotes
.
– TeXnician
9 hours ago
@sztruks I tried usingutf8
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
|
show 1 more comment
up vote
4
down vote
favorite
up vote
4
down vote
favorite
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
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
input-encodings characters german
edited 4 hours ago
Davislor
4,142820
4,142820
asked 9 hours ago
Dr_DragonKiller
303
303
1
useutf8
instead oflatin1
and it should work IMHO. Or it is angerman
issue.
– sztruks
9 hours ago
3
You should never use straight quotes. Useglqq Term heregrqq
if you want quotes in the output or resort to a package likecsquotes
.
– TeXnician
9 hours ago
@sztruks I tried usingutf8
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
|
show 1 more comment
1
useutf8
instead oflatin1
and it should work IMHO. Or it is angerman
issue.
– sztruks
9 hours ago
3
You should never use straight quotes. Useglqq Term heregrqq
if you want quotes in the output or resort to a package likecsquotes
.
– TeXnician
9 hours ago
@sztruks I tried usingutf8
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
|
show 1 more comment
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}
+1: Didn't know `"``. Congratulations to 700k btw.
– Dr. Manuel Kuehner
6 hours ago
@Dr.ManuelKuehner Table 1 intexdoc 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
add a comment |
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:
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
add a comment |
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}
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.
@dũng-vũ I mentioned you in the "solution".
– Dr. Manuel Kuehner
7 hours ago
add a comment |
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}
+1: Didn't know `"``. Congratulations to 700k btw.
– Dr. Manuel Kuehner
6 hours ago
@Dr.ManuelKuehner Table 1 intexdoc 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
add a comment |
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}
+1: Didn't know `"``. Congratulations to 700k btw.
– Dr. Manuel Kuehner
6 hours ago
@Dr.ManuelKuehner Table 1 intexdoc 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
add a comment |
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}
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}
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 intexdoc 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
add a comment |
+1: Didn't know `"``. Congratulations to 700k btw.
– Dr. Manuel Kuehner
6 hours ago
@Dr.ManuelKuehner Table 1 intexdoc 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
add a comment |
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:
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
add a comment |
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:
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
add a comment |
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:
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:
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
add a comment |
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
add a comment |
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}
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.
@dũng-vũ I mentioned you in the "solution".
– Dr. Manuel Kuehner
7 hours ago
add a comment |
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}
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.
@dũng-vũ I mentioned you in the "solution".
– Dr. Manuel Kuehner
7 hours ago
add a comment |
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}
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.
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}
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.
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
add a comment |
@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
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.
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.
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%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
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
1
use
utf8
instead oflatin1
and it should work IMHO. Or it is angerman
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 likecsquotes
.– 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