# Referencing theorems by numbers [duplicate]

This question already has an answer here:

I was wondering if there was a way that I could reference the numbers of the theorems in my document would actually having to write "theorem 1.11". So that if the numbering of my theorems change then my referencing of them automatically does as well?

Thanks for any help

## marked as duplicate by Ian Thompson, user31729, Jesse, moewe, MasroorJun 7 '14 at 14:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

• @IanThompson that is about referencing sections and my question is about referencing theorems/lemmas. I thought there might be a way to do what is in that link automatically for theorems. – hmmmm Jun 7 '14 at 12:38
• @IanThompson It would be good if you update your answer to cover also this case. – egreg Jun 7 '14 at 12:53
• @egreg --- done. – Ian Thompson Jun 7 '14 at 13:00
• @IanThompson I meant adding something that can cover also this problem. A newbie might not know that \label is allowed also after \begin{thm} and so on. – egreg Jun 7 '14 at 13:02
• @egreg --- ok, I see what you mean. – Ian Thompson Jun 7 '14 at 13:08

## 1 Answer

You can use the cleveref-package to solve your problem.

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\usepackage{cleveref}
\newtheorem{theorem}{Theorem}

\begin{document}
\begin{theorem}\label{Th_1}
This is my theorem
\end{theorem}

From \cref{Th_1} ...

\end{document}