edit this page - page history - about editing

Removing the Coloured Boxes around Hyperref links in Latex

Latex

If you (can) use the hyperref package in Latex to correctly format your URLs, they are by default created with a coloured box around them. This is achieved in your document header as follows:

\usepackage{hyperref}

There are two ways to modify the output of coloured boxes:

1. Change coloured boxes into coloured links

By adding the colorlinks=true parameter, the coloured boxes will be removed, and the linked text will become coloured. However, these colours will show up in printing!

\usepackage[colorlinks=true]{hyperref}

2. Remove the coloured boxes but keep the hyperlinks

So one option is to replace all the coloured links to the default colour (in this case, black). However, make sure that the default text colour is actually black; for example, \documentclass{report} is actually a dark shade of gray.

\usepackage[colorlinks=true,linkcolor=black,anchorcolor=black,citecolor=black,filecolor=black,menucolor=black,runcolor=black,urlcolor=black]{hyperref}

Categories: Latex
edit this page - what links to here? - page history - top
Last edited by jevon jevon 106 months ago