1

I am using

\usepackage[colorlinks=true,linkcolor=black,linktoc=page]{hyperref}

and the citations come out green, while the page numbers in the table of contents, figure and equation numbers come out blue. These are, as I understand, the standard colours.

How do I just keep the green for the citations but change everything else to a non-standard colour? Like, a dark blue.

1

You can set various colours using the \hypersetup command (or as optional arguments in \usepackage[...]{hyperref}).

In light of the comments I have expanded the MWE:

\documentclass{article}
\usepackage[svgnames]{xcolor}
\usepackage{hyperref}
\hypersetup{
  colorlinks = true,
  linkcolor =LightSkyBlue,
  anchorcolor = red,
  citecolor = blue,
  urlcolor = blue
}
\begin{document}
  \begin{equation}\label{One}1+1=2\end{equation}
  Isn't \ref{One} a nice equation?
\end{document}

This produces:

enter image description here

See the hyperref manual for details on the possible options.

  • If I want to use a non-standard colour, where should I define it? Before the hypersetup package is loaded? – SuperCiocia Jul 29 '15 at 21:43
  • @SuperCiocia You may load xcolor before hyperref and define your own colors. – Paul Gaborit Jul 29 '15 at 22:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.