Open Aariq opened 3 years ago
Hi, a workaround around this is to add links using: "\\href{https://github.com/mitchelloharawild/vitae/}{\\textcolor{blue}{Text}" . At least working for me. Still, support in the YAML header would surely be nice.
I add this to my YAML and it works:
header-includes:
- \definecolor{linkscolor}{HTML}{026dbb}
- \hypersetup{colorlinks=true, linkcolor=linkscolor, filecolor=linkscolor, urlcolor=linkscolor, urlbordercolor=linkscolor}
Hmm, doesn't work for me still. I get
! Undefined control sequence.
l.41 \hypersetup
{colorlinks=true, linkcolor=linkscolor, filecolor=linkscolor...
and if I add -\usepackage{hyperref}
then I get ! LaTeX Error: Option clash for package hyperref.
@acircleda's workaround works for me (thanks!). Having the option to directly set it in the YAML would still be a useful feature, I think.
Links appear formatted the same as the rest of the text (at least in moderncv). It would be nice if they (optionally) were formatted blue. For
pdf_document
this is controlled by the YAML optionsurlcolor
andlinkcolor
.