1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
<head>
<title>UK TeX FAQ -- question label epigraph</title>
</head><body>
<h3>Typesetting epigraphs</h3>
<p>Epigraphs are those neat quotations that authors put at the start of
chapters (or even at the end of chapters: Knuth puts things at the
ends of chapters of the TeXbook).
<p>Typesetting them is a bit of a fiddle, but not impossible to do for
yourself. However, the <i>epigraph</i> package will do the job for
you, even in situations where it's particularly nasty to get right.
<p>The package defines an <code>\</code><code>epigraph</code> command, for creating a single
epigraph (as at the top of a chapter):
<blockquote>
<pre>
\chapter{The Social Life of Rabbits}
\epigraph{Oh! My ears and whiskers!}%
{Lewis Carroll}
</pre>
</blockquote>
and an epigraphs environment, for entering more than one epigraph
consecutively, in a sort of list introduced by <code>\</code><code>qitem</code> commands:
<blockquote>
<pre>
\begin{epigraphs}
\qitem{What I tell you three times is true}%
{Lewis Carroll}
\qitem{Oh listen do, I'm telling you!}%
{A.A. Milne}
\end{epigraphs}
</pre>
</blockquote>
The <code>\</code><code>epigraphhead</code> command enables you to place your epigraph
<em>above</em> a chapter header:
<blockquote>
<pre>
\setlength{\unitlength}{1pt}
...
\chapter{The Social Life of Rabbits}
\epigraphhead[<distance>]{%
\epigraph{Oh! My ears and whiskers!}%
{Lewis Carroll}%
}
</pre>
</blockquote>
The <<i>distance</i>> says how far above the chapter heading the
epigraph is to go; it's expressed in terms of the <code>\</code><code>unitlength</code>
that's used in the <code>picture</code> environment; the package's
author recommends <code>70pt</code>.
<p>The package also offers various tricks for adjusting the layout of
chapter header (necessary if you've found a hugely long quotation for
an <code>\</code><code>epigraphhead</code>), for patching the bibliography, for patching
<code>\</code><code>part</code> pages, and so on. (Some of these suggested patches lead you
through writing your own package...)
<p>The <i>memoir</i> class offers all the facilities of the
<i>epigraph</i> package. The <i>Koma-script</i> classes have
commands <code>\</code><code>setchapterpreamble</code> and <code>\</code><code>dictum</code> to provide these
facilities.
<dl>
<dt><tt><i>epigraph.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/epigraph.tar.gz">macros/latex/contrib/epigraph</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/epigraph.zip">zip</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/epigraph/">browse</a>)
<dt><tt><i>KOMA script bundle</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/koma-script.tar.gz">macros/latex/contrib/koma-script</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/koma-script.zip">zip</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/koma-script/">browse</a>)
<dt><tt><i>memoir.cls</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/memoir.tar.gz">macros/latex/contrib/memoir</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/memoir.zip">zip</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/memoir/">browse</a>)
</dl>
<p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=epigraph">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=epigraph</a>
</body>
|