How can I customize the cleveref
package such that when I type
\begin{equation}
A = B
\label{eqn:test}
\end{equation}
\cref{eqn:test}
then the output is
Eq. (1)
where Eq. is black and (1) is blue with hyperlink?
cleverefcross-referencinghyperref
How can I customize the cleveref
package such that when I type
\begin{equation}
A = B
\label{eqn:test}
\end{equation}
\cref{eqn:test}
then the output is
Eq. (1)
where Eq. is black and (1) is blue with hyperlink?
Best Answer
For those that like colourful links etc. ;-)
Label formats for individual counter types can be changed with
\creflabelformat{counter type}{#2Y#3}
where Y stands for some formatting code with should contain the parameter#1
#2
and#3
are used by the hyperanchors and must appear in this order -- do not change or remove this!As can be detected from the screen shot the cross-reference format for the table counter is not affected by this.