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.

When I click on the PDF bookmark "Contents" in my PDF Viewer, it goes to the position of the table of contents but does not show the title "Contents". Is it possible to set the PDF bookmark above the Contents title, so one can see the title when clicking on Contents? I'm using the memoir class. Here is a minimal example:

\documentclass[a4paper,12pt,final, oneside]{memoir}

\usepackage[xetex, unicode=true, colorlinks=false, linktocpage=true, 
pdfborder={0 0 0}, pdfstartpage=1, pdfstartview=FitV, breaklinks=true,
pdfpagemode=UseNone, pageanchor=true, pdfpagemode=UseOutlines,
plainpages=false, bookmarksnumbered, bookmarksopen=true,
bookmarksopenlevel=1, hypertexnames=true, pdfhighlight=/O, urlcolor=Black,
linkcolor=Black, citecolor=Black]{hyperref} 


\begin{document}

\frontmatter
\tableofcontents 
\chapter{chapter1}
\chapter{section1}
\end{document}
share|improve this question
    
Please add a minimal working example (MWE) showing your current document configuration. –  doncherry Oct 4 '11 at 12:30
    
Thanks! As a side note: It's usually not necessary to specify xetex as a driver, hyperref detects this automatically. –  doncherry Oct 4 '11 at 14:32
    
Thank you, doncherry! –  Christopher Oct 9 '11 at 22:04
add comment

1 Answer

up vote 5 down vote accepted

The fact that memoir puts the table of contents in the table of contents is questionable (and is the cause for the malfunction).

\pdfbookmark{\contentsname}{Contents}
\tableofcontents*

Precede the code by \cleardoublepage if there's something before the ToC.

share|improve this answer
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.