I'm working a document that has one (very large) chapter, in which theorems, lemmas, etc. are numbered with subsubsection, i.e. the start of the document has the command
\newtheorem{theorem}[subsubsection]{Theorem}
However, the document also has some short chapters, in which theorems etc. are numbered with subsection. At the moment, the only way I can do this is to also define a theorem_ at the beginning of the document:
\newtheorem{theorem_}[subsection]{Theorem}
and use theorem sometimes and theorem_ other times. This seems like an ugly hack, and I'd love it if there were some way I could use \begin{theorem}...\end{theorem} throughout the document, and use some command at the start of each chapter to determine whether theorems were numbered with subsection or subsubsection. Is this possible?
\counterwithin{theorem}{subsection}from the packagechngcntr. – karlkoeller Sep 05 '13 at 17:34theoremshares thesubsubsectioncounter, it's not subordinate to it. So there's no\thetheorem– egreg Sep 05 '13 at 22:25