I'm trying to have some clickable footnotes within tables. I tried using \footnote{}
, it does create a link but there's no footnote text associated with it. \footnotemark[number]
along with \footnotetext[]{}
does create a fotenote but then there's no hyperlink. (I would like to make it clear that I'm trying to have footnotes at the bottom of the page and not footnotes within the table.)
Here's a small code snippet:
\documentclass{report}
\usepackage{hyperref}
\begin{document}
\begin{table}[h!]
\centering
\begin{tabular}{|r|r|r|}
\hline
A\footnote{Test!} & B\footnotemark[4] & C\footnotemark[5]\\
\hline
123 & Tim & Jane\\
\hline
456 & Tom & Jung\\
\hline
\end{tabular}
\caption{A table}
\end{table}
This is a clickable footnote\footnote{You clicked me!}.
\footnotetext[4]{This is B}
\footnotetext[5]{This is C}
\end{document}
Best Answer
From the hyperref README, Section 8 "Hints", p. 26:
P. 26-27 give some "nasty examples"; I've used the second one as groundwork to modify your code example. This is what I came up with:
By the way I agree with Thorsten Donig that footnotes in floats are not a good idea.