1

I want to know how to typeset quotation marks in LaTeX.

When I use quotation marks (""), a problem occurs: the spacing between the quoted- and unquoted-word disappears. E.g., my text looks like example (1) below. I want it to look like example (2) (notice the inter-word spacing).

(1) The mode is called "BASDF"because

(2) The mode is called "BASDF" because

6
  • 3
    Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}.
    – NBur
    Nov 9, 2021 at 11:16
  • 6
    It might be a better idea to use the csquotes package and its \enquote macro. Then you don't need special chars and the actual symbol combo can be controlled from the preamble
    – daleif
    Nov 9, 2021 at 12:05
  • This has nothing to do with biblatex, so I'll remove the tag. But let me just echo daleif's advice: Use csquotes to typeset quotation marks. If you use \enquote you don't have to worry about the exact commands/characters to typeset the typographically correct quotation marks in your language, you'll get the right output automatically. Plus you can easily switch between different styles if your language has different conventions.
    – moewe
    Nov 9, 2021 at 16:13
  • You could use my semantic-markup package and then just write \quoted{BASDF}. (It uses csquotes under the hood) Nov 10, 2021 at 1:10
  • 4
    Does this answer your question? What is the best way to use quotation mark glyphs?
    – user202729
    Nov 10, 2021 at 3:13

2 Answers 2

5
\documentclass{article}
\begin{document}
The mode is called ``BASDF'' because
\end{document}

Text

1
  • 7
    You could create a Minimal Working Example, by moving \end{document} up your code and continuously checking if the problem is there. -eliminate EVERYTHING until you only have the problematic code. You might find that a package or combinations of packages is causing the problem. Nov 9, 2021 at 11:35
2

You can also type in curly quotes on the keyboard, in your UTF-8 source file. A modern TeX distribution will understand them.

\documentclass{article}
\begin{document}
The mode is called “BASDF” because
\end{document}

On older installations, you might also need to load inputenc or selinput, but UTF-8 has been the default encoding for LaTeX, in all engines, since 2018.

2
  • 1
    It would be better to specify that for modern TeX distribution you mean, if compiled with LuaLaTeX or XeLaTeX. Otherwise, one has to include \usepackage[utf8]{inputenc}
    – Guido
    Nov 10, 2021 at 4:44
  • @Guido That hasn’t been the case since April 2018. That line is no longer needed, in any engine.
    – Davislor
    Nov 10, 2021 at 5:42

Not the answer you're looking for? Browse other questions tagged .