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

Coby Viner
  • 1,939

2 Answers2

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

Text

  • 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. – hpekristiansen Nov 09 '21 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.

Davislor
  • 44,045
  • 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 '21 at 04:44
  • @Guido That hasn’t been the case since April 2018. That line is no longer needed, in any engine. – Davislor Nov 10 '21 at 05:42