The cleveref
has two main citation commands: \Cref
and \cref
depending on whether you're referencing in the beginning of the sentence (producing Figure 1
) or anywhere else (producing the abbreviated form fig. 1
).
On rare occasions though, one may want to have the "long" label in the middle of a sentence. How can I have that single label in lowercase? This answer makes all references in small caps, but I'm looking for a solution to keep the standard as provided by the cleveref
package, but change it to lowercase ad hoc in some situations.
Ideally I'd like to have a command (say \smallCref
) producing figure 1
when needed.
Thanks in advance for any help!
\documentclass{scrreprt}
\usepackage{cleveref}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\includegraphics[width=0.5\linewidth]{example-image-a}
\caption{Foo\label{fig:foo}}
\end{figure}
\Cref{fig:foo} shows a correct usage of \verb|\Cref{}| at the beginning of the sentence. Whereas we can see how to use \verb|\cref{}| at the end of a sentence (\cref{fig:foo}).
\par Sometimes though, one may want to reference \Cref{fig:foo} with the complete label ``figure'', but having it capitalized in the middle of a sentence is weird. How can I have that single reference in smallcaps, leaving all other references in the document in the original capitalization?
\end{document}
cleveref
, but a quick and dirty hack would be using\lcnamecref{fig:foo}~\labelcref{fig:foo}
. Maybe somebody comes up with a clean solution, but this will do in the meantime...