Typesetting quotations
Introduction
When it comes to quotations and quotation marks, each language has its own symbols and rules. For this reason, several LaTeX packages have been created to assist in typesetting quotations in-line, in display mode or at the beginning of each chapter. It's important to remark that even if you are typing English quotes, different quotation marks used in English (UK) and English (US). Plenty of different quotation marks can be typeset with LaTeX, and there are options for almost every language (see the reference guide).
We will look at several packages suited to typesetting different types of quotation.
dirtytalk
package
dirtytalk
is a small LaTeX package with only one available command: \say
, as shown in the next example:
\documentclass{article}
\usepackage{dirtytalk}
\begin{document}
\section{Introduction}
Typing quotations with this package is quite easy:
\say{Here, a quotation is written and even some \say{nested} quotations
are possible}
\end{document}
Open this example in Overleaf.
This example produces the following output:
The dirtytalk
package can be loaded by putting the following line in your document preamble:
\usepackage{dirtytalk}
dirtytalk
supports one nested quotation and has options to redefine the characters used for the quotes. For example, in a document written in French the following code could be used:
\usepackage[french]{babel}
\usepackage[T1]{fontenc}
\usepackage[
left = \flqq{},%
right = \frqq{},%
leftsub = \flq{},%
rightsub = \frq{} %
]{dirtytalk}
The first two commands define the primary left and right quotation marks, the second pair of commands define the secondary set of quotation marks. Here is an example using the code above:
\documentclass{article}
\usepackage[french]{babel}
\usepackage[T1]{fontenc}
\usepackage[
left = \flqq{},%
right = \frqq{},%
leftsub = \flq{},%
rightsub = \frq{} %
]{dirtytalk}
\begin{document}
\section{Introduction}
Typing quotations with this package is quite easy:
\say{Here, a quotation is written and even some \say{nested} quotations are possible}
\end{document}
Open this example in Overleaf.
This example produces the following output:
This package is suitable for most situations: it's very simple, since only one command is needed, and it supports nesting quotations to one degree. If a more complex quotation mark structure is required, the options listed in the following sections may be more effective.
csquotes
package
The csquotes
package provides advanced facilities for in-line and display quotations. It supports a wide range of commands, environments and user-definable quotes. Quotes can be automatically adjusted to the current language by means of the babel
or polyglossia
packages. This package is suitable for documents with complex quotation requirements, therefore it has a vast variety of commands to insert in-line quotes, quotes with sources, block-quotes with the support of changing language.
The following example uses the csquotes
package, in conjunction with babel
, within a document written in Spanish. It automatically loads the correct quotation characters "«" and "»"— known as guillemets (or "comillas angulares", in Spanish).
\documentclass{article}
\usepackage[spanish]{babel}
\usepackage{csquotes}
\begin{document}
\section{Introducción}
La siguiente frase es atribuída a Linus Torvals:
\begin{displayquote}
Sé que tengo un ego del tamaño de un planeta pequeño, pero incluso yo a veces me equivoco
\end{displayquote}
La frase revela un aspecto importante de su \textquote{jocosa} personalidad.
\end{document}
Open this example in Overleaf.
This example produces the following output:
In the example the environment displayquote
prints a display quotation and the command \textquote
and in-line quotation.
epigraph
package
Some authors like to write quotations at the beginning of a chapter: those quotations are known as epigraphs. The epigraph
package provides a vast set of options to typeset epigraphs and epigraphs lists. To use the package, add the following line to your document preamble:
\usepackage{epigraph}
Here is an example showing an epigraph quotation typed using the command \epigraph{}{}
, whose first parameter is the quotation itself and the second parameter is the quotations source (author, book, etc.):
\documentclass{book}
\usepackage{blindtext} %This package generates automatic text
\usepackage{epigraph}
\title{Epigraph example}
\author{Overleaf}
\date{August 2021}
\begin{document}
\frontmatter
\mainmatter
\chapter{Something}
\epigraph{All human things are subject to decay, and when fate summons, Monarchs must obey}{\textit{Mac Flecknoe \\ John Dryden}}
\blindtext
\end{document}
This example produces the following output:
The epigraph
package can handle several quotations by means of a special environment and also has many customization options.
fancychapters
package (obsolete)
This package typesets epigraphs or quotations at the beginning of each chapter but was designed for use with LaTeX 2.09 so we no longer recommend using it.
quotchap
package
The package quotchap
redefines the commands chapter
, and its starred version, to reformat them. You can change the colour of the chapter number with this package. It also provides a special environment to typeset quotations and the corresponding authors.
To use this package include the following line in your document preamble:
\usepackage{quotchap}
Quotes are typed inside the environment savequote
. In the example below, the parameter inside brackets, [45mm]
, sets the width of the quotation area. After each quote the command \qauthor{}
is used to typeset and format the author's name.
\documentclass{book}
\usepackage{blindtext}
\usepackage{quotchap}
\begin{document}
\begin{savequote}[45mm]
---When shall we three meet again
in thunder, lightning, or in rain?
---When the hurlyburly’s done,
when the battle’s lost and won.
\qauthor{Shakespeare, Macbeth}
Cookies! Give me some cookies!
\qauthor{Cookie Monster}
\end{savequote}
\chapter{Classic Sesame Street}
\blindtext
\end{document}
Open this example in Overleaf.
This example produces the following output:
Reference guide
A small table of quotation marks in several languages:
Language | Primary | Secondary |
---|---|---|
English, UK | ‘…’ | “…” |
English, US | “…” | ‘…’ |
Danish | »…« | ›…‹ |
Lithuanian | „…“ | — |
French | «…» | «…» |
German | „…“ | ‚…‘ |
Russian | «…» | „…“ |
Ukrainian | «…» | — |
Polish | „…“ | ‚…‘ or «…» |
Further reading
For more information see
- International language support
- Arabic
- Chinese
- French
- German
- Greek
- Italian
- Japanese
- Korean
- Portuguese
- Russian
- Spanish
- List of Greek letters and math symbols
- Font sizes, families, and styles
- Supporting modern fonts with XƎLaTeX
- The dirtytalk package documentation
- The csquotes package documentation
- The epigraph package documentation
- The quotchap package documentation
- LaTeX/Special_Characters on WikiBooks
Overleaf guides
- Creating a document in Overleaf
- Uploading a project
- Copying a project
- Creating a project from a template
- Using the Overleaf project menu
- Including images in Overleaf
- Exporting your work from Overleaf
- Working offline in Overleaf
- Using Track Changes in Overleaf
- Using bibliographies in Overleaf
- Sharing your work with others
- Using the History feature
- Debugging Compilation timeout errors
- How-to guides
- Guide to Overleaf’s premium features
LaTeX Basics
- Creating your first LaTeX document
- Choosing a LaTeX Compiler
- Paragraphs and new lines
- Bold, italics and underlining
- Lists
- Errors
Mathematics
- Mathematical expressions
- Subscripts and superscripts
- Brackets and Parentheses
- Matrices
- Fractions and Binomials
- Aligning equations
- Operators
- Spacing in math mode
- Integrals, sums and limits
- Display style in math mode
- List of Greek letters and math symbols
- Mathematical fonts
- Using the Symbol Palette in Overleaf
Figures and tables
- Inserting Images
- Tables
- Positioning Images and Tables
- Lists of Tables and Figures
- Drawing Diagrams Directly in LaTeX
- TikZ package
References and Citations
- Bibliography management with bibtex
- Bibliography management with natbib
- Bibliography management with biblatex
- Bibtex bibliography styles
- Natbib bibliography styles
- Natbib citation styles
- Biblatex bibliography styles
- Biblatex citation styles
Languages
- Multilingual typesetting on Overleaf using polyglossia and fontspec
- Multilingual typesetting on Overleaf using babel and fontspec
- International language support
- Quotations and quotation marks
- Arabic
- Chinese
- French
- German
- Greek
- Italian
- Japanese
- Korean
- Portuguese
- Russian
- Spanish
Document structure
- Sections and chapters
- Table of contents
- Cross referencing sections, equations and floats
- Indices
- Glossaries
- Nomenclatures
- Management in a large project
- Multi-file LaTeX projects
- Hyperlinks
Formatting
- Lengths in LaTeX
- Headers and footers
- Page numbering
- Paragraph formatting
- Line breaks and blank spaces
- Text alignment
- Page size and margins
- Single sided and double sided documents
- Multiple columns
- Counters
- Code listing
- Code Highlighting with minted
- Using colours in LaTeX
- Footnotes
- Margin notes
Fonts
Presentations
Commands
Field specific
- Theorems and proofs
- Chemistry formulae
- Feynman diagrams
- Molecular orbital diagrams
- Chess notation
- Knitting patterns
- CircuiTikz package
- Pgfplots package
- Typesetting exams in LaTeX
- Knitr
- Attribute Value Matrices
Class files
- Understanding packages and class files
- List of packages and class files
- Writing your own package
- Writing your own class