
Meuquestão inicialfoi respondida, mas agora surgiu uma nova questão. Relaciona-se aos marcadores no PDF. Estou trabalhando com o Overleaf, que não tem o atual, hyperref
mas sim um mais antigo. No MWE seguinte, os capítulos anteriores são ordenados sob o marcador 'Fevereiro'. Mas eu não quero isso. Como posso evitar isso? Gostaria apenas que os marcadores do backmatter fossem criados da mesma forma que os marcadores do frontmatter.
\documentclass{book}
\usepackage[hidelinks, bookmarksopen=false]{hyperref}
\usepackage{bookmark}
\begin{document}
\frontmatter
\chapter{preface}
\chapter{introduction}
\mainmatter
\hypertarget{jan}{}
\bookmark[level=part,dest=jan]{January}
\chapter{1 jan}First January lecture
\chapter{2 jan}Another January lecture
\chapter{3 jan}Another January lecture
\cleardoublepage
\hypertarget{feb}{}
\bookmark[level=part,dest=feb]{February}
\chapter{1 feb}First February lecture
\chapter{2 feb}Another February lecture
\chapter{2 feb}Another February lecture
\chapter{3 feb}Another February lecture
\cleardoublepage
\backmatter
\chapter{appendix A}
\chapter{appendix B}
\end{document}
Responder1
Encontrei a resposta na bookmark
documentação. É iniciar uma nova árvore imediatamente após \backmatter
adicionar \bookmarksetup{startatroot}
:
\documentclass{book}
\usepackage[hidelinks, bookmarksopen=false]{hyperref}
\usepackage{bookmark}
\begin{document}
\frontmatter
\chapter{introduction}
\hypertarget{jan}{}
\bookmark[level=part,dest=jan]{January}
\chapter{1 jan}First January lecture
\chapter{2 jan}Another January lecture
\chapter{3 jan}Another January lecture
\cleardoublepage
\hypertarget{feb}{}
\bookmark[level=part,dest=feb]{February}
\chapter{1 feb}First February lecture
\chapter{2 feb}Another February lecture
\chapter{3 feb}Another February lecture
\cleardoublepage
\backmatter
\bookmarksetup{startatroot}
\chapter{appendix A}
\chapter{appendix B}
\end{document}