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!