하이퍼참조 및 북마크: 레벨 북마크 재설정 및/또는 변경

하이퍼참조 및 북마크: 레벨 북마크 재설정 및/또는 변경

나의초기 질문답변을 받았지만 이제 새로운 문제가 발생했습니다. PDF의 북마크와 관련이 있습니다. 저는 현재 버전은 없지만 hyperref오래된 버전인 Overleaf에서 작업하고 있습니다. 다음 MWE에서 백매터 장은 '2월' 책갈피 아래에 정렬됩니다. 하지만 나는 그것을 원하지 않습니다. 이를 방지하려면 어떻게 해야 합니까? 앞부분의 책갈피가 앞부분의 책갈피와 같은 방식으로 생성되었으면 합니다.

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

답변1

나는 문서에서 답을 찾았다 bookmark. 다음을 \backmatter추가하여 즉시 새 트리를 시작하는 것입니다 \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}

관련 정보