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.

Consider the following code:

\documentclass{scrbook}
\usepackage[bookmarks, bookmarkstype=toc]{hyperref}

\begin{document}

\tableofcontents

\chapter{Introduction}

\part{First part}
    \chapter{First chapter}
    \chapter{Second chapter}

\part{Second part}
    \chapter{Third chapter}
    \chapter{Fourth chapter}

\chapter{Conclusion}

\end{document}

In the resulting PDF both tables of contents (the one produced by \tableofcontents and the list of PDF bookmarks) have the following hierarchy:

Introduction
First part
- First chapter
- Second chapter
Second part
- Third chapter
- Fourth chapter
- Conclusion

Is it possible to put 'Conclusion' at the same level of hierarchy with 'Introduction', 'First part' and 'Second part'?

share|improve this question
add comment

3 Answers 3

up vote 9 down vote accepted

If you want to adapt only the bookmarks: Either use bookmark instead of hyperref (it will load hyperref internally)

\usepackage{bookmark}
...

\bookmarksetup{startatroot}
\chapter{conclusion}

Or

\makeatletter
\def\toclevel@chapter{-1}
\makeatother
\chapter{Conclusion}
share|improve this answer
    
Thank you, both of your methods work. There is only one issue: no empty line between 'Fourth chapter' and 'Conclusion' in ToC (to visually separate them), which I fixed by adding \addtocontents{toc}{\protect\vspace*{\baselineskip}\protect} before \chapter{conclusion}. –  Bogdan Mar 3 '11 at 12:51
add comment
\chapter*{Conclusion}
\addcontentsline{toc}{part}{Conclusion}
share|improve this answer
add comment

If you want to add a "Conclusion" that is at the same level of hierarchy as your "First part" and your "Second part", then I suggest to use \part*{Conclusion}.

share|improve this answer
    
\part* does not put the part in the ToC; and, moreover, I'd prefer a chapter, not a part. –  Bogdan Mar 3 '11 at 12:40
    
@Bogdan: You can combine \part*{Conclusion} and (from @Herbert's answer) \addcontentsline{toc}{part}{Conclusion}. If you prefer \chapter, see @Ulrike's answer. –  lockstep Mar 3 '11 at 12:47
add comment

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.