1

I am writing a memoir with a lot of chapters using the memoir class.

When generating the pdf, everything works perfectly fine except for the outline of the document.

In the following example:

\documentclass{memoir}

\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{hyperref}

\begin{document}

\frontmatter

\tableofcontents


\mainmatter

\chapter{Introduction}

\blindtext

\part{First part}

\chapter{At first}

\Blindtext

\chapter{Then}

\Blindtext

\part{Second part}

\chapter{Second first}

\Blindtext

\chapter{Then again}

\blindtext

\chapter{General conclusion}

\appendix

\part*{Appendix}
\addcontentsline{toc}{part}{Appendix}

\chapter{First appendix}

\Blindtext

\chapter{Another important appendix}

\backmatter


\chapter{Bibliographie}

\blindtext

\chapter{Glossary}

\blinditemize


\end{document}

(bibliography and glossary are of course managed with adequate packages)

I get the following outline:

  • Table of contents

  • Introduction

  • First part

    • At first
    • Then
  • Second part

    • Second first
    • Then again
    • General conclusion
  • Appendix

    • First appendix
    • Another important appendix
    • Bibliography
    • Glossary

While I'd like to have:

  • Table of contents

  • Introduction

  • First part

    • At first
    • Then
  • Second part

    • Second first
    • Then again
  • General conclusion

  • Appendix

    • First appendix
    • Another important appendix
  • Bibliography

  • Glossary

leandriis
  • 62,593
tuculuxu
  • 167
  • 1
  • 11
  • Could you please clarify: What does "outline" refer to? The table of contents or the pdf bookmarks? If it refers to the latter, you might be interested in this answer to Change bookmark depth – leandriis Sep 12 '19 at 13:55
  • Exactly, thanks. I didn't know about bookmarks! Should I answer my own question? (I'm a newbie around here). I used \bookmarksetupnext{level=part} with the bookmark package right before \chapter. – tuculuxu Sep 12 '19 at 14:07
  • Or simply remove the question! – tuculuxu Sep 12 '19 at 14:12
  • Instead of deleting your well written question, I'd suggest to close yours as a duplicate to the ine I linked to in my previous comment. Would you agree? – leandriis Sep 12 '19 at 14:14
  • 1
    Alright. It even works with commands such as \printbibliography and \printglossaries. Thanks again. – tuculuxu Sep 12 '19 at 14:17

0 Answers0