# [texhax] footnotes in pictures, tables, etc.

Uwe Lück uwe.lueck at web.de
Wed Jun 27 19:09:25 CEST 2007

>On  26 Jun, 2007, at 11:40, Charla Mustard-Foote wrote:
> > I'm trying to insert footnotes inside a picture and so far it isn't
> > working.  I've tried various combinations of \footnotemark and
> > \footnote text, with [number] but the numbers aren't incrementing
> > correctly AND the footnotes aren't showing up at the bottom
> > of the page with the other footnotes.  I have text with footnotes
> > before and after the picture so, I want them to just appear
> > in the same list, with the next number in the sequence.
At 11:30 27.06.07, Axel E. Retif wrote:
>Maybe the manyfoot package (part of the ncctools collection) could

No, definitely not. I know manyfoot's internals. The extra smart macros
you need rather are table etc. macros than footnote macros.
(They may redefine \footnote such that the footnote text is stored in a hook
that eventually will execute \footnotetext's.)
Cf. the UK FAQ on footnotes in tables and in captions:

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=footintab

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=ftncapt

Here is workaround for the problem of more than one footnote
"in a prison":

\newcounter{save}
\newcommand{\transferto}[2]{\setcounter{#2}{\value{#1}}}
\newcommand{\stepfootnotetext}{\stepcounter{footnote}\footnotetext}

Alpha\footnote{alpha}
\transferto{footnote}{save}
\begin{tabular}{c}
A\footnotemark\\B\footnotemark
\end{tabular}
\transferto{save}{footnote}
\stepfootnotetext{a}
\stepfootnotetext{b}
Omega\footnote{omega}

I also have some private macros using labels to find the
correct footnote number. And it appears to me that I found
a much smarter package of this kind somewhere else.
But right now it comes to my mind that I rather should
generalize the hook thing -- but I must stop here.

HTH -- Uwe.