長表のp列の脚注は最後のページにリンクします

長表のp列の脚注は最後のページにリンクします

私の MWE では、長い表に 2 つの脚注があります。列の脚注は、lそのテキストに正しくリンクしています。ただし、列の脚注は、pドキュメントの末尾にリンクしています。

\documentclass{article}
\usepackage{hyperref}
\usepackage{blindtext}
\usepackage{longtable}

\begin{document}
\begin{longtable}{lp{.3\textwidth}} 
    Text\footnote{This footnote works} & Text\footnote{This footnote doesn't work}\\
\end{longtable}

\pagebreak
\blindtext
\end{document}

これは longtables パッケージのエラーでしょうか? マニュアルには次のように記載されています:

ロングテーブル特別な注意を払うことで、脚注が「p」列でも使用できるようになります。

このエラーを修正するにはどうすればいいでしょうか?

答え1

簡単に言えば、\usepackage{hyperref}の後です\usepackage{longtable}

hyperref常に最後にロードする必要があります。

これは私にとってはうまくいきます:

\documentclass{article}
\usepackage{longtable}
\usepackage{hyperref}
\usepackage{blindtext}

\begin{document}
    \begin{longtable}{lp{.3\textwidth}} 
        Text\footnote{This footnote works} & Text\footnote{Now this footnote works too}\\
    \end{longtable}

    \pagebreak
    \blindtext
\end{document}

関連情報