0

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

\newtheorem{Definitio}{Definition}[subsubsection]

and

\newtheorem{Theorem}{Theorem}[subsubsection].

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

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

\newtheorem{Definitio}[thm]{Definition}

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

\newtheorem{Theorem}{Theorem}[subsubsection]

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

\newtheorem{Theore}[Theorem]{Theorem}

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?

2
  • 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

0

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.