TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 : http://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?

share|improve this question
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
up vote 3 down vote accepted

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.

share|improve this answer
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 posting your answer, you agree to the privacy policy and terms of service.

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