diff options
author | Karl Berry <karl@freefriends.org> | 2024-04-11 19:56:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-04-11 19:56:07 +0000 |
commit | 043597b8e6510607c5bd0201cced37435dce7735 (patch) | |
tree | b5594a85434ca8aa63025f3169d4949b07f602d2 /Master/texmf-dist/tex/latex/bithesis | |
parent | 4ffcd28d8eed059337be3b3a02840c2b47e3e1c2 (diff) |
bithesis (11apr24)
git-svn-id: svn://tug.org/texlive/trunk@70921 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bithesis')
-rw-r--r-- | Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/bithesis/bithesis.cls | 40 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/bithesis/bitreport.cls | 2 |
3 files changed, 36 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls b/Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls index ffd1d648276..1d097c77cdf 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-06}{3.7.1}{BIT Thesis Templates} +{2024-04-11}{3.7.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 aaf62d82556..b162280b647 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-06}{3.7.1}{BIT Thesis Templates} +{2024-04-11}{3.7.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 @@ -435,7 +435,14 @@ tabularFontSize .tl_set:N = \l__bithesis_misc_tabular_font_size_tl, tabularFontSize .initial:n = {5}, arialFont .tl_set:N = \l__bithesis_misc_arial_font_path_tl, - autoref / algo .tl_set:N = \algoautorefname, + autoref / algo .code:n = { + % 定义算法的 autoref + \tl_set:Nn \algorithmautorefname {#1} + % 定义算法标题 + \AtBeginDocument{ + \tl_set:Nn \ALG@name {#1} + } + }, autoref / algo .initial:n = {\g__bithesis_const_autoref_algo_tl}, autoref / them .tl_set:N = \themautorefname, autoref / them .initial:n = {\g__bithesis_const_autoref_them_tl}, @@ -465,6 +472,9 @@ 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}, } \keys_define:nn { bithesis / const } { @@ -672,7 +682,10 @@ } } \__bithesis_if_bachelor_thesis:T { + % 浮动体位于正文中间时,调整浮动体与上下正文之间的距离,即"前后加上一行空白" \setlength{\intextsep}{1.80\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip} + % 浮动体位于页面顶部或底部时,调整浮动体与正文之间的距离,后或前加上一行空白 + \setlength{\textfloatsep}{1.80\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip} } \ctex_at_end_preamble:n { \bool_if:NTF \l__bithesis_style_better_new_roman_bool { @@ -1098,14 +1111,24 @@ } \__bithesis_if_graduate:TF { \tl_set:Nn \g__bithesis_label_divide_char_tl {.} + % 研究生模板要求 "图序和图题间空1个中文字距" + \captionsetup[figure]{font=small,labelsep=quad} + % 研究生模板要求 "表序和题目间空1个中文字距" + \captionsetup[table]{font=small,labelsep=quad} + % 其它 caption 也参照上述格式 + \captionsetup[lstlisting]{font=small,labelsep=quad} + \captionsetup[algorithm]{font=small,labelsep=quad} } { \tl_set:Nn \g__bithesis_label_divide_char_tl {-} + % 本科生模板无 caption 字距要求 + \captionsetup[figure]{font=small,labelsep=space} + \captionsetup[table]{font=small,labelsep=space} + \captionsetup[lstlisting]{font=small,labelsep=space} + \captionsetup[algorithm]{font=small,labelsep=space} } \cs_set:Npn \thefigure {\thechapter\g__bithesis_label_divide_char_tl\arabic{figure}} -\captionsetup[figure]{font=small,labelsep=space} \cs_set:Npn \thetable {\thechapter\g__bithesis_label_divide_char_tl\arabic{table}} -\captionsetup[table]{font=small,labelsep=space} \cs_set:Npn \theequation {\thechapter\g__bithesis_label_divide_char_tl\arabic{equation}} @@ -1113,14 +1136,19 @@ \cs_gset:Npn \thelstlisting {\thechapter\g__bithesis_label_divide_char_tl\arabic{lstlisting}} \cs_gset:Npn \lstlistingname {\c__bithesis_label_code_tl} + % 算法变成「章节号-序号」 + \cs_gset:Npn \thealgorithm + {\thechapter\g__bithesis_label_divide_char_tl\arabic{algorithm}} + % 默认的情况下,保留公式和上下文的一定间距。(会比 Word 稍宽一些) \setlength{\abovedisplayskip}{\l__bithesis_style_math_above_display_skip_dim} \setlength{\abovedisplayshortskip}{\l__bithesis_style_math_above_display_skip_dim} \setlength{\belowdisplayskip}{\l__bithesis_style_math_below_display_skip_dim} \setlength{\belowdisplayshortskip}{\l__bithesis_style_math_below_display_skip_dim} - % + % 调整浮动体与文字之间的距离 + \addtolength{\intextsep}{\l__bithesis_misc_float_separation_tl\baselineskip} + \addtolength{\textfloatsep}{\l__bithesis_misc_float_separation_tl\baselineskip} } -\captionsetup[lstlisting]{font=small,labelsep=space} \bool_if:NF \l__bithesis_style_hyphen_bool { \hbadness=10000 \tolerance=1 diff --git a/Master/texmf-dist/tex/latex/bithesis/bitreport.cls b/Master/texmf-dist/tex/latex/bithesis/bitreport.cls index c9b0cc9327a..9bfe9ff4909 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-06}{3.7.1}{BIT Thesis Templates} +{2024-04-11}{3.7.3}{BIT Thesis Templates} \int_new:N \g__bithesis_report_type_int \clist_const:Nn \c__bithesis_report_type_clist { common, undergraduate_proposal} |