Page 1 of 1

LaTeX: wrong pdf index hierarchy

Posted: Tue Aug 07, 2012 3:40 am
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}