Cleveref and hyperref: order matters
In order to make cleveref and hyperref LaTeX packages work together:
\usepackage{hyperref}
\usepackage{cleveref}
Be careful, the order matters. I just spent the 20 last minutes figuring that out...
Latter on, instead of using:
... fig.~\ref{fig:lab} ...
If you want to spare some keystrokes, you can simply use:
... \cref{fig:lab} ...
Reference type names can easily be changed, e.g.:
\crefname{equation}{equation}{equations}
\crefname{figure}{figure}{figures}
And so on.
Written by 0asa
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#