I want to reference a section with cleveref
like in the following example:
\section{Foobar}
\label{sec:foobar}
See \cref{sec:foobar}.
The output of this is:
See section 1.
But what I would like is this:
See section 1 Foobar.
I understand that there is no command by default, that produces this output.
So I tried to build my own command like suggested for the hyperref
package in this question. However, I could not find an equivalent command to hyperref
's \nameref
in cleveref
's documentation.
Is it possible to create a new command, that produces my desired output?
hyperref
and use its\nameref
command on top ofcleveref
.