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

3 Answers 3

up vote 11 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
1  
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}. –  fjarri Mar 3 '11 at 12:51
\chapter*{Conclusion}
\addcontentsline{toc}{part}{Conclusion}
share|improve this answer

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. –  fjarri 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

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.
http://tex.stackexchange.com/questions/12542/is-it-possible-to-add-chapter-after-a-few-parts-at-the-same-level-of-hierarch/12545
tex.stackexchange.com
crawl=CC-MAIN-2015-35
78524
application/http; msgtype=response
sha1:6GA4P3ALC5Y3YOK5AMJSZJ6SGER44A2T
<urn:uuid:5eaa5b9e-bf06-4031-b6bf-bd3801c1a7ec>
2015-09-01T18:19:26Z
104.16.12.128
sha1:OG3NXDXVLP27KX542IQDRI6TQHUDRGWV
<urn:uuid:948c1ff1-a3b0-4c71-a2b7-2a9c330b9456>
http://tex.stackexchange.com/questions/12542/is-it-possible-to-add-chapter-after-a-few-parts-at-the-same-level-of-hierarch/12545
length
response
<urn:uuid:42200f63-6313-4cd9-817c-b9e4a3872fe2>
robots: classic
hostname: ip-10-171-96-226.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2015-35
operator: CommonCrawl Admin
description: Wide crawl of the web for August 2015
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf