From f4790187e171f0ef130f9f4fc7042edc2cd86575 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 4 May 2024 19:47:15 +0000 Subject: bithesis (4may24) git-svn-id: svn://tug.org/texlive/trunk@71173 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls | 2 +- Master/texmf-dist/tex/latex/bithesis/bithesis.cls | 49 +++++++++++++++++----- Master/texmf-dist/tex/latex/bithesis/bitreport.cls | 2 +- 3 files changed, 41 insertions(+), 12 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 5f98080f787..5a7bc884adb 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} -{2024-04-29}{3.7.6}{BIT Thesis Templates} +{2024-05-04}{3.7.7}{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 72b6cf135c3..373034e9c7a 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} -{2024-04-29}{3.7.6}{BIT Thesis Templates} +{2024-05-04}{3.7.7}{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 @@ -477,9 +477,11 @@ autoref / table .initial:n = {\g__bithesis_const_autoref_tab_tl}, autoref / equ .tl_set:N = \equationautorefname, autoref / equ .initial:n = {\g__bithesis_const_autoref_equ_tl}, - % 浮动体与正文之间的距离 + % 浮动体相关的各种间距 floatSeparation .tl_set:N = \l__bithesis_misc_float_separation_tl, floatSeparation .initial:n = {0}, + tabularRowSeparation .tl_set:N = \l__bithesis_misc_tabular_row_separation_tl, + tabularRowSeparation .initial:n = {1}, } \keys_define:nn { bithesis / const } { @@ -1102,14 +1104,21 @@ \__bithesis_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} } } { % 而研究生模板不存在这个问题。 @@ -1164,6 +1173,8 @@ % 调整浮动体与文字之间的距离 \addtolength{\intextsep}{\l__bithesis_misc_float_separation_tl\baselineskip} \addtolength{\textfloatsep}{\l__bithesis_misc_float_separation_tl\baselineskip} + % 调整表格各行之间的距离 + \cs_set:Npn \arraystretch {\l__bithesis_misc_tabular_row_separation_tl} } \bool_if:NF \l__bithesis_style_hyphen_bool { \hbadness=10000 @@ -1194,8 +1205,8 @@ tabsize=2 } \lstset{style=examplestyle} -\cs_set:Npn \listfigurename {\__bithesis_get_const:N {figure}} -\cs_set:Npn \listtablename {\__bithesis_get_const:N {table}} +\cs_set:Npn \listfigurename {\currentpdfbookmark{\c__bithesis_label_figure_tl}{ch:figures}\__bithesis_get_const:N {figure}} +\cs_set:Npn \listtablename {\currentpdfbookmark{\c__bithesis_label_table_tl}{ch:tables}\__bithesis_get_const:N {table}} \theoremstyle{plain} \newtheorem{algo}{\__bithesis_get_const:N {algo}}[chapter] \newtheorem{them}{\__bithesis_get_const:N {them}}[chapter] @@ -1302,6 +1313,7 @@ } \cs_new:Npn \make_graduate_cover: { \cleardoublepage + \currentpdfbookmark{封面}{frontmatter:cover1} \begin{titlepage} { \heiti\zihao{5} @@ -1324,6 +1336,7 @@ } \cs_new:Npn \make_paper_back: { \cleardoublepage + \currentpdfbookmark{书脊}{frontmatter:paperback} \begin{titlepage} \vskip 5cm \begin{center} @@ -1347,6 +1360,7 @@ } \cs_new:Npn \__bithesis_make_chinese_title_page: { \cleardoublepage + \currentpdfbookmark{中文题名页}{frontmatter:titlepage} \begin{titlepage} \begin{minipage}[t]{0.48\textwidth} % 密级、分类号 @@ -1438,6 +1452,7 @@ \end{titlepage} } \cs_new:Npn \__bithesis_make_english_title_page: { + \currentpdfbookmark{英文题名页}{frontmatter:titlepageen} \begin{titlepage} \begin{center} @@ -1509,8 +1524,13 @@ % 原创性声明部分 \begin{center} \__bithesis_same_page: + \ctexset{ + chapter = { + titleformat = {\heiti\zihao{-2}}, + } + } + \currentpdfbookmark{\c__bithesis_graduate_label_originality_tl}{frontmatter:originality} \chapter*{ - \heiti\zihao{-2} \c__bithesis_graduate_label_originality_tl } \end{center} @@ -1529,8 +1549,13 @@ % 使用授权声明部分。 \begin{center} \__bithesis_same_page: + \ctexset{ + chapter = { + titleformat = {\heiti\zihao{-2}}, + } + } + \currentpdfbookmark{\c__bithesis_graduate_label_authorization_tl}{frontmatter:originality1} \chapter*{ - \heiti\zihao{-2} \c__bithesis_graduate_label_authorization_tl } \end{center} @@ -1587,6 +1612,7 @@ { {1} { + \currentpdfbookmark{封面}{frontmatter:cover} \begin{titlepage} \vspace*{16mm} @@ -1826,6 +1852,7 @@ { {1} { + \currentpdfbookmark{声明}{frontmatter:originality} \pagestyle{BIThesis} \pagenumbering{gobble} @@ -1958,6 +1985,8 @@ \vspace{-8pt} } + % 添加目录书签 + \currentpdfbookmark{\c__bithesis_label_toc_tl}{ch:toc} % 制作目录 \tableofcontents @@ -2015,8 +2044,8 @@ \bool_if:NTF \l__bithesis_add_abstract_to_toc_bool { \chapter{\c__bithesis_label_abstract_tl} } { - \chapter*{\c__bithesis_label_abstract_tl} \currentpdfbookmark{\c__bithesis_label_abstract_tl}{ch:abstract} + \chapter*{\c__bithesis_label_abstract_tl} } } \vspace*{1mm} @@ -2086,8 +2115,8 @@ \bool_if:nTF {\l__bithesis_add_abstract_en_to_toc_bool} { \chapter{\c__bithesis_label_abstract_en_tl} } { - \chapter*{\c__bithesis_label_abstract_en_tl} \currentpdfbookmark{\c__bithesis_label_abstract_en_tl}{ch:abstract:en} + \chapter*{\c__bithesis_label_abstract_en_tl} } } } diff --git a/Master/texmf-dist/tex/latex/bithesis/bitreport.cls b/Master/texmf-dist/tex/latex/bithesis/bitreport.cls index feb04065a1a..fa2a111f205 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} -{2024-04-29}{3.7.6}{BIT Thesis Templates} +{2024-05-04}{3.7.7}{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