Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove boxes from hyperlinked ToC in LaTeX

People also ask

How do you get rid of red boxes in LaTeX?

The red boxes (borders) you see in your PDF viewer are just marks, and not colored links. They will not appear in the printed document. Set »colorlinks=true« to see the difference. If you want to get rid of them also in the PDF output, try the »hidelinks« option.

How do you hyperlink in LaTeX?

You can add a hyperlink into your LaTeX article using the command \usepackage{hyperref} and then including the command \href{YOUR URL}{TEXT FOR YOUR HYPERLINK}.


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


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

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}

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