From 42cf7d9167ba1d352f7963efa86f4e0ed71a9063 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 20 Feb 2023 21:00:21 +0000 Subject: bithesis (20feb23) git-svn-id: svn://tug.org/texlive/trunk@65981 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/bithesis/bithesis.pdf | Bin 1067361 -> 1077517 bytes Master/texmf-dist/doc/latex/bithesis/dtx-style.sty | 2 +- .../texmf-dist/source/latex/bithesis/bithesis.dtx | 70 ++++++++++++++++++--- Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls | 2 +- Master/texmf-dist/tex/latex/bithesis/bithesis.cls | 35 ++++++++++- Master/texmf-dist/tex/latex/bithesis/bitreport.cls | 2 +- 6 files changed, 98 insertions(+), 13 deletions(-) (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf b/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf index b235ecb670f..a9005369848 100644 Binary files a/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf and b/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf differ diff --git a/Master/texmf-dist/doc/latex/bithesis/dtx-style.sty b/Master/texmf-dist/doc/latex/bithesis/dtx-style.sty index 4096db7ce08..41a76244cc5 100644 --- a/Master/texmf-dist/doc/latex/bithesis/dtx-style.sty +++ b/Master/texmf-dist/doc/latex/bithesis/dtx-style.sty @@ -28,7 +28,7 @@ \ProvidesPackage{dtx-style} \RequirePackage{hypdoc} \RequirePackage{ifthen} -\RequirePackage{fontspec} +\RequirePackage[quiet]{fontspec} \RequirePackage{amsmath} \RequirePackage{unicode-math} \RequirePackage[UTF8,scheme=chinese,heading,sub3section]{ctex} 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 @@ %\ProvidesExplClass{bithesis} %\ProvidesExplClass{bitreport} %\ProvidesExplClass{bitbeamer} -%{2023-02-11}{3.3.1}{BIT Thesis Templates} +%{2023-02-20}{3.4.0}{BIT Thesis Templates} % %\NeedsTeXFormat{LaTeX2e}[2020/10/01] %\ProvidesClass{bitbook} @@ -30,7 +30,7 @@ % [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} diff --git a/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls b/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls index 4ea80f2a312..428f4dccb43 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-02-11}{3.3.1}{BIT Thesis Templates} +{2023-02-20}{3.4.0}{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 28f990487b7..600e45772d7 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-02-11}{3.3.1}{BIT Thesis Templates} +{2023-02-20}{3.4.0}{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 @@ -395,6 +395,10 @@ sorting .initial:n = {true}, omit .bool_set:N = \l__bithesis_publications_omit_bool, omit .initial:n = {false}, + maxbibnames .int_set:N = \l__bithesis_publications_maxbibnames_int, + maxbibnames .initial:n = {3}, + minbibnames .int_set:N = \l__bithesis_publications_minbibnames_int, + minbibnames .initial:n = {1}, } \ProcessKeysOptions { bithesis / option } \__bithesis_if_thesis_english:T { @@ -407,6 +411,7 @@ \DeclareOption*{ \PassOptionsToClass{\l__bithesis_options_to_ctex_tl}{ctexbook} } +\PassOptionsToPackage{quiet}{xeCJK} \ProcessOptions\relax \LoadClass[zihao=-4,]{ctexbook} \RequirePackage{geometry} @@ -1572,7 +1577,14 @@ \par \vspace{4ex} \noindent - \textbf{\heiti \c__bithesis_label_keywords_tl \l__bithesis_value_keywords_tl}\par + \__bithesis_if_graduate:TF { + % 研究生模板中,“关键词”宋体小四加粗 + % 关键词为宋体小四号字。 + \textbf{\c__bithesis_label_keywords_tl}\l__bithesis_value_keywords_tl\par + } { + % 本科生模板中,关键词为黑体加粗 + \textbf{\heiti \c__bithesis_label_keywords_tl \l__bithesis_value_keywords_tl}\par + } \newpage } \NewDocumentEnvironment {abstractEn} {} @@ -1632,7 +1644,14 @@ } { \par\vspace{3ex}\noindent - \textbf{\c__bithesis_label_keywords_en_tl \l__bithesis_value_keywords_en_tl} + \__bithesis_if_graduate:TF { + % Times New Roman小四号字,行距22磅 + % “Key Words” + % Times New Roman小四号字加粗 + \textbf{\c__bithesis_label_keywords_en_tl} \l__bithesis_value_keywords_en_tl + } { + \textbf{\c__bithesis_label_keywords_en_tl \l__bithesis_value_keywords_en_tl} + } \newpage } @@ -1942,6 +1961,16 @@ \newrefcontext } + % 根据 maxbibnames 的设置,覆盖 \blx@maxbibnames 选项,保证所有作者都能显示。 + \cs_set:Npn \blx@maxbibnames { + \l__bithesis_publications_maxbibnames_int + } + + % 根据 minbibnames 的设置,覆盖 \blx@minbibnames 选项,保证所有作者都能显示。 + \cs_set:Npn \blx@minbibnames { + \l__bithesis_publications_minbibnames_int + } + \chapter{\c__bithesis_label_publications_tl} #1 \end{blindPeerReview} diff --git a/Master/texmf-dist/tex/latex/bithesis/bitreport.cls b/Master/texmf-dist/tex/latex/bithesis/bitreport.cls index eaeeaa05e3b..9b04b1a0e55 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-02-11}{3.3.1}{BIT Thesis Templates} +{2023-02-20}{3.4.0}{BIT Thesis Templates} \int_new:N \g__bithesis_report_type_int \clist_const:Nn \c__bithesis_report_type_clist { common, undergraduate_proposal} -- cgit v1.2.3