TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Normally (under pdflatex with hyperref) a section added with \section will appear in both the LaTeX table of contents, and the pdf metadata; while a \section* will be omitted from both.

Is it possible to include a (sub)section in the metadata, but not list it in the TOC?

(The use-case in question is end-of-chapter exercises and notes in a book: we want to keep the TOC uncluttered, but having bookmarks for these in the pdf is very convenient.)

share|improve this question
up vote 11 down vote accepted

The package bookmark provides a command \bookmark[OPTIONS]{title}. You need to define a hypertarget and create a bookmark to it:

 \section*{Exercises and Notes}
 \bookmark[level=section,dest=exercises]{Exercises and Notes}

bookmark should be loaded after hyperref.

share|improve this answer

Your Answer


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.