Clickable tableofcontents [duplicate]

How to obtain clickable items in a table of contents? I mean, they should also appear in blue. I have the preamble:

``````\documentclass[12pt]{iopart}

\usepackage{graphicx,color}
\usepackage{iopams}
\usepackage{hyperref}
``````

As you can see, I'm using the `iopart` class (specific for IOP journals).

-

marked as duplicate by Claudio Fiandrino, Mico, lockstep, Peter Grill, ThorstenMar 30 '13 at 9:12

This question was marked as an exact duplicate of an existing question.

Did you run `pdflatex` twice? The first time it is run an .aux file is read upon a subsequent run. – Peter Grill Mar 30 '13 at 8:25
Yes, sure, more than twice! After the abstract I simply put \tableofcontents, should I say something else? – martina Mar 30 '13 at 8:26
Ok, then it would be helpful if you composed a fully compilable MWE including `\documentclass` and the appropriate packages that reproduces the problem. – Peter Grill Mar 30 '13 at 8:28
@martina: no problems at all. I'll close it as a duplicate of the answers you pointed if your problem is fixed. – Claudio Fiandrino Mar 30 '13 at 8:42
It is, thank you. – martina Mar 30 '13 at 8:43