diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-06-20 11:21:32 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-06-20 11:21:32 +0200 |
commit | 6a077ac9c79ac16d6af5409976e48ad80f42fd01 (patch) | |
tree | 5e0ffa5e7d4562cd5329ce207009deb80cf21e78 /test | |
parent | 8af1c065d2791d6e76735a56c0ce22f4ad957b6f (diff) | |
download | pandoc-6a077ac9c79ac16d6af5409976e48ad80f42fd01.tar.gz |
Fixed footnotes in table captions.
Note that if the table has a first page header and a
continuation page header, the notes will appear only
on the first occurrence of the header.
Closes #2378.
Diffstat (limited to 'test')
-rw-r--r-- | test/command/2378.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/command/2378.md b/test/command/2378.md new file mode 100644 index 000000000..801c168ad --- /dev/null +++ b/test/command/2378.md @@ -0,0 +1,27 @@ +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}\tabularnewline +\midrule +\endfirsthead +\toprule +x & y{}\tabularnewline +\midrule +\endhead +1 & 2\tabularnewline +\bottomrule +\end{longtable} +``` |