texlive[71173] Master/texmf-dist: bithesis (4may24)

commits+karl at tug.org commits+karl at tug.org
Sat May 4 21:47:15 CEST 2024


Revision: 71173
          https://tug.org/svn/texlive?view=revision&revision=71173
Author:   karl
Date:     2024-05-04 21:47:15 +0200 (Sat, 04 May 2024)
Log Message:
-----------
bithesis (4may24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf
    trunk/Master/texmf-dist/source/latex/bithesis/bithesis.dtx
    trunk/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls
    trunk/Master/texmf-dist/tex/latex/bithesis/bithesis.cls
    trunk/Master/texmf-dist/tex/latex/bithesis/bitreport.cls

Modified: trunk/Master/texmf-dist/doc/latex/bithesis/bithesis.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/bithesis/bithesis.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/bithesis/bithesis.dtx	2024-05-04 19:47:07 UTC (rev 71172)
+++ trunk/Master/texmf-dist/source/latex/bithesis/bithesis.dtx	2024-05-04 19:47:15 UTC (rev 71173)
@@ -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}
       } {
+        \currentpdfbookmark{\c_@@_label_abstract_tl}{ch:abstract}
         \chapter*{\c_@@_label_abstract_tl}
-        \currentpdfbookmark{\c_@@_label_abstract_tl}{ch:abstract}
       }
     }
     \vspace*{1mm}
@@ -2758,8 +2787,8 @@
       \bool_if:nTF {\l_@@_add_abstract_en_to_toc_bool} {
         \chapter{\c_@@_label_abstract_en_tl}
       } {
+        \currentpdfbookmark{\c_@@_label_abstract_en_tl}{ch:abstract:en}
         \chapter*{\c_@@_label_abstract_en_tl}
-        \currentpdfbookmark{\c_@@_label_abstract_en_tl}{ch:abstract:en}
       }
     }
   }

Modified: trunk/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls	2024-05-04 19:47:07 UTC (rev 71172)
+++ trunk/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls	2024-05-04 19:47:15 UTC (rev 71173)
@@ -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,

Modified: trunk/Master/texmf-dist/tex/latex/bithesis/bithesis.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bithesis/bithesis.cls	2024-05-04 19:47:07 UTC (rev 71172)
+++ trunk/Master/texmf-dist/tex/latex/bithesis/bithesis.cls	2024-05-04 19:47:15 UTC (rev 71173)
@@ -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}
       } {
+        \currentpdfbookmark{\c__bithesis_label_abstract_tl}{ch:abstract}
         \chapter*{\c__bithesis_label_abstract_tl}
-        \currentpdfbookmark{\c__bithesis_label_abstract_tl}{ch:abstract}
       }
     }
     \vspace*{1mm}
@@ -2086,8 +2115,8 @@
       \bool_if:nTF {\l__bithesis_add_abstract_en_to_toc_bool} {
         \chapter{\c__bithesis_label_abstract_en_tl}
       } {
+        \currentpdfbookmark{\c__bithesis_label_abstract_en_tl}{ch:abstract:en}
         \chapter*{\c__bithesis_label_abstract_en_tl}
-        \currentpdfbookmark{\c__bithesis_label_abstract_en_tl}{ch:abstract:en}
       }
     }
   }

Modified: trunk/Master/texmf-dist/tex/latex/bithesis/bitreport.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bithesis/bitreport.cls	2024-05-04 19:47:07 UTC (rev 71172)
+++ trunk/Master/texmf-dist/tex/latex/bithesis/bitreport.cls	2024-05-04 19:47:15 UTC (rev 71173)
@@ -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}



More information about the tex-live-commits mailing list.