alamodey
alamodey

Reputation: 14938

Remove boxes from hyperlinked ToC in LaTeX

How do I remove the red boxes from my hyperlinked table of contents created by using the hyperref package in LaTeX.

Upvotes: 60

Views: 45191

Answers (4)

Jeffrey Barnes
Jeffrey Barnes

Reputation: 429

Version 6.82a of hyperref, released in February 2011, introduced a new hidelinks option that accomplishes this more easily. All you need now is:

\usepackage[hidelinks]{hyperref}

Upvotes: 33

Kristoff vdH
Kristoff vdH

Reputation: 234

I realize it's a bit late to answer but there's a simpler way, in my experience

\usepackage[colorlinks=true]{hyperref}

This will shift hyperref from ugly borders to link coloring, which is what you usually want. See here for more options:

http://en.wikibooks.org/wiki/LaTeX/Hyperlinks

Upvotes: 10

alamodey
alamodey

Reputation: 14938

\usepackage{hyperref}
\hypersetup{
    colorlinks,
    citecolor=black,
    filecolor=black,
    linkcolor=black,
    urlcolor=black
}

Upvotes: 41

godbyk
godbyk

Reputation: 8529

To remove the borders:

\hypersetup{%
    pdfborder = {0 0 0}
}

The colorlinks option will turn on the link colors and also remove the borders. (This is why alamodey set all the link colors to black.)

Upvotes: 67

Related Questions