How can I generate a PDF index from pdfLaTeX?

levyd picture levyd · Jul 2, 2010 · Viewed 18.3k times · Source

I often generate reports from pdfLaTeX using TeXworks, and would like to generate a document index, which will appear in the sidebar of a PDF viewer, (e.g. evince, Adobe Reader). Are there any packages which will allow me to do so?

Answer

lunaryorn picture lunaryorn · Jul 2, 2010

Just add the following to the preamble of your document:

\usepackage[bookmarks]{hyperref}

The bookmarks option generates this "index" by adding bookmarks for sections and lists (of figures, of equations, and so on).

Besides, using this will turn references and urls inside the documents into links, making your document "browseable".