Stage 4 · Structure and cross-references 28 / 48 ≈ 16 min read

LaTeX Footnotes and Margin Notes: Placement and Numbering

A footnote is not a piece of text but a two-part mechanism: a mark in the line and an insertion at the foot of the page, glued together by a counter. That is why some places accept them and others silently eat them. This lesson covers the legal positions, the \footnotemark/\footnotetext pair for tables and floats, every way to write the number, and the margin column as an alternative.

    A footnote is two objects, not one

    When TeX meets \footnote{text} it does two unrelated things. In the current line it prints a mark: the counter footnote is stepped and \thefootnote is typeset as a superscript through \@makefnmark. And into the page it places an insertion: the note text, together with the footnote rule, goes into the \footins insert register, which the output routine later bolts underneath \textheight and hands to \@makefntext.

    Everything strange about footnotes follows from that split. The mark is placed where you typed it; the text is placed where the page ends. Anything that moves material — floats, columns, two-column layout, a minipage — can therefore separate the two halves, and anything that re-reads the source (the table of contents, a running head, the list of figures) can type the mark a second time and double-count it.

    The dimensions worth knowing are all plain lengths: \skip\footins is the vertical space between the last text line and the footnote rule, \footnotesep is the strut height separating two notes, and the note itself is set in \footnotesize through \@makefntext. If your notes jam against the last line of text, \setlength{\skip\footins}{14pt} is the fix. If they climb into the bottom margin, the page has run out of room and the insert is being split — which leads to the bottom option of the footmisc package, below.

    \underbrace{\text{mark}}_{\text{in the line}} \quad \longmapsto \quad \underbrace{\text{text}}_{\text{below the rule}}
    \underbrace{\text{mark}}_{\text{in the line}} \quad \longmapsto \quad \underbrace{\text{text}}_{\text{below the rule}}

    Where a footnote may not go, and what to write instead

    Four places are off limits, and each fails in its own way. Moving arguments — \section, \caption, \chapter, the optional argument of \item — are written to auxiliary files and re-typeset, so a note there is counted once per destination: the classic result is a wrong number plus a Footnote ... is multiply defined warning from hyperref. Floats and tabular cells break the mark/text pairing because the float can land on another page. Verbatim material cannot hold any command at all. And a footnote inside a footnote nests insertions, which TeX does not support.

    For headings the correct recipe is a triple: a short form for the table of contents, the long form in the body, and \protect in front of the note — \section[Short title]{Long title\protect\footnote{...}}. \protect stops the note from expanding while the heading is being written out, so the text is set on the page where the heading appears and never in the contents. If you only need a note attached to a title or an author, use \thanks{}: it collects its material into \@thanks and typesets it under the title block with its own symbol sequence, independent of the footnote counter.

    In a table the answer is to break the footnote open yourself. \footnotemark prints the mark and steps the counter; \footnotetext prints the text using the current value of the counter. Put the marks inside the tabular, close the float, and then walk the counter backwards so the texts line up: \addtocounter{footnote}{-1}\footnotetext{first note}\stepcounter{footnote}\footnotetext{second note}. That is bookkeeping, and it is fragile across edits, which is why the robust long-run answer for table notes is threeparttable and its tablenotes list: the notes become part of the table box, so they float with it.

    Two further traps are invisible until you look at the output. A p{<width>} column is a minipage, so \footnote inside it is perfectly legal and lands under the cell, numbered with letters from the separate mpfootnote counter — which readers read as a mistake. And a \footnote at the end of a longtable row can be emitted once per page fragment; put those notes after the environment, with the mark/text pair.

    Where footnote text lands: page foot, bottom of a minipage, or nowhere inside a float 1. PLAIN TEXT - THE DOCUMENTED CASE ... the claim.\footnote{note} 1 skip\footins 1 note text, footnotesize, below the footnote rule mark and text are both produced by one \footnote call, in the same page stream. 2. MINIPAGE OR p{} CELL \begin{tabular}{p{4cm}p{4cm}} a footnote rule of the box a note text, here - not on the page A p{} column is a minipage: the counter is mpfootnote, the marks are letters, the text is clipped to the box - readers call it a bug. 3. FLOAT OR l/c/r TABLE CELL \begin{table}[htbp] ... \end{table} the float travels to another page; the mark goes with it, the insertion does not: text is lost, or the counter advances twice \footnotemark in the cell \addtocounter{footnote}{-1} \footnotetext{note} after the float two halves, deliberately separated In a table the note must be written as a pair; for notes that belong to the table itself, use threeparttable tablenotes instead. The rule behind all three pictures A footnote is a mark placed in the line and a text placed in an insertion. Anything that moves material (float, box, column) or re-reads the source (table of contents, list of tables, running head) separates the two - so write those notes as an explicit mark/text pair.
    The same source line produces a note at the foot of the page, a note at the foot of a box, or a note that never appears, depending on where the mark stands.
    \documentclass[a4paper,11pt]{article}
    
    \usepackage[T1]{fontenc}
    \usepackage{amsmath}
    \usepackage{booktabs}
    \usepackage[a4paper,margin=2.5cm]{geometry}
    
    \begin{document}
    \section{Two ways to footnote a table}
    
    % --- (1) marks inside the tabular, texts after the float -------------
    % A \footnote inside a table would be swallowed by the float machinery, so
    % the mark and the text are written as two halves of one operation.
    \begin{table}[htbp]
      \centering
      \begin{tabular}{llr}
        \toprule
        Symbol & Quantity & Value \\
        \midrule
        $\alpha$ & fine structure    & $7.297\times10^{-3}$\footnotemark \\
        $c$      & speed of light    & $299\,792\,458$\footnotemark \\
        \bottomrule
      \end{tabular}
      \caption{Constants with two marks.}\label{tab:constants}
    \end{table}
    % \footnotemark has already advanced the counter twice; walk it back to the
    % first mark, print that text, then step forward for the second.
    \addtocounter{footnote}{-1}%
    \footnotetext{Dimensionless, and measured.}%
    \stepcounter{footnote}%
    \footnotetext{Exact, since the metre was defined from it.}
    
    % --- (2) the p{} column trap ----------------------------------------
    % A p{} column is a minipage, so \footnote inside one does NOT go to the
    % bottom of the page: it is printed under the cell, with the independent
    % minipage counter (letters).
    \begin{center}
    \begin{tabular}{p{4.5cm}p{4.5cm}}
      \hline
      This cell carries a note.\footnote{Read this one under the cell, marked
      with a letter, not at the foot of the page.} &
      And this one is plain text. \\
      \hline
    \end{tabular}
    \end{center}
    
    For tables whose notes must travel with the table, the environment to reach for
    is \verb|threeparttable| with its \verb|tablenotes| list and \verb|\tnote{a}|
    marks; for notes that belong at the foot of the page, use the mark/text pair above.
    
    A note in ordinary text, for contrast.\footnote{This one really does sit at the
    bottom of the page.}
    \end{document}

    Numbering: symbols, letters, per page, per section

    The number is not hard-coded — it is whatever \thefootnote expands to, so the whole appearance of the marks is one \renewcommand away. The four settings you actually need: \arabic{footnote} (the default), \roman{footnote} for the quiet scholarly look, \alph{footnote} for tables, and \fnsymbol{footnote} for the unnumbered asterisk/dagger sequence used for a single credit note on a title page. Printing \thefootnote as nothing gives you anonymous notes, which is what a running commentary wants.

    \fnsymbol deserves one paragraph of its own because it is the only one that does not use the counter as a number. The kernel definition is a nine-branch switch: asterisk, dagger, double dagger, section, paragraph, double vertical bar, and then the doubled forms **, ††, ‡‡. A tenth request does not wrap around — it falls into \@ctrerr and stops with Counter too large. That cap is exactly why the style is used for a title-page credit, where there is one or two notes and no numbering is wanted, and why switching to it globally without also restarting the counter per page is a slow-motion accident. Note also that hyperref keeps a separate Hfootnote counter for the destination names and that \setcounter{footnote}{0} does not reset it, so a document that restarts note numbers by hand can show a * in the text whose back-reference is labelled seven.

    Reset points are counters too. Per-page numbering is not a class option in the kernel: load \usepackage[perpage]{footmisc}. Per-section numbering is the general mechanism: \counterwithin{footnote}{section} (kernel command; chngcntr on older installations). Per-page numbering combined with bottom is the combination most book classes use, and footmisc keys worth knowing beyond those are bottom (pin the notes to the foot of the text block rather than letting them float up under a short page), norule, ragged, and flushmargin (hang the mark into the margin instead of indenting the line).

    {}^{\ast},\ {}^{\dagger},\ {}^{\ddagger},\ {}^{\S},\ {}^{\P},\ {}^{\|},\ {}^{\ast\ast},\ {}^{\dagger\dagger},\ {}^{\ddagger\ddagger}
    {}^{\ast},\ {}^{\dagger},\ {}^{\ddagger},\ {}^{\S},\ {}^{\P},\ {}^{\|},\ {}^{\ast\ast},\ {}^{\dagger\dagger},\ {}^{\ddagger\ddagger}
    \documentclass[12pt,a4paper]{article}
    
    \usepackage[T1]{fontenc}
    \usepackage[utf8]{inputenc}
    \usepackage{amsmath}
    \usepackage[a4paper,margin=2.5cm,bottom=3.2cm]{geometry}
    \usepackage[bottom,perpage,flushmargin]{footmisc}
            % bottom    : push the footnotes to the very bottom of the page
            % perpage   : restart the numbering on every page
            % flushmargin: hang the mark into the margin instead of indenting
    
    \setlength{\skip\footins}{16pt}   % gap between the text and the footnote rule
    \setlength{\footnotesep}{9pt}    % gap between two footnote texts
    
    \title{Notes on notes\thanks{Collected in the title block, marked with symbols.}}
    \author{A. Student}
    
    \begin{document}
    \maketitle
    
    % --- three ways to write the number ---------------------------------
    \renewcommand{\thefootnote}{\arabic{footnote}}  % 1, 2, 3   (the default)
    % \renewcommand{\thefootnote}{\roman{footnote}}   % i, ii, iii
    % \renewcommand{\thefootnote}{\fnsymbol{footnote}} % *, dagger, ddagger, S, P
    % \renewcommand{\thefootnote}{}                   % unmarked notes
    
    The Euler product is due to Euler.\footnote{First note on this page.}
    A second claim, a second note.\footnote{Second note.}
    A third one reuses the first mark---\footref{1} \verb|\footref| is supplied by
    \texttt{footmisc}, and it repeats a mark without spending a new number.
    
    \section[A short heading for the TOC]{A long heading\protect\footnote{A note in
    a heading is set on the page the heading lands on, never in the table of
    contents.}}
    Because \verb|\section| writes its title to the table of contents, the note had
    to be protected, and the heading needed a short optional form.
    
    \subsection*{Zeroing the counter by hand}
    \setcounter{footnote}{0}
    After the reset the next note is number one again.\footnote{Numbered from one.}
    \end{document}

    A footnote inside a display equation

    A display equation is a group with its own horizontal list, so \footnote inside it lands in an unpredictable place — most often the mark is set after the formula, which looks fine until the formula breaks across pages, or the mark appears at the left edge of a centred display. The two robust positions are immediately after the closing \] (with the mark attached to the punctuation, which is what a reader expects) or at the end of the sentence containing the display.

    Where you genuinely want the mark to sit on a symbol inside the maths, do not use \footnote there; use a manual superscript on the outside of the maths: \footnotemark placed after the symbol and \footnotetext after the display. In text mode the same trick generalises: x\footnotemark[3] prints the mark for note number three without touching the counter, and the text is written separately. Note the syntax difference — \footnotemark[3] takes the number as an optional argument, while \footnotetext[3]{...} does the same for the text.

    amsmath's \intertext and \intertext* are worth mentioning here for a different reason: they are the only places inside an aligned group where ordinary text (and therefore a footnote) can legally appear. A note that qualifies a whole derivation belongs in the sentence before it, and a note that qualifies one symbol belongs in \text{...} attached to the last line — not inside the alignment.

    \sum_{k=0}^{\infty} c_{k}x^{k} = f(x)^{\,\dagger}
    \sum_{k=0}^{\infty} c_{k}x^{k} = f(x)^{\,\dagger}
    The dagger in the playground demo is \dagger used as a superscript, which is exactly how \fnsymbol{footnote} draws the second note of a page.

    Margin notes: what marginpar does that you did not expect

    \marginpar{text} is older and more fragile than it looks. It is not placed in the margin at the position you wrote it: TeX records the note, attaches it to the line in which it appeared, and the output routine puts the box in the outer margin — left page for oneside and twoside odd pages, right margin for even pages. If the box would overlap one already in the margin, LaTeX pushes the later one \marginparpush lower, and if there is no room on the page it moves to the next one and warns Marginpar on page ... moved. The box is also invisible to the page-number machinery, so a stray \marginpar can appear to have been ignored when it merely travelled.

    The three lengths that control the column are \marginparwidth (the width of the box; in the standard classes this is far too small at 11pt and 12pt, a fact that produces the "my margin note is unreadable" complaint), \marginparsep (the gutter between text and note) and \marginparpush (the minimum vertical gap between two notes). With geometry you set the first two directly — marginparwidth=2.6cm, marginparsep=8pt — and you must make sure your paper actually has that much outer margin, or the notes sit in the printable area. Content styling goes through \marginfont in the marginnote package, or through the class's \@margincaption in memoir.

    \marginpar also has the same moving-argument problem as \footnote and one more: it cannot appear inside a float, a \begin{minipage}, or another box, because the note is inserted into the page stream rather than the box. So the footnote lesson repeats here with different syntax, and the replacement is the package named next.

    Page geometry of the margin column: textwidth, marginparsep, marginparwidth and the vertical push between two notes TWOSIDE SPREAD - NOTES GO TO THE OUTER MARGIN even page (left-hand) note text printed in the left margin the line that carried \marginpar \textwidth marginparwidth odd page (right-hand) note text same box, outer side this time marginparbox is set with its own font: \marginfont, and inside the box \raggedright is customary marginparsep marginparwidth VERTICAL BEHAVIOUR note A, anchored to its line note B marginparpush - the minimum gap; if it does not fit, the note moves down, then to the next page, and the log says "Marginpar on page ... moved" \marginpar: a page insertion, box and float material refused \marginnote: anchored to the line, optional vertical offset, usable inside floats, never migrates to the next page
    Text block, gutter, margin box: marginpar lands in the outer margin at the height of its line, and marginnote lets you push that height by hand.
    \documentclass[11pt,twoside]{article}
    
    \usepackage[T1]{fontenc}
    \usepackage{amsmath}
    \usepackage[a4paper,top=2.5cm,bottom=2.8cm,left=3.5cm,right=3.5cm,
                marginparwidth=2.6cm,marginparsep=8pt]{geometry}
    \usepackage{marginnote}
    \usepackage{graphicx}
    
    % The box width is \marginparwidth, the gutter is \marginparsep, and the
    % minimum vertical gap between two notes is \marginparpush - all three are set
    % above through geometry. Style the content of the box with \marginfont:
    \renewcommand{\marginfont}{\scriptsize\raggedright\itshape}
    
    \begin{document}
    \section{Margin material}
    
    A sentence that needs an aside.\marginpar{A \texttt{\string\marginpar} note: it
    is anchored to the line it sits in, and if there is no room it is pushed down
    the margin --- or onto the next page, with a warning.}
    The rule is that \verb|\marginpar| places its box in the \emph{outer} margin of
    a two-sided document, using the vertical position of the line that carried it.
    
    \subsection*{Why marginnote exists}
    The same anchor problem is solved differently by the \texttt{marginnote}
    package: the note is positioned against the current line, it never changes the
    page number, and --- crucially --- it can be used where \verb|\marginpar|
    cannot, such as inside a float or in the caption area.
    \marginnote{This note is set with \texttt{\string\marginnote}, and the optional
    second argument nudges it vertically.}[-2.5ex]
    
    \begin{figure}[htbp]
      \centering
      \setlength{\fboxsep}{22pt}
      \fbox{\parbox{5cm}{\centering a figure}}
      \caption{A float carrying a margin note.}
      \marginnote{A \texttt{\string\marginpar} here would be lost or would trigger
      ``marginpar on page moved''; inside a float, use \texttt{\string\marginnote}.}
    \end{figure}
    
    Two vertical offsets show the difference between the two commands: the first
    note above is tied to the paragraph, the second is tied to the line it was
    written on.\marginpar{Second \texttt{\string\marginpar}.}
    \end{document}

    marginnote, and when a note is really a marginal heading

    The marginnote package provides the same visual object with three practical differences. \marginnote{text} places the note against the current line and never shifts it to the following page; an optional second argument takes a vertical offset, so \marginnote{...}[-2.5ex] pulls the box up to line up with a heading; and it works inside floats and boxed material where \marginpar is refused. It is also the package that gives you \marginline-like behaviour in the standard classes, and its \marginfont hook is the documented way to set the note style.

    The cost is one extra pass and a little bookkeeping: marginnote stores anchor information so that offsets resolve against the right page, so a document that has never been compiled twice can show a note one page away from its line. And because the note is no longer a page insertion, a long marginal paragraph has no mechanism to split across pages — if your margin material is that long, it is not a note, it is a second column, and the tools for that are mpar-style classes (memoir, Tufte-style templates) or a two-column tabular with a fixed narrow column.

    Decide which device you are using before you write. A footnote forces the reader to leave the sentence, look down, and find their place again: correct for an aside that only 5 per cent of readers want. A margin note keeps the eye in the text column: correct for a gloss, a source, or a running commentary you want read with the paragraph. A third option, the \quotes-style endnotes via the endnotes package, moves everything to a list at the end and is the right answer for legal or archival apparatus, where notes are long enough to wreck page layout.

    x^{a},\ y^{b},\ z^{c} \qquad (\text{a separate counter})
    x^{a},\ y^{b},\ z^{c} \qquad (\text{a separate counter})

    Layout, page breaks and the notes that disappear

    Footnotes participate in page breaking whether you like it or not. The insert is a box that must fit under the text, so a page with a long note loses text lines to it, and a note that does not fit is split by \footins penalties. If you see text pulled up the page with a large gap under it, that is the insert being placed. The knobs: \interfootnotelinepenalty (raise it to stop a single note being split across pages, at the cost of more whitespace), \bottomnumber (how much of a split note stays on the first page), and the bottom option of footmisc, which stops notes from creeping up under a short page.

    The failure mode that looks like a bug is a note that simply does not appear. It is almost always one of four things: a note in a tabular cell of type p{} (it printed under the cell), a note in a float (swallowed by the float's own box), a note in a \parbox or minipage (again the minipage counter), or a note in a moving argument that was typeset in a place you did not look at, such as the list of tables. Print the log and search for Footnote and marginpar: both classes of trouble leave a trace.

    Last, two habits that keep long documents sane. Give a note that will be referred to twice a label with \label{fn:sources} inside it and re-point at it with \autoref{fn:sources} or \footref rather than re-writing it; and never number notes by hand — the moment you insert one earlier in the file, every literal number downstream is wrong, which is the same argument the theorem environments make about hand-typed numbers.

    Lesson cheat sheet

    One key line of code from each section — jump to it or copy it straight from here.

    Section Key code
    \underbrace{\text{mark}}_{\text{in the line}} \quad \longmapsto \quad \underbrace{\text{text}}_{\text{below the rule}}
    \documentclass[a4paper,11pt]{article}
    \documentclass[12pt,a4paper]{article}
    \sum_{k=0}^{\infty} c_{k}x^{k} = f(x)^{\,\dagger}
    \documentclass[11pt,twoside]{article}
    x^{a},\ y^{b},\ z^{c} \qquad (\text{a separate counter})

    Common mistakes

    • Putting \footnote straight inside a tabular cell. In an l/c/r column the note can be lost or land in the wrong place; use \footnotemark in the cell and \footnotetext after the float, or switch the table to threeparttable.
    • Writing \section{Title\footnote{...}} without a short optional form and without \protect. LaTeX re-typesets the heading for the table of contents, the note counter advances twice, and hyperref reports a multiply defined footnote.
    • Using \fnsymbol{footnote} and then writing ten notes on one page: the kernel switch has nine branches and the tenth falls through to Counter too large, so the run stops rather than repeating the list. Restart the counter per page, or keep numbers for that many notes.
    • Assuming \marginpar is a float-free place to put anything. It refuses to work inside a minipage, a parbox or a float, and it migrates to the next page when the margin column is full — with only a warning in the log.
    • Leaving \marginparwidth at the standard class default while setting page margins with geometry; the notes then print in a 1.5cm-wide box with hyphenation switched off, which is unreadable.
    • Expecting a note inside a p{...} column to appear at the foot of the page. It is a minipage, so the note is set under the cell with its own letter counter; move the text out with the mark/text pair if it must go to the foot.

    Questions about this lesson

    How do I put a footnote in a table in LaTeX?
    Use \footnotemark inside the cell and \footnotetext after the table environment, because a full \footnote inside a float is not placed reliably. \footnotemark has already advanced the counter, so walk it back with \addtocounter{footnote}{-1} before the first \footnotetext and \stepcounter between the rest. If the notes belong to the table rather than the page, use threeparttable and tablenotes.
    How do I use symbols instead of numbers for footnotes?
    One line in the preamble: \renewcommand{\thefootnote}{\fnsymbol{footnote}}. That switches to the asterisk, dagger, double-dagger, section and paragraph sequence, which is the traditional style for a single credit note. Set \setcounter{footnote}{0} beforehand if you want the sequence to start again, and remember the list only holds nine entries before it repeats.
    Why is my footnote missing?
    It is usually in a place that redirects it: a p{} column or a minipage prints it at the bottom of that box with letters, a float can swallow it, and a moving argument may have set it in the table of contents instead of the page. Check the log for Footnote and Marginpar warnings, then move the mark and text halves apart.
    What is the difference between marginpar and marginnote?
    Both write into the margin column. \marginpar is a kernel command: it anchors to the line it appears in, is pushed down or onto the next page when the margin is full, and refuses to work inside a box or a float. \marginnote from the marginnote package places against the current line, accepts a vertical offset as an optional second argument, works inside floats, and lets you restyle the box with \marginfont.
    Can I have footnotes numbered per page?
    Yes, but not from the kernel: load \usepackage[perpage]{footmisc}. Add bottom to keep the notes at the foot of the text block and flushmargin to hang the marks into the margin. For per-section numbering use the general mechanism instead, \counterwithin{footnote}{section}.
    How do I reference a footnote a second time?
    With \footref{&lt;number&gt;} from the footmisc package, which prints the existing mark again without spending a new number. Alternatively \footnotemark[n] and \footnotetext[n]{...} both take the number as an optional argument, so you can drive the pairing by hand.

    Live playground: edit the LaTeX, see it render

    The preview updates as you type — break it on purpose to see how errors look.

    KaTeX error
    Try an example

    Keep reading

    Three ways into the same idea: the notation itself, the lesson that teaches it, and an article that applies it.