I am using package thmbox
to write theorems. If I include footnote
or marginpar
within the body of a theorem, the following problems arise: the text of the footnote
is simply missing, while the marginpar
produces the error Float(s) lost.
, and then the text of the marginpar
is also missing. The same occurs with package thmtools
with optin thmbox
. It seems that the first problem can be solved following the answers in this question. Is there a better solution? What about the second problem? An example follows.
\documentclass{article}
% LaTeX original ==> OK
%\newtheorem{theorem}{Theorem}
% package thmbox ==> wrong
\usepackage{thmbox}
\newtheorem{theorem}{Theorem}
% package thmtools with option thmbox ==> wrong
%\usepackage{thmtools}
%\declaretheorem[thmbox=M]{theorem}
\begin{document}
\begin{theorem}
Marginpar\marginpar{marginpar.}
Footnote\footnote{footnote.}
\end{theorem}
\end{document}