TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As far as I know, there is no way to globally set-up the bookmark options for sections only. If I am wrong, what is the correct way to have sections (only) with respective blue bookmarks? It can be done manually but it is quite tedious.


The level=section option above is wrong but somehow describes what should be achieved: blue section bookmarks.

share|improve this question
I'm assuming you're using hyperref? Also, what specifically do you mean with "globally set-up the bookmark options for sections only"? Perhaps you can add a mock-up done with Word? – doncherry Sep 30 '12 at 1:45
up vote 11 down vote accepted

Option addtohook of package bookmark helps:

    \ifnum\bookmarkget{level}=1 % section=1, subsection=2, ...

\part{First part}
\section{Hello World}
\subsection{Subsection A}
\section{Next section}
\subsection{Subsection B}


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.