footnote in table with hyperlinks

As we found out in the comments to the question if compiled with pdflatex the links are rectangles, i.e. the foodnote marks are inside the link boxes. latex + dvips leads to empty link boxes below the table footnotes instead.

The savenotes environment produces wrong hyperlinks, though. tablefootnote gets them right:

\documentclass[12pt]{article}

\usepackage{tablefootnote}
\usepackage{hyperref}
\begin{document}
\begin{table}[ht]
  \centering
  \begin{tabular}{|l|c|c|}
    \hline
     A & 1 & 2 \tablefootnote{This is the first footnote.} \\
    \hline
     B & 2 & 1 \\
    \hline
     C & 3\tablefootnote{This is the second footnote.} & 3 \\
    \hline
  \end{tabular}
  \caption{A table caption.}
\end{table}%

Text\footnote{This footnote is hyperlinked.}

\end{document}

enter image description here


In case you're willing to consider using table notes instead of footnotes, the referable option of threeparttablex would provide a suitable command, \tnotex. While the package is originally designed to work with longtable, it also extends threeparttable environment by some commands, among them \tnotex.

 

\documentclass[12pt]{article}

\usepackage[referable]{threeparttablex}
\usepackage{footnote}
\usepackage{hyperref}

\begin{document}
    \begin{table}[ht]       
    \centering            
    \begin{threeparttable}  
        \begin{tabular}{|l|c|c|}
            \hline
            A & 1 & 2 \tnote{1} \\
            \hline
            B & 2 & 1 \\
            \hline
            C & 3\tnotex{tn:2} & 3 \\
            \hline
            Line & producing & space. \\
            \hline
        \end{tabular}
        \begin{tablenotes}
            \item[1] This is the first note.
            \item[2] \label{tn:2} This is the hyperlinked note.
        \end{tablenotes}      
    \end{threeparttable}
    \caption{A table caption.}
    \end{table}%    
Text\footnote{This footnote is hyperlinked.}
\end{document}

enter image description here