Typevia
Navigation and Organization

Understanding Footnotes and Endnotes in LaTeX

In academic and technical writing, providing additional context or citations without disrupting the flow of the primary text is essential. Footnotes and endnotes allow you to include supplementary information, clarify points, or provide references at the bottom of the page or the end of the document.

In LaTeX, managing these notes is significantly easier than in traditional word processors because LaTeX handles the numbering, placement, and formatting automatically.


1. Creating Basic Footnotes

The primary command for creating a footnote in LaTeX is \footnote{...}. You simply place this command immediately after the text you wish to annotate.

Basic Syntax

To add a footnote, use the following syntax:

This is a sentence that requires further explanation.\footnote{This is the content of the footnote.}

Full Document Example

Here is how it looks in a complete document:

\documentclass{article}
\begin{document}

LaTeX is a high-quality typesetting system.\footnote{It was originally written by Leslie Lamport.} 
It includes features designed for the production of technical and 
scientific documentation.

\end{document}

Important Placement Rule

A common stylistic convention in English is to place the footnote marker after the punctuation mark (like a period or a comma), with no space between the punctuation and the command.

Note: If you put a space before \footnote, LaTeX will render a space before the superscript number in your text, which usually looks unprofessional.


2. Customizing Footnote Numbering and Style

By default, LaTeX uses Arabic numerals (1, 2, 3...) for footnotes. However, you can change this behavior globally or for specific sections.

Changing the Numbering Style

You can change the numbering style by redefining the \thefootnote command in your preamble. Common options include:

  • \arabic: 1, 2, 3
  • \roman: i, ii, iii
  • \Roman: I, II, III
  • \alph: a, b, c
  • \fnsymbol: symbols (*, †, ‡, §)

To change to lowercase letters, add this to your preamble:

\renewcommand{\thefootnote}{\alph{footnote}}

Using Symbols for a Single Note

If you want to use a specific symbol for a footnote (often used for author credits on a title page), you can use the optional argument:

\footnote[3]{This footnote will display the third symbol in the LaTeX sequence.}

Resetting the Counter

In long documents (like the report or book classes), LaTeX automatically resets the footnote counter at the start of each chapter. If you want to reset it manually, use:

\setcounter{footnote}{0}

3. Footnotes in Tables and Minipages

Standard footnotes often "disappear" when used inside environments like tables or boxes. This is a common frustration for beginners.

Footnotes in Minipages

When you use \footnote inside a minipage environment, the notes are placed at the bottom of that specific box rather than the bottom of the page, and they typically use letters (a, b, c) instead of numbers.

\begin{minipage}{0.5\textwidth}
  This is text inside a minipage.\footnote{This footnote stays inside the box.}
\end{minipage}

Footnotes in Tables (The Mark/Text Method)

The standard \footnote command does not work inside a tabular environment. To get around this, you must split the command into two parts:

  1. \footnotemark: Placed where you want the number to appear inside the table.
  2. \footnotetext{...}: Placed outside the table environment to define the content.
\begin{tabular}{|l|l|}
\hline
Item & Price \\ \hline
Widget & \$10\footnotemark \\ \hline
\end{tabular}
\footnotetext{Price excludes shipping and handling.}

4. Working with Endnotes

Sometimes, editors prefer all notes to be collected at the end of a chapter or the end of the entire document. These are called endnotes. LaTeX does not include endnote functionality in its core, so we use the endnotes package.

Setting up Endnotes

First, include the package in your preamble. Then, use the \endnote command instead of \footnote. Finally, tell LaTeX where to print the notes using \theendnotes.

\documentclass{article}
\usepackage{endnotes}

% Optional: Redirect all footnotes to endnotes automatically
% \let\footnote=\endnote 

\begin{document}

This is a claim that needs a reference.\endnote{Found in the Archives, 1922.}

\newpage
\begingroup
\parindent 0pt
\parskip 2ex
\theendnotes
\endgroup

\end{document}

Why use \begingroup?

In the example above, we wrap \theendnotes in a group to customize the formatting of the endnotes list (like indentation and spacing) without affecting the rest of the document.


5. Advanced Customization with footmisc

For more control over footnote appearance, the footmisc package is the industry standard. It offers several "options" during loading.

Common footmisc Options:

  • perpage: Resets footnote numbering on every page.
  • hang: Aligns the footnote text so it doesn't wrap under the number (creates a hanging indent).
  • flushmargin: Aligns the footnote number with the left margin of the text.
  • multiple: Automatically adds a comma between consecutive footnote markers (e.g., ^1,2 instead of ^12).

Example usage:

\usepackage[perpage, hang, multiple]{footmisc}

6. Best Practices and Common Pitfalls

To ensure your document looks professional and compiles without errors, keep these tips in mind:

Best Practices

  1. Be Concise: Footnotes should be brief. If a footnote is several paragraphs long, consider moving it to an appendix or integrating it into the main text.
  2. Consistency: Choose one numbering style and stick to it throughout the document.
  3. Punctuation: Always place the footnote after the period or comma.
    • Correct: "The experiment was successful.\footnote{Reference...}"
    • Incorrect: "The experiment was successful \footnote{Reference...}."

Common Mistakes to Avoid

  • Fragile Commands: Using \footnote inside section headings (\section{...}) will cause errors. If you must do this, use \section[Heading]{Heading\footnote{Text}}.
  • Missing \footnotetext: If you use \footnotemark and forget the corresponding \footnotetext, your document will show the number but no content at the bottom.
  • Over-footnoting: Too many footnotes can distract the reader and clutter the page. Use them sparingly.

Pro Tip: If you find yourself needing to footnote the same source multiple times, consider using a bibliography management system like BibLaTeX instead of manual footnotes.