[Tex/LaTex] Theorem (definition) numbering


I have two definitions defined as follows:

\newtheorem{definition_1}{Definition 1}[chapter]
    Definition 1 text here.

\newtheorem{definition_2}{Definition 2}[chapter]
    Definition 2 text here.

With references to them as


Both give me the same definition number (3.1). I have enabled the associated package:


How do I fix this?

Best Answer

You needn't define a new environment at each use:



Text of the definition

Text of the second definition

\ref{defa} and \ref{defb}

All theorem-like environment are declared before \begin{document}.

Related Question