summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-appendix.html
blob: a7f5e70c7683905b1f7af01a648d37f456d93930 (plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<head>
<title>UK TeX FAQ -- question label appendix</title>
</head><body>
<h3>Appendixes</h3>
<p/>LaTeX provides an exceedingly simple mechanism for appendixes: the
command <code>\</code><code>appendix</code> switches the document from generating sections
(in <i>article</i> class) or chapters (in <i>report</i> or
<i>book</i> classes) to producing appendixes.  Section or chapter
numbering is restarted and the representation of the counter switches
to alphabetic.  So:
<blockquote>
<pre>
\section{My inspiration}
...

\section{Developing the inspiration}
...

\appendix
\section{How I became inspired}
...
</pre>
</blockquote><p>
would be typeset (in an <i>article</i> document) something like:
<blockquote>
<b>1  My inspiration</b>
<p/>&hellip;
<p/><b>2  Developing the inspiration</b>
<p/>&hellip;
<p/><b>A  How I became inspired</b>
<p/>&hellip;
</blockquote><p>
which is quite enough for many ordinary purposes.  Note that, once
you&rsquo;ve switched to typesetting appendixes, LaTeX provides you with
no way back &mdash; once you&rsquo;ve had an appendix, you can no longer have an
&ldquo;ordinary&rdquo; <code>\</code><code>section</code> or <code>\</code><code>chapter</code>.
<p/>The <i>appendix</i> provides several ways of elaborating on this
simple setup.  Straightforward use of the package allows you to have a
separate heading, both in the body of the document and the table of
contents; this would be achieved by
<blockquote>
<pre>
\usepackage{appendix}
...
\appendix
\appendixpage
\addappheadtotoc
</pre>
</blockquote><p>
The <code>\</code><code>appendixpage</code> command adds a separate title &ldquo;Appendices&rdquo;
above the first appendix, and <code>\</code><code>addappheadtotoc</code> adds a similar
title to the table of contents.  These simple modifications cover many
people&rsquo;s needs about appendixes.
<p/>The package also provides an <code>appendices</code> environment,
which provides for fancier use.  The environment is best controlled by
package options; the above example would be achieved by
<blockquote>
<pre>
\usepackage[toc,page]{appendix}
...
\begin{appendices}
...
\end{appendices}
</pre>
</blockquote><p>
The great thing that the <code>appendices</code> environment gives
you, is that once the environment ends, you can carry on with sections
or chapters as before &mdash; numbering isn&rsquo;t affected by the intervening
appendixes.
<p/>The package provides another alternative way of setting appendixes, as
inferior divisions in the document.  The <code>subappendices</code>
environment allows you to put separate appendixes for a particular
section, coded as <code>\</code><code>subsection</code>s, or for a particular chapter, coded
as <code>\</code><code>section</code>s.  So one might write:
<blockquote>
<pre>
\usepackage{appendix}
...
\section{My inspiration}
...
\begin{subappendices}
\subsection{How I became inspired}
...
\end{subappendices}

\section{Developing the inspiration}
...
</pre>
</blockquote><p>
Which will produce output something like:
<blockquote>
<b>1  My inspiration</b>
<p/>&hellip;
<p/><b>1.A  How I became inspired</b>
<p/>&hellip;
<p/><b>2  Developing the inspiration</b>
<p/>&hellip;
</blockquote><p>
<p/>There are many other merry things one may do with the package; the
user is referred to the package documentation for further details.
<p/>The <i>memoir</i> class includes the facilities of the
<i>appendix</i> package.  The <i>KOMA-script</i> classes offer a
<code>\</code><code>appendixprefix</code> command for manipulating the appearance of appendixes.
<dl>
<dt><tt><i>appendix.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/appendix.zip">macros/latex/contrib/appendix</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/appendix/">browse the directory</a>)
<dt><tt><i>KOMA script bundle</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/koma-script.zip">macros/latex/contrib/koma-script</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/koma-script/">browse the directory</a>)
<dt><tt><i>memoir.cls</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/memoir.zip">macros/latex/contrib/memoir</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/memoir/">browse the directory</a>)
</dl>
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=appendix">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=appendix</a>
</body>