GeneralAdd ToC Entry only to Bookmarks

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
momsse
Posts: 4
Joined: Sun Aug 14, 2011 11:16 pm

Add ToC Entry only to Bookmarks

Post by momsse »

Hello everybody,

I encounter a problem to add the TOC in the TOC without however make it visible like other sections. The goal being to be able to reach it since Acrobat Reader or Apercu since the panel of navigation.

Just like in the picture attached.

By thanking you in advance for your assistance, sorry for my English
Attachments
toc2.jpg
toc2.jpg (17.5 KiB) Viewed 5628 times
toc.jpg
toc.jpg (16.35 KiB) Viewed 5628 times
Last edited by momsse on Mon Aug 15, 2011 7:03 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Add ToC Entry only to Bookmarks

Post by frabjous »

What code are you using now? \addcontentsline? If so, don't use that. Use the \pdfbookmark command from the hyperref package. See its documentation, page 17.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Add ToC Entry only to Bookmarks

Post by Stefan Kottwitz »

Hi,

obviously you would like to create a PDF bookmark but no entry to the table of contents. This should be no problem. The hyperref package provides commands to produce bookmarks, the bookmark package is even better for customizing PDF bookmarks. Just avoid making a TOC entry then, perhaps you used the tocbibind package or something else.

If you need details, show details, such as a compilable minimal working example of your code, which might consist mostly of cour preamble.

Stefan
LaTeX.org admin
momsse
Posts: 4
Joined: Sun Aug 14, 2011 11:16 pm

Add ToC Entry only to Bookmarks

Post by momsse »

Thank you both of you, i resolve my problem with your help.

I combined the tocbibind package for removing them from the TOC and used the pdfbookmark command for put it as i wanted it.

Code: Select all

\usepackage[nottoc, notlof, notlot]{tocbibind}

\pdfbookmark{Table des matières}{contents}
\tableofcontents
;)
Post Reply