[Tex/LaTex] How to avoid link higlighting when using package hyperref

hyperreflinksurls

I'd like to include some http links in my document. So i Included the hyperref package so that i can use the command \url{}

Microsoft Surface\footnote{\url{http://www.microsoft.com/surface}}

This works, but the problem is, that all the links in my document (also the ones created with \ref{} or \cite{} are highlighted. I want to avoid that. So i added:

\usepackage{hyperref}
\hypersetup{colorlinks=false}

But nothing changed. How can I avoid that all links are highlighted? I only want to enable URLs and nothing else.

Best Answer

Only load the url package it also provides \url but will not render an hyperlink. Note that most PDF viewer do this now automatically anyway.

If your really need hyperref for something else try to:

  1. Load the option with the package: \usepackage[colorlinks=false]{hyperref}

  2. Create a hyperref.cfg file in the same directory as your TeX file and put the \hypersetup{colorlinks=false} in there.

Certain options of hyperref must be given very early and can't be changed afterwards. The colorlinks option might be one of them.

Supplement:

I just tested this under my TeXLive 2010 installation. With colorlinks=false I get the usual colored frame around the hypertext. You might want to activate colors and set them to black:

\usepackage[colorlinks=true,urlcolor=black]{hyperref}