texlive[65978] branches/branch2022.final/Master/texmf-dist: bithesis

commits+karl at tug.org commits+karl at tug.org
Mon Feb 20 21:53:58 CET 2023


Revision: 65978
          http://tug.org/svn/texlive?view=revision&revision=65978
Author:   karl
Date:     2023-02-20 21:53:57 +0100 (Mon, 20 Feb 2023)
Log Message:
-----------
bithesis (20feb23) (branch)

Modified Paths:
--------------
    branches/branch2022.final/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf
    branches/branch2022.final/Master/texmf-dist/doc/latex/bithesis/dtx-style.sty
    branches/branch2022.final/Master/texmf-dist/source/latex/bithesis/bithesis.dtx
    branches/branch2022.final/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls
    branches/branch2022.final/Master/texmf-dist/tex/latex/bithesis/bithesis.cls
    branches/branch2022.final/Master/texmf-dist/tex/latex/bithesis/bitreport.cls

Modified: branches/branch2022.final/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf
===================================================================
(Binary files differ)

Modified: branches/branch2022.final/Master/texmf-dist/doc/latex/bithesis/dtx-style.sty
===================================================================
--- branches/branch2022.final/Master/texmf-dist/doc/latex/bithesis/dtx-style.sty	2023-02-20 20:53:40 UTC (rev 65977)
+++ branches/branch2022.final/Master/texmf-dist/doc/latex/bithesis/dtx-style.sty	2023-02-20 20:53:57 UTC (rev 65978)
@@ -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}

Modified: branches/branch2022.final/Master/texmf-dist/source/latex/bithesis/bithesis.dtx
===================================================================
--- branches/branch2022.final/Master/texmf-dist/source/latex/bithesis/bithesis.dtx	2023-02-20 20:53:40 UTC (rev 65977)
+++ branches/branch2022.final/Master/texmf-dist/source/latex/bithesis/bithesis.dtx	2023-02-20 20:53:57 UTC (rev 65978)
@@ -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,7 +1027,31 @@
 % \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{其他配置}
 % 
 % \begin{function}{misc}
@@ -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 at maxbibnames 选项,保证所有作者都能显示。
+      \cs_set:Npn \blx at maxbibnames {
+        \l_@@_publications_maxbibnames_int
+      }
+
+      % 根据 minbibnames 的设置,覆盖 \blx at minbibnames 选项,保证所有作者都能显示。
+      \cs_set:Npn \blx at minbibnames {
+        \l_@@_publications_minbibnames_int
+      }
+
       \chapter{\c_@@_label_publications_tl}
       #1
     \end{blindPeerReview}
@@ -6140,7 +6196,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}

Modified: branches/branch2022.final/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls
===================================================================
--- branches/branch2022.final/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls	2023-02-20 20:53:40 UTC (rev 65977)
+++ branches/branch2022.final/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls	2023-02-20 20:53:57 UTC (rev 65978)
@@ -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,

Modified: branches/branch2022.final/Master/texmf-dist/tex/latex/bithesis/bithesis.cls
===================================================================
--- branches/branch2022.final/Master/texmf-dist/tex/latex/bithesis/bithesis.cls	2023-02-20 20:53:40 UTC (rev 65977)
+++ branches/branch2022.final/Master/texmf-dist/tex/latex/bithesis/bithesis.cls	2023-02-20 20:53:57 UTC (rev 65978)
@@ -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 at maxbibnames 选项,保证所有作者都能显示。
+      \cs_set:Npn \blx at maxbibnames {
+        \l__bithesis_publications_maxbibnames_int
+      }
+
+      % 根据 minbibnames 的设置,覆盖 \blx at minbibnames 选项,保证所有作者都能显示。
+      \cs_set:Npn \blx at minbibnames {
+        \l__bithesis_publications_minbibnames_int
+      }
+
       \chapter{\c__bithesis_label_publications_tl}
       #1
     \end{blindPeerReview}

Modified: branches/branch2022.final/Master/texmf-dist/tex/latex/bithesis/bitreport.cls
===================================================================
--- branches/branch2022.final/Master/texmf-dist/tex/latex/bithesis/bitreport.cls	2023-02-20 20:53:40 UTC (rev 65977)
+++ branches/branch2022.final/Master/texmf-dist/tex/latex/bithesis/bitreport.cls	2023-02-20 20:53:57 UTC (rev 65978)
@@ -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}



More information about the tex-live-commits mailing list.