Skip to content

Commit e524e6b

Browse files
feat!: 致谢标题支持用const/heading/acknowledgements调整,同时英文模板默认值从单数改为复数
致谢有 -edge-/-edg-、-ment/-ments 四种写法。 Relates-to: #496
1 parent 7b89ffa commit e524e6b

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

bithesis-doc.tex

+12-2
Original file line numberDiff line numberDiff line change
@@ -1442,11 +1442,21 @@ \subsubsection{常量名称覆盖}
14421442
\begin{bitsyntax}[emph={[1]degree,major}]
14431443
info = {
14441444
degree = (*(申请学位级别)|\marg{字符串}*),
1445-
major = (*(学科专业)|\marg{字符串}*),
1445+
major = (*专业 | 学科专业 | Degree | \marg{字符串}*),
14461446
},
14471447
\end{bitsyntax}
14481448

1449-
用于定义封面中个人信息条目的各个常量值。
1449+
用于定义封面中个人信息条目的各个常量值。默认按论文类型自动设置。
1450+
\end{variable}
1451+
1452+
\begin{variable}[added=2024-07-09]{const/heading/acknowledgements}
1453+
\begin{bitsyntax}[emph={[1]acknowledgements}]
1454+
info = {
1455+
acknowledgements = (*致谢 | Acknowledgements | \marg{字符串}*),
1456+
},
1457+
\end{bitsyntax}
1458+
1459+
用于定义一些固定章节的标题。默认按论文类型自动设置。
14501460
\end{variable}
14511461

14521462
\section{正文编写}

bithesis.dtx

+10-6
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@
493493
{conclusion} {结\label_space: 论} {Conclusions},
494494
% 附录部分的总标题
495495
{appendix} {附\label_space: 录} {Appendices},
496-
{ack} {致\label_space: 谢} {Acknowledgement},
496+
{ack} {致\label_space: 谢} {Acknowledgements},
497497
{figure} {插\label_space: 图} {Illustrations},
498498
{table} {表\label_space: 格} {Tables},
499499
% 附录下各部分编号的前缀
@@ -762,6 +762,7 @@
762762
autoref .meta:nn = { bithesis / const / autoref } { #1 },
763763
style .meta:nn = { bithesis / const / style } { #1 },
764764
info .meta:nn = { bithesis / const / info } { #1 },
765+
heading .meta:nn = { bithesis / const / heading } { #1 },
765766
}
766767
\keys_define:nn { bithesis / const / autoref }
767768
{
@@ -814,6 +815,13 @@
814815
}
815816
},
816817
}
818+
\keys_define:nn { bithesis / const / heading }
819+
{
820+
acknowledgements .tl_set:N = \g_@@_const_heading_acknowledgements_tl,
821+
acknowledgements .initial:n = {
822+
\@@_get_const:N {ack}
823+
},
824+
}
817825
% \end{macrocode}
818826
%
819827
% 定义 |bithesis/style| 键值对类。
@@ -3032,11 +3040,7 @@
30323040
subsubsection/number = \arabic{section}. \arabic{subsection}. \arabic{subsubsection},
30333041
}
30343042

3035-
\@@_if_thesis_english:TF {
3036-
\chapter{\c_@@_label_ack_en_tl}
3037-
} {
3038-
\chapter{\c_@@_label_ack_tl}
3039-
}
3043+
\chapter{\g_@@_const_heading_acknowledgements_tl}
30403044
\@@_if_graduate:TF {\fangsong}{}
30413045
#1
30423046
\end{blindPeerReview}

0 commit comments

Comments
 (0)