\footnote{Note text} directly where the superscript mark should appear, with no space before the command. For side comments in the page margin, use built-in \marginpar{Note text} in ordinary paragraphs or load the marginnote package for \marginnote{Note text} inside tables, floats, and minipages.
Basic footnotes with \footnote
\footnote{...} increments the footnote counter, prints a superscript number at the call site, and places the numbered note at the bottom of the page. Pass an optional integer (\footnote[5]{...}) to print a fixed mark without changing the footnote counter.
footnotes.tex
Ready to use this syntax? Continue in the browser editor when you want to adapt the example in a real project.Open LaTeX Cloud Studio
Splitting mark and text: \footnotemark and \footnotetext
Some contexts—such as tabular cells, floating table environments, and captions—do not allow \footnote to deliver its text to the bottom of the page. In those places, split the mark from the body:
\footnotemarkincrements thefootnotecounter and prints the superscript number.\footnotetext{...}places the note at the bottom of the page using the current value of thefootnotecounter, without incrementing it.
\footnotemark is followed by \footnotetext{...}, the numbers match automatically. When two or more \footnotemark commands appear before their \footnotetext commands, step the counter back with \addtocounter{footnote}{-1} (or -(n-1) for n marks) and advance it with \stepcounter{footnote} before each subsequent \footnotetext. You can also pass explicit matching numbers (\footnotemark[2] and \footnotetext[2]{...}), which leave the counter unchanged.
Footnotes in tables and captions
Standard LaTeX handles\footnote differently depending on where you place it:
Bottom-of-page footnotes for tables and captions
Put\footnotemark inside the table cell or caption, then place the matching \footnotetext{...} immediately after \end{table} (or \end{figure}). Supply the optional short title (\caption[Short title]{...}) when putting \footnotemark in a caption; without it (or \protect\footnotemark), compilation fails with ! Argument of \@caption has an extra }., and using \protect\footnotemark alone repeats the mark in \listoftables or \listoffigures.
table-and-caption-footnotes.tex
\footnotetext stays on the page where it appears in the source, a floating table or figure that moves to another page can become separated from its note. See Figure positioning for float placement options.
Table notes directly under a table with threeparttable
When notes belong to the table itself rather than the page footer, load threeparttable. Wrap \caption, tabular, and a tablenotes environment inside threeparttable, and mark entries with \tnote{a}. Because the notes sit inside the float, they move with the table and wrap to the table’s width. For general table layout with booktabs, see Creating tables.
threeparttable-notes.tex
Changing footnote mark style and layout
Redefine\thefootnote in the preamble to switch the numbering format:
\arabic{footnote}—1, 2, 3(default)\alph{footnote}or\Alph{footnote}—a, b, corA, B, C\roman{footnote}or\Roman{footnote}—i, ii, iiiorI, II, III\fnsymbol{footnote}— symbol sequence (*,†,‡,§,¶,‖,**,††,‡‡)
\fnsymbol defines nine symbols; a tenth footnote without resetting the counter raises ! LaTeX Error: Counter too large..
For combined style and layout adjustments, load the footmisc package. Useful options include symbol (switches to \fnsymbol), perpage (resets numbering on each page), bottom (pushes footnotes to the bottom of the page and below bottom floats), hang (aligns wrapped footnote lines to \footnotemargin, which defaults to 1.8em), and flushmargin (sets \footnotemargin to 0pt so marks sit flush with the left margin).
footnote-style.tex
Margin notes: \marginpar and marginnote
Base LaTeX provides \marginpar{Note text} for short notes in the margin. In a one-sided document it prints in the right margin (use \reversemarginpar to switch to the left). In a twoside document it prints in the outer margin; pass an optional left-margin argument (\marginpar[left text]{right text}) when left and right margins need different wording or alignment.
\marginpar is implemented as a float, so placing it inside a minipage, figure, or table fails with ! LaTeX Error: Float(s) lost.. Load the marginnote package and use \marginnote{Note text} in those contexts. \marginnote also accepts a trailing optional vertical shift (for example \marginnote{Note}[0.5\baselineskip]). Unlike \marginpar, marginnote does not automatically push colliding notes apart, so add a vertical offset if two notes sit on the same line. Use geometry’s marginparwidth and marginparsep options to leave enough space in the margin.
margin-notes.tex
Common mistakes
- Using
\footnoteinsidetabularor atablefloat: The mark appears, but the note text is dropped silently. Use\footnotemarkwith\footnotetext, or usethreeparttable. - Putting
\footnotedirectly inside\caption: Raises! Argument of \@caption has an extra }.. Use\caption[Short title]{Full title\footnotemark}with\footnotetextafter the float. - Forgetting to adjust the counter after multiple
\footnotemarkcalls: Every\footnotetextwould print the same final number unless you stepfootnoteback and forward, or pass explicit[n]arguments. - Exceeding nine symbol footnotes:
\fnsymbolstops at nine and fails with! LaTeX Error: Counter too large.. Pairsymbolwithperpageinfootmiscor reset the counter manually. - Calling
\marginparinside aminipageor float: Fails with! LaTeX Error: Float(s) lost.. Switch to\marginnotefrom themarginnotepackage.
Try it in the editor
geometry, booktabs, threeparttable, footmisc, and marginnote are installed in LaTeX Cloud Studio’s TeX Live 2026 (full distribution) environment. Start from the Basic Article template in LaTeX Cloud Studio and replace main.tex with the complete example you want to test.
