GeneralAvoid color-highlighting of hyperrefs and URLs?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ljl16
Posts: 4
Joined: Sat Mar 17, 2012 11:43 pm

Avoid color-highlighting of hyperrefs and URLs?

Post by ljl16 »

Hey there,
I have been working with LaTeX for a while and I was wondering if there was any way of avoiding the aesthetically displeasing and not very professional border of color around URLs or footnote references (as well as cites to bibitems and refs to figures).

Here is an example that will display my 'problem':

Code: Select all

\documentclass[a4paper,12pt]{report}
 \usepackage{hyperref} 

\begin{document}
\url{http://gim.tkk.fi/GIMnet/GIMI}  \footnote{sample sample}
\end{document}
Is there a way of just changing the color of the font (to always dark blue, for example) instead of framing it in color?

Thanks!
Last edited by Stefan Kottwitz on Sun Mar 18, 2012 11:27 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Avoid color-highlighting of hyperrefs and URLs?

Post by Stefan Kottwitz »

Hi,

very good, that you posted a small compilable example, that makes helping easy. Here, you can use the option pdfborder={0 0 0} for removing the colored border:

Code: Select all

\usepackage[pdfborder={0 0 0}]{hyperref}
Or use \hypersetup instead:

Code: Select all

\hypersetup{pdfborder={0 0 0}}
Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Avoid color-highlighting of hyperrefs and URLs?

Post by localghost »

Load the hyperref package with the hidelinks option.

Code: Select all

\documentclass[12pt,a4paper]{report}
\usepackage[T1]{fontenc}
\usepackage[hidelinks]{hyperref}

\begin{document}
  \url{http://gim.tkk.fi/GIMnet/GIMI}  \footnote{sample sample}
\end{document}
P.S.: Very good example.


Thorsten
Post Reply