rolfn / xltabular

LaTeX package which combines longtable and tabularx.
Other
10 stars 3 forks source link

Problems with footnote ordering #13

Open sieversMartin opened 4 years ago

sieversMartin commented 4 years ago

When running into problems with footnotes inside my tabu tables, I decided to switch to tabularx and xltabular. However, my problems persist and are similar to the one described on Stackexchange.

In contrast to the answer there, xltabular has the same problem with the ordering of footnotes while this works in tabularx.

\documentclass{article}

\usepackage{xltabular}
\usepackage{hyperref}

\begin{document}
\begin{xltabular}{\textwidth}{l X}
    1\footnote{Footnote 1} & 2\footnote{Footnote 2} \\
    3\footnote{Footnote 3} & 4\footnote{Footnote 4}
\end{xltabular}

\begin{tabularx}{\textwidth}{l X}
    1\footnote{Footnote 1} & 2\footnote{Footnote 2} \\
    3\footnote{Footnote 3} & 4\footnote{Footnote 4}
\end{tabularx} 
\end{document}
rolfn commented 4 years ago

The problem seems to be related to hyperref. If you load hyperref before xltabular, the order of the footnotes is correct. I don't know the cause at the moment, but maybe this solution will be enough.

sieversMartin commented 4 years ago

Thank you very much. I did not test that before, because of the well-known rule, that hyperref is to load last in the preamble. Almost always as we see here. I will have to check, whether this solves my original problem as well.