diff --git a/bithesis.dtx b/bithesis.dtx index a7bdc30d..13cba96c 100644 --- a/bithesis.dtx +++ b/bithesis.dtx @@ -643,7 +643,10 @@ % 定义 |bithesis/cover| 键值对类。 % \begin{macrocode} % Declare variables used by keys +\tl_new:N \l_@@_cover_delimiter_tl \tl_new:N \l_@@_cover_label_align_tl +\dim_new:N \l_@@_cover_label_max_width_dim +\dim_new:N \l_@@_cover_value_max_width_dim \dim_new:N \l_@@_cover_auto_width_padding_dim \dim_new:N \l_@@_cover_underline_offset_dim % @@ -1148,7 +1151,7 @@ % 首先计算了相应的偏移量。 % \begin{macrocode} \@@_if_graduate:TF { - \int_set:Nn \g_@@_head_zihao_int {5} + \int_gset:Nn \g_@@_head_zihao_int {5} \geometry{ a4paper, left=2.7cm, @@ -1162,7 +1165,7 @@ footskip = 2.5cm + 7bp - 1.8cm, } } { - \int_set:Nn \g_@@_head_zihao_int {4} + \int_gset:Nn \g_@@_head_zihao_int {4} \geometry{ a4paper, left=3cm, @@ -1826,7 +1829,7 @@ % 定义图表标题中的分隔字符,同时调整字号。 % \begin{macrocode} \@@_if_graduate:TF { - \tl_set:Nn \g_@@_label_divide_char_tl {.} + \tl_gset:Nn \g_@@_label_divide_char_tl {.} % 研究生模板要求 "图序和图题间空1个中文字距" \captionsetup[figure]{font=small,labelsep=quad} % 研究生模板要求 "表序和题目间空1个中文字距" @@ -1835,7 +1838,7 @@ \captionsetup[lstlisting]{font=small,labelsep=quad} \captionsetup[algorithm]{font=small,labelsep=quad} } { - \tl_set:Nn \g_@@_label_divide_char_tl {-} + \tl_gset:Nn \g_@@_label_divide_char_tl {-} % 本科生模板无 caption 字距要求 \captionsetup[figure]{font=small,labelsep=space} \captionsetup[table]{font=small,labelsep=space} @@ -2271,7 +2274,7 @@ \file_if_exist:nTF {\l_@@_icon_path_tl} { \includegraphics[width=1.5em]{\l_@@_icon_path_tl} } { - \msg_warning:nnV {bithesis} {paper-back/missing-degree-type-icon-file} {\l_@@_icon_path_tl} + \msg_warning:nnV {bithesis} {paper-back/missing-degree-type-icon-file} \l_@@_icon_path_tl } } \vspace{1em plus 1fill} @@ -2602,7 +2605,7 @@ \clearpage \bool_if:NT \g_@@_twoside_bool { - \int_if_odd:nF \c@page + \int_if_odd:nF {\c@page} { \hbox:n { } \thispagestyle { empty } \newpage } } } @@ -2640,7 +2643,7 @@ \bool_if:NTF \l_@@_cover_prefer_zh_bool { \int_set:Nn \l_@@_thesis_type_int {1} } { - \int_set:Nn \l_@@_thesis_type_int \g_@@_thesis_type_int + \int_set:Nn \l_@@_thesis_type_int {\g_@@_thesis_type_int} } \int_case:nn {\l_@@_thesis_type_int} @@ -4286,6 +4289,9 @@ % % 定义 |bitbeamer| 文档类的接口键值对。 % \begin{macrocode} +% Declare variables used by keys +\tl_new:N \l_bit_framelogo_tl +% Declare keys \keys_define:nn { bitbeamer } { titlegraphic .tl_set:N = \l_bit_titlegraphic_tl, diff --git a/scripts/test.py b/scripts/test.py index fea2a857..bc7cd366 100644 --- a/scripts/test.py +++ b/scripts/test.py @@ -20,8 +20,8 @@ from typing import TYPE_CHECKING if TYPE_CHECKING: - from collections.abc import Generator - from typing import Any, Callable, Self + from collections.abc import Callable, Generator + from typing import Any, Self ROOT_DIR = Path(__file__).parent.parent assert ROOT_DIR.exists() diff --git a/templates/graduate-thesis/misc/5_acknowledgements.tex b/templates/graduate-thesis/misc/5_acknowledgements.tex index a9f53096..fbf153bb 100644 --- a/templates/graduate-thesis/misc/5_acknowledgements.tex +++ b/templates/graduate-thesis/misc/5_acknowledgements.tex @@ -11,4 +11,7 @@ 致谢是对下列方面致谢:资助和支持者;协助完成研究工作和提供便利条件者;在研究工作中提出建议和提供帮助者;给予转载和引用权的资料、图片、文献、研究思想和设想的所有者;其他应感谢者。致谢语言要诚恳、恰当、简短。 } +% 既然写到这里,那估计就要大功告成了。无论过程与结果如何,总是人生一段独特体验。祝贺! +% 如有兴趣,可填写以下反馈问卷,帮助 BIThesis 未来优化。 +% https://wj.qq.com/s2/22532808/254f/ \end{acknowledgements} diff --git a/templates/undergraduate-thesis/misc/5_acknowledgements.tex b/templates/undergraduate-thesis/misc/5_acknowledgements.tex index 680049a8..f481f2a6 100644 --- a/templates/undergraduate-thesis/misc/5_acknowledgements.tex +++ b/templates/undergraduate-thesis/misc/5_acknowledgements.tex @@ -8,4 +8,8 @@ 值此论文完成之际,首先向我的导师…… \textcolor{blue}{致谢正文样式与文章正文相同:宋体、小四;行距:22 磅;间距段前段后均为 0 行。阅后删除此段。} + + % 既然写到这里,那估计就要大功告成了。无论过程与结果如何,总是人生一段独特体验。祝贺! + % 如有兴趣,可填写以下反馈问卷,帮助 BIThesis 未来优化。 + % https://wj.qq.com/s2/22532808/254f/ \end{acknowledgements}