Quotation marks in LaTeX (enquote, csquotes)
Load the csquotes package and write \enquote{text}. It prints the quotation marks of the document language and switches to inner marks for a quote inside a quote. By hand, English quotation marks are typed as two backticks and two apostrophes.
Preamble
The snippets on this page need these lines before \begin{document}:
\usepackage{csquotes}Quotation marks that follow the language
\enquote{...} sets the opening and closing marks around its argument. Nested inside another \enquote, it prints single marks. Without babel the marks are the English ones.
\enquote{A quotation with \enquote{a second one} inside.}English quotation marks by hand
Two backticks open a double quotation mark and two apostrophes close it. One backtick and one apostrophe give single marks. LaTeX turns them into the curved characters.
``Double quotation marks'' and `single quotation marks'.German quotation marks
With babel and the option ngerman, \enquote prints the German marks, low at the start and high at the end. By hand, \glqq opens and \grqq closes; babel also has a short form: a straight quote followed by a backtick opens, a straight quote followed by an apostrophe closes. Load fontenc with T1 so the font contains the low mark as a character.
Complete document:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{csquotes}
\begin{document}
\enquote{Mit csquotes}, \glqq mit Befehlen\grqq{} und "`mit der Kurzform"'.
\end{document}Guillemets
The package option german=guillemets makes \enquote print the angle marks that many German books use, pointing inwards. german=swiss prints them pointing outwards.
Complete document:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage[german=guillemets]{csquotes}
\begin{document}
\enquote{Ein Zitat mit \enquote{einem zweiten} darin.}
\end{document}Type the characters directly
The curved quotation marks can be typed or pasted as characters. The German low mark and the guillemets need fontenc with T1.
Complete document:
\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
„Deutsche Anführungszeichen“, »Guillemets« and “English quotation marks”.
\end{document}Pitfalls
- Do not use the straight quote key for both sides. In the default font encoding
"text"prints a closing mark at both ends. - With
babelandngermanthe straight quote starts a short form for umlauts and other characters:"Apfel"prints "Äpfel" with a stray mark at the end. - A typed German low quotation mark without
fontencstops with "Command \quotedblbase unavailable in encoding OT1".
Compiled with pdfLaTeX from TeX Live 2023.
Related pages
- Package
csquotes - Package
babel - Package
fontenc - How-to Block quotes in LaTeX
- How-to Umlauts and accents in LaTeX