2017-06-20 11:21:32 +02:00
|
|
|
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
|
2020-11-22 19:54:42 +01:00
|
|
|
x & y\footnote{a footnote} \\ \addlinespace
|
2017-06-20 11:21:32 +02:00
|
|
|
\midrule
|
|
|
|
\endfirsthead
|
|
|
|
\toprule
|
2020-11-22 19:54:42 +01:00
|
|
|
x & y{} \\ \addlinespace
|
2017-06-20 11:21:32 +02:00
|
|
|
\midrule
|
|
|
|
\endhead
|
2020-11-22 19:54:42 +01:00
|
|
|
1 & 2 \\ \addlinespace
|
2017-06-20 11:21:32 +02:00
|
|
|
\bottomrule
|
|
|
|
\end{longtable}
|
|
|
|
```
|