Files
pandoc/test/command/2378.md
T
John MacFarlane 57272eab32 LaTeX writer: don't use footnotehyper for notes in longtable.
Instead, generate them manually as we do for floating tables.

This removes our dependency on footnotehyper, and solves a
compatibility problem with `endfloat`.

Closes #11857.
2026-09-20 11:33:39 -07:00

480 B

Ensure that we don't get duplicated footnotes when a note occurs in a header cell and \endfirsthead is used.

% pandoc -t latex
| x | y[^fn] |
|-|-|
|1|2|
: a table

[^fn]: a footnote
^D
\begin{longtable}[]{@{}ll@{}}
\caption{a table}\tabularnewline
\toprule\noalign{}
x & y\footnotemark{} \\
\midrule\noalign{}
\endfirsthead
\toprule\noalign{}
x & y{} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
1 & 2 \\
\end{longtable}
\footnotetext{a footnote}