summaryrefslogtreecommitdiff
path: root/macros/unicodetex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-05-05 03:01:00 +0000
committerNorbert Preining <norbert@preining.info>2024-05-05 03:01:00 +0000
commit9bfd517c46ef64bbc06810ab64b9921a4f02c632 (patch)
treea28d12410e8c621896f88e374ff9c8fcf9a55111 /macros/unicodetex
parentf256d70b5ef40549e0105c49d1265900bf260505 (diff)
CTAN sync 202405050300
Diffstat (limited to 'macros/unicodetex')
-rw-r--r--macros/unicodetex/latex/bithesis/bithesis.dtx51
-rw-r--r--macros/unicodetex/latex/bithesis/bithesis.pdfbin751202 -> 752015 bytes
2 files changed, 40 insertions, 11 deletions
diff --git a/macros/unicodetex/latex/bithesis/bithesis.dtx b/macros/unicodetex/latex/bithesis/bithesis.dtx
index 648500d0e5..17114c06dd 100644
--- a/macros/unicodetex/latex/bithesis/bithesis.dtx
+++ b/macros/unicodetex/latex/bithesis/bithesis.dtx
@@ -21,10 +21,10 @@
%<thesis>\ProvidesExplClass{bithesis}
%<report>\ProvidesExplClass{bitreport}
%<beamer>\ProvidesExplClass{bitbeamer}
-%<cls>{2024-04-29}{3.7.6}{BIT Thesis Templates}
+%<cls>{2024-05-04}{3.7.7}{BIT Thesis Templates}
%
%<*driver>
-\ProvidesFile{bithesis.dtx}[2024/04/29 3.7.6 BIT Thesis Templates]
+\ProvidesFile{bithesis.dtx}[2024/05/04 3.7.7 BIT Thesis Templates]
\documentclass[letterpaper]{l3doc}
\usepackage{dtx-style}
@@ -733,9 +733,11 @@
autoref / table .initial:n = {\g_@@_const_autoref_tab_tl},
autoref / equ .tl_set:N = \equationautorefname,
autoref / equ .initial:n = {\g_@@_const_autoref_equ_tl},
- % 浮动体与正文之间的距离
+ % 浮动体相关的各种间距
floatSeparation .tl_set:N = \l_@@_misc_float_separation_tl,
floatSeparation .initial:n = {0},
+ tabularRowSeparation .tl_set:N = \l_@@_misc_tabular_row_separation_tl,
+ tabularRowSeparation .initial:n = {1},
}
% \end{macrocode}
%
@@ -1548,14 +1550,21 @@
\@@_if_thesis_english:TF {
\setlength{\belowcaptionskip}{9pt}
} {
- % 为了满足 “前后一行空白的问题”,需要删除 Caption 下方的间距。
+ % 为了满足 “前后一行空白的问题”,需要删除 caption 下方的间距。
% 详见 `caption` 宏包手册和
% https://github.com/CTeX-org/forum/issues/86
%
% 这里实际的 skip 在 15pt 左右,但是全部移除会导致当图片置于页面顶部时,
% 图片与上方的间距过小,因此这里只移除 5pt。
- % 当然,这样会导致文本间的图片的 Caption 下方的间距微微大于一行。
+ % 当然,这样会导致文本间的图片的 caption 下方的间距微微大于一行。
+ %
+ % 至于表格,虽然其caption位置在上方(而图片是在下方),
+ % 但 `caption` 宏包已考虑这种区别,统一设置 `belowskip` 即可。
\captionsetup{belowskip=-5pt}
+
+ % 此外在浮动体内部,调整表格 caption 和表格本体间的距离。
+ % 本来默认有一定空隙,现改为紧贴,这样更接近Word模板实作。
+ \captionsetup[table]{skip=5pt}
}
} {
% 而研究生模板不存在这个问题。
@@ -1623,6 +1632,8 @@
% 调整浮动体与文字之间的距离
\addtolength{\intextsep}{\l_@@_misc_float_separation_tl\baselineskip}
\addtolength{\textfloatsep}{\l_@@_misc_float_separation_tl\baselineskip}
+ % 调整表格各行之间的距离
+ \cs_set:Npn \arraystretch {\l_@@_misc_tabular_row_separation_tl}
}
% \end{macrocode}
% \end{macro}
@@ -1668,8 +1679,8 @@
%
% 调整插图目录与表格目录的标题。
% \begin{macrocode}
-\cs_set:Npn \listfigurename {\@@_get_const:N {figure}}
-\cs_set:Npn \listtablename {\@@_get_const:N {table}}
+\cs_set:Npn \listfigurename {\currentpdfbookmark{\c__bithesis_label_figure_tl}{ch:figures}\@@_get_const:N {figure}}
+\cs_set:Npn \listtablename {\currentpdfbookmark{\c__bithesis_label_table_tl}{ch:tables}\@@_get_const:N {table}}
% \end{macrocode}
%
% 预定义用户常用的证明环境。
@@ -1860,6 +1871,7 @@
% \begin{macrocode}
\cs_new:Npn \make_graduate_cover: {
\cleardoublepage
+ \currentpdfbookmark{封面}{frontmatter:cover1}
\begin{titlepage}
{
\heiti\zihao{5}
@@ -1888,6 +1900,7 @@
% \begin{macrocode}
\cs_new:Npn \make_paper_back: {
\cleardoublepage
+ \currentpdfbookmark{书脊}{frontmatter:paperback}
\begin{titlepage}
\vskip 5cm
\begin{center}
@@ -1917,6 +1930,7 @@
% \begin{macrocode}
\cs_new:Npn \@@_make_chinese_title_page: {
\cleardoublepage
+ \currentpdfbookmark{中文题名页}{frontmatter:titlepage}
\begin{titlepage}
\begin{minipage}[t]{0.48\textwidth}
% 密级、分类号
@@ -2014,6 +2028,7 @@
% 制作英文封面页。
% \begin{macrocode}
\cs_new:Npn \@@_make_english_title_page: {
+ \currentpdfbookmark{英文题名页}{frontmatter:titlepageen}
\begin{titlepage}
\begin{center}
@@ -2097,8 +2112,13 @@
% 原创性声明部分
\begin{center}
\@@_same_page:
+ \ctexset{
+ chapter = {
+ titleformat = {\heiti\zihao{-2}},
+ }
+ }
+ \currentpdfbookmark{\c_@@_graduate_label_originality_tl}{frontmatter:originality}
\chapter*{
- \heiti\zihao{-2}
\c_@@_graduate_label_originality_tl
}
\end{center}
@@ -2117,8 +2137,13 @@
% 使用授权声明部分。
\begin{center}
\@@_same_page:
+ \ctexset{
+ chapter = {
+ titleformat = {\heiti\zihao{-2}},
+ }
+ }
+ \currentpdfbookmark{\c_@@_graduate_label_authorization_tl}{frontmatter:originality1}
\chapter*{
- \heiti\zihao{-2}
\c_@@_graduate_label_authorization_tl
}
\end{center}
@@ -2220,6 +2245,7 @@
{
{1}
{
+ \currentpdfbookmark{封面}{frontmatter:cover}
\begin{titlepage}
\vspace*{16mm}
@@ -2468,6 +2494,7 @@
{
{1}
{
+ \currentpdfbookmark{声明}{frontmatter:originality}
\pagestyle{BIThesis}
\pagenumbering{gobble}
@@ -2618,6 +2645,8 @@
\vspace{-8pt}
}
+ % 添加目录书签
+ \currentpdfbookmark{\c__bithesis_label_toc_tl}{ch:toc}
% 制作目录
\tableofcontents
@@ -2681,8 +2710,8 @@
\bool_if:NTF \l_@@_add_abstract_to_toc_bool {
\chapter{\c_@@_label_abstract_tl}
} {
- \chapter*{\c_@@_label_abstract_tl}
\currentpdfbookmark{\c_@@_label_abstract_tl}{ch:abstract}
+ \chapter*{\c_@@_label_abstract_tl}
}
}
\vspace*{1mm}
@@ -2758,8 +2787,8 @@
\bool_if:nTF {\l_@@_add_abstract_en_to_toc_bool} {
\chapter{\c_@@_label_abstract_en_tl}
} {
- \chapter*{\c_@@_label_abstract_en_tl}
\currentpdfbookmark{\c_@@_label_abstract_en_tl}{ch:abstract:en}
+ \chapter*{\c_@@_label_abstract_en_tl}
}
}
}
diff --git a/macros/unicodetex/latex/bithesis/bithesis.pdf b/macros/unicodetex/latex/bithesis/bithesis.pdf
index 85851c8403..42618f69db 100644
--- a/macros/unicodetex/latex/bithesis/bithesis.pdf
+++ b/macros/unicodetex/latex/bithesis/bithesis.pdf
Binary files differ