Last Updated: February 25, 2016
·
3.788K
· 0asa

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.