5

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...

  • 2
    Add an empty group `{}`` – Andrew Swann Jun 20 '13 at 6:42
  • 7
    Or better use the csquotes package and its command \enquote which nests correctly. – Andrew Swann Jun 20 '13 at 6:48
  • Welcome to TeX.SX! Usually, we don't put a greeting or a “thank you” in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Accepting and upvoting answers is the preferred way here to say “thank you” to users who helped you. – Xavier Jun 20 '13 at 7:06
  • 2
    Related: tex.stackexchange.com/questions/73986/… – Torbjørn T. Jun 20 '13 at 7:11
  • 2
    @AndrewSwann: csquotes does not support it out if the box, because what he wants to do gives an unbalanced combination of \enquote and \enquote* – Rico Jun 20 '13 at 7:27
14

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:

Preview

Notice that Russian and English text has the same markup, but different presentation.

  • never the less its not what the Question Starter wanted. We would like to achieve those quotes like this SINGLE DOUBLE DOUBLE SINGLE. What you did gives him the normal DOUBLE SINGLE SINGLE DOUBLE. – Rico Jun 20 '13 at 9:34
  • 2
    Changing english=american to english=british does the right thing. Fixed it in the answer. – eiennohito Jun 20 '13 at 9:39
  • right this fixes the problem got my +1 – Rico Jun 20 '13 at 9:56
13

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:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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