The threeparttable package

Sets footnotes directly below a table and limits them and the caption to the width of the table: the environments threeparttable and tablenotes and the command \tnote.

Loading the package

\usepackage{threeparttable}

\footnote in a table float prints the mark, and the footnote text is lost. threeparttable puts the notes where readers of a table expect them, under its last row. The three parts in its name are caption, table and notes.

The environment goes inside table and around \caption, the tabular and a tablenotes list. The marks are not numbered automatically: you write \tnote{a} in the cell and \item[a] in the list.

Main commands

\begin{threeparttable} ... \end{threeparttable}Holds caption, table and notes together at the width of the table.
\tnote{a}Raised mark in a cell.
\begin{tablenotes} \item[a] ... \end{tablenotes}List of notes below the table.
\begin{tablenotes}[flushleft]Notes without a hanging indent.
\begin{tablenotes}[para]All notes one after another in one paragraph.
\begin{tablenotes}[online]Marks in the list in normal size on the line instead of raised.

Complete example

\documentclass{article}
\usepackage{booktabs}
\usepackage{threeparttable}
\begin{document}
\begin{table}[ht]
\centering
\begin{threeparttable}
\caption{Yield per field in the first year of the trial}
\begin{tabular}{lrr}
\toprule
Field & Area (ha) & Yield (t)\tnote{a} \\
\midrule
North          & 12.5 & 81.3 \\
South\tnote{b} &  8.0 & 44.9 \\
\bottomrule
\end{tabular}
\begin{tablenotes}[flushleft]
\footnotesize
\item[a] Dry weight.
\item[b] Harvested two weeks late.
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}
Result
The compiled example

Open in the editor

Compiled with pdfLaTeX from TeX Live 2023.

Pitfalls

Related pages