I'm using moderncv and by default the links I set via \href{}{} seem to have the same color as normal text. How do I change their color?
I tried to add (according to How to change the color of \href links... for real):
\definecolor{links}{HTML}{2A1B81}
\hypersetup{colorlinks,linkcolor=,urlcolor=links}
The document failed building with
Undefined control sequence. l.33 \hypersetup
{colorlinks,linkcolor=,urlcolor=links}
Another failed try was:
\usepackage[colorlinks=true,linkcolor=black]{hyperref}
That gave the error:
LaTeX Error: Option clash for package hyperref.
linksis not a valid color? – Johannes_B Oct 31 '15 at 11:43\hypersetupused before\usepackage{hyperref};-) – Oct 31 '15 at 11:49hyperrefis loaded with\AtEndPreambleso one can try\hypersetup{colorlinks,linkcolor=,urlcolor=links}after\begin{document}but I am not sure it will work. – touhami Oct 31 '15 at 11:59PassOptionsToPackage– Johannes_B Oct 31 '15 at 12:07templatebeing smart but actually making it much more difficult for the user to change stuff. Fixed-output (given) vs. non-fixed output (what the op wants) – Johannes_B Oct 31 '15 at 12:08