2

I want the entries for my table of contents at the beginning of my document to appear in the PDF index, for a PDF generated with pdflatex.

Currently only my \chapter entries appear there, and adding \chapter entries for the table of contents is not an option, first of all since it is not an actual chapter and shouldn't be enumerated as such, and also because adding \chapter entries adds extra empty pages to my document.

EDIT: For my bibliography I managed to add it using

\usepackage[nottoc,numbib]{tocbibind}

But can't be sure if there's something similar for the table of contents

  • 1
    when you say index, do you mean the bookmarks? – cmhughes Mar 22 '14 at 14:38
  • yeah, well, using several PDF readers, a left bar appears with 'shortcuts' to each chapter I defined on my document. I wish my table of contents and bibliography to appear there too. I can't say if those are the same as the bookmarks of the PDF reader, since a bookmark is something defined by the reader (the person reading the PDF) to easily find certain pages the reader wants to find easily, but they don't depend on the document itself, but on the reader's criteria to define them – Javier Novoa C. Mar 22 '14 at 14:43
  • hey! using \usepackage[nottoc,numbib]{tocbibind} works for the bilbiography! :D – Javier Novoa C. Mar 22 '14 at 14:48
1

Use

\addcontentsline{toc}{chapter}{entry text in the index}

does the trick.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.