I'm trying to number equations following theorem-like environments. So I write
\declaretheorem[name=Theorem,sibling=equation]{thm}
But then there are errors:
Command \@thm already defined.
No counter 'thm' defined.
\thm undefined.
However, even if I change my code to
\declaretheorem[name=Theorem,sibling=equation]{theorem}
or something other than "thm", the problem disappears.
I wonder why this happens?
Here is my sample:
\documentclass{article}
\usepackage{amsmath}
\usepackage{thmtools}
\numberwithin{equation}{section}
\declaretheorem[name=Theorem,sibling=equation]{thm}
\begin{document}
\section{MWS}
\begin{thm}
content
\end{thm}
\end{document}

thmtools. I sent mail to the package author. – egreg Apr 15 '18 at 21:01thmtoolsfor a particular reason, so this may be irrelevant, but it's an alternate methos. usingamsthmjust specify your theorem objects this way:\newtheorem{thm}[equation]{Theorem}. – barbara beeton Apr 16 '18 at 01:17