How to add an appendix in LaTeX
To add an appendix in LaTeX, use the \appendix command before your appendix content. This command resets your section or chapter numbering to capital letters and changes the label from 'Chapter' to 'Appendix'.
The short answer: use \appendix to start your appendix section. Use the appendix package if you need a separate title page or to include appendices in your table of contents.
The standard approach
| Command | Before \appendix | After \appendix |
|---|---|---|
| \chapter | Chapter 1 | Appendix A |
| \section | Section 1.1 | Section A.1 |
The \appendix command is built into all standard LaTeX classes like report, book, and article. Once you call it, LaTeX treats subsequent \chapter or \section commands as appendices.
In a report or book class, chapters become 'Appendix A', 'Appendix B', and so on. In an article class, sections are similarly lettered.
Using the appendix package
How to include an appendix
Place your appendix content in a separate file (e.g., appendix.tex) to keep your main document clean.
Add the \appendix command in your main file before calling the appendix file.
Use \input{appendix} to include the file content.
Compile your document at least twice to ensure all references and labels update correctly.
Referencing your appendix
Labeling
Use a \label{appendix:data} command immediately after your \chapter or \section command to create an anchor.
\chapter{Raw Data}\label{appendix:data}Citing
Use \ref{appendix:data} to reference the letter of the appendix in your main text.
See Appendix \ref{appendix:data} for the full dataset.
Questions
Can I return to normal chapters after an appendix?
In standard LaTeX, \appendix is a one-way switch. If you need to switch back to normal numbering, use the appendix package and the appendices environment, which resets numbering once the environment closes.
How do I add an appendix to the table of contents?
If you use the appendix package, add the [toc] option to your \usepackage{appendix} declaration. Otherwise, you can manually add it using \addcontentsline{toc}{chapter}{Appendices}.
Does \appendix work with the article class?
Yes. In the article class, \appendix changes \section numbering from numbers (1, 2) to letters (A, B). Note that sections in article class do not start on new pages by default.
Try your own paper in Texeno.
Start free, upload a project as a .zip and press Recompile. Upgrade when you need longer compiles.
Start writing