We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e524e6b commit 6e32fd3Copy full SHA for 6e32fd3
bithesis.dtx
@@ -2713,19 +2713,19 @@
2713
\vspace{-8pt}
2714
}
2715
2716
- % 添加目录书签
2717
- \@@_if_thesis_int_type:nF {3} {
+ \@@_if_thesis_int_type:nTF {3} {
+ % 添加「目录」本身到目录中,同时自动添加书签
2718
+ % 此处必须有`\phantomsection`,不然 hyperref 会把链接指向之前摘要的标题。
2719
+ \phantomsection
2720
+ \addcontentsline{toc}{chapter}{\c_@@_label_toc_en_tl}
2721
+ } {
2722
+ % 手动添加目录书签
2723
\currentpdfbookmark{\c_@@_label_toc_tl}{ch:toc}
2724
2725
2726
% 制作目录
2727
\tableofcontents
2728
- % 在本科生全英文模板中,添加「目录」本身到目录中。
- \@@_if_thesis_int_type:nT {3} {
- \addcontentsline{toc}{chapter}{\c_@@_label_toc_en_tl}
- }
-
2729
% 单独成页
2730
\clearpage
2731
0 commit comments