Use the footnotehyper
package.
Usage
Just insert
\usepackage{footnotehyper}
\makesavenoteenv{table}
\makesavenoteenv{tabular}
in the preamble.
Example
\documentclass{article}
\usepackage{hyperref}
\usepackage{footnotehyper}
\makesavenoteenv{table}
\makesavenoteenv{tabular}
\begin{document}
\begin{table}[p]
\centering
\begin{tabular}{|c|c|}
\hline
Item 1 & Item 2\footnote{Footnote of the floating table on the other page.} \\
\hline
Item 3\footnote{Another footnote of the floating table on the other page.} & Item 4 \\
\hline
\end{tabular}
\caption{Table with Hyperref Support and Multiple Footnotes}
\end{table}
\begin{center}
\begin{tabular}{|c|c|}
\hline
Item 5\footnote{Footnote in tabular environment.} & Item 6\footnote{Footnote in tabular environment.} \\
\hline
\end{tabular}
\end{center}
\end{document}
Limitation
As mentioned in the package documentation, even though the footnotes will show up for floating environments, they may be not on the correct page. For tabular
environment, it works fine.
Comparison
This is an extensive comparison of all the solutions listed.
Features to be tested:
- hyperref support
- footnotetext are placed on the correct page where the footnotemark appear for floating table
- automatic numbering when there are multiple footnotes
- footnotes are placed below the table/at the bottom of the page
- support for
tabular
environment itself without table
environment around it
- support for floating environment,
tabular
inside table
Package |
1 |
2 |
3 |
4 |
5 |
6 |
footnotehyper |
yes |
no |
yes |
bottom of the page |
yes |
yes |
footnote |
one link per table |
no |
yes |
bottom of the page |
yes |
yes |
tablefootnote |
yes |
no |
yes |
bottom of the page |
no |
yes |
longtable |
only go to last page |
no |
yes |
bottom of the page |
yes |
yes |
ftnxtra |
no |
no |
yes |
bottom of the page |
yes |
no |
threeparttable |
no |
yes |
yes |
below the table |
yes |
yes |
tabularx |
no |
no |
yes |
bottom of the page |
yes |
no |
bidiftnxtra |
no |
no |
yes |
bottom of the page |
yes |
no |
nicematrix |
yes |
no |
yes |
both supported |
yes |
no |
tabularray |
yes |
yes |
no |
below the table |
yes |
yes |
raw footnotemark/footnotetext |
one link per table |
no |
yes |
bottom of the page |
yes |
no |
The source code for the comparison, as well as links to original answer suggesting the package, can be found at https://gist.github.com/user202729/09825890622de02512e750e04eee41d4 .
Things missing here
Things that could be tested, but isn't:
Features that could be tested, but isn't:
- support for
align
environment from amsmath
\footnotemark
/\footnotetext
approach?\footnote
is to wrap \begin{tabular} in a minipage. Just surround it with\begin{minipage}{\linewidth} ... \end{minipage}
. The footnote numbers will be the lettersa, b, ...