I need to use a minipage environment and I need a footnote in that minipage. I want the footnote to be numbered in the normal footnote sequence and to occur together with the rest of the footnotes in my document. But, as this minimal example shows:
\documentclass{article}
\begin{document}
Spam
\begin{minipage}{.5\linewidth}
Foo\footnote{bar}
\end{minipage}
Ham
\end{document}
the obvious thing produces a footnote that 1) appears at the bottom of the minipage, and not the page itself, and 2) is "numbered" alphabetically.
How can I get a regular footnote in a minipage?

hyperrefas expected – skpblack Jul 16 '14 at 21:41\footnotemarks inside a singleminipage, all\footnotetexts are printed with the same counter (the last one appearing in theminipage). Is there some way to avoid this behavior? – Janosh Nov 19 '16 at 08:00\footnotemarkand\footnotetexttake an optional argument[num]which you can use to control the numbers used. See http://www.forkosh.com/latex/ltx-232.html and http://www.forkosh.com/latex/ltx-234.html You will need to manually keep track of the footnotes (e.g. by keeping count of how many you used like in this answer or by stashing the counters somewhere yourself and recalling them outside the minipage. – Willie Wong Nov 20 '16 at 22:55