> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/languages/04-typesetting-quotations.md).

# Quotations and quotation marks

## 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](#reference-guide)).

We will look at several packages suited to typesetting different types of quotation.

## dirtytalk package

[`dirtytalk`](http://ctan.org/tex-archive/macros/latex/contrib/dirtytalk) is a small LaTeX package with only one available command: `\say`, as shown in the next example:

```latex
\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.](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=An+example+of+the+dirtytalk+package\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bdirtytalk%7D%0A%5Cbegin%7Bdocument%7D%0A%5Csection%7BIntroduction%7D%0A%0ATyping+quotations+with+this+package+is+quite+easy%3A%0A%0A%5Csay%7BHere%2C+a+quotation+is+written+and+even+some+%5Csay%7Bnested%7D+quotations+%0Aare+possible%7D%0A%5Cend%7Bdocument%7D)

This example produces the following output:

![OLV2EnglishDirtyTalk.png](/files/F7yrsF6qvig617Qo0iT6)

The `dirtytalk` package can be loaded by putting the following line in your document preamble:

```latex
\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:

```latex
\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:

```latex
\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.](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Changing+quotes+using+the+dirtytalk+package\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%5Bfrench%5D%7Bbabel%7D%0A%5Cusepackage%5BT1%5D%7Bfontenc%7D%0A%0A%5Cusepackage%5B%0A++++left+%3D+%5Cflqq%7B%7D%2C%25+%0A++++right+%3D+%5Cfrqq%7B%7D%2C%25+%0A++++leftsub+%3D+%5Cflq%7B%7D%2C%25+%0A++++rightsub+%3D+%5Cfrq%7B%7D+%25%0A%5D%7Bdirtytalk%7D%0A%0A%5Cbegin%7Bdocument%7D%0A%5Csection%7BIntroduction%7D%0A%0ATyping+quotations+with+this+package+is+quite+easy%3A%0A%0A%5Csay%7BHere%2C+a+quotation+is+written+and+even+some+%5Csay%7Bnested%7D+quotations+are+possible%7D%0A%5Cend%7Bdocument%7D)

This example produces the following output:

![OLV2FrenchDirtyTalk.png](/files/o7OrHPjPXQOdQW3jHbNw)

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`](http://ctan.org/tex-archive/macros/latex/contrib/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`](https://ctan.org/pkg/babel?lang=en) or [`polyglossia`](https://ctan.org/pkg/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).

```latex
\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.](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Example+using+the+csquotes+package\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%5Bspanish%5D%7Bbabel%7D%0A%5Cusepackage%7Bcsquotes%7D%0A%0A%5Cbegin%7Bdocument%7D%0A%5Csection%7BIntroducci%C3%B3n%7D%0A%0ALa+siguiente+frase+es+atribu%C3%ADda+a+Linus+Torvals%3A%0A%0A%5Cbegin%7Bdisplayquote%7D%0AS%C3%A9+que+tengo+un+ego+del+tama%C3%B1o+de+un+planeta+peque%C3%B1o%2C+pero+incluso+yo+a+veces+me+equivoco%0A%5Cend%7Bdisplayquote%7D%0A%0ALa+frase+revela+un+aspecto+importante+de+su+%5Ctextquote%7Bjocosa%7D+personalidad.%0A%5Cend%7Bdocument%7D)

This example produces the following output:

![OLV2csquotes.png](/files/gcropdE3JFLusXaKCdH1)

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](https://en.wikipedia.org/wiki/Epigraph_\(literature\)). The [`epigraph`](http://www.ctan.org/tex-archive/macros/latex/contrib/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:

```latex
\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.):

```latex
\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}
```

[Open this example in Overleaf](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=epigraph+package+example\&snip=%5Cdocumentclass%7Bbook%7D%0A%5Cusepackage%7Bblindtext%7D+%25This+package+generates+automatic+text%0A%5Cusepackage%7Bepigraph%7D+%0A%0A%5Ctitle%7BEpigraph+example%7D%0A%5Cauthor%7BOverleaf%7D%0A%5Cdate%7BAugust+2021%7D%0A%0A%5Cbegin%7Bdocument%7D%0A%5Cfrontmatter%0A%5Cmainmatter%0A%0A%5Cchapter%7BSomething%7D%0A%5Cepigraph%7BAll+human+things+are+subject+to+decay%2C+and+when+fate+summons%2C+Monarchs+must+obey%7D%7B%5Ctextit%7BMac+Flecknoe+%5C%5C+John+Dryden%7D%7D%0A%5Cblindtext%0A%5Cend%7Bdocument%7D)

This example produces the following output:

![OLV2epigraph.png](/files/FRzEIVdSuSfVPumCVQsl)

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](https://ctan.org/pkg/fancychapters) so we no longer recommend using it.

## quotchap package

The package [`quotchap`](https://ctan.org/pkg/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:

```latex
\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.

```latex
\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.](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Example+using+the+quotchap+package\&snip=%5Cdocumentclass%7Bbook%7D%0A%5Cusepackage%7Bblindtext%7D%0A%5Cusepackage%7Bquotchap%7D%0A%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Bsavequote%7D%5B45mm%5D%0A---When+shall+we+three+meet+again%0Ain+thunder%2C+lightning%2C+or+in+rain%3F%0A---When+the+hurlyburly%E2%80%99s+done%2C%0Awhen+the+battle%E2%80%99s+lost+and+won.%0A%5Cqauthor%7BShakespeare%2C+Macbeth%7D%0ACookies%21+Give+me+some+cookies%21%0A%5Cqauthor%7BCookie+Monster%7D%0A%5Cend%7Bsavequote%7D%0A%0A%5Cchapter%7BClassic+Sesame+Street%7D%0A%5Cblindtext%0A%5Cend%7Bdocument%7D)

This example produces the following output:

![OLV2quotchap.png](/files/BScJtzOAaGlMtJ2JVlR8)

## 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      | „…”     | «…»       |

## Further reading

For more information see

* [International language support](/latex/languages/03-international-language-support.md)
* [Arabic](/latex/languages/05-arabic.md)
* [Chinese](/latex/languages/06-chinese.md)
* [French](/latex/languages/07-french.md)
* [German](/latex/languages/08-german.md)
* [Greek](/latex/languages/09-greek.md)
* [Italian](/latex/languages/10-italian.md)
* [Japanese](/latex/languages/11-japanese.md)
* [Korean](/latex/languages/12-korean.md)
* [Portuguese](/latex/languages/13-portuguese.md)
* [Russian](/latex/languages/14-russian.md)
* [Spanish](/latex/languages/15-spanish.md)
* [List of Greek letters and math symbols](/latex/mathematics/11-list-of-greek-letters-and-math-symbols.md)
* [Font sizes, families, and styles](/latex/fonts/01-font-sizes-families-and-styles.md)
* [Supporting modern fonts with XƎLaTeX](/latex/fonts/03-xelatex.md)
* [The **dirtytalk** package documentation](http://mirrors.ctan.org/macros/latex/contrib/dirtytalk/dirtytalk.pdf)
* [The **csquotes** package documentation](http://mirrors.ctan.org/macros/latex/contrib/csquotes/csquotes.pdf)
* [The **epigraph** package documentation](http://mirrors.ctan.org/macros/latex/contrib/epigraph/epigraph.pdf)
* [The **quotchap** package documentation](http://mirrors.ctan.org/macros/latex/contrib/quotchap/quotchap.pdf)
* [LaTeX/Special\_Characters on WikiBooks](http://en.wikibooks.org/wiki/LaTeX/Special_Characters)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/languages/04-typesetting-quotations.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
