I am referencing the same footnote multiple times within a table. I have been able to use this answer to reference the same footnote in multiple spots:
Multiple references to the same footnote with hyperref support – is there a better solution?
Now I am stuck as to how to get rid of the references to the footnotes which reappear before my text (after the table). Here is my example:
\documentclass[12pt]{article}
\usepackage{footmisc}
\begin{document}
\begin{table}[!htb]
\centering
\begin{tabular}{lll}
& col1 & col2\\\hline
row1 & val11\footref{fn:note1} & val12\\
row2 & val21\footref{fn:note1} & val22\footref{fn:note2}\\
\end{tabular} \caption{Caption for table.}
\end{table}
\footnote{\label{fn:note1}First note}
\footnote{\label{fn:note2}Second note}
I do not want my text to be preceded by the superscripts 1 and 2 referencing the footnotes from the table.
\end{document}
This yields the following, which has the unwanted superscripts 1 2 right before my text:
How can I get rid of these unwanted superscripts (the extra ones)? Thanks!
Best Answer
The tools of the threeparttable package are great for tables that contain repeated footnotes. The footnote markers -- inserted via
\tnote
directives needn't be numbers; the arguments of the\tnote
directives can be numerals, letters, or just about any other symbol, and they don't have to occur in any particular order; your readers, though, might appreciate if you do impose some order...Formally, a
threeparttable
environments has three parts (hence the name): atabular
-like environment (could also betabular*
ortabularx
), atablenotes
environment, and a\caption
directive. The code automatically limits the widths of parts 2 and 3 to that of thetabular
-like environment.