I am using KOMA-Script (scrreprt) and hyperref.
The PDF bookmarks are generated nicely from the table of contents, but I would like an extra Contents bookmark to point to the table of contents itself (without including an entry in the table of contents) - like the KOMA manual itself.
(Also list of figures and list of tables if I include them)
What is the best way to do this?
I could add a \pdfbookmark manually but I'm not sure how to get it to point correctly to the start of the section - if I do it after it will be on the wrong page (multipage toc), if I do before it will be the page before (since \tableofcontents does \cleardoublepage?). I guess I have to redefine \tableofcontents somehow.
listingspackage, it points to the right page but the bookmark's name is empty. – letmaik Jan 06 '13 at 17:44\usepackage[ngerman]{babel}? – dpprdan Dec 17 '13 at 22:10babelhas its language and TOC as a header is in local language, but not in the bookmarks. – Anton Tarasenko Dec 18 '13 at 02:21babelearly, though I doubt that this is the cause of your problem. – dpprdan Dec 18 '13 at 21:28\pdfbookmark[1]{\contentsname}{toc}(level=1) arranges the added entries in line with the normal chapter/section bookmarks. Otherwise you can collapse the "normals" with the added ones. – Dominik Sep 10 '15 at 19:05\lstlistoflistings. Do you have an idea why and/or could provide a fix? – Stefan Pinnow May 26 '16 at 12:15\addtocontents{toc}{\protect{\pdfbookmark[0]{\contentsname}{toc}}}right above\tableofcontentsin the document body worked perfectly for me. – jvriesem Oct 21 '20 at 19:29