Skip to main content
v2026.11,986 entries · CC-BY 4.0

Inverted Commas in LaTeX: Opening and Closing Quotation Marks

How to type inverted commas (quotation marks) in LaTeX, fix quotes facing the wrong way, and use csquotes for nested and multilingual text.

Written and maintained by CASRAI Editorial Board

Published · Last updated

On this page

Short answer: in LaTeX, inverted commas (quotation marks) are typed with two different characters, not one. A backtick ` opens a single quote and an apostrophe ' closes it; doubling each gives double quotes, so ``To quote'' prints as “To quote”. Typing the straight " key for both ends is the usual cause of quotes that face the wrong way. For nested quotations or documents in several languages, the csquotes package’s \enquote{...} command chooses the marks for you.

This page is for researchers writing papers, theses and reports in LaTeX (locally or on Overleaf) who need quotation marks that open and close correctly, nest correctly and follow the language of the text. “Inverted commas” and “quotation marks” are two names for these same marks; LaTeX documentation uses the term quotation marks.

Ask CASRAI · free to tryQuestion about this guide? Ask CASRAI answers with linked sources. 2 free questions a day, no account.

Ask your first question freeSubscribe

What it is used for in research

Quotation marks appear wherever a manuscript quotes a source, names a term, or reports a survey item or participant response. LaTeX does not turn a typed straight " into a correctly facing mark on its own, so the marks must be entered in a form LaTeX understands. The conventions for the primary and secondary level also differ by language, which matters for papers submitted to journals in a particular locale.

Which marks does each convention use?

Overleaf’s documentation on typesetting quotations lists the primary (outer) and secondary (nested) marks for several languages:

Language or variant Primary Secondary
English (UK) ‘…’ “…”
English (US) “…” ‘…’
German „…“ ‚…‘
French «…» «…»
Danish »…« ›…‹
Polish „…” «…»
Russian «…» „…“

Source: Overleaf, “Typesetting quotations”, read 2026-11-07.

How to install or access it

Typing the marks with backticks and apostrophes needs no package. The csquotes package is distributed through CTAN, the Comprehensive TeX Archive Network. The CTAN record read on 2026-11-07 lists csquotes version 5.2p dated 2026-05-19, released under the LaTeX Project Public License 1.3c; the package requires e-TeX and etoolbox. Overleaf documents csquotes and dirtytalk as packages for quotations. Load csquotes in the preamble:

\usepackage{csquotes}

Step-by-step: typing quotation marks that face the right way

  1. Single quotes. Open with a backtick and close with an apostrophe: `To quote'.
  2. Double quotes. Double each character: open with two backticks and close with two apostrophes: ``To quote''. The Wikibooks LaTeX text-formatting page describes it as doubling the symbols so LaTeX interprets them accordingly.
  3. Do not use the straight " as the closing mark. Wikibooks warns against using it for right double quotes.
  4. For nested or multilingual text, use csquotes. Load the package, then wrap the quoted text: \enquote{outer text with \enquote{inner text}}. The manual states that quotation marks are switched automatically when quotations are nested and can adjust to the current language.
  5. To skip straight to the inner level, use the starred form \enquote*{text}.
  6. To let the language choose the style, load csquotes with the autostyle option together with babel or polyglossia, for example \usepackage[autostyle,german=guillemets,norwegian=quotes]{csquotes} (the example given in the csquotes manual).
  7. If you want to keep typing a keyboard character, csquotes provides \MakeOuterQuote{character}, which makes one character serve as both the opening and closing outer quote, and \MakeInnerQuote{character} for the inner level. \MakeAutoQuote{char1}{char2} assigns two distinct characters and works like \enquote.

Output and how to read it

The Wikibooks examples show the result: `To quote' in LaTeX prints a single-quoted phrase, and ``To quote'' in LaTeX prints a double-quoted phrase, each with a correctly facing opening and closing mark. With csquotes, the mark style follows the current language when multilingual support is active, and \enquote toggles between outer and inner marks according to nesting depth. A nested \enquote therefore prints in the secondary style for the selected language, such as the swapped single and double marks in the English US and UK rows above.

Troubleshooting: quotes facing the wrong way

Why do my quotation marks look wrong in LaTeX?

The most common cause is typing the straight " key for the closing mark; use two apostrophes ('') for a right double quote instead, as the Wikibooks page advises.

Why does " behave strangely with babel?

Wikibooks notes that with babel and some languages, such as German, the " character is redefined (it is used for umlauts and similar), which can cause bad spacing or accents. In that case switch to \enquote from csquotes.

Low-left quotation marks do not appear

Wikibooks states that European low-left quotation marks need \usepackage[T1]{fontenc}. For multilingual documents it recommends csquotes.

csquotes uses the wrong language’s marks

The csquotes manual and Overleaf state that automatic adaptation to the language needs babel or polyglossia to be loaded. The manual’s default setting is autostyle=tryonce; the other documented values are true, false, try and once. The manual’s babel example uses \usepackage[english,ngerman]{babel}; babel names the language ngerman and csquotes uses german.

Alternatives to typing the marks by hand

Method Syntax What it does (per the cited source)
Native LaTeX `...' and ``...'' Backtick opens, apostrophe closes; no package needed (Wikibooks).
csquotes \enquote{...}, \textquote{...}, displayquote environment Nesting-aware, adjusts to the language with babel or polyglossia; LPPL 1.3c (CTAN manual, Overleaf).
dirtytalk \say{...} Overleaf shows one level of nesting: \say{... some \say{nested} quotations ...}.
csquotes active quotes \MakeOuterQuote, \MakeInnerQuote, \MakeAutoQuote Lets a chosen character act as the quote mark (csquotes manual).

Overleaf also lists the epigraph and quotchap packages for chapter-opening quotations. The choice between methods is a drafting decision: the native form needs nothing extra, while a document with nesting or multiple languages gains from csquotes.

FAQ

What does “inverted commas in LaTeX” mean?

It refers to typing quotation marks in LaTeX. The marks are the same ones documented as quotation marks; the form LaTeX needs is a backtick to open and an apostrophe to close, doubled for double quotes.

What is the difference between inverted commas and quotation marks?

For typesetting purposes there is no difference to LaTeX: both refer to the marks described above. What changes is which style is primary, as the table above shows for UK and US English.

How do I type single quotation marks in LaTeX?

Type a backtick, the text, then an apostrophe: `text'.

How do I use quotation marks on Overleaf?

Overleaf’s documentation covers the same methods: the native backtick form and the csquotes and dirtytalk packages. Add \usepackage{csquotes} to the preamble and use \enquote{...}, or type ``...'' directly.

How do I close inverted commas?

Use an apostrophe (') for each closing mark, so two apostrophes close a double quote. Do not use the straight " key.

Sources

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · free to try

Ask about Inverted Commas in LaTeX: Opening and Closing Quotation Marks

2 free questions a day, no account.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →