It may look like a minor difference, but I'm trying to put quotation marks between single quotes, e.g.
‘“go away” he said’
but '''
results in
“‘go away” he said’
which is not what I want...
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityIt may look like a minor difference, but I'm trying to put quotation marks between single quotes, e.g.
‘“go away” he said’
but '''
results in
“‘go away” he said’
which is not what I want...
Explaining comment by @Andrew Swann
The package csquotes
can help dealing with nested quotes and quoting styles in different languages.
For example:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage[autostyle,english=british]{csquotes}
\usepackage[english,russian]{babel}
\begin{document}
\selectlanguage{english}
In English: \enquote{\enquote{Go away}, he said.}
\selectlanguage{russian}
На русском: \enquote{\enquote{Пошёл прочь!} --- сказал он}
\end{document}
This gets you following document:
Notice that Russian and English text has the same markup, but different presentation.
english=american
to english=british
does the right thing. Fixed it in the answer.
Jun 20, 2013 at 9:39
The simplest way is to add a pair of curly braces between the first and second backtick, which tells LaTeX to split them as a single, followed by a double. That is, write
`{}``Go away'', he said'
as opposed to
```Go away'', he said'
You get the following result:
`{}``
csquotes
package and its command\enquote
which nests correctly.csquotes
does not support it out if the box, because what he wants to do gives an unbalanced combination of\enquote
and\enquote*