# How can I make a clickable Table of Contents? [duplicate]

Possible Duplicate:
How to make clickable links and cross-references in pdfs produced by LaTeX?

I need links for the Table of Contents, so that I can navigate fast to different sections. I apparently need some package.

I tried the package url unsuccessfully.

-
It is hilarious that this question was given a duplicate badge when it was asked one year before than the other one. This question was also searchable in Google during the time when the other question was asked. There is also more thorough solution in this question than the other one. –  Masi Aug 31 at 8:32

## migrated from stackoverflow.comSep 24 '12 at 11:04

This question came from our site for professional and enthusiast programmers.

## marked as duplicate by lockstep, percusse, diabonas, Werner, Paul GaboritSep 24 '12 at 14:39

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


You can change the color of the links as above.

-
+1 Since this works great :) –  Johan Aug 22 '09 at 15:01
+1 works very, very great! –  Gary Tsui Oct 17 at 7:11

The way to go is the hyperref package.

-

The package listed is correct. This is a more detailed account of setup though:

\usepackage{color}   %May be necessary if you want to color links
\usepackage{hyperref}
\hypersetup{
colorlinks=true, %set true if you want colored links
linktoc=all,     %set to all if you want both sections and subsections linked
linkcolor=blue,  %choose some color if you want links to stand out
}


Once this is all setup, you should just be able to include the

\tableofcontents


sometime after

\begin{document}


and be all set

-
\hypersetup{linktocpage}