I'm trying to figure out how to manage the interaction of numbering features of various document parts, e.g., parts, chapters, sections, etc. and the bookmarks generated for a PDF document.
First, the number of document partition is only showing up for parts in the bookmarks. The numbers of chapters and section are not part of the names that are displayed. Is there a way to fix this?
Also, I've noticed that if a partition is not numbered (e.g., an unnumbered subsection) it doesn't show up as a bookmark. I would like to be able to have unnumbered subsections, for example, but still have them show up as bookmarks. Is there a way to do this?
To be clear on what I want to achieve, consider the following example:
\documentclass{book}
\begin{document}
\part{A} %Shows up as a bookmark named "I A"; this is fine
\chapter{B} %Shows up as a bookmark named "B"; what I want is "1 B"
\section{C} %Shows up as a bookmark named "C"; what I want is "1.1 C"
\subsection*{D} %Doesn't show up as bookmark; what I want is "D"
\part{E} %Shows up as a bookmark named "II B"; this is fine
\chapter{F} %Shows up as bookmark named "F"; what I want is "2 F"
%...and so on
\end{document}
bookmark
package allows you to have "free reign" over what is bookmarked/not and at different levels - and its functionality forms part of thehyperref
package, if you're already using it. Would you be able to provide an MWE with some detail on what should be included/not and how. On a related note, thesecnumdepth
counter has an impact on what is displayed in the ToC (and also the PDF bookmarks).bookmark
package. Let me know if this solves your problem. If not, as you mentioned, give more detail.