I've got a problem when I try to use the options thmbox=M
and numbered=no
at the same time in the thmtools
package. Here is a MWE:
\documentclass{minimal}
\usepackage{amsthm}
\usepackage{thmtools}
\declaretheorem[numbered=no, name=TheoremA, ]{mytheo1}
\declaretheorem[ name=TheoremB, thmbox=M]{mytheo2}
%\declaretheorem[numbered=no, name=TheoremC, thmbox=M]{mytheo3} -> Here the error accurs
\begin{document}
\begin{mytheo1}
test1
\end{mytheo1}
\begin{mytheo2}
test2
\end{mytheo2}
\end{document}
The Styles 1 and 2 work great, but uncommenting the third \declaretheorem...
line will produce the error
! LaTeX Error: Missing \begin{document}.
! LaTeX Error: \mytheo3 undefined
Does anybody know, if there's a way to use both, thmbox
and nonumbered
option?