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?


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}.

  • How to make this compatible with \Cref ? – Sari Sep 28 '18 at 15:05
  • @Sari Isn't it out of the box? – egreg Sep 28 '18 at 15:13
  • No, it shows ??? NUMBER. – Sari Sep 28 '18 at 15:18
  • 1
    @Sari I added \usepackage{cleveref} after \usepackage{amsthm} and changed \ref into \Cref. This picture (click) shows the expected output. – egreg Sep 28 '18 at 15:36
  • Great, my cleverref was before amsthm. It worked, thank :) – Sari Sep 28 '18 at 15:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.