Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Footnotes in table captions & latex/pdf output #4683

Closed
njbart opened this issue Jun 2, 2018 · 0 comments
Closed

Footnotes in table captions & latex/pdf output #4683

njbart opened this issue Jun 2, 2018 · 0 comments

Comments

@njbart
Copy link

njbart commented Jun 2, 2018

While figure captions have been fixed to allow footnotes (see #1506; c4ea642), it seems table captions have somehow slipped through the cracks.

MWEs:

pandoc -o test.pdf << EOT
![A picture^[from https://en.wikipedia.org/wiki/Flower]](https://upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Flower_poster_2.jpg/330px-Flower_poster_2.jpg)
EOT

works nicely, while

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}

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants