I am using the thmtools
package as a frontend to amsthm
to typeset various types of theorems. Sometimes I feel the need to put a footnote either directly at the theorem name or inside the theorem note.
To be preicse, when this is my document:
\documentclass{scrartcl}
\usepackage{amsthm}
\usepackage{thmtools}
\declaretheorem[name=Theorem]{mytheorem}
\begin{document}
\begin{mytheorem}[Some reference]
This statement is true.
\end{mytheorem}
\end{document}
I'd like to put footnotes at the positions indicated here:
For position 1, the solution given here for amsthm
is working fine with thmtools
when changing \thetheorem
to \themytheorem
.
For position 2 there is no problem when just using amsthm
without thmtools
: something like \begin{mytheorem}[Some reference\footnotemark]
followed by a \footnotetext{...}
nearby just works. However, when using thmtools
this results in the following error:
! Argument of \@begintheorem has an extra }.
<inserted text>
\par