3

I know it is not recommended, but I have been trying to have footnotes in table environment. And the footnote package seems to me to be the easiest way to do it. Unfortunately, I also wanted to use multiple footnotes from the fnpct package, which is normaly incompatible with the footnote package (see fnpct doc p.21).

After some times, I found out that I could use both if I load the package xcolor (or color) first. Multiple footnotes are created inside tables and marks are placed at the bottom of the page.

\documentclass{article}

\usepackage{xcolor}

\usepackage{footnote} 
\makesavenoteenv{table}
\makesavenoteenv{tabular}

\usepackage[multiple]{fnpct}

\usepackage[colorlinks]{hyperref}

\begin{document}

\begin{tabular}{c} 
    tabular\footnote{1;2;3}.
\end{tabular}

\begin{table}[h]
    \begin{tabular}{c} 
        table\footnote{i;ii;iii}.
    \end{tabular}
\end{table}

\end{document}

The only issue is that, for a multiple footnote, only the last footnote is referenced correctly (in the example, only the footnotes 3 and 6 (iii) are properly referenced).

Is it possible to fix the references of a multiple footnote in this scenario ? Related to another issue (footnote package doesn't work correctly with hyperref, see this post)

Why loading xcolor package makes footnote and fnpct packages compatible ?

  • 1
    The fnpct manual says (section 7.6) „fnpct is not compatible with the footnote package“ so you should not expect this to work. – clemens Jul 20 '16 at 19:43
  • I know it should not work, I read the fnpct documentation. But it seems to work with xcolor package, and I would like to know why. Or is it not working properly ? – user109581 Jul 20 '16 at 19:51
  • 1
    The footnote package is very old and unmaintained. It's very likely it conflicts with more recent packages. – egreg Jul 20 '16 at 20:43
1

You can use fnpct with the tablefootnote package instead:

\documentclass{article}

\usepackage[multiple]{fnpct}
\usepackage{tablefootnote}

\usepackage[colorlinks]{hyperref}

\begin{document}

\begin{tabular}{c}
    tabular\tablefootnote{1;2;3}.
\end{tabular}

\begin{table}[h]
    \begin{tabular}{c}
        table\tablefootnote{i;ii;iii}.
    \end{tabular}
\end{table}

\end{document}

Alternatively, if that doesn't matter to you, the footnotehyper package supersedes footnote:

\documentclass{article}

\usepackage{footnotehyper}
\makesavenoteenv{table}
\makesavenoteenv{tabular}

\usepackage[colorlinks]{hyperref}

\begin{document}

\begin{tabular}{c}
    tabular.\footnote{footnote 1}
\end{tabular}

\begin{table}[h]
    \begin{tabular}{c}
        table.\footnote{footnote 2}
    \end{tabular}
\end{table}

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.