When I try to put a footnote into a definition environment (or theorem, etc.) it fails, whereas it works well in plain text...
How can I fix it? (N.B. I use thmbox, I don't know if this have an incidence).
When I try to put a footnote into a definition environment (or theorem, etc.) it fails, whereas it works well in plain text...
How can I fix it? (N.B. I use thmbox, I don't know if this have an incidence).
Use \footnotemark inside the definition environment, then outside the environment (it might have to be after another paragraph) place \footnotetext{...}.
Worst case, you might have to hard-code the footnote number like \footnotetext[7]{...}.
You may try with the ntheorem package the pair footnotemark/footnotetext. Or use mdframed, which cooperates with amsthm as well as ntheorem ; it places the footnote at the end of the environment, somehow like threeparttable. Both work fine on the following example:
\documentclass[11pt]{book} %
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xcolor}%
\usepackage{amssymb,amsmath}
\usepackage{framed}
\usepackage[amsmath,framed]{ntheorem}
\newframedtheorem{Prop}{Proposition}
\usepackage[ntheorem]{mdframed}
\newmdtheoremenv[backgroundcolor = lightgray]{proposition}[Prop]{Proposition}
\theoremclass{Theorem}
\theoremstyle{break}
\begin{document}
\begin{Prop}Example withc framed. \footnotemark\end{Prop}\footnotetext{Just to see! }
\begin{proposition}
Example with mdframed \footnote{Just to see! }
\end{proposition}
\end{document}
Here is the resulting pdf:
Seems to be the same effect as for floats. Perhaps the combination of \footnotemark and \footnotetext can help.
\footnotemark[7]\footnotetext{foo} doesn't work. It produces the right footnotemark, but the text is still missing.
– Seamus
Oct 06 '10 at 16:32
\footnotetext{foo} outside the thmbox environment almost works: the footnote text appears, but with the wrong mark: with a 0 in my case...
– Seamus
Oct 06 '10 at 16:33
Yes, this is precisely this problem : the footnote number appears, but the footnote itself is absent.
– Oct 06 '10 at 17:17