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/tex/latex/bithesis/bitbeamer.cls | 2 +- Master/texmf-dist/tex/latex/bithesis/bithesis.cls | 36 +++++++++++++++++++--- Master/texmf-dist/tex/latex/bithesis/bitreport.cls | 2 +- 3 files changed, 34 insertions(+), 6 deletions(-) (limited to 'Master/texmf-dist/tex/latex/bithesis') 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