I am using the amsbook
class and amsthm
package as follows :
\theoremstyle{plain} %% This is the default, anyway
\newtheorem{thm}[equation]{Theorem}
\newtheorem{cor}[equation]{Corollary}
\newtheorem{lem}[equation]{Lemma}
\newtheorem{prop}[equation]{Proposition}
\theoremstyle{definition}
\newtheorem{defn}[equation]{Definition}
\theoremstyle{remark}
\newtheorem{rem}[equation]{Remark}
\newtheorem{ex}[equation]{Example}
\newtheorem{exer}[equation]{Exercise}
\newtheorem{notation}[equation]{Notation}
\newtheorem{terminology}[equation]{Terminology}
%etc
and I would like all theorems, corollaries etc being numbered as
- partnumber.chapternumber when they are inside a chapter and not in any section, subsection or "lower-level" sub-subs-...-subsections
- partnumber.chapternumber.sectionnumber when they are inside a section and not in any subsection, subsection or "lower-level" sub-subs-...-subsections
- etc
I would like the same for equations but I have no idea how to do it.