Apologies for wording my question strangely, but here's what I am asking. So I have the following commands:







When I do say three definitions they come up as Definition 1.1, 1.2 and 1.3 which is great, but when I do say a lemma after them it says Lemma 1.1, how do I change it so that it says Lemma 1.4?

Thank you.


1 Answer 1


When defining theorem environments with amsthm, you can group counters with an optional argument of the \newtheorem command. You can use the optional arguments of \newtheorem in two different ways:

\newtheorem{<environment name>}{<text>}[<parent counter>]


\newtheorem{<environment name>}[<shared counter>]{<text>}

The first option is the one you use in your example. The second option allows you to define a new theorem environment with a counter from another that you already defined. Then both environments will be numbered using the same counter. You can use the same counter for more than two environments if you want.

Here's a small example to show how it works. For more details, see the package documentation of amsthm.


\usepackage{amsmath, amsthm}



\section{First section}

First definition.

Other definition.

First lemma.

First theorem.


  • Thank you very much :)
    – mathlover
    Dec 2, 2019 at 10:28

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.