How to change font color for hyperlinks

1,499

In order to change the color of hyperlinks you first need to load the hyperref package. Then, the set up of colors is possible with the following command \hypersetup{colorlinks=true,citecolor=blue,linkcolor=blue,linktocpage=true}

Share:
1,499

Related videos on Youtube

Peter Grill
Author by

Peter Grill

Updated on September 01, 2020

Comments

  • Peter Grill
    Peter Grill about 3 years

    I'm rather new to the LaTex system. Can anyone help me with instructions on how to change the font color to blue for a hyperlink? thanks! I've added \hypersetup{urlcolor=blue} to the preamble how should I now define the hyper references in the other files?

    • Mico
      Mico about 7 years
      Please clarify what you mean by "in the other files". E.g., do you have a main or "driver" file as well as other files that are loaded from the driver file and contain the body of the document? Please advise.
    • Peter Grill
      Peter Grill about 7 years
      Welcome to TeX.SE. It is always best to compose a fully compilable MWE that sets up the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. This will also serve as a test case and ensure that the solution actually works for you and go a long way towards eliminating any confusion in how you are actually applying the \hypersetup.
    • Admin
      Admin about 7 years
      I am confused by your comment about "other files" but I think that you just want \hypersetup{colorlinks = true,linkcolor =blue}. See the hyperref manual for more options such as citecolor