Hello,
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:
General ⇒ hyperref - Only partially open bookmarks
hyperref - Only partially open bookmarks
Last edited by Montag on Thu Jan 20, 2011 12:58 pm, edited 2 times in total.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
NEW: TikZ book now 40% off at Amazon.com for a short time.

hyperref - Only partially open bookmarks
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.
If the former, then you can do the same, except with the command
The bookmark package provides even more commands for advanced bookmarks features if you want 'em.
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.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
- 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. […]
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: hyperref - Only partially open bookmarks
I swear I did! I guess I closed the tab too early. :/
But now it's how it should have been.
But now it's how it should have been.

OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1