Welcome to the UK List of
TeX Frequently Asked Questions
on the Web

Searching

The index of Frequently Asked Questions about TeX is searchable.

Please enter your keyword here:   then press here: ,    or:
Google

Footnotes in captions

Footnotes in captions are especially tricky: they present problems of their own, on top of the problems one experiences with footnotes in section titles (footnotes migrating to to the list of figures or tables, or apparently random errors because \footnote is a fragile command), and with footnotes in tables (typically, the footnote simply disappears). Fortunately, the requirement for footnotes in captions is extremely rare: if you are experiencing problems, it is worth reviewing what you are trying to say by placing this footnote: other options are to place text at the bottom of the float, or to place a footnote at the point where you refer to the float.

Note that the threeparttable scheme (see, again, footnotes in tables) also applies to notes in captions, and may very well be preferable to whatever you were thinking of.

If you are going to proceed:

so we have:

\begin{figure}
  \begin{minipage}{\textwidth}
    ...
    \caption[Compact Routing Example]%
    {Compact Routing\footnote{something} Example}
  \end{minipage}
\end{figure}

So, we make an entry for the List of Figures, which doesn’t hold troublesome commands, such as \footnote.

However, as well as all of the above, one also has to deal with the tendency of the \caption command to produce the footnote’s text twice. For this last problem, there is no tidy solution this author is aware of.

If you’re suffering the problem, a well-constructed \caption command in a minipage environment within a float (as in the example above) can produce two copies of the footnote body “something”. (In fact, the effect only occurs with captions that are long enough to require two lines to be typeset, and so wouldn’t appear with such a short caption as that in the example above.)

The documentation of the ccaption package describes a really rather awful work-around for this problem.

ccaption.sty
macros/latex/contrib/ccaption (or browse the directory); catalogue entry
threeparttable.sty
macros/latex/contrib/threeparttable (or browse the directory); catalogue entry

This answer last edited: 2012-04-12


Go to previous question, or next question

Go to FAQ home.

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

Comments, suggestions, or error reports? - see “how to improve the FAQ”.

This is FAQ version 3.27, released on 2013-06-07.