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 Answer 1

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.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .