Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for urlcolor: in YAML #175

Open
Aariq opened this issue Jul 29, 2021 · 4 comments
Open

Support for urlcolor: in YAML #175

Aariq opened this issue Jul 29, 2021 · 4 comments

Comments

@Aariq
Copy link
Contributor

Aariq commented Jul 29, 2021

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 options urlcolor and linkcolor.

@CarlosPoses
Copy link

CarlosPoses commented Nov 10, 2021

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.

@acircleda
Copy link

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}

image

@Aariq
Copy link
Contributor Author

Aariq commented May 18, 2022

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.

@rikudoukarthik
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants