Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
4  

3 Answers 3

up vote 16 down vote accepted

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

share|improve this answer
4  
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 4: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 5:22

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)

share|improve this answer
2  
+1, but German punctuation would prescribe \enquote{innen}.}, perhaps even \enquote{innen}}.. (On a side note: Why not use the minimal class) –  doncherry Sep 26 '12 at 18:37
    
@doncherry Thank you for your hints: I edited my answer accordingly. –  fheub Sep 27 '12 at 15:13
    
Thank you for your hints: I edited my answer accordingly but not the result image, which confused me for a moment :-) –  Daniel Nov 15 '12 at 14:41
\documentclass{article}
\begin{document}
``` '''     % misinterpretation by (La)TeX
``{}` '{}'' % good interpretation (but bad spaces) 
\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.