Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I generate a PDF index from pdfLaTeX? [closed]

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?

like image 771
levyd Avatar asked Jul 02 '10 16:07

levyd


People also ask

Does LaTeX produce PDF A?

pdf was generated from LaTeX sources using pdflatex without any special steps, and then converted to PDF/A-1b using Acrobat Pro.

What is pdflatex file?

pdfTeX is an extension of TeX which can produce PDF directly from TeX source, as well as original DVI files. pdfTeX incorporates the e-TeX extensions. pdfTeX also has a variety of other extensions, perhaps most notably for microtypography line breaking features.


2 Answers

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

like image 146
lunaryorn Avatar answered Sep 21 '22 00:09

lunaryorn


just wanted to add that this (using the package hyperref for getting the pdf-index) works when usig pdflatex and not when using latex->dvips->ps2pdf (don't know about the other alternatives)

i recently found out that using pdftex is apparently the best choice when you don't need the ps output

like image 33
cristobal.vio Avatar answered Sep 21 '22 00:09

cristobal.vio