Hi, I'm using package amsthm. My theorem is in section 1. I want to number my theorem such that it has the section number, so I used:
Code: Select all
\newtheorem{theorem}{Theorem}[section]
So my theorem is called Theorem 1.1
Now in section 2, I have my lemma, but I also want my lemma to use the theorem counter (i.e. it should be called Lemma 1.2), so I did:
Code: Select all
\newtheorem{lemma}[theorem]{Lemma}
But instead of following the theorem counter, it seems that the section counter inherited from theorem took over, so my lemma is numbered as Lemma 2.1. Is there any way to number my lemma after my theorem consistently across different sections? I'm thinking of maybe setting the lemma counter manually, but then it wouldn't reference the theorem counter. Another fix that would work for me is Theorem 1.1 and then Lemma 1.1.1 (still in a different section), but I don't know how to do that.
Any help greatly appreciated!