LaTeX: wrong pdf index hierarchy

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

LaTeX: wrong pdf index hierarchy

Post by ^rooker »

[PROBLEM]
In a PDF created with pdflatex from my .tex sources, the pdf-navigation index's hierarchy was messed up.

Instead of:

Code: Select all

1) one
1.1) one-a
1.2) one-b
2) two
2.1) two-a
The tree was modeled like this:

Code: Select all

1) one
1.1) one-a
1.1.1) one-b
1.1.1.1) two
1.1.1.1.1) two-a
[SOLUTION]
I've moved the inclusion of "hyperref" package to the line right before "\begin{document}":

Code: Select all

\usepackage[pdftex]{hyperref}               % links in pdf

\begin{document}
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply