0

I sometimes get Difference (2) between bookmark levels is greater (hyperref) than one, level fixed (see Difference between bookmark levels greater than one - what does this mean?).

How do I stop hyperref from fixing this? Sometimes I can have a \subsubsection under a \section. I don't want the \subsubsection bookmarked as a \subsection.

  • Please post a small example which can be used to reproduce the message. I don't remember ever seeing this (though I see plenty of other messages from hyperref). – cfr Apr 10 '15 at 21:40
  • 3
    you shouldn't have a subsubsection under a section, that's just wrong:-) LaTeX is reasonably forgiving and lets you omit levels but the way bookmarks work in pdf that's not really possible, and in order to create a valid pdf file hyperef has to fake a section level to make the bookmark structure correct. but Werner's answer in the referenced question suggests the bookmark package avoids this warning, did you try that? – David Carlisle Apr 10 '15 at 22:10
  • @DavidCarlisle Oh, so it is a constraint imposed by the PDF format? – Superbest Apr 10 '15 at 23:08
  • 4
    well the folding tree UI in the bookmark pane doesn't really allow a level to be skipped, so either you need to promote the subsubsections up a level in the bookmarks or add the missing subsection with a blank title in the bookmarks, so hyperref has to do something, but basically the input is wrong, so it is error recovery. – David Carlisle Apr 10 '15 at 23:22
  • 1
    @DavidCarlisle Can you please write ananswer? – Mensch Oct 14 '15 at 22:23
4

You shouldn't have a subsubsection under a section. LaTeX is reasonably forgiving and lets you omit levels but the way bookmarks work in pdf that's not really possible, and in order to create a valid pdf file hyperref has to fake a section level to make the bookmark structure correct. Werner's answer in the referenced question suggests the bookmark package avoids this warning.

The folding tree design in the bookmark pane doesn't really allow a level to be skipped, so either you need to promote the subsubsections up a level in the bookmarks or add the missing subsection with a blank title in the bookmarks, so hyperref has to do something, but basically the input is wrong, so it is error recovery.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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