Skip to content

Commit 0ecd8db

Browse files
fix(UTE): 本科英文模板也应支持const/info/major
原先只支持中文模板。 Relates-to: #496
1 parent c721bd2 commit 0ecd8db

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

bithesis-doc.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,7 @@ \subsubsection{常量名称覆盖}
14341434
盲审模式下用于替换个人信息的替换符号。
14351435
\end{variable}
14361436

1437-
\begin{variable}[added=2023-06-11]{const/info/degree,const/info/major}
1437+
\begin{variable}[added=2023-06-11, updated=2024-07-09]{const/info/degree,const/info/major}
14381438
\begin{bitsyntax}[emph={[1]degree,major}]
14391439
info = {
14401440
degree = (*(申请学位级别)|\marg{字符串}*),

bithesis.dtx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2490,7 +2490,7 @@
24902490

24912491
\clist_set:Nn \l_@@_input_clist {
24922492
{\c_@@_label_school_en_tl} {\l_@@_value_school_tl},
2493-
{\c_@@_label_major_en_tl} {\l_@@_value_major_tl},
2493+
{\g_@@_const_info_major_tl} {\l_@@_value_major_tl},
24942494
{\c_@@_label_author_en_tl} {\l_@@_value_author_tl},
24952495
{\c_@@_label_student_id_en_tl} {\l_@@_value_student_id_tl},
24962496
{\c_@@_label_supervisor_en_tl} {\l_@@_value_supervisor_tl},

templates/undergraduate-thesis-en/main.tex

+5
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@
6767
% 微调表格行间距
6868
tabularRowSeparation = 1.25,
6969
},
70+
const = {
71+
% 有些专业名带上“Bachelor of…”太长,学院可能建议把 degree 改成 major。
72+
% 若要将封面的“Degree:”改为“Major:”,请解除下一行的注释。
73+
% info/major = {Major},
74+
},
7075
}
7176

7277
% 使用 listings 宏包进行代码块使用,并使用了预定义的样式,

0 commit comments

Comments
 (0)