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

I tried the package url unsuccessfully.

-

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

The way to go is the hyperref package.

-
\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

Don't miss out on the

\hypersetup{linktocpage}


-
Not true. It's better when the entire line links. – alamodey Feb 18 '09 at 1:13
As clickable links, it's better to have the entire line. But if you've got links printed in hot pink, then it looks mighty ugly to have an entire page coloured like that. – Will Robertson Feb 23 '09 at 23:08

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{
linktoc=all,     %set to all if you want both sections and subsections linked
}


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

\tableofcontents


sometime after

\begin{document}


and be all set

-