Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is it possible to make the bookmarks in the PDF go a level deeper that the table of contents goes? I'm using KOMA-script, scrreprt if that matters.

If the table of contents displays two levels:

1. Level 1
    1.1. Level 2
2. Level 1
    2.1. Level 2

Is it then possible to make the PDF bookmarks to display:

1. Level 1
    1.1. Level 2
        1.1.1 Level 3
2. Level 1

The bottom line is that I want them to have independent level depths, if that's possible.

share|improve this question

1 Answer 1

up vote 16 down vote accepted

The package hyperref allows settings like this. The author is Heiko Oberdiek.

The package has the option bookmarksdepth

\documentclass{scrreprt}
\setcounter{tocdepth}{1}
\setcounter{secnumdepth}{2}
\usepackage[bookmarksopen,bookmarksdepth=3]{hyperref}

\begin{document}
\tableofcontents
\chapter{foo}
\section{foo bar}
\subsection{foo bar foo}

\chapter{bar}
\section{bar foo}
\subsection{bar foo bar}
\end{document}
share|improve this answer
    
@Macro: I wonder what is screeprt? I tried to change it to article but somehow it gave me errors says, Something's wrong -- perhaps a missing \item, any idea? Thanks in advance. –  Chan Aug 2 '11 at 1:26
    
@chan: Dou you mean scrreprt? This is one of the documentclasses provided by KOMA. It is the equivalent to report. By changing the documentclass to article you have to compile more than once. An other important fact article doesn't define the element chapter. The highest level ist section (and part ;-) ). –  Marco Daniel Aug 3 '11 at 13:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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