summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-02-20 20:53:57 +0000
committerKarl Berry <karl@freefriends.org>2023-02-20 20:53:57 +0000
commitcc6f280bd2a7742afc145b7504f551658e01dfc4 (patch)
tree9969c95297ad2d723d7d270e837fe8a188a67b6c /Master/texmf-dist/source
parenta12d2783a500d194949b8c93c9cc14330dc2bd41 (diff)
bithesis (20feb23) (branch)
git-svn-id: svn://tug.org/texlive/branches/branch2022.final@65978 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/latex/bithesis/bithesis.dtx70
1 files changed, 63 insertions, 7 deletions
diff --git a/Master/texmf-dist/source/latex/bithesis/bithesis.dtx b/Master/texmf-dist/source/latex/bithesis/bithesis.dtx
index 71252d8e2b9..ce6de30aec2 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-02-11}{3.3.1}{BIT Thesis Templates}
+%<cls>{2023-02-20}{3.4.0}{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/02/11 3.3.1 BIT Thesis Templates]
+\ProvidesFile{bithesis.dtx}[2023/02/20 3.4.0 BIT Thesis Templates]
\documentclass[letterpaper]{l3doc}
\usepackage{dtx-style}
@@ -1027,6 +1027,30 @@
% \textit{一般不需要用户自行修改。}
% \end{function}
%
+% \begin{function}[added=2023-02-18]{publications/maxbibnames}
+% \begin{bitsyntax}[emph={[1]maxbibnames}]
+% maxbibnames = (*(3)|\marg{正整数}*)
+% \end{bitsyntax}
+%
+% 影响「攻读学位期间发表论文与研究成果清单」中所有名称列表(author、editor 等)的阈值。
+% 如果名称列表超过了该阈值,即,它包含的姓名数量超过 \marg{正整数},
+% 那么就会根据 \kvopt{publications/minbibnames}{正整数} 选项的设置进行自动截断。
+%
+% \end{function}
+%
+% \begin{function}[added=2023-02-18]{publications/minbibnames}
+% \begin{bitsyntax}[emph={[1]minbibnames}]
+% minbibnames = (*(1)|\marg{正整数}*)
+% \end{bitsyntax}
+%
+% 影响所有名称列表(author、editor 等)的限制值。如果某个列表包含的姓名数量超
+% 过 \marg{正整数},那么就会自动截断至 |minbibnames| 个姓名。|minbibnames| 的值必须小于或
+% 等于 |maxbibnames|。
+%
+% 对于用户来说,可以将 |minbibnames| 理解为「姓名列表的最小长度」。
+% 例如,你在全部文献中最低排在第四位,那么可以将 |minbibnames| 和 |maxbibnames| 都设置为 4。
+%
+% \end{function}
%
% \subsubsection{其他配置}
%
@@ -1104,7 +1128,7 @@
% 此时页码会使用罗马数字进行计数。
% \end{function}
%
-% \begin{function}{abstract}
+% \begin{function}[updated=2023-02-17]{abstract}
% \begin{bitsyntax}[emph={[1]abstract}]
% \begin{abstract}
% (*\meta{中文摘要}*)
@@ -1112,7 +1136,7 @@
% \end{bitsyntax}
% \end{function}
%
-% \begin{function}{abstractEn}
+% \begin{function}[updated=2023-02-17]{abstractEn}
% \begin{bitsyntax}[emph={[1]abstractEn}]
% \begin{abstractEn}
% (*\meta{英文摘要}*)
@@ -2224,6 +2248,10 @@
sorting .initial:n = {true},
omit .bool_set:N = \l_@@_publications_omit_bool,
omit .initial:n = {false},
+ maxbibnames .int_set:N = \l_@@_publications_maxbibnames_int,
+ maxbibnames .initial:n = {3},
+ minbibnames .int_set:N = \l_@@_publications_minbibnames_int,
+ minbibnames .initial:n = {1},
}
% \end{macrocode}
% 在宏加载时,处理 |bithesis/option| 中的值。使得 |bithesis|
@@ -2258,6 +2286,10 @@
}
% \end{macrocode}
%
+% 抑制 fontspec 宏包关于字体的警告信息。
+% \begin{macrocode}
+\PassOptionsToPackage{quiet}{xeCJK}
+% \end{macrocode}
% 加载 ctexbook 模板类。
% \begin{macrocode}
\ProcessOptions\relax
@@ -3735,7 +3767,14 @@
\par
\vspace{4ex}
\noindent
- \textbf{\heiti \c_@@_label_keywords_tl \l_@@_value_keywords_tl}\par
+ \@@_if_graduate:TF {
+ % 研究生模板中,“关键词”宋体小四加粗
+ % 关键词为宋体小四号字。
+ \textbf{\c_@@_label_keywords_tl}\l_@@_value_keywords_tl\par
+ } {
+ % 本科生模板中,关键词为黑体加粗
+ \textbf{\heiti \c_@@_label_keywords_tl \l_@@_value_keywords_tl}\par
+ }
\newpage
}
% \end{macrocode}
@@ -3801,7 +3840,14 @@
}
{
\par\vspace{3ex}\noindent
- \textbf{\c_@@_label_keywords_en_tl \l_@@_value_keywords_en_tl}
+ \@@_if_graduate:TF {
+ % Times New Roman小四号字,行距22磅
+ % “Key Words”
+ % Times New Roman小四号字加粗
+ \textbf{\c_@@_label_keywords_en_tl} \l_@@_value_keywords_en_tl
+ } {
+ \textbf{\c_@@_label_keywords_en_tl \l_@@_value_keywords_en_tl}
+ }
\newpage
}
@@ -4161,6 +4207,16 @@
\newrefcontext
}
+ % 根据 maxbibnames 的设置,覆盖 \blx@maxbibnames 选项,保证所有作者都能显示。
+ \cs_set:Npn \blx@maxbibnames {
+ \l_@@_publications_maxbibnames_int
+ }
+
+ % 根据 minbibnames 的设置,覆盖 \blx@minbibnames 选项,保证所有作者都能显示。
+ \cs_set:Npn \blx@minbibnames {
+ \l_@@_publications_minbibnames_int
+ }
+
\chapter{\c_@@_label_publications_tl}
#1
\end{blindPeerReview}
@@ -6140,7 +6196,7 @@ footskip=0.7cm% 页脚 1.8cm %
\ProvidesPackage{dtx-style}
\RequirePackage{hypdoc}
\RequirePackage{ifthen}
-\RequirePackage{fontspec}
+\RequirePackage[quiet]{fontspec}
\RequirePackage{amsmath}
\RequirePackage{unicode-math}
\RequirePackage[UTF8,scheme=chinese,heading,sub3section]{ctex}