8

I have an appendix with multiple chapters, while I like it that the main chapters of the document appear on the highest hierarchy level in the bookmarks, I would like the appendix chaptes to be children of the appendix bookmark. It would be even better if i could prefix the chapter number

I have this for the bookmarks

Appendices
Additional Images
Additional Code

and would like this

Appendices
|-A Additional Images
|-B Additional Code

MNWE

\documentclass{report}
\usepackage{hyperref}
\usepackage[toc,page]{appendix}
\begin{document}
\begin{appendices}
    \chapter{Additional Images}
    blah
    \chapter{Additional Code}
\end{appendices}
\end{document}

1 Answer 1

10

With package bookmark, the level of the next bookmark entry can be changed via \bookmarksetupnext. In this case, the level of the appendix bookmark should behave as \part (numeric value -1):

\bookmarksetupnext{level=part}
\begin{appendices}
  \chapter{...}

Full example:

\documentclass{report}
\usepackage{hyperref}
\usepackage[toc,page]{appendix}
\usepackage{bookmark}
\bookmarksetup{open,numbered}
\begin{document}
\chapter{Introduction}
\section{Section A}
\chapter{Summary}
\bookmarksetupnext{level=part}
\begin{appendices}
    \chapter{Additional Images}
    blah
    \chapter{Additional Code}
\end{appendices}
\end{document}

Result

8
  • nice highquality awnser. Explanation, example and screenshot.
    – ted
    Commented Jun 29, 2013 at 23:20
  • bookmarksopenlevel=0 behaves oddly with this, for all chapters before the appendix it shows them collapsed, however the Appendices bookmark is open. While I like this behaviour, could explain it/ how to change it?
    – ted
    Commented Jun 29, 2013 at 23:27
  • 1
    @ted: Appendices is a part entry. If you want to have the bookmarks collapsed, just use the default or \bookmarksetup{open=false} or \bookmarksetup{openlevel=-1}. Commented Jun 30, 2013 at 0:03
  • When I click on for instance an appendix content like A Additional images in your answer, It goes to cover page instead. Is there any further option needed here?
    – enthu
    Commented Nov 11, 2014 at 16:06
  • 2
    @Overdrivr Add \bookmarksetup{startatroot} before the bibliography. Commented Mar 20, 2017 at 17:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .