GeneralHyperref Bookmark Hierachy

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Ashiataka
Posts: 12
Joined: Tue Jun 26, 2012 2:38 pm

Hyperref Bookmark Hierachy

Post by Ashiataka »

I want my bookmarks in my final pdf to have the following structure

Code: Select all

Introduction
+Part 1
    First section in part One
    Second section in part One
+Part 2
    First section in part Two
    Second section in part Two
Glossary
A Appendix 1
B Appendix 1
but at the moment everything after Part 2 is contained within that expandable menu,

Code: Select all

Introduction
+Part 1
    First section in part One
    Second section in part One
+Part 2
    First section in part Two
    Second section in part Two
    Glossary
    A Appendix 1
    B Appendix 1
Does anyone know how this might be achieved? Thank you.

Code: Select all

\documentclass[]{article}
\usepackage[]{hyperref}
\usepackage[]{glossaries}

\begin{document}
\section*{Introduction}

\part{One}
\section{First section in part One}
\section{Second section in part One}

\part{Two}
\section{First section in part Two}
\section{Second section in part Two}

\part*{} %phantom part to (unsuccessfully) take the following out of part two
\printglossary
\appendix
\section{Appendix 1}
\section{Appendix 2}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply