The csquotes package
Sets the quotation marks of the document language with \enquote and formats longer quotations with \blockquote and displayquote.
Loading the package
\usepackage{csquotes}Which characters open and close a quotation depends on the language: English uses “…”, German „…“ or »…«. With \enquote{...} you mark what is quoted and the package picks the marks. A quotation inside a quotation gets the inner marks.
With babel loaded, the marks follow the main language of the document. The option autostyle makes them follow the current language instead, so an English passage in a German document gets English marks.
Main commands
\enquote{text} | Quotation marks around the text; nested uses alternate between outer and inner marks. |
\enquote*{text} | Inner (single) marks directly. |
\foreignquote{french}{texte} | Marks in the style of another language. |
\textquote[source]{text} | Quotation with its source in parentheses after it. |
\blockquote{text} | A short quotation stays in the line with marks; one that is longer than three lines becomes an indented block. |
\begin{displayquote}[source] ... \end{displayquote} | Always an indented block, without marks. |
\usepackage[german=guillemets]{csquotes} | Chooses a variant for one language, here »…« for German; german=swiss gives «…». |
Complete example
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[english,ngerman]{babel}
\usepackage[autostyle]{csquotes}
\begin{document}
Sie sagte: \enquote{Das Wort \enquote{Satz} hat zwei Bedeutungen.}
\foreignlanguage{english}{He answered: \enquote{I know.}}
\begin{displayquote}[Immanuel Kant]
Habe Mut, dich deines eigenen Verstandes zu bedienen.
\end{displayquote}
\end{document}Compiled with pdfLaTeX from TeX Live 2023.
Pitfalls
biblatexusescsquotesfor the titles in the bibliography. Whenbabelis loaded without it, the log saysbabel/polyglossia detected but csquotes missing.- Without the option
autostyle, a language change with\selectlanguagedoes not change the marks. - Load
fontencwithT1in pdfLaTeX documents; the default encodingOT1has no guillemets and no low German opening mark of its own.
Related pages
- How-to Quotation marks in LaTeX
- How-to Block quotes in LaTeX
- Package
babel - Package
biblatex - How-to Create a bibliography in LaTeX with biblatex and Biber
- How-to Citation styles in LaTeX
- How-to Set up a thesis in LaTeX