Code proposed by David Carlisle works out-of-the box, cause has no package dependencies. It's comfortable solution of dealing with footnotes in environments needing \footnotemark+footnotetext.

I have no problems in using it with \vbox and itemize.

However when I try to apply it to centred tabular I encounter problem - footnotes are not rendered, only footmarks:


%Thanks to David Carlisle for pushftn and popftn : https://tex.stackexchange.com/a/43695/7128
                    [\the\csname c@\@mpfn\endcsname]}%
     \csname c@\@mpfn\endcsname #1\relax



X & Y \\
a & b \footnote{AB} \\
c & d \footnote{CD} \\


What am I doing wrong?

  • The table environment builds a box; so \pushftn must go inside it. Of course this will fail if the table is typeset as a page float. – egreg Feb 8 '12 at 15:39
  • Also you might want to replace \begin{center} by \centering and delete \end{center}. – Stephen Feb 8 '12 at 18:22

Ah, you had me confused there for a while. Stick \begingroup before the push and \endgroup before the pop.

the idea is that you locally redefine the footnote commands to save their contents but the code assumes that by the time you execute the saved commands they have their normal meanings back, otherwise they just save their contents again.

Note though that lifting the footnotes out of the floating table is inherently fragile, if the table floats off to another page, the footnotes will not float with it, and if it ends on a p float page, LaTeX does not support footnotes on such a page.

  • Thank you. Now it works :) \begingroup and \endgroup solves problem. Your description clarifies me how all this works. Good point of not using footnotes inside floats, I've forgot about this. – Grzegorz Wierzowiecki Feb 8 '12 at 16:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.