Skip to main content
v2026.11,986 entries · CC-BY 4.0

Appendix in LaTeX: \appendix, the appendix Package and Referencing

Add an appendix in LaTeX with \appendix or the appendix package: lettering, table-of-contents heading, per-chapter appendices and \ref cross-references.

Written and maintained by CASRAI Editorial Board

Published · Last updated

On this page

Short answer: in LaTeX, put \appendix before the first appendix. Every \section (in article) or \chapter (in report and book) after it is then lettered A, B, C instead of numbered. Load the appendix package only when you also need an “Appendices” divider page, a table-of-contents heading, renamed titles, or appendices inside individual chapters.

This page is for researchers writing papers, theses and reports in LaTeX who need appendices that are lettered correctly, listed in the table of contents and referenceable from the text. Facts about the appendix package come from its CTAN page and its manual (version 1.2c, 2020-02-08), both read on 2026-11-07.

Ask CASRAI · free to tryQuestion about this guide? Ask CASRAI answers with linked sources. 2 free questions a day, no account.

Ask your first question freeSubscribe

What it is used for in research

Appendices hold material that supports a paper or thesis but would interrupt the argument: survey instruments, extra tables, proofs, protocols, data dictionaries. LaTeX has a built-in \appendix command for this. The appendix package, maintained on CTAN, “offers extra control over appendix formatting”, including title formats and environments for appendices that belong to a single chapter or section.

Install or access (official source only)

The standard \appendix command needs no package. The appendix package is listed at ctan.org/pkg/appendix, and its manual is at mirrors.ctan.org/macros/latex/contrib/appendix/appendix.pdf. Load it in the preamble:

\usepackage{appendix}

Per the manual, the package works only with classes that have \chapter and/or \section, may be problematic with other packages that change the sectioning commands, and cooperates with hyperref.

Step-by-step: add an appendix

Appendix in LaTeX with the standard appendix command

  1. Write all main-text sections first, then add \appendix on its own line before the first appendix.
  2. Start each appendix with \section{...} in an article, or \chapter{...} in a report or book.
  3. Add a label directly after each heading so you can refer to it.
\documentclass{article}
...
\begin{document}
\section{Results}
As described in Appendix~\ref{app:survey}, ...

\appendix
\section{Survey instrument}\label{app:survey}
\section{Additional tables}\label{app:tables}
\end{document}

LaTeX appendix: article class vs report and book classes

According to the package manual, the standard \appendix behaves differently by class:

Class type What \appendix does
Classes with chapters (report, book) Resets the chapter and section counters, sets the chapter label word to the appendix name (default “Appendix”), and redefines \thechapter to be alphabetic.
Other classes (article) Resets the section and subsection counters and redefines \thesection to be alphabetic.

This is why an appendix in an article is a \section while in a thesis it is a \chapter.

Add an “Appendices” heading and table-of-contents entry

The appendix package adds two commands for this. \appendixpage prints a heading in the style of \part, using the text in \appendixpagename (default “Appendices”). \addappheadtotoc inserts a general heading into the table of contents, using the text in \appendixtocname (default “Appendices”), and it must come before the first appendix. Use them immediately after \appendix:

\appendix
\appendixpage
\addappheadtotoc

For documents with chapters the manual recommends this order instead:

\clearpage   % or \cleardoublepage
\addappheadtotoc
\appendixpage

\noappendicestocpagenum and \appendicestocpagenum turn the page number on that table-of-contents entry off and on.

Rename the appendix title

The word “Appendix” comes from \appendixname. The other texts can be changed with \renewcommand, for example:

\renewcommand{\appendixtocname}{List of appendices}

The appendices environment and per-chapter appendices

The package also provides an appendices environment that replaces the \appendix command, and a subappendices environment for appendices that belong to one chapter or section (the case discussed in the top TeX Stack Exchange result). Package options include toc, page, title, titletoc and header; per the manual, title and header are on by default for classes with chapters.

\usepackage[toc,page]{appendix}
...
\begin{appendices}
\section{Survey instrument}
\end{appendices}

Reference an appendix

Use the ordinary cross-reference mechanism: put \label{app:name} after the appendix heading and write Appendix~\ref{app:name} in the text. Because \appendix makes the section or chapter number alphabetic, \ref prints the letter (A, B and so on). See LaTeX ref: cross-referencing figures and syntax for the full label and reference workflow. If you use hyperref, the reference becomes a link; the package manual states it cooperates with hyperref.

Output and how to read it

  • Headings after \appendix read “A”, “B”, “C”, with the word “Appendix” shown for chapter classes through \appendixname.
  • With \appendixpage and \addappheadtotoc you get a divider titled “Appendices” and a matching table-of-contents line.
  • Compile twice so \ref and table-of-contents entries resolve; “??” in the text means the label has not been picked up yet or does not exist.

Overleaf’s documentation notes that in book-style documents \backmatter “disables the chapter numbering (suitable for the bibliography and appendices)” (Overleaf: Management in a large project, read 2026-11-07). That removes numbering rather than switching to letters, so use \appendix when you want lettered appendices.

Troubleshooting

  • Appendix still numbered 1, 2, 3. \appendix is missing or sits after the appendix heading, since it resets the counters and changes the numbering at the point it is called.
  • Table-of-contents “Appendices” heading in the wrong place. \addappheadtotoc must come before the first appendix.
  • Odd results with other packages. The manual warns the package may be problematic with packages that change the sectioning commands. Remove such a package, or the appendix package, and test which one causes the change.
  • Nothing happens in a class without sections or chapters. The package works only with classes that have \chapter and/or \section.

Options compared

Approach Package needed Gives you Source
\appendix No Lettered sections (article) or chapters (report, book) appendix manual
\appendix with \appendixpage and \addappheadtotoc appendix “Appendices” divider and table-of-contents heading appendix manual
appendices / subappendices environments appendix A bounded block, and appendices per chapter or section appendix manual, CTAN
\backmatter No (book-style classes) Unnumbered back matter, not lettered appendices Overleaf documentation

Other tools: if you are editing locally, see TeXstudio; for a newer typesetting system see Typst compared with LaTeX. For boxed material in theses, see framed, shaded and leftbar boxes, and for the definition of the document itself see the dictionary entry Thesis.

FAQ

How do I add an appendix in LaTeX?

Write \appendix, then start each appendix with \section (article) or \chapter (report, book). They are lettered automatically.

Do I need the appendix package?

No for basic lettered appendices. Yes if you want \appendixpage, \addappheadtotoc, renamed titles or the appendices and subappendices environments.

How do I add an appendix in LaTeX on Overleaf?

The same source code works in an Overleaf project; Overleaf compiles standard LaTeX. Put \appendix in the main file before the appendix sections.

How do I reference an appendix?

Add \label{...} after the appendix heading and cite it with Appendix~\ref{...}; the output is the appendix letter.

Sources (official documentation)

  • CTAN, appendix package page: ctan.org/pkg/appendix (version 1.2c, 2020-02-08), read 2026-11-07.
  • The appendix package manual (Peter Wilson; maintained by Will Robertson): appendix.pdf, read 2026-11-07.
  • Overleaf, Management in a large project: overleaf.com/learn, read 2026-11-07.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · free to try

Ask about Appendix in LaTeX: \appendix, the appendix Package and Referencing

2 free questions a day, no account.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →