From bf8047b41d80225427fc97e5bfadbcdf9da73db4 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 15 Sep 2022 19:53:21 +0000 Subject: bithesis (15sep22) git-svn-id: svn://tug.org/texlive/trunk@64398 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/bithesis/bitbeamer.cls | 2 +- Master/texmf-dist/tex/latex/bithesis/bithesis.cls | 94 ++++++++++++---------- Master/texmf-dist/tex/latex/bithesis/bitreport.cls | 2 +- 3 files changed, 52 insertions(+), 46 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 c07f0779be9..c321add68eb 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-09-03}{3.0.0}{BIT Thesis Templates} +{2022-09-15}{3.0.1}{BIT Thesis Templates} \keys_define:nn { bitbeamer } diff --git a/Master/texmf-dist/tex/latex/bithesis/bithesis.cls b/Master/texmf-dist/tex/latex/bithesis/bithesis.cls index d63d15bda6b..6048872419a 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-09-03}{3.0.0}{BIT Thesis Templates} +{2022-09-15}{3.0.1}{BIT Thesis Templates} \int_new:N \g__bithesis_thesis_type_int @@ -36,19 +36,15 @@ \bool_new:N \g__bithesis_thesis_type_english_bool \bool_new:N \g__bithesis_blind_mode_bool \tl_new:N \g__bithesis_label_divide_char_tl - \seq_new:N \l__bithesis_right_seq \seq_new:N \l__bithesis_left_seq - \cs_generate_variant:Nn \tl_if_empty:nTF {x} \cs_generate_variant:Nn \seq_set_split:Nnn {Nnx} - \cs_new:Npn \__bithesis_same_page: { \let\clearpage\relax \let\cleardoublepage\relax } - \cs_new:Npn \__bithesis_if_graduate:TF #1#2 { \int_compare:nNnTF {3} < {\g__bithesis_thesis_type_int} {#1} @@ -89,6 +85,16 @@ \tl_const:cn { c__bithesis_ #1 _label_ #2 _en_tl } {#4} } +\cs_new:Npn \smallgap: { + \hspace{0.45ex} +} + +\cs_new:Npn \label_space: { + \__bithesis_if_bachelor_thesis:T { + \quad + } +} + \clist_map_inline:nn { {code} {代码}, @@ -131,16 +137,6 @@ }, } {\__bithesis_define_label_by_thesis_type:nnn {bachelor_english} #1} -\cs_new:Npn \smallgap: { - \hspace{0.45ex} -} - -\cs_new:Npn \label_space: { - \__bithesis_if_bachelor_thesis:T { - \quad - } -} - \clist_map_inline:nn { {originality} {研究成果声明}, @@ -254,6 +250,7 @@ { title .tl_set:N = \l__bithesis_value_title_tl, titleEn .tl_set:N = \l__bithesis_value_title_en_tl, + verticalTitle .tl_set:N = \l__bithesis_value_vertical_title_tl, school .tl_set:N = \l__bithesis_value_school_tl, major .tl_set:N = \l__bithesis_value_major_tl, author .tl_set:N = \l__bithesis_value_author_tl, @@ -303,6 +300,8 @@ {5} {北京理工大学博士学位论文} } }, + bibliographyIndent .bool_set:N = \l__bithesis_style_bibliography_indent_bool, + bibliographyIndent .initial:n = {true}, } \keys_define:nn { bithesis / TOC } @@ -785,7 +784,7 @@ \setstretch{1.1} \begin{minipage}[t][19.7cm]{2em} \begin{center} - {\heiti\zihao{3}\l__bithesis_value_title_tl} + {\heiti\zihao{3} \tl_if_blank:VTF \l__bithesis_value_vertical_title_tl {\l__bithesis_value_title_tl}{\l__bithesis_value_vertical_title_tl}} \vfill {\heiti\zihao{3}\l__bithesis_value_author_tl} \vfill @@ -1459,21 +1458,25 @@ } % 设置参考文献顺序标签 `[1]` 与文献内容 `作者. 文献标题...` 的间距 \setlength{\biblabelsep}{1.7mm} - % 设置参考文献后文缩进为 0(与 Word 模板保持一致) - % See: https://github.com/hushidong/biblatex-gb7714-2015 - % 如何修参考文献表的缩进? - \cs_set:Npn \itemcmd { - \settowidth{\lengthid}{\mkgbnumlabel{\printfield{labelnumber}}} - %%这里是所做的调整,以下两句通过调整\lengthid来调整缩进 - \setlength{\lengthid}{0pt} - \addtolength{\lengthid}{-\biblabelsep} - \setlength{\lengthlw}{\textwidth} - \addtolength{\lengthlw}{-\lengthid} - \addvspace{\bibitemsep}%恢复\bibitemsep的作用 - \hangindent\lengthid - \leavevmode\mkgbnumlabel{\printfield{labelnumber}}% - \hspace{\biblabelsep} + + \bool_if:NF \l__bithesis_style_bibliography_indent_bool { + % 设置参考文献后文缩进为 0(与 Word 模板保持一致) + % See: https://github.com/hushidong/biblatex-gb7714-2015 + % 如何修参考文献表的缩进? + \cs_set:Npn \itemcmd { + \settowidth{\lengthid}{\mkgbnumlabel{\printfield{labelnumber}}} + %%这里是所做的调整,以下两句通过调整\lengthid来调整缩进 + \setlength{\lengthid}{0pt} + \addtolength{\lengthid}{-\biblabelsep} + \setlength{\lengthlw}{\textwidth} + \addtolength{\lengthlw}{-\lengthid} + \addvspace{\bibitemsep}%恢复\bibitemsep的作用 + \hangindent\lengthid + \leavevmode\mkgbnumlabel{\printfield{labelnumber}}% + \hspace{\biblabelsep} + } } + \__bithesis_if_thesis_english:TF { \chapter{\c__bithesis_label_reference_en_tl} } { @@ -1568,20 +1571,23 @@ \renewcommand{\baselinestretch}{1.2} % 设置参考文献顺序标签 `[1]` 与文献内容 `作者. 文献标题...` 的间距 \setlength{\biblabelsep}{1.7mm} - % 设置参考文献后文缩进为 0(与 Word 模板保持一致) - % See: https://github.com/hushidong/biblatex-gb7714-2015 - % 如何修参考文献表的缩进? - \cs_set:Npn \itemcmd { - \settowidth{\lengthid}{\mkgbnumlabel{\printfield{labelnumber}}} - %%这里是所做的调整,以下两句通过调整\lengthid来调整缩进 - \setlength{\lengthid}{0pt} - \addtolength{\lengthid}{-\biblabelsep} - \setlength{\lengthlw}{\textwidth} - \addtolength{\lengthlw}{-\lengthid} - \addvspace{\bibitemsep}%恢复\bibitemsep的作用 - \hangindent\lengthid - \leavevmode\mkgbnumlabel{\printfield{labelnumber}}% - \hspace{\biblabelsep} + + \bool_if:NF \l__bithesis_style_bibliography_indent_bool { + % 设置参考文献后文缩进为 0(与 Word 模板保持一致) + % See: https://github.com/hushidong/biblatex-gb7714-2015 + % 如何修参考文献表的缩进? + \cs_set:Npn \itemcmd { + \settowidth{\lengthid}{\mkgbnumlabel{\printfield{labelnumber}}} + %%这里是所做的调整,以下两句通过调整\lengthid来调整缩进 + \setlength{\lengthid}{0pt} + \addtolength{\lengthid}{-\biblabelsep} + \setlength{\lengthlw}{\textwidth} + \addtolength{\lengthlw}{-\lengthid} + \addvspace{\bibitemsep}%恢复\bibitemsep的作用 + \hangindent\lengthid + \leavevmode\mkgbnumlabel{\printfield{labelnumber}}% + \hspace{\biblabelsep} + } } % ===== 上方定义与「参考文献」部分相同 diff --git a/Master/texmf-dist/tex/latex/bithesis/bitreport.cls b/Master/texmf-dist/tex/latex/bithesis/bitreport.cls index e75fd27ab9f..fde2f8f7a23 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-09-03}{3.0.0}{BIT Thesis Templates} +{2022-09-15}{3.0.1}{BIT Thesis Templates} \int_new:N \g__bithesis_report_type_int -- cgit v1.2.3