How to Add an Appendix in LaTeX
The fix
To add an appendix in LaTeX, place \appendix before your appendix sections. From that point, \section commands are lettered A, B, C instead of numbered. For a titled "Appendices" divider and per-appendix control, load \usepackage{appendix} and use the appendices environment.
Example
% Main content ...
\appendix
\section{Raw data} % becomes Appendix A
\section{Survey form} % becomes Appendix B
% With the appendix package:
% \usepackage{appendix}
% \begin{appendices} ... \end{appendices}Frequently asked questions
How do I get Appendix A, B, C instead of numbers?
Put \appendix once before your appendix sections. Every \section after it is lettered automatically. In the report and book classes, use \chapter for "Appendix A" chapters.
How do I add the appendix to the table of contents?
Appendices appear in the TOC like sections automatically. For a divider labelled "Appendices", use the appendices environment from the appendix package with the toc option.
Try the fix in LetX
Open the editor, paste your code, and compile in 1 second to see the error clear — free, in your browser.
Open LetX Free