Pursuant to the answer to my question at An error I get trying to number tables consecutively with theorems,
I can number tables and theorems consecutively without anything breaking. I would like to also have a thm environment, functionally the same as theorem but easier to type, which is also numbered the same way tables are. Here is a MWE:
\documentclass{article}
\usepackage{amsthm,thmtools}
\newtheorem{thm}[table]{Theorem}
\begin{document}
\begin{thm}
\end{thm}
\end{document}
Running this code tells me that thm is already defined, but on the other hand, if I excise the \newtheorem line, I'm instead warned that thm is not defined. It seems like I just can't win. What to do?
P.S.: The code compiles and complies without complaint if I remove the thmtools package; however, I do need thmtools for my real document.
\newtheorem{tbthm}[table]{Theorem}? that's why differently named theorem environments are permitted, even encouraged. – barbara beeton Mar 08 '15 at 14:04thmis already defined, and defining theorems isn't done with\newcommandor\newenvironment, you really do need to give it a different name. that is what @yo' has done. then\letlets you use the same name without technical conflict; just be sure that you never want to use the original meaning again, and also observe that, sincethmis an environment, both the beginning and end must be taken care of. – barbara beeton Mar 09 '15 at 12:29