Typography with TeX and LaTeX

## How to declare the appendix

April 13th, 2008 by Stefan Kottwitz

Some LaTeX tutorials and at least one wellknown online reference manual explain the declaration of an appendix by an environment, they recommend to write: \begin{appendix} … \end{appendix}. Though this will be compiled without error it actually is not functioning like we expect of an environment. Everything that follows \end{appendix} will also be treated as part of the appendix!
The correct usage is:

\appendix

This command is defined by the standard classes by \newcommand, not by \newenvironment, there’s no \endappendix. For example here’s the original code of book.cls:

\newcommand\appendix{\par \setcounter{chapter}{0}% \setcounter{section}{0}% \gdef\@chapapp{\appendixname}% \gdef\thechapter{\@Alph\c@chapter}}

If you want to end the appendix and add further chapters or sections like list of figures etc. you would have to undo the changes made by \appendix or use just a common chapter or section labeled as appendix.

The appendix package provides more facilities for typesetting appendices and even allows subappendices.

This topic was discussed in the LaTeX Community Forum and on Matheplanet.

This entry was posted on Sonntag, April 13th, 2008 at 21:50 and is filed under Sectioning. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

### 1 response about “How to declare the appendix”

1. isa said:

but, in my dissertation latex style, the appendix must be write ini like “list of appendixes”. Would you like to give me some oppinions?

thanks very much

best regards

isa