summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-12-30 21:55:05 +0000
committerKarl Berry <karl@freefriends.org>2022-12-30 21:55:05 +0000
commit25fb543f397c304fd4259f4cce8956629561e822 (patch)
tree234196d267c913eda5cc38eba905032c9b7daa00
parent3c2b5f7312ad17c7c18d201ebabec6e926aa9dce (diff)
bithesis (30dec22)
git-svn-id: svn://tug.org/texlive/trunk@65409 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/bithesis/bithesis.pdfbin1047736 -> 1049781 bytes
-rw-r--r--Master/texmf-dist/source/latex/bithesis/bithesis.dtx38
-rw-r--r--Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls2
-rw-r--r--Master/texmf-dist/tex/latex/bithesis/bithesis.cls36
-rw-r--r--Master/texmf-dist/tex/latex/bithesis/bitreport.cls2
5 files changed, 67 insertions, 11 deletions
diff --git a/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf b/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf
index a8113bf5518..ca205294770 100644
--- a/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf
+++ b/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf
Binary files 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 @@
%<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/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}