pandoc/test/command/2378.md
John MacFarlane b5b5ef92cb LaTeX writer: Improve table spacing.
+ Remove the `\strut` that was added at the end of minipage
  environments in cells.

+ Replace `\tabularnewline` with `\\ \addlinespace`.

Closes #6842, closes #6860.
2020-11-22 10:54:42 -08:00

27 lines
439 B
Markdown

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
x & y\footnote{a footnote} \\ \addlinespace
\midrule
\endfirsthead
\toprule
x & y{} \\ \addlinespace
\midrule
\endhead
1 & 2 \\ \addlinespace
\bottomrule
\end{longtable}
```