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

I am using \section*{} to get unnumbered sections in a document. I need to get those sections in the bookmarks of the resulting PDF but they don't show up. In addition, if the first section is unnumbered, none of the sections below appear either on the PDF.

share|improve this question
Are you also using numbered sections? – egreg Jun 27 '11 at 9:37
Welcome to TeX.sx! Have a look at the bookmark package. It allows you to add PDF bookmarks by yourself. Are you using article or similar class without a \chapter level? – Martin Scharrer Jun 27 '11 at 10:14

You can use the \pdfbookmark command provided by the hyperref package which lets you set bookmarks manually. A little example:

\usepackage{lipsum}% just to generate filler text


\section{Numbered Section One}
\section{Numbered Section Two}
\pdfbookmark[1]{Unnumbered Section}{unnumbered}
\section*{Unnumbered Section}
\section{Numbered Section Three}

share|improve this answer
Does page=2 not simply link to the page 2 without taking \phantomsection into account? – Martin Scharrer Jun 27 '11 at 13:33
@Martin: fixed. I used \newpage and then replace it with \phantomsection while doing some tests and forgot to delete \phantomsection. – Gonzalo Medina Jun 27 '11 at 13:40
But this still forces the document author to manually insert the correct page numbers by hand. Also it links to the whole page, not the unnumbered section. – Martin Scharrer Jun 27 '11 at 14:00
@Martin: right. Anyway, I've changed my answer. Now I only use \pdfbookmark from hyperref which, in this case, seems like a better option. – Gonzalo Medina Jun 27 '11 at 14:26

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.