I use hyperref
to create clickable PDF files. I have sections and subsections and they are all nicely in the PDF bookmarks.
Now there are certain items in my document that I want to appear in the bookmarks but not within the hierarchy of the sections, because this is rather like a short glossary. Like the most important theorems in alphabetical order. I know I can create custom bookmarks using \pdfbookmark
. They appear and clicking them puts me to the right page but they appear right where their page number puts them in the order of sections.
- How can I decide where the bookmark appears? I would like to have them below the regular ones and ordered alphabetically (I can do the ordering myself once I know how to assign positions).
- Ideally even: create a dummy bookmark called "glossary" where clicking does nothing but which has all the ones mentioned above hierarchically below it, so one is not overwhelmed by the number of bookmarks when one first opens the document.
- And even further: I usually use
hyperref
with optionbookmarksopen=true
, is it possible in my new scenario, to have all the regular bookmarks open, but the glossary one closed? that would be the dream state for my document.
bookmark
package. See also Customize PDF bookmarks.bookmark
before, otherwise I would posted an answer with some good example code.