Curricula Vitae / RésumésChange the link color for urls

ModernCV, Friggeri, Plasmati, Classicthesis-CV, and more
Post Reply
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Change the link color for urls

Post by templateuser »

I establish a url hyperlink with href{url}{text} in this template. However, the link color is still black. I define the link color at the beginning with

\usepackage[dvipdfm,colorlinks,pdfstartview=FitH,citecolor=blue,linkcolor=blue,urlcolor=blue]{hyperref}

However, it reports that

option clash for hyperref package

How to solve this problem? Thanks!

idioteque

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Vel
Site Moderator
Posts: 463
Joined: Fri Jun 29, 2012 1:20 am

Re: Change the link color for urls

Post by Vel »

Hey,

The problem is that hyperref is already being defined and called in moderncv.cls.

To color links blue, go into moderncv.cls and find the \hypersetup{ line and add:

colorlinks,
linkcolor=blue,
urlcolor=blue,

after it.

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Re: Change the link color for urls

Post by templateuser »

hi, vel!

Problem solved! Thanks a lot!

idioteque
Post Reply