# \ref including “lemma”, “theorem”, “section” or whatever [duplicate]

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, ...).

-

## marked as duplicate by Werner, Ulrich Schwarz, yo', egreg, Joseph Wright♦Jul 10 '12 at 8:09

Seems I was too stupid to search. It looks like the package cleveref does mostly what I want.