I'm creating my own bookmarks since I'm not using parts, sections nor chapters.
Code: Select all
\documentclass{article}
\usepackage[english]{babel}
\usepackage[ansinew]{inputenc}
\usepackage[]{hyperref}
\hypersetup{
bookmarks = true,
pdftoolbar = true,
pdfmenubar = true,
}
\begin{document}
\pdfbookmark[-1]{AAA}{a0}
AAA\\[150pt]
\pdfbookmark[1]{title1}{a1}
aaa a1\\[150pt]
\pdfbookmark[1]{title2}{a2}
aaa a2\\[50pt]
\pdfbookmark[1]{title3}{a3}
aaa a3
\newpage
\pdfbookmark[-1]{BBB}{b0}
BBB\\[150pt]
\pdfbookmark[1]{title4}{b1}
bbb b1 \\[150pt]
\pdfbookmark[1]{title5}{b2}
bbb b2
\end{document}
1) Levels are changed
For some reason, levels are changed:
- Title 2 and 3: are inside title 1
- Title 5: is inside title 4
Even though levels are correctly specified.
I want them to appear at the bookmark bar (adobe reader) like this:
AAA
- title1
title2
title3
- title4
title5
If I click AAA, then AAA appears at the very top. Why is not happening the same with the others?
Thank you very much for giving me a hand with this mess..
dieinfolk.