I am writing an article in WinEdt (Windows 7), but it's creating problem in numbering the theorems in subsections. My article consists of different sections. In section 3 it starts with a Lemma and by the \begin{lemma} command it takes the number "Lemma 3.1", which is as desired. But next when I declare \begin{theorem} then it takes the number "Theorem 3.2", which should be "Theorem 3.1". Please help me to overcome this problem.

  • 3
    welcome to tex.sx. how theorem-like objects are numbered depends on how they are defined (in the preamble of your document), which in turn depends on the theorem package and/or the document class being used. you haven't identified either, so we don't have enough information to go on. what would be most helpful is a "minimum example", beginning with \documentclass and ending with \end{document} that can be cut-and-pasted for experimentation. Commented Jul 21, 2015 at 4:15
  • 1
    What are you getting is more natural (better) than what you want, (theorems, lemma, corollary) should be numbered in continous way.
    – touhami
    Commented Jul 21, 2015 at 5:10

1 Answer 1


If you are using amsmath package, the default is for each newtheorem to be numbered separately. In your preamble, you should see something like


The ABC is the codename you use in the \begin command; and DEF is what is displayed (e.g. "Lemma"). GHI says how they should be numbered (chapter/section/subsection, etc.).

If the lemmas and theorems are numbered together, then your preamble probably looks like


In this case, JKL is the codename as before, PQR is the display name as before. However, MNO is a reference for another theorem environment that specifies that JKL and MNO should be numbered together (so in your example lemma has MNO=theorem; or theorem has MNO=lemma; or both has MNO=some other environment).

I hope this helps =)

  • 1
    You could significantly improve this answer by showing a full example and a screen shot
    – user31729
    Commented Jul 21, 2015 at 8:38

Not the answer you're looking for? Browse other questions tagged .