Hyperref PDF Bookmarks Viewers – How to Make the Content List of a PDF Expanded by Default

bookmarkshyperrefpdfviewers

I am using pdflatex to create a rather long document. The document also has a table of contents, and the PDF naturally has some metadata of this list of contents that I can view in my PDF viewer (here: Apple Preview and Skim on OS X). The list of contents is collapsed by default, but people on the Skim mailing list told me, that this is a setting inside of the PDF. So how can I tell pdflatex to create an expanded list of contents then?

Best Answer

This is not a pdflatex issue. You must be using, directly or indirectly, the hyperref package, which controls the PDF TOC. To have it unfolded, just add this to the preamble of your document:

\hypersetup{bookmarksopen=true}