summaryrefslogtreecommitdiff
path: root/macros/unicodetex/latex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-12-31 03:04:33 +0000
committerNorbert Preining <norbert@preining.info>2022-12-31 03:04:33 +0000
commit276038a22b002640c158178010b146bf9287b31b (patch)
tree0b9ace4bd052e023f56ef77d2eeb24c4a5442ade /macros/unicodetex/latex
parent844019377157163b461e0fd4a66592e61963a530 (diff)
CTAN sync 202212310304
Diffstat (limited to 'macros/unicodetex/latex')
-rw-r--r--macros/unicodetex/latex/bithesis/bithesis.dtx38
-rw-r--r--macros/unicodetex/latex/bithesis/bithesis.pdfbin1047736 -> 1049781 bytes
2 files changed, 33 insertions, 5 deletions
diff --git a/macros/unicodetex/latex/bithesis/bithesis.dtx b/macros/unicodetex/latex/bithesis/bithesis.dtx
index 2bcc47bbbd..ffad61b11d 100644
--- a/macros/unicodetex/latex/bithesis/bithesis.dtx
+++ b/macros/unicodetex/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}
}
{
diff --git a/macros/unicodetex/latex/bithesis/bithesis.pdf b/macros/unicodetex/latex/bithesis/bithesis.pdf
index a8113bf551..ca20529477 100644
--- a/macros/unicodetex/latex/bithesis/bithesis.pdf
+++ b/macros/unicodetex/latex/bithesis/bithesis.pdf
Binary files differ