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 ?

3
  • 1
    The fnpct manual says (section 7.6) „fnpct is not compatible with the footnote package“ so you should not expect this to work.
    – cgnieder
    Commented Jul 20, 2016 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
    Commented Jul 20, 2016 at 19:51
  • 1
    The footnote package is very old and unmaintained. It's very likely it conflicts with more recent packages.
    – egreg
    Commented Jul 20, 2016 at 20:43

1 Answer 1

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}
1
  • The version with footnotehyper also runs smoothly with an up to date fnpct
    – cgnieder
    Commented Jan 30, 2022 at 17:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .