Apologies if this question has been asked before. It seems like it should have been, but I can't find it.

I am numbers theorems, lemmata, corollaries, etc by subsubsection. At the moment, the commands I'm using in my pre-amble look (for example) like




I want the numbering of definitions and theorems (etc) to take into account both previous definitions and theorems. For example, if I give Definition at the start of a section, the subsequent theorem should be labelled Theorem Similarly, if it were the other way around, I'd want Theorem and then Definition

What is the correct way to do this? In this answer, it says that I need to put something like


where "thm" is an already-existing environment set up with a counter that I want. This makes sense, so then I need to set up the "thm" environment with the correct counter in the first place. How do I set that counter? Setting


works, but then using that environment results in such theorems being numbered by section. In this situation I can set up a new, alternative theorem environment with


and never use the original "theorem" environment, but this seems a little bit weird to set up some kind of "dummy" environment just to get the counter counting what I want. Is there a "proper" way to do this, without setting up an environment which I'll never use?

  • Try \newtheorem{Definitio}[Theorem]{Definition} (or the converse).
    – Bernard
    Nov 17, 2020 at 15:19
  • 1
    Just reuse the counter generated by your first \newtheorem
    – daleif
    Nov 17, 2020 at 15:22


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.