In a math article one usually writes for a theorem (or proposition or corollary) in latex:
\begin{theorem} \label{theorem1}
....
\end{theorem}
Now I can reference to this theorem in the article using \ref{theorem1}. For example I can say:
In \ref{theorem1} we saw that .....
In the article this will be displayed as (when the theorem has number (lets say) 1.6.)
In 1.6 we saw that ....
Question: How can I modify the command \ref{theorem1} so that instead of just "1.6" in the text we see "Theorem 1.6" instead ( Or Proposition or Corollary instead of theorem)?
So the output should be
In Theorem 1.6 we saw that ....
Of course I can just write "Theorem" before the "\ref{theorem1}" but I wonder whether there is an automatic way to write the theorem (or propositon or corollary) before the number 1.6.
nameref{}work? Requires the package with the same name and alsohyperref, if I remember correctly. – TVL Jan 17 '21 at 11:37amsmathhas nothing to do with theorem names. I'm assuming you meantamsthm, and have changed the tag accordingly. – barbara beeton Jan 17 '21 at 16:22