You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pandoc -o test.pdf << EOT
One Two
----- -----
Three Four
Five Six
: A table caption^[With a footnote]
EOT
fails with the error message
Error producing PDF.
! Use of \LT@array doesn't match its definition.
\@ifnextchar ... \reserved@d =#1\def \reserved@a {
#2}\def \reserved@b {#3}\f...
l.121 ... table caption\footnote{With a footnote}}
My understanding is that the strategy used for figures, i.e.
\begin{figure}
...
\caption[caption without footnote, for lof]{caption with footnote replaced by\footnotemark}
\end{figure}
\footnotetext{The footnote}
While figure captions have been fixed to allow footnotes (see #1506; c4ea642), it seems table captions have somehow slipped through the cracks.
MWEs:
works nicely, while
fails with the error message
My understanding is that the strategy used for figures, i.e.
should be used for (long)tables, too.
If I understand https://tex.stackexchange.com/questions/50151/footnotes-in-longtable-captions correctly,
\footnotetext{}
may even be used inside a longtable environment, as long as it does not appear in the ‘head’ or ‘foot’ sections of the table.The text was updated successfully, but these errors were encountered: