I have to change my counter level from 4 to 2 and now the theorems increase the section counter. I am using amsmath and amsthm packages, my old counter code is:
\usepackage{amssymb,amsmath,amsthm,mathrsfs}
\theoremstyle{definition} % Defi style
\newtheorem{defi}[subsubsection]{Definition} % defi
\newtheorem{bei}[subsubsection]{Beispiel} % beispiel
\theoremstyle{theorem} % Satz style
\newtheorem{satz}[subsubsection]{Satz} % Satz = Theorem
\newtheorem{lem}[subsubsection]{Lemma} % lemma
\newtheorem{kor}[subsubsection]{Korollar} % korollar
\newtheorem{prin}[subsubsection]{Prinzip} % prinzip
\theoremstyle{remark} % bemerkung style
\newtheorem*{bem}{Bemerkung} % bemerkung
I would like to have the following count:
1 Chapter
1.1 Section
1.1 Definition
1.1.1 Subsection
1.2 Definition
1.3 Theorem
1.4 Example
1.5 Definition
1.1.2 Subsection
1.6 Theorem
1.2 Section
2 Chapter
2.1 Theorem
2.1 Section
...
The counter should be continuous and should not affect the chapter counter.
Thanks in advance!!!