diff options
author | Norbert Preining <norbert@preining.info> | 2023-04-15 03:01:57 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-04-15 03:01:57 +0000 |
commit | 78e6b19d4678a9d641c4afa4ca800288cfa0a9d5 (patch) | |
tree | ad774593055c02ade73402379b9df52568f6940f /macros/unicodetex/latex/bithesis | |
parent | b17717e3829bc08efb71ec2537d9d894c8b82d45 (diff) |
CTAN sync 202304150301
Diffstat (limited to 'macros/unicodetex/latex/bithesis')
-rw-r--r-- | macros/unicodetex/latex/bithesis/bithesis.dtx | 62 | ||||
-rw-r--r-- | macros/unicodetex/latex/bithesis/bithesis.pdf | bin | 1109118 -> 1122629 bytes |
2 files changed, 51 insertions, 11 deletions
diff --git a/macros/unicodetex/latex/bithesis/bithesis.dtx b/macros/unicodetex/latex/bithesis/bithesis.dtx index 5aeaef454f..22a8da4f86 100644 --- a/macros/unicodetex/latex/bithesis/bithesis.dtx +++ b/macros/unicodetex/latex/bithesis/bithesis.dtx @@ -21,7 +21,7 @@ %<thesis>\ProvidesExplClass{bithesis} %<report>\ProvidesExplClass{bitreport} %<beamer>\ProvidesExplClass{bitbeamer} -%<cls>{2023-04-04}{3.5.0}{BIT Thesis Templates} +%<cls>{2023-04-14}{3.5.2}{BIT Thesis Templates} % %<oldcls>\NeedsTeXFormat{LaTeX2e}[2020/10/01] %<book>\ProvidesClass{bitbook} @@ -30,7 +30,7 @@ %<oldcls> [2022/05/09 v2.1.1 BIT Thesis Templates] % %<*driver> -\ProvidesFile{bithesis.dtx}[2023/04/04 3.5.0 BIT Thesis Templates] +\ProvidesFile{bithesis.dtx}[2023/04/14 3.5.2 BIT Thesis Templates] \documentclass[letterpaper]{l3doc} \usepackage{dtx-style} @@ -202,6 +202,8 @@ % \item 同时,也增加了本科全英文专业的毕设论文模板样式。 % \item 此版本是 V3 版本,代号为 Summer Time. % \end{itemize} +% \item 2023 年,冯开宇在此版本上增加了多种新的功能,并修复了一些已知的问题。 +% 并推进了官方(教务部、研究生院)对 \BIThesis 的认可。 % \end{itemize} % % \subsection{\BIThesis 是什么?} @@ -247,6 +249,19 @@ % 那么欢迎你访问我们的\href{https://bithesis.bitnp.net}{在线文档}以获得更多信息。 % % 如果你想深入了解 \BIThesisLaTeX 提供的接口的各种选项,那么请继续阅读。 +% +% \subsection{\BIThesis 如何的设计原则是什么?} +% +% \BIThesis 的基本设计原则是: +% \begin{itemize} +% \item \textbf{保持开箱即用的特性},即用户不需要修改任何代码即可使用 \BIThesisLaTeX 。 +% \item \textbf{保持对官方模板的兼容性},让用户只用关注内容本身。 +% \item \textbf{关注用户体验},提供简单易用的接口,对于有争议的设计,我们会提供多种选择。 +% \item \textbf{模板即软件},「罗马不是一天建成的」,我们会积极地维护 \BIThesisLaTeX 。 +% \end{itemize} +% +% 为了保证以上原则,我们引入了多种测试机制(如集成测试、回归测试)来保证 \BIThesis 的质量。 +% 并采用了正规软件开发的流程,如版本控制、代码审查、持续集成等,来保证 \BIThesis 的可维护性。 % % \subsection{\BIThesis 宏包的组成} % 为了适应用户的不同需求,我们将 \BIThesisMacroPackage @@ -2143,8 +2158,8 @@ {conclusion} {结\label_space: 论} {Conclusions}, {appendix} {附\label_space: 录} {Appendices}, {ack} {致\label_space: 谢} {Acknowledgement}, - {figure} {插\quad 图} {Illustrations}, - {table} {表\quad 格} {Tables}, + {figure} {插\label_space: 图} {Illustrations}, + {table} {表\label_space: 格} {Tables}, {appendix_prefix} {附录} {Appendix}, {reference} {参考文献} {References}, {university} {北京理工大学} {Beijing~Institute~of~Technology}, @@ -2466,7 +2481,9 @@ % Hide color and border in hyperref. \RequirePackage[hidelinks,bookmarksnumbered]{hyperref} \RequirePackage{xcolor} -\RequirePackage{caption} +% 详见 `caption` 宏包手册和 +% https://github.com/CTeX-org/forum/issues/86 +\RequirePackage[strut=off]{caption} \RequirePackage{array} \RequirePackage{amsmath} \RequirePackage{amssymb} @@ -2526,7 +2543,7 @@ % 根据学校的要求,在本科生模板图片前后加上一行空白。 % \begin{macrocode} \@@_if_bachelor_thesis:T { - \setlength{\intextsep}{2\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip} + \setlength{\intextsep}{1.80\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip} } % \end{macrocode} % @@ -2880,8 +2897,8 @@ format={\l_@@_title_font_cs:n \bfseries \raggedright \zihao{-4}}, nameformat = {}, titleformat = {}, - beforeskip=28bp plus 1ex minus .2ex, - afterskip=24bp plus .2ex, + beforeskip=14bp plus 1ex minus .2ex, + afterskip=14bp plus .2ex, fixskip=true, } } @@ -2937,6 +2954,7 @@ numbering = false, } } + \setstretch{1.53} \pagestyle{BIThesis} } % \end{macrocode} @@ -2946,6 +2964,8 @@ % 主体内容的页面样式。 % \begin{macrocode} \RenewDocumentCommand \mainmatter {} { + % 另起一个空页,以便于后续的章节标题编号。 + \clearpage % 这部分的章节标题进行编号。 \ctexset{ chapter = { @@ -2989,7 +3009,23 @@ % 定义标题的前后间距。 % \begin{macrocode} \setlength{\abovecaptionskip}{11pt} -\setlength{\belowcaptionskip}{9pt} +\@@_if_bachelor_thesis:TF { + \@@_if_thesis_english:TF { + \setlength{\belowcaptionskip}{9pt} + } { + % 为了满足 “前后一行空白的问题”,需要删除 Caption 下方的间距。 + % 详见 `caption` 宏包手册和 + % https://github.com/CTeX-org/forum/issues/86 + % + % 这里实际的 skip 在 15pt 左右,但是全部移除会导致当图片置于页面顶部时, + % 图片与上方的间距过小,因此这里只移除 5pt。 + % 当然,这样会导致文本间的图片的 Caption 下方的间距微微大于一行。 + \captionsetup{belowskip=-5pt} + } +} { + % 而研究生模板不存在这个问题。 + \setlength{\belowcaptionskip}{9pt} +} % \end{macrocode} % % 定义分隔字符。 @@ -3010,7 +3046,7 @@ % table \cs_set:Npn \thetable {\thechapter\g_@@_label_divide_char_tl\arabic{table}} -\captionsetup[table]{font=small,labelsep=space,skip=2pt} +\captionsetup[table]{font=small,labelsep=space} % equation \cs_set:Npn \theequation {\thechapter\g_@@_label_divide_char_tl\arabic{equation}} @@ -3018,6 +3054,7 @@ % code snippet \cs_set:Npn \thelstlisting {\thechapter\g_@@_label_divide_char_tl\arabic{lstlisting}} \cs_set:Npn \lstlistingname {\c_@@_label_code_tl} +\captionsetup[listing]{font=small,labelsep=space} % \end{macrocode} % \end{macro} % @@ -4403,6 +4440,8 @@ \DeclareDelimFormat[bib,biblist]{finalnamedelim}{} % 如果自己不是第一个作者,不修改此项的话,会在最开始有逗号。 \DeclareDelimFormat{multinamedelim}{} + % 如果覆盖的是英文作者,不修改此项的话,会在最开始有空格。 + \DeclareDelimFormat{bibnamedelimd}{} } % ===== 上方定义与「参考文献」部分相同 @@ -4523,7 +4562,8 @@ labelsep=0.5cm, leftmargin=3cm, itemindent=0cm, - itemsep=0cm + % 不再在两项之间增加额外的间距(1.5 倍的行间距已经够宽了)(未来可以提供一个接口以供用户手动设置间距) + itemsep=-0.5ex, ] \cs_set:Npn \makelabel ##1 {##1\hfil} } diff --git a/macros/unicodetex/latex/bithesis/bithesis.pdf b/macros/unicodetex/latex/bithesis/bithesis.pdf Binary files differindex 139e3e3b70..bfd522ef65 100644 --- a/macros/unicodetex/latex/bithesis/bithesis.pdf +++ b/macros/unicodetex/latex/bithesis/bithesis.pdf |