LaTeX Quotes: Curly Marks, csquotes and Quote Environments

November 11, 2026 · 9 min read

LaTeX Quotes: Curly Quotation Marks, csquotes and Quote Environments

To get correct LaTeX quotes, type two backticks to open and two apostrophes to close, as in ``like this''. One backtick and one apostrophe give single marks. The straight " key prints a backwards closing mark, so skip it. For long documents, the csquotes package and the quote environments handle the rest.

How Do You Properly Quote in LaTeX?

TeX fonts treat two backticks as one opening double mark and two apostrophes as one closing double mark. The font merges each pair into a single curly glyph, so you never type a Unicode character.

``Double quotes'' and `single quotes' in one sentence.
It's an apostrophe, not a quote.

That typesets as: “Double quotes” and ‘single quotes’ in one sentence. It’s an apostrophe, not a quote.

On a US keyboard, the backtick sits under Esc, to the left of the 1 key. The apostrophe is the key next to Enter. LaTeX quotes built this way work in pdfLaTeX, XeLaTeX and LuaLaTeX. We compiled the snippet in all three and got identical curly marks.

Why Straight Quotes in LaTeX Come Out Backwards

The " key has no direction, so TeX can't tell whether you meant to open or close. In pdfLaTeX's default OT1 font encoding, that character slot holds the closing double mark. XeLaTeX and LuaLaTeX with fontspec map it to the same closing mark.

"Text" typed with the straight key.

That typesets as: ”Text” typed with the straight key. Both marks point the same way, and the opening one looks backwards.

Switch pdfLaTeX to \usepackage[T1]{fontenc} and the same input prints a straight typewriter mark instead. That's no better in body text.

Curly quotes pasted from Word or Google Docs are a different story. LaTeX has read UTF-8 input by default since its April 2018 release (LaTeX News issue 28). Pasted “ and ” marks now compile fine in all three engines.

Fixing a whole file of straight quotes

Say you inherit a chapter full of straight LaTeX quotes. This Perl one-liner turns a " after a space, bracket, brace or line start into two backticks. Every other " becomes two apostrophes.

perl -pe 's/(^|[\s(\[{])\x22/$1\x60\x60/g; s/\x22/\x27\x27/g' chapter.tex > fixed.tex

It leaves the original alone, so diff the two files before you swap them. The script also rewrites " inside \verb, URLs and comments. Skip it entirely if you load babel with a German option, where " is a shorthand character ("a prints ä) and the script would break every umlaut.

Backtick vs Apostrophe: What Is the Difference in LaTeX?

The backtick is the opening mark and the apostrophe is the closing mark. The apostrophe also doubles as a real apostrophe, so don't prints don’t with the correct curly glyph. You never need a separate apostrophe command.

If you'd rather name each mark than type it, for example in generated .tex files, use the text commands from the LaTeX2e reference manual:

CommandPrintsSame as
\textquoteleft‘one backtick
\textquoteright’one apostrophe
\textquotedblleft“two backticks
\textquotedblright”two apostrophes
\quotedblbase„German-style opening mark
\guillemetleft, \guillemetright« »French-style marks

The last two rows need \usepackage[T1]{fontenc} in pdfLaTeX. Straight quotes in code samples belong in \verb or \texttt, which is a separate topic from prose quotation marks.

Nested Quotations in LaTeX and the Thin Space Between Marks

A quotation inside a quotation switches to the other mark style. American style puts single marks inside double ones. The trouble starts when two closing marks meet. Three apostrophes in a row are ambiguous, and TeX pairs them the wrong way.

``He said `stop''' today.
``He said `stop'\,'' today.

The first line typesets as “He said ‘stop”’ today, with the marks swapped. The second puts a thin space between them, giving “He said ‘stop’ ” today. The \, command inserts that small gap and keeps each mark intact.

For British style, swap the levels: `He said ``stop''\,' prints ‘He said “stop” ’. So yes, double quotation marks work at either level. You just choose which one sits outside.

Automatic LaTeX Quotes With the csquotes Package

The csquotes package replaces hand-typed marks with commands that know the nesting level and the document language. Load it with \usepackage{csquotes} and wrap quoted text in \enquote.

\enquote{She wrote \enquote{never again} on the board}
\enquote*{single marks straight away}

With no language package loaded, csquotes defaults to American style. The first line prints “She wrote ‘never again’ on the board” with the inner marks switched for you. The starred \enquote* skips to the inner level and prints ‘single marks straight away’ instead.

Load babel or polyglossia before csquotes and the marks follow the main language automatically. No extra option is needed, because the package tries this by default.

\usepackage[ngerman]{babel}
\usepackage{csquotes}
% later, in the body:
\enquote{Guten Tag}

That prints Guten Tag inside German-style „…“ marks. Other languages get their own default marks, and the csquotes manual lists a style for each.

A file that's already full of straight quotes can keep them. Put \MakeOuterQuote{"} in the preamble and each pair of " characters becomes an outer quotation, per the csquotes manual. It can't nest, because one character can't mark both levels. Still, it's the least invasive fix for a long legacy document.

For quotations with a source, \textquote[Knuth 1984]{text} adds the citation in parentheses after the closing mark. We prefer \enquote over hand-typed backticks in anything longer than a page, because nesting and language switches stop being your job.

LaTeX Quote vs Quotation Environments

Inline marks suit a few words. A long quotation in LaTeX belongs in a displayed environment, which indents both margins. Per the LaTeX2e reference on quote and quotation, the two differ only in how they treat paragraphs.

EnvironmentParagraph indentBest for
quoteNone, extra space between paragraphsOne or more short quotations
quotation1.5em first-line indentMulti-paragraph passages
verseNone, lines end with \\Poetry and song lines
displayquote (csquotes)Same as quote by defaultDisplay quotes with a citation option
\begin{quotation}
First paragraph of a long passage.

Second paragraph, indented like body text.
\end{quotation}

That prints both paragraphs indented from each margin, and each opens with a 1.5em indent. Use quote instead and the paragraphs start flush, separated by a little extra space. The LaTeX quotation environment is the better fit once a passage runs past one paragraph.

csquotes also offers \blockquote{text}, which decides for you. Text that fits within three lines stays inline in quotation marks. Longer text becomes a displayed quote environment. Your style guide sets the real cut-off, and csquotes lets you change the threshold to match. Our block quote format guide lists the MLA, APA and Chicago thresholds.

In Beamer slides, quote, quotation and verse work inside a frame, according to the Beamer user guide. The default font theme sets them in italics, unlike a regular document.

Epigraphs and Chapter-Opening Quotations

An epigraph is the short quotation at the start of a chapter. Load the epigraph package and call \epigraph{text}{source} right after \chapter.

\epigraph{Example is the school of mankind.}{Edmund Burke}

That sets the line ragged right in a narrow box against the right margin, with a rule and then Edmund Burke credited below it. For simple inline speech, the dirtytalk package's \say{text} inserts the marks and detects nesting, though csquotes covers more ground.

What Happens to Quotes When You Convert Markdown to LaTeX

Markdown has straight quotes and > blockquotes, so a conversion has to translate both. Pandoc's smart extension is on by default for Markdown input. It turns "stop" into ``stop'' in LaTeX output, per the Pandoc manual.

A > blockquote becomes a quote environment. Add -V csquotes and Pandoc writes \enquote instead of backticks, and displayquote instead of quote. We confirmed both by running Pandoc on a sample file, so the LaTeX quotes you get are already curly.

The full command-line workflow lives in our Markdown to LaTeX guide, and the > syntax itself is in our post on Markdown blockquotes. If you'd rather not install anything, the Markdown to LaTeX converter runs in your browser and gives you a .tex file. It doesn't compile a PDF, so check the quotes once you typeset it.

One limitation to know: our editor's preview renders math with KaTeX, but it doesn't run text-mode LaTeX such as \enquote or \begin{quote}. Compile these examples in a real TeX engine to see the output. If you're still deciding which format to write in, see Markdown vs LaTeX. Our KaTeX vs LaTeX comparison covers what KaTeX can and can't render.

Getting LaTeX quotes right comes down to three habits: backticks to open, apostrophes to close, and csquotes once a document grows. Use quote or quotation for long passages, and add a thin space wherever two marks meet. If your draft starts life in Markdown, write it in our free online editor, then run it through the converter and check every quotation mark after you compile.