I have a problem with theorem numbering in LaTeX. I can make it number by subsection, e.g
Theorem 1.2.1
for the first theorem in the second subsection of the first section. But I need it to show me only the numbers of the subsection and the theorem, but not the section number, like this:
Theorem 2.1
I use
\newtheorem{thm}{Theorem}[subsection]
for the numbering.
Putting the following code in the preamble seems to have the desired effect:
\usepackage{amsthm}
\newtheorem{thm}{Theorem}[subsection]
\renewcommand{\thethm}{\arabic{subsection}.\arabic{thm}}
I don't understand why you want this particular theorem numbering system, but the code does what you want:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With