summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-04-23 20:33:38 +0000
committerKarl Berry <karl@freefriends.org>2023-04-23 20:33:38 +0000
commitd858a8eb881e466f6c3750b7648391fcac0a3263 (patch)
treeb3aa9620caf61a8d32dda803479b06587f9adc2c /Master
parent35aa008a64cd6fe70ebc06bdc2a2fceaae2dd9d8 (diff)
bithesis (23apr23)
git-svn-id: svn://tug.org/texlive/trunk@66922 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/bithesis/bithesis.pdfbin1122629 -> 1175792 bytes
-rw-r--r--Master/texmf-dist/doc/latex/bithesis/dtx-style.sty5
-rw-r--r--Master/texmf-dist/source/latex/bithesis/bithesis.dtx243
-rw-r--r--Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls2
-rw-r--r--Master/texmf-dist/tex/latex/bithesis/bithesis.cls97
-rw-r--r--Master/texmf-dist/tex/latex/bithesis/bitreport.cls2
6 files changed, 319 insertions, 30 deletions
diff --git a/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf b/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf
index bfd522ef656..aff4f4217e8 100644
--- a/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf
+++ b/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/bithesis/dtx-style.sty b/Master/texmf-dist/doc/latex/bithesis/dtx-style.sty
index 44a1dfdc925..5a9b5a2c5a7 100644
--- a/Master/texmf-dist/doc/latex/bithesis/dtx-style.sty
+++ b/Master/texmf-dist/doc/latex/bithesis/dtx-style.sty
@@ -75,6 +75,11 @@
pdfdisplaydoctitle = true
}%
+\renewcommand{\subsectionautorefname}{小节}
+\renewcommand{\subsubsectionautorefname}{小节}
+\renewcommand{\sectionautorefname}{节}
+\renewcommand{\chapterautorefname}{章}
+
\newcommand{\BIThesisLaTeX}{{\BIThesis}北京理工大学学位论文及报告{\LaTeX}模板}
\newcommand{\BIThesisMacroPackage}{{\BIThesis}宏包}
\newcommand{\BIThesisWiki}{{\BIThesis}在线文档}
diff --git a/Master/texmf-dist/source/latex/bithesis/bithesis.dtx b/Master/texmf-dist/source/latex/bithesis/bithesis.dtx
index 22a8da4f86e..45f675c4f20 100644
--- a/Master/texmf-dist/source/latex/bithesis/bithesis.dtx
+++ b/Master/texmf-dist/source/latex/bithesis/bithesis.dtx
@@ -21,7 +21,7 @@
%<thesis>\ProvidesExplClass{bithesis}
%<report>\ProvidesExplClass{bitreport}
%<beamer>\ProvidesExplClass{bitbeamer}
-%<cls>{2023-04-14}{3.5.2}{BIT Thesis Templates}
+%<cls>{2023-04-23}{3.5.3}{BIT Thesis Templates}
%
%<oldcls>\NeedsTeXFormat{LaTeX2e}[2020/10/01]
%<book>\ProvidesClass{bitbook}
@@ -30,7 +30,7 @@
%<oldcls> [2022/05/09 v2.1.1 BIT Thesis Templates]
%
%<*driver>
-\ProvidesFile{bithesis.dtx}[2023/04/14 3.5.2 BIT Thesis Templates]
+\ProvidesFile{bithesis.dtx}[2023/04/23 3.5.3 BIT Thesis Templates]
\documentclass[letterpaper]{l3doc}
\usepackage{dtx-style}
@@ -163,7 +163,7 @@
% TeX Live、MiKTeX 等。
% \item[文档类] 文档类指代一类以 |.cls| 结尾的文件,它们定义了文档的基本结构,
% 通常包括文档的标题、作者、日期、页眉、页脚、正文样式等等。
-% 你可以通过 \cs{documentclass} 命令来指定文档类。
+% 你可以通过 \tn{documentclass} 命令来指定文档类。
% 没错,|bithesis| 为你提供的模板功能就是通过数个文档类实现的。
% \end{description}
%
@@ -1163,6 +1163,110 @@
% (Windows 和 MacOS 自带,Linux 需要用户自行安装)
% \end{function}
%
+% \begin{function}[added=2023-04-22]{misc/tabularFontSize}
+% \begin{bitsyntax}[emph={[1]tabularFontSize}]
+% tabularFontSize = (*(5)|其他字号*)
+% \end{bitsyntax}
+%
+% \textit{此选项一般不需要用户自行修改。}
+%
+% 此选项用于调整表格中的字号。默认值为 5 号字。
+%
+% 如果你需要临时调整表格中的字号,可以使用 |\BITSetup| 命令
+% 在局部范围内覆盖此选项(注意使用大括号)。
+%
+% \begin{latex}
+% {
+% \BITSetup{ misc / tabularFontSize = -4}
+%
+% \begin{table}[hbt]
+% \centering
+% \caption{水系聚氨酯分类} \label{tab:category}
+% \begin{tabular*}{0.9\textwidth}{@{\extracolsep{\fill}}cccc}
+% \toprule
+% 类别 &水溶型 &胶体分散型 &乳液型 \\
+% \midrule
+% 状态 &溶解$\sim$胶束 &分散 &白浊 \\
+% 外观 &水溶型 &胶体分散型 &乳液型 \\
+% 粒径$/\mu m$ &$<0.001$ &$0.001-0.1$ &$>0.1$ \\
+% 重均分子量 &$1000\sim 10000$ &数千$\sim 20$万 &$>5000$ \\
+% \bottomrule
+% \end{tabular*}
+% \end{table}
+% }
+% \end{latex}
+% \end{function}
+%
+% \begin{function}[added=2023-04-22]{misc/autoref/algo, misc/autoref/them, misc/autoref/lem,
+% misc/autoref/prop, misc/autoref/cor, misc/autoref/axi, misc/autoref/defn, misc/autoref/conj,
+% misc/autoref/exmp, misc/autoref/case, misc/autoref/rem}
+% \begin{bitsyntax}[emph={[1]tabularFontSize}]
+% autoref = {
+% algo = (*(算法)|\marg{字符串}*),
+% them = (*(定理)|\marg{字符串}*),
+% lem = (*(引理)|\marg{字符串}*),
+% prop = (*(命题)|\marg{字符串}*),
+% cor = (*(推论)|\marg{字符串}*),
+% axi = (*(公理)|\marg{字符串}*),
+% defn = (*(定义)|\marg{字符串}*),
+% conj = (*(猜想)|\marg{字符串}*),
+% exmp = (*(例)|\marg{字符串}*),
+% case = (*(情形)|\marg{字符串}*),
+% rem = (*(备注)|\marg{字符串}*),
+% }
+% \end{bitsyntax}
+%
+% \textit{此选项一般不需要用户自行修改。}
+%
+% 此选项用于定义 |autoref| 命令的输出格式。英文模板中,
+% 默认值会自动变成相应的英文格式(如|Figure|)。
+%
+% \textit{此选项的默认值实际上是受到 \autoref{sec:const} 中 |const/autoref/xxx| \\
+% (如 \cmd{misc/autoref/algo})选项的影响。}
+%
+% \end{function}
+%
+% \subsubsection{常量名称覆盖}
+% \label{sec:const}
+%
+% 在\BIThesis{} 中,模板定义了很多常量字符串,如页眉文字、章节名称等。
+% 你可以通过修改这里的选项来覆盖这些常量。
+%
+% \begin{function}{const}
+% \begin{bitsyntax}[emph={[1]const}]
+% const = (*\marg{键值列表}*)
+% const/(*\meta{key}*) = (*\meta{value}*)
+% \end{bitsyntax}
+%
+% 该选项包含许多子项目,用于调整其他选项。具体内容见下:
+% \end{function}
+%
+% \begin{variable}[added=2023-04-22]{const/autoref/algo,const/autoref/them,
+% const/autoref/lem,const/autoref/prop,const/autoref/cor,const/autoref/axi,
+% const/autoref/defn,const/autoref/conj,const/autoref/exmp,
+% const/autoref/case,const/autoref/rem}
+% \begin{bitsyntax}[emph={[1]tabularFontSize}]
+% autoref = {
+% algo = (*(算法)|\marg{字符串}*),
+% them = (*(定理)|\marg{字符串}*),
+% lem = (*(引理)|\marg{字符串}*),
+% prop = (*(命题)|\marg{字符串}*),
+% cor = (*(推论)|\marg{字符串}*),
+% axi = (*(公理)|\marg{字符串}*),
+% defn = (*(定义)|\marg{字符串}*),
+% conj = (*(猜想)|\marg{字符串}*),
+% exmp = (*(例)|\marg{字符串}*),
+% case = (*(情形)|\marg{字符串}*),
+% rem = (*(备注)|\marg{字符串}*),
+% }
+% \end{bitsyntax}
+%
+% \textit{此选项一般不需要用户自行修改。}
+%
+% 此选项用于定义 |autoref| 命令的输出格式。英文模板中,
+% 默认值会自动变成相应的英文格式(如|Figure|)。
+%
+% \end{variable}
% \section{正文编写}
%
% 请注意,请在\env{document} 之内使用以下命令 。
@@ -1523,6 +1627,31 @@
% \item 在 Windows 系统下编译最终的 PDF 文件。
% \end{itemize}
%
+% \subsection{列表项的间距过大该如何解决?}
+%
+% 相比 Word,$\LaTeX$ 的列表项间距会比行间距更大一些。
+% 这样做在一个列表项中包含多行时,可以更好地区分不同的列表项。
+% 但是,如果你只是想要一个简单的列表,这种间距可能会显得过大。
+% 想要\textbf{临时}取消这种间距,可以在环境中添加选项 |nosep|:
+%
+% \begin{latex}
+% \begin{itemize}[nosep]
+% \item 选项一
+% \item 选项二
+% \end{itemize}
+% \end{latex}
+%
+% 想要\textbf{永久}取消这种间距,可以在导言区添加如下代码:
+%
+% \begin{latex}
+% \setlist{nosep}
+% \end{latex}
+%
+% 详见:https://github.com/BITNP/BIThesis/issues/293
+%
+% \textit{以上功能由 \pkg{enumitem} 宏包支持。通过导入 \pkg{bithesis}
+% ,该宏包已经被自动导入。}
+%
% \section{\cls{bitreport.cls} 使用与配置}
% \label{sec:bitreport}
%
@@ -2168,6 +2297,17 @@
% TODO: Not so sure about the translation.
{resume} {作者简介} {Author~Biography},
{symbols} {主要符号对照表} {Nomenclature},
+ {algo} {算法} {Algorithm},
+ {them} {定理} {Theorem},
+ {lem} {引理} {Lemma},
+ {prop} {命题} {Proposition},
+ {cor} {推论} {Corollary},
+ {axi} {公理} {Axiom},
+ {defn} {定义} {Definition},
+ {conj} {猜想} {Conjecture},
+ {exmp} {例} {Example},
+ {case} {情形} {Case},
+ {rem} {注} {Remark},
}
{\@@_define_label:nnn #1}
% \end{macrocode}
@@ -2205,6 +2345,7 @@
TOC .meta:nn = { bithesis / TOC } {#1},
appendices .meta:nn = { bithesis / appendices } {#1},
publications .meta:nn = { bithesis / publications } {#1},
+ const .meta:nn = { bithesis / const } {#1},
}
% \end{macrocode}
%
@@ -2333,7 +2474,61 @@
% \begin{macrocode}
\keys_define:nn { bithesis / misc }
{
+ % 表格字体大小,默认为 5 号字体。
+ tabularFontSize .tl_set:N = \l_@@_misc_tabular_font_size_tl,
+ tabularFontSize .initial:n = {5},
arialFont .tl_set:N = \l_@@_misc_arial_font_path_tl,
+ autoref / algo .tl_set:N = \algoautorefname,
+ autoref / algo .initial:n = {\g_@@_const_autoref_algo_tl},
+ autoref / them .tl_set:N = \themautorefname,
+ autoref / them .initial:n = {\g_@@_const_autoref_them_tl},
+ autoref / lem .tl_set:N = \lemautorefname,
+ autoref / lem .initial:n = {\g_@@_const_autoref_lem_tl},
+ autoref / prop .tl_set:N = \propautorefname,
+ autoref / prop .initial:n = {\g_@@_const_autoref_prop_tl},
+ autoref / cor .tl_set:N = \corautorefname,
+ autoref / cor .initial:n = {\g_@@_const_autoref_cor_tl},
+ autoref / axi .tl_set:N = \axiautorefname,
+ autoref / axi .initial:n = {\g_@@_const_autoref_axi_tl},
+ autoref / defn .tl_set:N = \defnautorefname,
+ autoref / defn .initial:n = {\g_@@_const_autoref_defn_tl},
+ autoref / conj .tl_set:N = \conjautorefname,
+ autoref / conj .initial:n = {\g_@@_const_autoref_conj_tl},
+ autoref / exmp .tl_set:N = \exmpautorefname,
+ autoref / exmp .initial:n = {\g_@@_const_autoref_exmp_tl},
+ autoref / case .tl_set:N = \caseautorefname,
+ autoref / case .initial:n = {\g_@@_const_autoref_case_tl},
+ autoref / rem .tl_set:N = \remautorefname,
+ autoref / rem .initial:n = {\g_@@_const_autoref_rem_tl},
+ }
+% \end{macrocode}
+%
+% 定义 |bithesis/const| 键值对类。
+% \begin{macrocode}
+\keys_define:nn { bithesis / const }
+ {
+ autoref / algo .tl_set:N = \g_@@_const_autoref_algo_tl,
+ autoref / algo .initial:n = {\@@_get_const:N {algo}},
+ autoref / them .tl_set:N = \g_@@_const_autoref_them_tl,
+ autoref / them .initial:n = {\@@_get_const:N {them}},
+ autoref / lem .tl_set:N = \g_@@_const_autoref_lem_tl,
+ autoref / lem .initial:n = {\@@_get_const:N {lem}},
+ autoref / prop .tl_set:N = \g_@@_const_autoref_prop_tl,
+ autoref / prop .initial:n = {\@@_get_const:N {prop}},
+ autoref / cor .tl_set:N = \g_@@_const_autoref_cor_tl,
+ autoref / cor .initial:n = {\@@_get_const:N {cor}},
+ autoref / axi .tl_set:N = \g_@@_const_autoref_axi_tl,
+ autoref / axi .initial:n = {\@@_get_const:N {axi}},
+ autoref / defn .tl_set:N = \g_@@_const_autoref_defn_tl,
+ autoref / defn .initial:n = {\@@_get_const:N {defn}},
+ autoref / conj .tl_set:N = \g_@@_const_autoref_conj_tl,
+ autoref / conj .initial:n = {\@@_get_const:N {conj}},
+ autoref / exmp .tl_set:N = \g_@@_const_autoref_exmp_tl,
+ autoref / exmp .initial:n = {\@@_get_const:N {exmp}},
+ autoref / case .tl_set:N = \g_@@_const_autoref_case_tl,
+ autoref / case .initial:n = {\@@_get_const:N {case}},
+ autoref / rem .tl_set:N = \g_@@_const_autoref_rem_tl,
+ autoref / rem .initial:n = {\@@_get_const:N {rem}},
}
% \end{macrocode}
@@ -2956,6 +3151,17 @@
}
\setstretch{1.53}
\pagestyle{BIThesis}
+
+ % 表格内容默认使用五号字。
+ %
+ % 由于这种方式会影响所有的表格,
+ % 所以我们尽可能延迟这种影响。
+ %
+ % 不过,在目前的代码实现中没有在封面
+ % 之类的地方使用表格,所以目前即使放在
+ % preamble 中也不会有影响。
+ \AtBeginEnvironment{tabular}{\zihao{\l_@@_misc_tabular_font_size_tl}}
+ \AtBeginEnvironment{tabular*}{\zihao{\l_@@_misc_tabular_font_size_tl}}
}
% \end{macrocode}
% \end{macro}
@@ -3040,11 +3246,11 @@
% \begin{macro}{\thefigure,\thetable,\theequation,\thelstlisting,\lstlistingname}
% 定义各种计数器的格式。
% \begin{macrocode}
-% figure
+% 图片:五号字。
\cs_set:Npn \thefigure {\thechapter\g_@@_label_divide_char_tl\arabic{figure}}
\captionsetup[figure]{font=small,labelsep=space}
-% table
+% 表格:五号字。
\cs_set:Npn \thetable {\thechapter\g_@@_label_divide_char_tl\arabic{table}}
\captionsetup[table]{font=small,labelsep=space}
@@ -3103,19 +3309,19 @@
% 预定义用户常用的证明环境。
% \begin{macrocode}
\theoremstyle{plain}
- \newtheorem{algo}{算法}[chapter]
- \newtheorem{them}{定理}[chapter]
- \newtheorem{lem}[them]{引理}
- \newtheorem{prop}[them]{命题}
- \newtheorem{cor}[them]{推论}
- \newtheorem{axi}[them]{公理}
+ \newtheorem{algo}{\@@_get_const:N {algo}}[chapter]
+ \newtheorem{them}{\@@_get_const:N {them}}[chapter]
+ \newtheorem{lem}{\@@_get_const:N {lem}}[chapter]
+ \newtheorem{prop}{\@@_get_const:N {prop}}[chapter]
+ \newtheorem{cor}{\@@_get_const:N {cor}}[chapter]
+ \newtheorem{axi}{\@@_get_const:N {axi}}[chapter]
\theoremstyle{definition}
- \newtheorem{defn}{定义}[chapter]
- \newtheorem{conj}{猜想}[chapter]
- \newtheorem{exmp}{例}[chapter]
- \newtheorem{case}{情形}
+ \newtheorem{defn}{\@@_get_const:N {defn}}[chapter]
+ \newtheorem{conj}{\@@_get_const:N {conj}}[chapter]
+ \newtheorem{exmp}{\@@_get_const:N {exmp}}[chapter]
+ \newtheorem{case}{\@@_get_const:N {case}}
\theoremstyle{remark}
- \newtheorem{rem}{注}
+ \newtheorem{rem}{\@@_get_const:N {rem}}
\renewcommand{\qedsymbol}{\ensuremath{\blacksquare}}
% \end{macrocode}
%
@@ -6541,6 +6747,11 @@ footskip=0.7cm% 页脚 1.8cm %
pdfdisplaydoctitle = true
}%
+\renewcommand{\subsectionautorefname}{小节}
+\renewcommand{\subsubsectionautorefname}{小节}
+\renewcommand{\sectionautorefname}{节}
+\renewcommand{\chapterautorefname}{章}
+
\newcommand{\BIThesisLaTeX}{{\BIThesis}北京理工大学学位论文及报告{\LaTeX}模板}
\newcommand{\BIThesisMacroPackage}{{\BIThesis}宏包}
\newcommand{\BIThesisWiki}{{\BIThesis}在线文档}
diff --git a/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls b/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls
index 7d3a8b47017..fc562050a8a 100644
--- a/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls
+++ b/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls
@@ -27,7 +27,7 @@
%%
\RequirePackage{expl3,l3keys2e}
\ProvidesExplClass{bitbeamer}
-{2023-04-14}{3.5.2}{BIT Thesis Templates}
+{2023-04-23}{3.5.3}{BIT Thesis Templates}
\keys_define:nn { bitbeamer }
{
titlegraphic .tl_set:N = \l_bit_titlegraphic_tl,
diff --git a/Master/texmf-dist/tex/latex/bithesis/bithesis.cls b/Master/texmf-dist/tex/latex/bithesis/bithesis.cls
index 74ff491627e..0e5101746be 100644
--- a/Master/texmf-dist/tex/latex/bithesis/bithesis.cls
+++ b/Master/texmf-dist/tex/latex/bithesis/bithesis.cls
@@ -27,7 +27,7 @@
%%
\RequirePackage{expl3,l3keys2e}
\ProvidesExplClass{bithesis}
-{2023-04-14}{3.5.2}{BIT Thesis Templates}
+{2023-04-23}{3.5.3}{BIT Thesis Templates}
\int_new:N \g__bithesis_thesis_type_int
\int_new:N \g__bithesis_head_zihao_int
\bool_new:N \g__bithesis_twoside_bool
@@ -229,6 +229,17 @@
% TODO: Not so sure about the translation.
{resume} {作者简介} {Author~Biography},
{symbols} {主要符号对照表} {Nomenclature},
+ {algo} {算法} {Algorithm},
+ {them} {定理} {Theorem},
+ {lem} {引理} {Lemma},
+ {prop} {命题} {Proposition},
+ {cor} {推论} {Corollary},
+ {axi} {公理} {Axiom},
+ {defn} {定义} {Definition},
+ {conj} {猜想} {Conjecture},
+ {exmp} {例} {Example},
+ {case} {情形} {Case},
+ {rem} {注} {Remark},
}
{\__bithesis_define_label:nnn #1}
\clist_const:Nn \c__bithesis_bachelor_thesis_header_clist
@@ -253,6 +264,7 @@
TOC .meta:nn = { bithesis / TOC } {#1},
appendices .meta:nn = { bithesis / appendices } {#1},
publications .meta:nn = { bithesis / publications } {#1},
+ const .meta:nn = { bithesis / const } {#1},
}
\keys_define:nn { bithesis / option }
{
@@ -365,7 +377,57 @@
}
\keys_define:nn { bithesis / misc }
{
+ % 表格字体大小,默认为 5 号字体。
+ tabularFontSize .tl_set:N = \l__bithesis_misc_tabular_font_size_tl,
+ tabularFontSize .initial:n = {5},
arialFont .tl_set:N = \l__bithesis_misc_arial_font_path_tl,
+ autoref / algo .tl_set:N = \algoautorefname,
+ autoref / algo .initial:n = {\g__bithesis_const_autoref_algo_tl},
+ autoref / them .tl_set:N = \themautorefname,
+ autoref / them .initial:n = {\g__bithesis_const_autoref_them_tl},
+ autoref / lem .tl_set:N = \lemautorefname,
+ autoref / lem .initial:n = {\g__bithesis_const_autoref_lem_tl},
+ autoref / prop .tl_set:N = \propautorefname,
+ autoref / prop .initial:n = {\g__bithesis_const_autoref_prop_tl},
+ autoref / cor .tl_set:N = \corautorefname,
+ autoref / cor .initial:n = {\g__bithesis_const_autoref_cor_tl},
+ autoref / axi .tl_set:N = \axiautorefname,
+ autoref / axi .initial:n = {\g__bithesis_const_autoref_axi_tl},
+ autoref / defn .tl_set:N = \defnautorefname,
+ autoref / defn .initial:n = {\g__bithesis_const_autoref_defn_tl},
+ autoref / conj .tl_set:N = \conjautorefname,
+ autoref / conj .initial:n = {\g__bithesis_const_autoref_conj_tl},
+ autoref / exmp .tl_set:N = \exmpautorefname,
+ autoref / exmp .initial:n = {\g__bithesis_const_autoref_exmp_tl},
+ autoref / case .tl_set:N = \caseautorefname,
+ autoref / case .initial:n = {\g__bithesis_const_autoref_case_tl},
+ autoref / rem .tl_set:N = \remautorefname,
+ autoref / rem .initial:n = {\g__bithesis_const_autoref_rem_tl},
+ }
+\keys_define:nn { bithesis / const }
+ {
+ autoref / algo .tl_set:N = \g__bithesis_const_autoref_algo_tl,
+ autoref / algo .initial:n = {\__bithesis_get_const:N {algo}},
+ autoref / them .tl_set:N = \g__bithesis_const_autoref_them_tl,
+ autoref / them .initial:n = {\__bithesis_get_const:N {them}},
+ autoref / lem .tl_set:N = \g__bithesis_const_autoref_lem_tl,
+ autoref / lem .initial:n = {\__bithesis_get_const:N {lem}},
+ autoref / prop .tl_set:N = \g__bithesis_const_autoref_prop_tl,
+ autoref / prop .initial:n = {\__bithesis_get_const:N {prop}},
+ autoref / cor .tl_set:N = \g__bithesis_const_autoref_cor_tl,
+ autoref / cor .initial:n = {\__bithesis_get_const:N {cor}},
+ autoref / axi .tl_set:N = \g__bithesis_const_autoref_axi_tl,
+ autoref / axi .initial:n = {\__bithesis_get_const:N {axi}},
+ autoref / defn .tl_set:N = \g__bithesis_const_autoref_defn_tl,
+ autoref / defn .initial:n = {\__bithesis_get_const:N {defn}},
+ autoref / conj .tl_set:N = \g__bithesis_const_autoref_conj_tl,
+ autoref / conj .initial:n = {\__bithesis_get_const:N {conj}},
+ autoref / exmp .tl_set:N = \g__bithesis_const_autoref_exmp_tl,
+ autoref / exmp .initial:n = {\__bithesis_get_const:N {exmp}},
+ autoref / case .tl_set:N = \g__bithesis_const_autoref_case_tl,
+ autoref / case .initial:n = {\__bithesis_get_const:N {case}},
+ autoref / rem .tl_set:N = \g__bithesis_const_autoref_rem_tl,
+ autoref / rem .initial:n = {\__bithesis_get_const:N {rem}},
}
\keys_define:nn { bithesis / style }
@@ -820,6 +882,17 @@
}
\setstretch{1.53}
\pagestyle{BIThesis}
+
+ % 表格内容默认使用五号字。
+ %
+ % 由于这种方式会影响所有的表格,
+ % 所以我们尽可能延迟这种影响。
+ %
+ % 不过,在目前的代码实现中没有在封面
+ % 之类的地方使用表格,所以目前即使放在
+ % preamble 中也不会有影响。
+ \AtBeginEnvironment{tabular}{\zihao{\l__bithesis_misc_tabular_font_size_tl}}
+ \AtBeginEnvironment{tabular*}{\zihao{\l__bithesis_misc_tabular_font_size_tl}}
}
\RenewDocumentCommand \mainmatter {} {
% 另起一个空页,以便于后续的章节标题编号。
@@ -919,19 +992,19 @@
\cs_set:Npn \listfigurename {\__bithesis_get_const:N {figure}}
\cs_set:Npn \listtablename {\__bithesis_get_const:N {table}}
\theoremstyle{plain}
- \newtheorem{algo}{算法}[chapter]
- \newtheorem{them}{定理}[chapter]
- \newtheorem{lem}[them]{引理}
- \newtheorem{prop}[them]{命题}
- \newtheorem{cor}[them]{推论}
- \newtheorem{axi}[them]{公理}
+ \newtheorem{algo}{\__bithesis_get_const:N {algo}}[chapter]
+ \newtheorem{them}{\__bithesis_get_const:N {them}}[chapter]
+ \newtheorem{lem}{\__bithesis_get_const:N {lem}}[chapter]
+ \newtheorem{prop}{\__bithesis_get_const:N {prop}}[chapter]
+ \newtheorem{cor}{\__bithesis_get_const:N {cor}}[chapter]
+ \newtheorem{axi}{\__bithesis_get_const:N {axi}}[chapter]
\theoremstyle{definition}
- \newtheorem{defn}{定义}[chapter]
- \newtheorem{conj}{猜想}[chapter]
- \newtheorem{exmp}{例}[chapter]
- \newtheorem{case}{情形}
+ \newtheorem{defn}{\__bithesis_get_const:N {defn}}[chapter]
+ \newtheorem{conj}{\__bithesis_get_const:N {conj}}[chapter]
+ \newtheorem{exmp}{\__bithesis_get_const:N {exmp}}[chapter]
+ \newtheorem{case}{\__bithesis_get_const:N {case}}
\theoremstyle{remark}
- \newtheorem{rem}{注}
+ \newtheorem{rem}{\__bithesis_get_const:N {rem}}
\renewcommand{\qedsymbol}{\ensuremath{\blacksquare}}
\cs_new:Npn \__bithesis_dunderline:nnn #1#2#3 {
{\setbox0=\hbox{#3}\ooalign{\copy0\cr\rule[\dimexpr#1-#2\relax]{\wd0}{#2}}}
diff --git a/Master/texmf-dist/tex/latex/bithesis/bitreport.cls b/Master/texmf-dist/tex/latex/bithesis/bitreport.cls
index 3cf21962e9d..04cb263a40e 100644
--- a/Master/texmf-dist/tex/latex/bithesis/bitreport.cls
+++ b/Master/texmf-dist/tex/latex/bithesis/bitreport.cls
@@ -27,7 +27,7 @@
%%
\RequirePackage{expl3,l3keys2e}
\ProvidesExplClass{bitreport}
-{2023-04-14}{3.5.2}{BIT Thesis Templates}
+{2023-04-23}{3.5.3}{BIT Thesis Templates}
\int_new:N \g__bithesis_report_type_int
\clist_const:Nn \c__bithesis_report_type_clist
{ common, undergraduate_proposal}