12.6 \newtheorem
\newtheorem{newenv}{label}[within]
\newtheorem{newenv}[numbered_like]{label}
This command defines a theorem-like environment. Arguments:
- newenv
- The name of the environment to be defined; must not be the name of an
existing environment or otherwise defined.
- label
- The text printed at the beginning of the environment, before the
number. For example, ‘Theorem’.
- numbered_like
- (Optional.) The name of an already defined theorem-like environment;
the new environment will be numbered just like numbered_like.
- within
- (Optional.) The name of an already defined counter, a sectional unit.
The new theorem counter will be reset at the same time as the
within counter.
At most one of numbered_like and within can be specified,
not both.