General ⇒ hyperref - Only partially open bookmarks
hyperref - Only partially open bookmarks
I'd like to only open the first section's bookmarks to level 2. The bookmarks of section 2 should be closed, so it says only "2 The Last Section" in the navigator.
Is that possible?
I prepared a MWE:
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
hyperref - Only partially open bookmarks
If the latter, then I think you could use
Code: Select all
\hypersetup{bookmarksopenlevel=1}
If the former, then you can do the same, except with the command
Code: Select all
\hypersetup{bookmarksdepth=1}
hyperref - Only partially open bookmarks
That is exactly what I wanted. Thank you.frabjous wrote:Do want the bookmarks for subsections 2.1 and 2.2 not to be created at all, or do you just want them hidden at first, so you have to click on section 2 to expand the tree that contains them?
If the latter, then I think you could useright at the start of section 2.Code: Select all
\hypersetup{bookmarksopenlevel=1}

Just to make sure for any other interested visitor, if this command is used for a section which comes before the "fully expanded" section, there has to be another
Code: Select all
\hypersetup{bookmarksopenlevel=2}
Thank you, I'll kep that in mind.The bookmark package provides even more commands for advanced bookmarks features if you want 'em.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
hyperref - Only partially open bookmarks
Then, in the spirit of housekeeping, please mark the topic accordingly.Montag wrote:That is exactly what I wanted. Thank you. […]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: hyperref - Only partially open bookmarks
But now it's how it should have been.
