9

Currently, I have the following:

\documentclass{amsbook}
\begin{document}

\chapter*{Introduction}

\part{First Part}
\chapter{1}
\chapter{2}
\chapter{3}

\part{Second Part}
\chapter{4}
\chapter{5}

\chapter*{Conclusion}

\end{document}

The table of contents is perfect. My only concern is how I see the contents in the side panel of my pdf viewer. Currently it shows:

Introduction
Part 1
  Chapter 1
  Chapter 2
  Chapter 3
Part 2
  Chapter 4
  Chapter 5
  Conclusion

whereas, what I wanted to have really is the following, where "Conclusion" is outside the last \part.

Introduction
Part 1
  Chapter 1
  Chapter 2
  Chapter 3
Part 2
  Chapter 4
  Chapter 5
Conclusion
  • It addresses not fully your needs, but it gives a clue how to avoid the 'wrong' bookmark. tex.stackexchange.com/questions/109891/… -- by the way, with one of the standard classes, it would be much easier to correct the bookmark. – user31729 Mar 7 '14 at 16:24
  • 1
    could you turn your snippets into a complete MWE that begins with \documentclass... and ends with \end{document} – cmhughes Mar 7 '14 at 16:58
9

You can use the bookmark package:

\documentclass{amsbook}
\usepackage{bookmark}

\begin{document}

\chapter*{Introduction}

\part{First Part}
\chapter{1}
\chapter{2}
\chapter{3}

\part{Second Part}
\chapter{4}
\chapter{5}

\bookmarksetup{startatroot}
\chapter*{Conclusion}

\end{document} 

The bookmarks panel as displyed by Okular:

enter image description here

  • There's also usually some additional space at the end of a part in the table of contents. You might want to insert that manually as well to visually separate the Conclusion from Part 2: \addtocontents{toc}{\bigskip} (seen here: stackoverflow.com/a/1484703/2788450 ) – Jonas Greitemann Apr 29 at 11:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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