Possible Duplicate:
How to get more complete references
\ref
itself only prints the number of whatever I am referencing - e.g. a chapter/section/subsection or a theorem/lemma/definition (from amsthm
via \newtheorem
).
I would like to have a command which prints also what the \ref
-number actually is. Right now, I am doing it manually as in "in lemma \ref{...}
" or "in section \ref{...}
".
Sometimes I move a \label
somewhere else or make the labeled lemma a theorem or so and I don't want to search manually through the rest of my code to update it (section -> chapter, lemma -> theorem, ...).