mirror of
https://github.com/jgm/pandoc.git
synced 2026-10-03 20:57:48 +00:00
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.
480 B
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}