Remove boxes from hyperlinked ToC in LaTeX
LatexPdflatexTableofcontentsLatex 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: