From 25fb543f397c304fd4259f4cce8956629561e822 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 30 Dec 2022 21:55:05 +0000 Subject: bithesis (30dec22) git-svn-id: svn://tug.org/texlive/trunk@65409 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/bithesis/bithesis.pdf | Bin 1047736 -> 1049781 bytes .../texmf-dist/source/latex/bithesis/bithesis.dtx | 38 ++++++++++++++++++--- Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls | 2 +- Master/texmf-dist/tex/latex/bithesis/bithesis.cls | 36 ++++++++++++++++--- Master/texmf-dist/tex/latex/bithesis/bitreport.cls | 2 +- 5 files changed, 67 insertions(+), 11 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 a8113bf5518..ca205294770 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/source/latex/bithesis/bithesis.dtx b/Master/texmf-dist/source/latex/bithesis/bithesis.dtx index 2bcc47bbbdd..ffad61b11d4 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} -%{2022-12-17}{3.2.1}{BIT Thesis Templates} +%{2022-12-30}{3.2.3}{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/12/17 3.2.1 BIT Thesis Templates] +\ProvidesFile{bithesis.dtx}[2022/12/30 3.2.3 BIT Thesis Templates] \documentclass[letterpaper]{l3doc} \usepackage{dtx-style} @@ -3764,7 +3764,12 @@ \bool_if:NTF \l_@@_appendices_chapter_level_bool { % 附录章节级别 - \setcounter{chapter}{0} + + % 仅设置 \setcounter{chapter}{0} 时,pdf 目录会索引到正文章节。 + % 因此,需要使用 \appendix 重置计数器,并将附录后面的 + % 几个章节视为特殊的附录页。 + \appendix + \ctexset{ chapter/numbering = true, chapter/name = {}, @@ -3811,9 +3816,14 @@ \NewDocumentEnvironment {acknowledgements} {+b} { \begin{blindPeerReview} + % 将此章节视为特殊的附录页,关闭附录编号,重定义 section 编号。 + % 不知为何,需要手动重置 section 计数器。 + \setcounter{section}{0} \ctexset{ + appendix/numbering = false, section/number = \arabic{section}, subsection/number = \arabic{section}. \arabic{subsection}, + subsubsection/number = \arabic{section}. \arabic{subsection}. \arabic{subsubsection}, } \@@_if_thesis_english:TF { @@ -3918,6 +3928,15 @@ { % 同时设置 omit 以及 blindPeerReview 才能跳过此章节生成。 \begin{blindPeerReview}[\l_@@_publications_omit_bool] + % 将此章节视为特殊的附录页,关闭附录编号,重定义 section 编号。 + % 不知为何,需要手动重置 section 计数器。 + \setcounter{section}{0} + \ctexset{ + appendix/numbering = false, + section/number = \arabic{section}, + subsection/number = \arabic{section}. \arabic{subsection}, + subsubsection/number = \arabic{section}. \arabic{subsection}. \arabic{subsubsection}, + } % 设置参考文献字号为 5 号 \renewcommand*{\bibfont}{\zihao{5}} % 设置参考文献各个项目之间的垂直距离为 0 @@ -4026,8 +4045,17 @@ \NewDocumentEnvironment {resume} {+b} { \begin{blindPeerReview} - \chapter{\c_@@_label_resume_tl} - #1 + % 将此章节视为特殊的附录页,关闭附录编号,重定义 section 编号。 + % 不知为何,需要手动重置 section 计数器。 + \setcounter{section}{0} + \ctexset{ + appendix/numbering = false, + section/number = \arabic{section}, + subsection/number = \arabic{section}. \arabic{subsection}, + subsubsection/number = \arabic{section}. \arabic{subsection}. \arabic{subsubsection}, + } + \chapter{\c_@@_label_resume_tl} + #1 \end{blindPeerReview} } { diff --git a/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls b/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls index 92b1b658587..7145d5b9c3a 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} -{2022-12-17}{3.2.1}{BIT Thesis Templates} +{2022-12-30}{3.2.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 a362550d503..61dd2f2088a 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} -{2022-12-17}{3.2.1}{BIT Thesis Templates} +{2022-12-30}{3.2.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 @@ -1626,7 +1626,12 @@ \bool_if:NTF \l__bithesis_appendices_chapter_level_bool { % 附录章节级别 - \setcounter{chapter}{0} + + % 仅设置 \setcounter{chapter}{0} 时,pdf 目录会索引到正文章节。 + % 因此,需要使用 \appendix 重置计数器,并将附录后面的 + % 几个章节视为特殊的附录页。 + \appendix + \ctexset{ chapter/numbering = true, chapter/name = {}, @@ -1667,9 +1672,14 @@ \NewDocumentEnvironment {acknowledgements} {+b} { \begin{blindPeerReview} + % 将此章节视为特殊的附录页,关闭附录编号,重定义 section 编号。 + % 不知为何,需要手动重置 section 计数器。 + \setcounter{section}{0} \ctexset{ + appendix/numbering = false, section/number = \arabic{section}, subsection/number = \arabic{section}. \arabic{subsection}, + subsubsection/number = \arabic{section}. \arabic{subsection}. \arabic{subsubsection}, } \__bithesis_if_thesis_english:TF { @@ -1748,6 +1758,15 @@ { % 同时设置 omit 以及 blindPeerReview 才能跳过此章节生成。 \begin{blindPeerReview}[\l__bithesis_publications_omit_bool] + % 将此章节视为特殊的附录页,关闭附录编号,重定义 section 编号。 + % 不知为何,需要手动重置 section 计数器。 + \setcounter{section}{0} + \ctexset{ + appendix/numbering = false, + section/number = \arabic{section}, + subsection/number = \arabic{section}. \arabic{subsection}, + subsubsection/number = \arabic{section}. \arabic{subsection}. \arabic{subsubsection}, + } % 设置参考文献字号为 5 号 \renewcommand*{\bibfont}{\zihao{5}} % 设置参考文献各个项目之间的垂直距离为 0 @@ -1850,8 +1869,17 @@ \NewDocumentEnvironment {resume} {+b} { \begin{blindPeerReview} - \chapter{\c__bithesis_label_resume_tl} - #1 + % 将此章节视为特殊的附录页,关闭附录编号,重定义 section 编号。 + % 不知为何,需要手动重置 section 计数器。 + \setcounter{section}{0} + \ctexset{ + appendix/numbering = false, + section/number = \arabic{section}, + subsection/number = \arabic{section}. \arabic{subsection}, + subsubsection/number = \arabic{section}. \arabic{subsection}. \arabic{subsubsection}, + } + \chapter{\c__bithesis_label_resume_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 be8bf417b37..94e59cc92a6 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} -{2022-12-17}{3.2.1}{BIT Thesis Templates} +{2022-12-30}{3.2.3}{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