Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
I think you are not talking about the table of contents but the bookmarks, aka outlines, of the PDF. Adobe Reader for examples shows these bookmarks at a side bar. Is this correct? –  Schweinebacke Nov 20 '11 at 11:21
    
Yes, I guess this is correct. I don't know the exact names of this. But the side bar basically shows me the table of contents. –  Arne Nov 20 '11 at 11:29
    
The exact name would be "outlines" (AFAIK used at the primary pdf documentation). But almost everybody use "bookmarks". And the tex.stackexchange tag is "{bookmarks}" too. BTW: In German the translation is "Lesezeichen". Unfortunatly "Lesezeichen" has been used for several other elements (e.g. annotations or marks to favorites). –  Schweinebacke Nov 20 '11 at 11:41
add comment

1 Answer

up vote 11 down vote accepted

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}
share|improve this answer
6  
Maybe you could write a sentence about bookmarkopenlevel=<number> and e.g. link to package bookmark that supports additional bookmark features. –  Schweinebacke Nov 20 '11 at 11:17
    
Perfect. That was what I was looking for! –  Arne Nov 20 '11 at 11:30
    
This solution does not work for OSX Preview, which keeps collapsing the TOC in the left hand pane. –  cryptic0 Feb 24 '13 at 21:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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