# pdfbookmark for table of contents points to previous page

In my thesis, I'm using the book class as such:

\documentclass[a4paper,12pt,twoside,openright]{book}
\usepackage[bookmarks=true,
bookmarksopen,
bookmarksopenlevel=1,
pagebackref
]{hyperref}
\frontmatter
\begin{titlepage}
%\input{tex/universitytitlepage.tex}
\end{titlepage}

\mainmatter
\openright
%\include{tex/stuff}
\end{document}


Any idea on how to make it point to the start of the TOC page, not the page before it?

This can be solved by adding \cleardoublepage before the \pdfbookmark command, like so:
\cleardoublepage

There is no need for \phantomsection in this case, AFAIK.
I could not find the exact problem I had because questions such as Hyperref pointing is incorrect in the Table of Contents and How to add the pdf-bookmark of TOC without its name "Contents" in TOC do not explicitly mention the problem of \pdfbookmark pointing to the page before the TOC. So I used the advice on the answers to those questions to make this one.
• \tableofcontents issues a page break command, after the bookmark has been set. If the page is still empty, however, this page break command has no effect and so a \cleardoublepage before setting the bookmark does the job. – egreg Sep 19 '13 at 10:05