Text FormattingHow to obtain different level in TOC and in pdf's Boomarks?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
J0mL-C
Posts: 4
Joined: Wed Dec 12, 2012 4:32 pm

How to obtain different level in TOC and in pdf's Boomarks?

Post by J0mL-C »

Hello everybody.
In order to make the TOC readable and short in physic paper I use

Code: Select all

  \setcounter{tocdepth}{1}
  \setcounter{secnumdepth}{5}
  \dominitoc
  \tableofcontents
  \setcounter{minitocdepth}{3}
just after

Code: Select all

 \mainmatter 
(book class)


But, (there is always a but) I would like the resulting pdf bookmarks contain 5 levels for navigation, particularly because I use

Code: Select all

\texorpdfstring 
massively among

Code: Select all

 \subsection (ing)
.

Any ideas to make it more simple than (massively) using

Code: Select all

 \pdfbookmark 
?
Thank you

Recommended reading 2024:

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

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

Post Reply