The command \footnote is really annoying me. I have to use hacks to use it in section headings, epigraphs, tables, minipages and whatnot.
Can it be fixed? Has someone already implemented a footnote command that Just Works™?
The command \footnote is really annoying me. I have to use hacks to use it in section headings, epigraphs, tables, minipages and whatnot.
Can it be fixed? Has someone already implemented a footnote command that Just Works™?
To get footnote in headings you can use either footmisc or simply the option argument of \section[without footnote]{with footnote}. But I agree with the comments claiming that one shouldn't use footnotes in a section heading.
With minipage (and tabular and \parbox and even \mbox) the problem is that they trap the footnote. You can either use \footnotemark inside such boxes and \footnotetext outside, or you can use the footnote package which offers a lot options to help footnotes escape E.g.
\documentclass{article}
\usepackage[stable]{footmisc}
\usepackage{footnote}
\makesavenoteenv{minipage}
\begin{document}
\section{title\footnote{a footnote}}
\begin{minipage}{5cm}
text\footnote{in minipage} text
\end{minipage}%
\end{document}
See also the FAQ: https://texfaq.org/FAQ-footintab.
Not that I'm aware of, but it might be nice to have. There are numerous issues here:
\section: do you really want a footnote in a section heading? If so, you definitely don't want that footnote to end up in the ToC.
table: tables float, and the idea of a floating object sending a footnote to the bottom of the page is a little weird (mostly in terms of the design, but it would also be a horror to implement). That's why it's usual to use a minipage inside a table and have minifootnotes attached to tables.
minipage: it's often desirable to have minipages have their own minifootnotes (see above). So ideally you need a new \footnote command with the option to break out into the complete page.
epigraph: these are usually set in a minipage, so once so solve the minipage problem you're set.
Perhaps not a 100% signed-up part of the Just Works™ family, but the footmisc package especially with its stable option is probably as perfect as it currently gets. Check it out, I think you'll like it.
stable only fixes the footnotes on section headings.
– Mateus Araújo
Sep 12 '10 at 23:55
:)This is the answer to the question, methinks. – Will Robertson Sep 14 '10 at 00:13footnoteworks, and solves the biggest problem, but I found out that hyperref does not like footmisc. No visible effects, though. – Mateus Araújo Sep 14 '10 at 04:23