Hyperref y marcadores: restablecer y/o cambiar niveles de marcadores

Hyperref y marcadores: restablecer y/o cambiar niveles de marcadores

Mipregunta inicialfue respondida, pero ahora ha surgido una nueva cuestión. Se relaciona con los marcadores en el PDF. Estoy trabajando con Overleaf, que no tiene el actual hyperrefsino uno más antiguo. En el siguiente MWE, los capítulos de trasfondo están ordenados bajo el marcador "Febrero". Pero no quiero eso. ¿Cómo evito esto? Simplemente me gustaría que los marcadores del material posterior se crearan de la misma manera que los marcadores del material frontal.

\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} 

Respuesta1

Encontré la respuesta en la bookmarkdocumentación. Es comenzar un nuevo árbol inmediatamente después \backmatteragregando \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}

información relacionada