Skip to main content

The PreTeXt Guide

Section 22.5 Quotations

To ensure that quotation marks are properly typeset, it is important to use the correct PreTeXt code. To set something off in double quotes, use the <q> tag around what should appear in quotes. It will supply both the opening and closing quotation marks, as in: “This is a quotation.” If you need single quotes, use <sq>. Because the content of <q> and <sq> is quite restricted, you may find yourself needing to explicitly access the left and right single and double quotation marks. They are, quite sensibly, <lq>, <rq>, <lsq>, and <rsq>.
Longer quotes are best set off using <blockquote>
<blockquote>
  <title>Lorem ipsum</title>
  <p>
    <q>Lorem ipsum dolor sit amet,
    consectetur adipiscing elit,
    sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
    Ut enim ad minim veniam,
    quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
    Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
    Excepteur sint occaecat cupidatat non proident,
    sunt in culpa qui officia deserunt mollit anim id est laborum.</q>
  </p>
  <attribution>Anonymous</attribution>
</blockquote>
Listing 22.5.1. A sample <blockquote>
The code in Listing 22.5.1 produces the quotation below.
“Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.”
―Anonymous