I am trying to color a hyperlink in my cv with a non-standard blue in overleaf. When I load xcolor package, it gives me the error
LaTex Error: Option clash for package xcolor
Am I right in thinking that the moderncv package already loads xcolor by itself and therefore clashes? And if so, why does it not find colors from the reference (https://www.overleaf.com/learn/latex/Using_colours_in_LaTeX#Reference_guide)?
Updated (working) MWE:
\PassOptionsToPackage{dvipsnames}{xcolor}
\documentclass[11pt,a4paper,roman]{moderncv}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.77]{geometry}
\moderncvcolor{blue}
\moderncvstyle{classic}
\name{John}{Doe}
\title{updated \today}
\address{Fantasialand}{}{}
\title{Tex MWE}
\begin{document}
\makecvtitle
\section{}
\cvitem{1.}{\href{https://www.wikipedia.de/}{\color{Turquoise}{Go to Stackexchange}}}
\clearpage
\end{document}
#in the url. – leandriis Jan 25 '21 at 21:23xcolordoes not define a color namedturquoise, it only definesTurquoise. To be able to use the latter color in themoderncvclass, add\PassOptionsToPackage{svgnames}{xcolor}or\PassOptionsToPackage{dvipsnames}{xcolor}before\documentclass, depending on which of the twoTurquoisecolors you want to use. – leandriis Jan 25 '21 at 21:30\PassOptionsToPackage{dvipsnames}{xcolor}in different places and still did not work – Papayapap Jan 25 '21 at 21:36Turqoisewhile, the color ns namedTurquoise. – leandriis Jan 25 '21 at 21:37[dvipsnames]option as an option of\documentclass. – Bernard Jan 25 '21 at 23:34