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.

closed as unclear what you're asking by egreg, LaRiFaRi, jub0bs, user13907, Przemysław Scherwentke Aug 20 '15 at 11:08

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 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. – barbara beeton Jul 21 '15 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 Jul 21 '15 at 5:10

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 Jul 21 '15 at 8:38

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