3

I have used hyperref (with xcolor) and

\hypersetup{
  linkcolor=black,
  filecolor=black,
  urlcolor=black,
  citecolor=black
}

for quite some time now. However, in a coloured text this looks somewhat silly. Is there a (simple) way to turn of link colours completely? I also do not want these (mostly red) boxes, the links should just look as normal text.

Keba
  • 581

2 Answers2

4

Maybe you can use the current color . defined by the xcolor package:

\documentclass{article}
\usepackage{xcolor}
\usepackage{hyperref}
\hypersetup{colorlinks,linkcolor=.,filecolor=.,urlcolor=.,citecolor=.}

\begin{document}
\section{Section}\label{test}
{\color{blue}See \ref{test}},
{\color{orange}see \ref{test}}, 
see \ref{test} 
\end{document}

enter image description here

esdd
  • 85,675
  • This is helpful, although it should be noted, that for newer versions than Tex Live 2009 there are better options (see the comments above). – Keba Dec 07 '14 at 18:04
0

If you insist on keeping texlive 2009, install a new hyperref, e.g. from here: http://www.ctan.org/pkg/hyperref

You can install into your ~/texmf, and if it doesn't work, simply remove it again. Watch out, if your ~/texmf includes a file ls-R, you have to update it, say texhash ~/texmf.

Keks Dose
  • 30,892