
我想對我的書籤進行分組並使用建議的\superpart
命令這線。最小工作範例:
\documentclass{scrartcl}
\usepackage[latin]{babel}
\usepackage[bookmarksopen=true]{hyperref}
\usepackage{lipsum}
\newcounter{superpart}
\newcommand{\superpart}[1]{%
\cleardoublepage
\refstepcounter{superpart}%
\phantomsection%
\hypertarget{superpart::\number\value{superpart}}{}%
\bookmark[startatroot,level=-2,bold,dest=superpart::\number\value{superpart}]{#1}%
}
\begin{document}
\superpart{Superpart A}
\twocolumn[\section{Section 1}]
\lipsum
\twocolumn[\section{Section 2}]
\lipsum
\superpart{Superpart B}
\twocolumn[\section{Section 3}]
\lipsum
\twocolumn[\section{Section 4}]
\lipsum
\end{document}
使用 pdfTeX(右圖),這種嘗試運作得很好,但是當我使用 XeTeX(左圖)時,書籤的順序會混淆。
我必須使用XeTeX。有人知道這個問題的解決方案嗎?
乾杯阿利夫