If we want to refer to "Lemma 3.4", we can write " Lemma \ref{number9}". Is there a command that the word "Lemma" or "Theorem" or ... appear automatic too? (i.e we write ... and in pdf appear "Lemma 3.4")

Thank you for your help.

  • 2
    Welcome to TeX.SE! Yes it is possible. See e.g. tex.stackexchange.com/a/281224/121799. – user121799 Feb 18 '19 at 3:23
  • Thank you very much. In fact, in my latex, the command "\cref" is enough. – Darman Feb 18 '19 at 3:44
  • I don't think this is a duplicate of the linked question since the problem in that question was that cleveref was loaded after the theorem environments were declared. It is likely a duplicate of this question though. – Circumscribe Feb 18 '19 at 8:07

Browse other questions tagged or ask your own question.