ElegantBook icon indicating copy to clipboard operation
ElegantBook copied to clipboard

hyperref 宏包设置,目录部分有选项被覆盖

Open sikouhjw opened this issue 3 years ago • 2 comments

设置 hyperref 宏包的代码见 https://github.com/ElegantLaTeX/ElegantBook/blob/f123c6a83bef9bfb4c9f1c4f0af5a2c557eb7a9c/elegantbook.cls#L89-L104 精简为

\documentclass{article}
\usepackage{hyperref}
\hypersetup{
  linktoc     = all,
  linktocpage = true,
}
\begin{document}
  \tableofcontents
  \section{test}
\end{document}

其中 linktocpage = true 会覆盖 linktoc = all,,因此建议去掉 linktocpage = true

sikouhjw avatar Oct 17 '20 12:10 sikouhjw

删掉 linktocpage = true

EthanDeng avatar Oct 28 '20 05:10 EthanDeng

删掉 linktocpage = true

sikouhjw avatar Oct 28 '20 05:10 sikouhjw