Agrupar marcadores de capítulos en marcadores agregados por separado

Agrupar marcadores de capítulos en marcadores agregados por separado

Estoy diseñando un libro con una ToC elaborada. Me gustaría mantener la ToC como está, pero me gustaría hacer que los marcadores en el PDF sean un poco menos abrumadores, agrupando los capítulos.

MWE:

\usepackage[utf8]{inputenc}
\usepackage[hidelinks, bookmarksopen=false]{hyperref}
\usepackage{bookmark}

\title{Question PDF bookmarks}
\author{Alex Dijk}
\date{April 2022}

\begin{document}

\chapter{1 jan}First January lecture
\chapter{2 jan}Another January lecture
\chapter{3 jan}Another January lecture
\chapter{4 jan}Another January lecture
\chapter{5 jan}Another January lecture
\chapter{6 jan}Another January lecture
\chapter{7 jan}Another January lecture
\chapter{8 jan}Another January lecture
\chapter{1 feb}First February lecture
\chapter{2 feb}Another February lecture
\chapter{3 feb}Another February lecture
\chapter{4 feb}Another February lecture
\chapter{5 feb}Another February lecture
\chapter{6 feb}Another February lecture
\chapter{7 feb}Another February lecture
\chapter{8 feb}Another February lecture

\end{document} 

Entonces, me gustaría agregar marcadores llamados 'Enero' y 'Febrero' al PDF resultante (pero no al ToC). Estos marcadores adicionales deben cerrarse de forma predeterminada, bajo los cuales se ordenan todos los capítulos individuales de enero y febrero. ¿Cómo logro esto?

Respuesta1

Con una hiperreferencia actual puede hacer esto (la entrada ya no es necesaria en un látex actual, de todos modos utf8 es el valor predeterminado desde hace algunos años):

\documentclass{book}
\usepackage[hidelinks, bookmarksopen=false]{hyperref}
\usepackage{bookmark}

\title{Question PDF bookmarks}
\author{Alex Dijk}
\date{April 2022}

\begin{document}

\bookmark[level=part,dest=\hyperget{anchor}{chap:jan}]{January}
\chapter{1 jan}\label{chap:jan}First January lecture
\chapter{2 jan}Another January lecture
\chapter{3 jan}Another January lecture
\chapter{4 jan}Another January lecture
\chapter{5 jan}Another January lecture
\chapter{6 jan}Another January lecture
\chapter{7 jan}Another January lecture
\chapter{8 jan}Another January lecture
\cleardoublepage
\bookmark[level=part,dest=\hyperget{anchor}{chap:feb}]{February}
\chapter{1 feb}\label{chap:feb}First February lecture
\chapter{2 feb}Another February lecture
\chapter{3 feb}Another February lecture
\chapter{4 feb}Another February lecture
\chapter{5 feb}Another February lecture
\chapter{6 feb}Another February lecture
\chapter{7 feb}Another February lecture
\chapter{8 feb}Another February lecture

\end{document} 

ingrese la descripción de la imagen aquí

En sistemas más antiguos debes crear objetivos manualmente:

\documentclass{book}
\usepackage[hidelinks, bookmarksopen=false]{hyperref}
\usepackage{bookmark}

\title{Question PDF bookmarks}
\author{Alex Dijk}
\date{April 2022}

\begin{document}

\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
\chapter{4 jan}Another January lecture
\chapter{5 jan}Another January lecture
\chapter{6 jan}Another January lecture
\chapter{7 jan}Another January lecture
\chapter{8 jan}Another January lecture
\cleardoublepage
\hypertarget{feb}{}
\bookmark[level=part,dest=feb]{February}
\chapter{1 feb}\label{chap:feb}First February lecture
\chapter{2 feb}Another February lecture
\chapter{3 feb}Another February lecture
\chapter{4 feb}Another February lecture
\chapter{5 feb}Another February lecture
\chapter{6 feb}Another February lecture
\chapter{7 feb}Another February lecture
\chapter{8 feb}Another February lecture

\end{document} 

información relacionada