I have theorems, definitions, statements, that look like as follows
\section{1}
\subsection{1}
Theorem 1.1.1 ….
Statement 1.1.2 ….
Definition 1.1.3….
\subsection{2}
Theorem 1.2.1 ….
Statement 1.2.2 ….
Definition 1.2.3….
Instead of it, I want to have this:
\section{1}
\subsection{1}
Theorem 1.1 ….
Statement 1.2 ….
Definition 1.3….
\subsection{2}
Theorem 2.1 ….
Statement 2.2 ….
Definition 2.3….
i.e in my document I do not need at all section numbering in these environments. What shall I to do?
Best Answer
With package
remreset
the reset dependencies can be removed. For example, if countertheorem
is reset if countersubsection
is incremented, thenthe resetting is removed.
The other way
\@addtoreset
does not need a package. For example, if countertheorem
should be reset if countersection
is incremented:The appearance of the counter is controlled by
\the<counter>
. For example, in the latter case it could be redefined to:Macro
\numberwithin
of packageamsmath
performs both steps, adding reset dependency and renaming\the<counter>
:I hope, you get the idea. A minimal working example is missing. Thus it is not clear to me, what you are doing. Especially the numbering inside subsections is quite unusual. Perhaps it is wise to check the preamble if this is not intended.
Also it looks even more odd, if the numbering occurs inside subsections without the section number, but with subsection number. The numbers are not unique, thus it is not clear which theorems are meant if only the reference is given.
I would keep the numbering scheme easy and understandable:
Plain numbers without resetting at all: Theorem 1, Theorem 2, …
Numbering in a large entity like chapter or section, if the class does not provide chapters:
Then the reader has a chance to understand the numbering without going in deciphering mode.