Hello,
When I open the file that i am working on using latex in a PDF reader, on the left side bar of the PDF reader there is a bookmark. All the chapters, sections are there, but not the ToC. How can I direct so that the ToC link also appear in the bookmark bar in the PDF reader?
Thanks
General ⇒ Add Bookmark of the ToC
Add Bookmark of the ToC
Last edited by tex-bird on Wed Dec 07, 2011 7:00 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Add Bookmark of the ToC
Hello,
you could use \pdfbookmark:
Or use it with \addtocontents:
Stefan
you could use \pdfbookmark:
Code: Select all
Code, edit and compile here:
\cleardoublepage\pdfbookmark{\contentsname}{toc}\tableofcontents
Code: Select all
Code, edit and compile here:
\documentclass{book}\usepackage{hyperref}\begin{document}\addtocontents{toc}{\protect{\pdfbookmark[0]{\contentsname}{toc}}}\tableofcontents\chapter{One}\section{text}\end{document}
LaTeX.org admin
Re: Add Bookmark of the ToC
Thank you very much. The first solution worked well. Thanks.