Document Structure

How to Add an Appendix in LaTeX

Add an appendix in LaTeX with the appendix command, label and reference appendix items, add an Appendices heading, and handle landscape pages.

On this page
  1. Add an appendix with \appendix
  2. Reference an appendix
  3. Add an Appendices heading and table of contents entry
  4. Change the appendix labels and numbering
  5. Landscape pages in an appendix
  6. Single-column appendix in a two-column document
  7. Where appendices go
  8. Common mistakes

An appendix holds supporting material, such as raw data, a questionnaire, or a long derivation, after the main text. In LaTeX, the \appendix command switches numbering to letters for every section or chapter that follows it. This guide shows how to use it, reference appendices, and handle common layout needs.

Add an appendix with \appendix

Put \appendix before the first appendix heading. The class decides which heading command to use:

  • In article, use \section for each appendix. Sections are lettered A, B, C.
  • In book and report, use \chapter for each appendix. The headings read “Appendix A”, “Appendix B”, and so on.
\documentclass{article}

\begin{document}

\section{Introduction}
Main text.

\appendix
\section{Raw data}
Appendix text.

\section{Survey form}
Appendix text.

\end{document}

In this example, the first appendix is “A Raw data” and the second is “B Survey form”. article has no chapters, so \chapter causes an error there. For how chapters work, see chapters in LaTeX.

Reference an appendix

Add a \label to the appendix heading, then use \ref in the main text. The reference prints the letter, such as A:

\appendix
\section{Raw data}\label{app:data}
Appendix text.

% in the main text:
The raw data are listed in Appendix~\ref{app:data}.

To reference a table or figure inside an appendix, label it with \label inside its caption, in the same way.

Add an Appendices heading and table of contents entry

The appendix package adds an “Appendices” heading and a table of contents entry, and it provides an appendices environment:

\usepackage[toc,page]{appendix}

\begin{document}
...
\begin{appendices}
\section{Raw data}
Appendix text.

\section{Survey form}
Appendix text.
\end{appendices}
\end{document}

The toc option adds an “Appendices” entry to the table of contents. The page option prints an “Appendices” title page before the first appendix. Once the appendices environment ends, normal numbering can continue.

The package also offers two single commands. \appendixpage adds the “Appendices” title, and \addappheadtotoc adds the table of contents entry. Use them after \appendix if you do not need the environment.

Change the appendix labels and numbering

The word “Appendix” comes from \appendixname, which you can redefine. For example, some organizations use “Annex”:

\renewcommand{\appendixname}{Annex}

To change how appendix sections are numbered, redefine \thesection after \appendix. This example uses uppercase Roman numerals:

\appendix
\renewcommand{\thesection}{\Roman{section}}

Landscape pages in an appendix

A wide table or figure may fit better on a landscape page. The pdflscape package provides a landscape environment that rotates the page in the PDF:

\usepackage{pdflscape}

\begin{landscape}
\section{Wide table}
...
\end{landscape}

The lscape package offers the same environment but does not rotate the page in the PDF. For on-screen reading, pdflscape is usually the better choice.

Single-column appendix in a two-column document

In a two-column document, \onecolumn switches to one column. Place it before \appendix:

\documentclass[twocolumn]{article}
\begin{document}
\section{First section}
...
\onecolumn
\appendix
\section{First appendix}
...
\end{document}

The appendix starts on a new page, and it is set in one column.

Where appendices go

Style guides differ on whether appendices come before or after the bibliography. Some place them after the references, and others before. Check your institution’s style guide, and place the appendix block where it requires.

Common mistakes

  • “Undefined control sequence” for \chapter. The class is article, which has no chapters. Use \section, or switch to report or book.
  • Normal numbering does not come back. Once \appendix is used, later sections keep letter numbering. Use the appendices environment if you need to return to normal numbering after the appendix block.
  • An appendix is never mentioned. Reference each appendix at least once in the main text, so readers know where to find it.

For the page layout around an appendix, see page numbering in LaTeX. For a table of contents that lists the appendix, see table of contents, lists and nomenclature in LaTeX.

The complete guide to document structure

Chapters in LaTeX: Document Classes and Chapter Styles
Read the guide

Keep exploring

Guides from other topics

All topics →