1

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: mockup for footnotes in thmtools

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
2

Of course, after carefully phrasing a question and preparing a MWE, I figured out how to achieve the desired result.

This seems to be the common problem of a fragile command in a moving argument and using \protect fixes that.

So the following works:

\documentclass{scrartcl}
\usepackage{amsthm}
\usepackage{thmtools}
\declaretheorem[name=Theorem]{mytheorem}
\begin{document}

\begin{mytheorem}[Some reference\protect\footnotemark]
    \footnotetext{This is a footnote}
    This statement is true.
\end{mytheorem}
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.