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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply