diff options
author | Karl Berry <karl@freefriends.org> | 2022-12-30 21:55:05 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-12-30 21:55:05 +0000 |
commit | 25fb543f397c304fd4259f4cce8956629561e822 (patch) | |
tree | 234196d267c913eda5cc38eba905032c9b7daa00 /Master/texmf-dist/source/latex | |
parent | 3c2b5f7312ad17c7c18d201ebabec6e926aa9dce (diff) |
bithesis (30dec22)
git-svn-id: svn://tug.org/texlive/trunk@65409 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r-- | Master/texmf-dist/source/latex/bithesis/bithesis.dtx | 38 |
1 files changed, 33 insertions, 5 deletions
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 @@ %<thesis>\ProvidesExplClass{bithesis} %<report>\ProvidesExplClass{bitreport} %<beamer>\ProvidesExplClass{bitbeamer} -%<cls>{2022-12-17}{3.2.1}{BIT Thesis Templates} +%<cls>{2022-12-30}{3.2.3}{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}[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} } { |