34

I have a paragraph as follows:

``This is a quote. `Here is a quote within a quote.'''

But the formatting works out to be a double quote (") followed by a single quote (') instead of the other way around. How can I solve this problem?

lockstep
  • 250,273
eltommo
  • 443
  • 4
    Related: [Why do ``` and ''' produce outputs with different spaces?](http://tex.stackexchange.com/q/62127/5764) – Werner Sep 25 '12 at 04:32

4 Answers4

31

You have the following options:

enter image description here

Outer double, inner single: ``\thinspace`\ \ldots\ '\thinspace'' \par
Outer single, inner double: `\thinspace``\ \ldots\ ''\thinspace'

The TeX Book mentions (Chapter 2: Book Printing versus Ordinary Typing, p 5): "There's usually less space preceding a single left quote than there is preceding a double left quote. (Left and right are opposites.)"

So, in your instance,

``This is a quote. `Here is a quote within a quote.'\thinspace''

enter image description here

Werner
  • 603,163
  • 6
    Would \`{}`Foo'{}''` be an option as well? It's kinda hard to tell, but the spaces do differ a bit between the "black marks" in the output. Considering you're quoting Knuth's recommendation, it doesn't seem to be what was intended by the inventor. – doncherry Sep 25 '12 at 04:48
  • @doncherry: To me the distinction is too minimal. However, I can see that it could be a user-preference as well. – Werner Sep 25 '12 at 05:22
19

The csquotes package might be helpful.

For nested quotings just nest \enquote{} like this:

\documentclass[english]{article}
\usepackage{csquotes}

\begin{document}
\enquote{outer and \enquote{inner}}
\end{document}

nested enquotes (en)

It is also very useful for non-english quotation marks:

\documentclass[naustrian,german]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage[babel]{csquotes}

\begin{document}
\enquote{außen und \enquote{innen}}
\end{document}

nested enquotes (de)

doncherry
  • 54,637
fheub
  • 816
6
\documentclass{article}
\begin{document}
``` '''     % misinterpretation by (La)TeX
``{}` '{}'' % good interpretation (but bad spaces) 
\end{document}
Paul Gaborit
  • 70,770
  • 10
  • 176
  • 283
4

An alternative solution is use the \, command. It'll give you an output similar to the method using \thinspace.

Example:

``This is a quote \,`Here is a quote within a a quote.'\,''

enter image description here