From 1e57b6c0752375de41cf19da7ac10cfac03b5b2d Mon Sep 17 00:00:00 2001 From: Feng Kaiyu Date: Sun, 23 Oct 2022 11:48:04 +0800 Subject: [PATCH] chore(dtx): add more docs. --- bithesis.dtx | 10 +++++++--- templates/graduate-thesis/bithesis.cls | 8 ++++++-- templates/lab-report/bitreport.cls | 2 +- templates/paper-translation/bithesis.cls | 8 ++++++-- templates/presentation-slide/bitbeamer.cls | 2 +- templates/undergraduate-proposal-report/bitreport.cls | 2 +- templates/undergraduate-thesis-en/bithesis.cls | 8 ++++++-- templates/undergraduate-thesis/bithesis.cls | 8 ++++++-- 8 files changed, 34 insertions(+), 14 deletions(-) diff --git a/bithesis.dtx b/bithesis.dtx index 9ba60724..09f85d54 100644 --- a/bithesis.dtx +++ b/bithesis.dtx @@ -21,7 +21,7 @@ %\ProvidesExplClass{bithesis} %\ProvidesExplClass{bitreport} %\ProvidesExplClass{bitbeamer} -%{2022-10-17}{3.0.5}{BIT Thesis Templates} +%{2022-10-23}{3.1.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}[2022/10/17 3.0.5 BIT Thesis Templates] +\ProvidesFile{bithesis.dtx}[2022/10/23 3.1.0 BIT Thesis Templates] \documentclass[letterpaper]{l3doc} \usepackage{dtx-style} @@ -3753,6 +3753,7 @@ % \begin{macrocode} \NewDocumentEnvironment {publications} {+b} { + % 同时设置 omit 以及 blindPeerReview 才能跳过此章节生成。 \begin{blindPeerReview}[\l_@@_publications_omit_bool] % 设置参考文献字号为 5 号 \renewcommand*{\bibfont}{\zihao{5}} @@ -3790,6 +3791,8 @@ } % ===== 上方定义与「参考文献」部分相同 + + % 中文姓名下,此部分不参与输出。 \cs_set:Npn \mkbibnamegiven ##1 { \haspartannotation{myself}{ \bool_if:NTF \g_@@_blind_mode_bool { @@ -3846,9 +3849,10 @@ % 设置小标题 \cs_new:Npn \pubsection ##1 { { + % 自增计数器 \stepcounter{pub} + % 设置小标题,暂时没有考虑英文模式 \noindent\zhnumber{\thepub}、##1\par - \setlength{\parskip}{\baselineskip} } } diff --git a/templates/graduate-thesis/bithesis.cls b/templates/graduate-thesis/bithesis.cls index 9fc521e1..952298f4 100644 --- a/templates/graduate-thesis/bithesis.cls +++ b/templates/graduate-thesis/bithesis.cls @@ -27,7 +27,7 @@ %% \RequirePackage{expl3,l3keys2e} \ProvidesExplClass{bithesis} -{2022-10-17}{3.0.5}{BIT Thesis Templates} +{2022-10-23}{3.1.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 @@ -1705,6 +1705,7 @@ } \NewDocumentEnvironment {publications} {+b} { + % 同时设置 omit 以及 blindPeerReview 才能跳过此章节生成。 \begin{blindPeerReview}[\l__bithesis_publications_omit_bool] % 设置参考文献字号为 5 号 \renewcommand*{\bibfont}{\zihao{5}} @@ -1742,6 +1743,8 @@ } % ===== 上方定义与「参考文献」部分相同 + + % 中文姓名下,此部分不参与输出。 \cs_set:Npn \mkbibnamegiven ##1 { \haspartannotation{myself}{ \bool_if:NTF \g__bithesis_blind_mode_bool { @@ -1798,9 +1801,10 @@ % 设置小标题 \cs_new:Npn \pubsection ##1 { { + % 自增计数器 \stepcounter{pub} + % 设置小标题,暂时没有考虑英文模式 \noindent\zhnumber{\thepub}、##1\par - \setlength{\parskip}{\baselineskip} } } diff --git a/templates/lab-report/bitreport.cls b/templates/lab-report/bitreport.cls index 24a3970d..3f0966ab 100644 --- a/templates/lab-report/bitreport.cls +++ b/templates/lab-report/bitreport.cls @@ -27,7 +27,7 @@ %% \RequirePackage{expl3,l3keys2e} \ProvidesExplClass{bitreport} -{2022-10-17}{3.0.5}{BIT Thesis Templates} +{2022-10-23}{3.1.0}{BIT Thesis Templates} \int_new:N \g__bithesis_report_type_int \clist_const:Nn \c__bithesis_report_type_clist { common, undergraduate_proposal} diff --git a/templates/paper-translation/bithesis.cls b/templates/paper-translation/bithesis.cls index 9fc521e1..952298f4 100644 --- a/templates/paper-translation/bithesis.cls +++ b/templates/paper-translation/bithesis.cls @@ -27,7 +27,7 @@ %% \RequirePackage{expl3,l3keys2e} \ProvidesExplClass{bithesis} -{2022-10-17}{3.0.5}{BIT Thesis Templates} +{2022-10-23}{3.1.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 @@ -1705,6 +1705,7 @@ } \NewDocumentEnvironment {publications} {+b} { + % 同时设置 omit 以及 blindPeerReview 才能跳过此章节生成。 \begin{blindPeerReview}[\l__bithesis_publications_omit_bool] % 设置参考文献字号为 5 号 \renewcommand*{\bibfont}{\zihao{5}} @@ -1742,6 +1743,8 @@ } % ===== 上方定义与「参考文献」部分相同 + + % 中文姓名下,此部分不参与输出。 \cs_set:Npn \mkbibnamegiven ##1 { \haspartannotation{myself}{ \bool_if:NTF \g__bithesis_blind_mode_bool { @@ -1798,9 +1801,10 @@ % 设置小标题 \cs_new:Npn \pubsection ##1 { { + % 自增计数器 \stepcounter{pub} + % 设置小标题,暂时没有考虑英文模式 \noindent\zhnumber{\thepub}、##1\par - \setlength{\parskip}{\baselineskip} } } diff --git a/templates/presentation-slide/bitbeamer.cls b/templates/presentation-slide/bitbeamer.cls index 115b7baf..21506abf 100644 --- a/templates/presentation-slide/bitbeamer.cls +++ b/templates/presentation-slide/bitbeamer.cls @@ -27,7 +27,7 @@ %% \RequirePackage{expl3,l3keys2e} \ProvidesExplClass{bitbeamer} -{2022-10-17}{3.0.5}{BIT Thesis Templates} +{2022-10-23}{3.1.0}{BIT Thesis Templates} \keys_define:nn { bitbeamer } { titlegraphic .tl_set:N = \l_bit_titlegraphic_tl, diff --git a/templates/undergraduate-proposal-report/bitreport.cls b/templates/undergraduate-proposal-report/bitreport.cls index 24a3970d..3f0966ab 100644 --- a/templates/undergraduate-proposal-report/bitreport.cls +++ b/templates/undergraduate-proposal-report/bitreport.cls @@ -27,7 +27,7 @@ %% \RequirePackage{expl3,l3keys2e} \ProvidesExplClass{bitreport} -{2022-10-17}{3.0.5}{BIT Thesis Templates} +{2022-10-23}{3.1.0}{BIT Thesis Templates} \int_new:N \g__bithesis_report_type_int \clist_const:Nn \c__bithesis_report_type_clist { common, undergraduate_proposal} diff --git a/templates/undergraduate-thesis-en/bithesis.cls b/templates/undergraduate-thesis-en/bithesis.cls index 9fc521e1..952298f4 100644 --- a/templates/undergraduate-thesis-en/bithesis.cls +++ b/templates/undergraduate-thesis-en/bithesis.cls @@ -27,7 +27,7 @@ %% \RequirePackage{expl3,l3keys2e} \ProvidesExplClass{bithesis} -{2022-10-17}{3.0.5}{BIT Thesis Templates} +{2022-10-23}{3.1.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 @@ -1705,6 +1705,7 @@ } \NewDocumentEnvironment {publications} {+b} { + % 同时设置 omit 以及 blindPeerReview 才能跳过此章节生成。 \begin{blindPeerReview}[\l__bithesis_publications_omit_bool] % 设置参考文献字号为 5 号 \renewcommand*{\bibfont}{\zihao{5}} @@ -1742,6 +1743,8 @@ } % ===== 上方定义与「参考文献」部分相同 + + % 中文姓名下,此部分不参与输出。 \cs_set:Npn \mkbibnamegiven ##1 { \haspartannotation{myself}{ \bool_if:NTF \g__bithesis_blind_mode_bool { @@ -1798,9 +1801,10 @@ % 设置小标题 \cs_new:Npn \pubsection ##1 { { + % 自增计数器 \stepcounter{pub} + % 设置小标题,暂时没有考虑英文模式 \noindent\zhnumber{\thepub}、##1\par - \setlength{\parskip}{\baselineskip} } } diff --git a/templates/undergraduate-thesis/bithesis.cls b/templates/undergraduate-thesis/bithesis.cls index 9fc521e1..952298f4 100644 --- a/templates/undergraduate-thesis/bithesis.cls +++ b/templates/undergraduate-thesis/bithesis.cls @@ -27,7 +27,7 @@ %% \RequirePackage{expl3,l3keys2e} \ProvidesExplClass{bithesis} -{2022-10-17}{3.0.5}{BIT Thesis Templates} +{2022-10-23}{3.1.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 @@ -1705,6 +1705,7 @@ } \NewDocumentEnvironment {publications} {+b} { + % 同时设置 omit 以及 blindPeerReview 才能跳过此章节生成。 \begin{blindPeerReview}[\l__bithesis_publications_omit_bool] % 设置参考文献字号为 5 号 \renewcommand*{\bibfont}{\zihao{5}} @@ -1742,6 +1743,8 @@ } % ===== 上方定义与「参考文献」部分相同 + + % 中文姓名下,此部分不参与输出。 \cs_set:Npn \mkbibnamegiven ##1 { \haspartannotation{myself}{ \bool_if:NTF \g__bithesis_blind_mode_bool { @@ -1798,9 +1801,10 @@ % 设置小标题 \cs_new:Npn \pubsection ##1 { { + % 自增计数器 \stepcounter{pub} + % 设置小标题,暂时没有考虑英文模式 \noindent\zhnumber{\thepub}、##1\par - \setlength{\parskip}{\baselineskip} } }