egreg kindly answered my (previously-asked) question about giving numbers the same numbering as theorems here:
Numbering tables sequentially.
Unfortunately, this very good solution seems to be incompatible (in what is hopefully an easily fixable way) with preexisting code I've grown attached to. Here's a parody version of my document.
\documentclass{article}
\usepackage{amsmath,amsthm,thmtools,float,cleveref}
\declaretheorem[name=Theorem,numberwithin=section]{thm}
\newtheorem{theorem}[thm]{Theorem}
\newtheorem{corollary}[thm]{Corollary}
\newtheorem{theorem}[table]{Theorem}
\begin{document}
Look at \Cref{TABLE}!
\begin{restatable}{theorem}{TheThm}\label{THM}
I said to look at \Cref{TABLE}!
\end{restatable}
\begin{theorem}[Best theorem]
Hello, world!
\end{theorem}
\begin{table}[H]
\caption{Good table-caption}\label{TABLE}
\begin{center}
\begin{tabular}{l | l}
ABCD & EFG \end{tabular}
\end{center}
\end{table}
That was so exquisite we must recapitulate:
\TheThm*
\end{document}
I get the following warning: LaTeX Error: Command \theorem already defined. Or name \end... illegal, see p.192 of the manual. It seems to be in part because I have \newtheorem{theorem}[thm]{Theorem}. But if I remove that, the document doesn't seem to know what a Theorem is anymore.
Removing thmtools gives a different error, but I want to use the restatable environment.
My naive guess for what to do with
\newtheorem{theorem}[table]{Theorem}
so as to obviate against the error—namely, to replace it with
\newtheorem{table}[thm]{Table}
—does not meet with success either.
I'd also like a way to make the text "Table X.X" bold like the theorem headings, if that's possible. Perhaps that should be another question.


tablecounter? What if I had figures as well? What's the reasoning against mixing\declaretheoremwith\newtheorem? I have many more theorem-types in the real document, and would rather not have to have a separate\numberwithinstatement for each. – jdc Dec 15 '14 at 08:14