File tree 3 files changed +20
-9
lines changed
templates/undergraduate-thesis-en
3 files changed +20
-9
lines changed Original file line number Diff line number Diff line change @@ -1085,6 +1085,16 @@ \subsubsection{目录选项}
1085
1085
该选项包含许多子项目,用于调整其他选项。具体内容见下:
1086
1086
\end {function }
1087
1087
1088
+ \begin {function }[added=2024-07-09]{TOC/title}
1089
+ \begin {bitsyntax }[emph={[1]title}]
1090
+ title = (*目录 | Table~of~Contents | \meta {字符串}*)
1091
+ \end {bitsyntax }
1092
+
1093
+ 目录的标题。默认会按论文类型自动设置为「目录」、「目\quad {}录」或“Table~of~Contents”。
1094
+
1095
+ 有的学院要求改为“Contents”,这时请自行修改。
1096
+ \end {function }
1097
+
1088
1098
\begin {function }{TOC/abstract,TOC/abstractEn}
1089
1099
\begin {bitsyntax }[emph={[1]abstract,abstractEn}]
1090
1100
abstract = (*(true)|false*)
Original file line number Diff line number Diff line change 160
160
%
161
161
% \end{macro}
162
162
%
163
- % \begin{macro}[added=2023-03-16]{\@@_get_const:}
163
+ % \begin{macro}[added=2023-03-16]{\@@_get_const:N }
164
164
% 获取标题、章节、表格、图形等的常量名称。
165
165
% 会区别英文模式和中文模式。
166
166
% \begin{macrocode}
873
873
% \begin{macrocode}
874
874
\keys _define:nn { bithesis / TOC }
875
875
{
876
+ title .tl_set:N = \l _@@_toc_title_tl,
877
+ title .initial:n = {
878
+ \@@ _get_const:N {toc}
879
+ },
876
880
abstract .bool_set:N = \l _@@_add_abstract_to_toc_bool,
877
881
abstract .initial:n = {true},
878
882
abstractEn .bool_set:N = \l _@@_add_abstract_en_to_toc_bool,
2700
2704
\renewcommand {\baselinestretch }{1.56}
2701
2705
}
2702
2706
2703
- \@@ _if_thesis_english:TF {
2704
- \tl _set:Nn \l _@@_toc_title_tl {\c _@@_label_toc_en_tl}
2705
- } {
2706
- \tl _set:Nn \l _@@_toc_title_tl {\c _@@_label_toc_tl}
2707
- }
2708
-
2709
2707
% 自定义目录样式
2710
2708
\cs _set:Npn \contentsname {
2711
2709
\fontsize {16pt}{\baselineskip }
2722
2720
\addcontentsline {toc}{chapter}{\c _@@_label_toc_en_tl}
2723
2721
} {
2724
2722
% 手动添加目录书签
2725
- \currentpdfbookmark {\c _@@_label_toc_tl }{ch:toc}
2723
+ \currentpdfbookmark {\l _@@_toc_title_tl }{ch:toc}
2726
2724
}
2727
2725
2728
2726
% 制作目录
Original file line number Diff line number Diff line change 73
73
% info/major = {Major},
74
74
},
75
75
%
76
- % 若要将“Appendices”改为单数,请解除以下两行的注释:
76
+ % 标题若要按经管学院的要求,请解除以下几行的注释。
77
+ % % 将“Appendices”改为单数:
77
78
% appendices/title = {Appendix},
78
79
% appendices/TOCTitle = {Appendix},
80
+ % % 删掉“Table of ”:
81
+ % TOC/title = {Contents},
79
82
}
80
83
81
84
% 使用 listings 宏包进行代码块使用,并使用了预定义的样式,
You can’t perform that action at this time.
0 commit comments