Skip to content

Commit aa2fa1e

Browse files
fix(UTE)!: 本科英文模板的目录默认不再包含目录本身
恢复方法: ```latex \BITSetup{ TOC/TOC = true, } ```
1 parent 6e32fd3 commit aa2fa1e

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

bithesis-doc.tex

+10
Original file line numberDiff line numberDiff line change
@@ -1095,6 +1095,16 @@ \subsubsection{目录选项}
10951095
是否在目录中索引摘要。
10961096
\end{function}
10971097

1098+
\begin{function}[added=2024-07-09]{TOC/TOC}
1099+
\begin{bitsyntax}[emph={[1]TOC}]
1100+
TOC = (*(false)|true*)
1101+
\end{bitsyntax}
1102+
1103+
\textit{此选项一般不需要用户自行修改。}
1104+
1105+
是否在目录中索引目录本身。
1106+
\end{function}
1107+
10981108
\begin{function}{TOC/symbols}
10991109
\begin{bitsyntax}[emph={[1]symbols}]
11001110
abstract = (*(true)|false*)

bithesis.dtx

+3-1
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,8 @@
877877
abstract .initial:n = {true},
878878
abstractEn .bool_set:N = \l_@@_add_abstract_en_to_toc_bool,
879879
abstractEn .initial:n = {true},
880+
TOC .bool_set:N = \l_@@_add_toc_to_toc_bool,
881+
TOC .initial:n = {false},
880882
symbols .bool_set:N = \l_@@_add_symbols_to_toc_bool,
881883
symbols .initial:n = {true},
882884
}
@@ -2713,7 +2715,7 @@
27132715
\vspace{-8pt}
27142716
}
27152717

2716-
\@@_if_thesis_int_type:nTF {3} {
2718+
\bool_if:NTF \l_@@_add_toc_to_toc_bool {
27172719
% 添加「目录」本身到目录中,同时自动添加书签
27182720
% 此处必须有`\phantomsection`,不然 hyperref 会把链接指向之前摘要的标题。
27192721
\phantomsection

0 commit comments

Comments
 (0)