I want theorems to be labeled of the form Part.Chapter.Section.number so I tried
\renewcommand{\thesection}{\Roman{part}.\thechapter.\arabic{section}}
\newtheorem{book}{Theorem}[section]
\newtheorem{AddProp}[book]{Additive Property of Equality}
\begin{AddProp} Testing \end{AddProp}
But does what I want, but as a side effect it also changes the sections, is there a way to only change the theorem numbering?
Best Answer
To have your
AddProp
"theorem" numbered by section using Part.Chapter.Section.Number, you can use:This will also reset your
book
counter after every new\section
. Here's a minimal example showing the usage/output:If you wish to maintain this structure, but have the
book
counter only reset every\chapter
, then you need to drop the[section]
part from the definition of thebook
theorem, and add the counter reset to yourbook
counter manually:This functionality is provided by the
chngcntr
package as well asamsmath
via user-friendly macros. Since you're usingamsbook
, you could use\numberwithin{book}{chapter}
. See Master and slave counters and perhaps Section numbering with chapter inamsbook
.