Remove boxes from hyperlinked ToC in LaTeX

LatexPdflatexTableofcontents

Latex Problem Overview


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

Latex Solutions


Solution 1 - Latex

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.)

Solution 2 - Latex

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

Solution 3 - Latex

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}

Solution 4 - Latex

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionalamodeyView Question on Stackoverflow
Solution 1 - LatexgodbykView Answer on Stackoverflow
Solution 2 - LatexalamodeyView Answer on Stackoverflow
Solution 3 - LatexJeffrey BarnesView Answer on Stackoverflow
Solution 4 - LatexKristoff vdHView Answer on Stackoverflow