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
|
2022-03-30 10:07:09 -07:00
|
|
|
\toprule()
|
2021-01-02 07:56:07 -08:00
|
|
|
x & y\footnote{a footnote} \\
|
2022-03-30 10:07:09 -07:00
|
|
|
\midrule()
|
2017-06-20 11:21:32 +02:00
|
|
|
\endfirsthead
|
2022-03-30 10:07:09 -07:00
|
|
|
\toprule()
|
2021-01-02 07:56:07 -08:00
|
|
|
x & y{} \\
|
2022-03-30 10:07:09 -07:00
|
|
|
\midrule()
|
2017-06-20 11:21:32 +02:00
|
|
|
\endhead
|
2021-01-02 07:56:07 -08:00
|
|
|
1 & 2 \\
|
2022-03-30 10:07:09 -07:00
|
|
|
\bottomrule()
|
2017-06-20 11:21:32 +02:00
|
|
|
\end{longtable}
|
|
|
|
```
|