Skip to content

Commit 5e439b0

Browse files
style: trim trailing whitespace and make sure files end in a newline and only a newline
`end-of-file-fixer` and `trailing-whitespace` of https://github.com/pre-commit/pre-commit-hooks/ .
1 parent 1f0f4f7 commit 5e439b0

40 files changed

+280
-296
lines changed

README-bithesis.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The current maintainer of this project is [Feng Kaiyu](https://github.com/fky201
1010
[![Latexmk](https://badgen.net/badge/compiler/latexmk/blue)](https://mg.readthedocs.io/latexmk.html)
1111
[![License](https://badgen.net/github/license/BITNP/BIThesis?color=008080&labelColor=2b2b2b)](./LICENSE)
1212

13-
BIThesis is an unofficial LaTeX template set for your
13+
BIThesis is an unofficial LaTeX template set for your
1414
**undergraduate, master, or doctoral thesis** as well as other academic writing here at BIT.
1515

1616
This project is supported by the _[Dept. of Undergraduate Academic Affairs, BIT](https://jwb.bit.edu.cn/)_ and the _[School of Computer Science and Technology, BIT](https://cs.bit.edu.cn/)_. See [Acknowledgements - Official Sponsors](https://bithesis.bitnp.net/guide/acknowledgements.html#%E5%AE%98%E6%96%B9%E8%B5%9E%E5%8A%A9-official-sponsors).
@@ -40,4 +40,3 @@ For more details, please see the [contributing doc](./contributing.md).
4040
## Contributors
4141

4242
For more information, please see: [GitHub Contributors](https://github.com/BITNP/BIThesis/graphs/contributors) and [Acknowledgements](https://bithesis.bitnp.net/guide/acknowledgements.html).
43-

bithesis-doc.tex

+45-45
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
\noindent
4949
\begin{enumerate}
5050
\item 本模板的发布遵守 \LPPL ,使用前请认真阅读协议内容。
51-
\item\BIThesis 相关的文档内容采用
51+
\item\BIThesis 相关的文档内容采用
5252
\href{https://github.com/BITNP/BIThesis-wiki/blob/main/LICENSE}{CC0-1.0 协议} 发布。
5353
\item 任何个人或组织以本模板为基础进行修改、扩展而生成的新的专用模板,
5454
请严格遵守 \LaTeX{} Project Public License 协议。
@@ -124,15 +124,15 @@ \subsection{历史与贡献者们}
124124
\item 在 2017 年之前,网络上已经出现一些北京理工大学学位论文 \LaTeX 模板。
125125
它们是“2012大眼小蚂蚁版”和“2016汪卫版”,均以上海交通大学的模板为基础。
126126
\item 2017 - 2018 年,计算机学院 2016 级研究生杨雅婷等人受研究生院委托,
127-
制作了\href{https://github.com/BIT-thesis/LaTeX-template}{BIT-Thesis}
127+
制作了\href{https://github.com/BIT-thesis/LaTeX-template}{BIT-Thesis}
128128
研究生学位论文模板。
129129
\item 2019 - 2020 年,\BIThesis 最早由 2016 级的
130130
武上博、王赞、唐誉铭、牟思睿和詹熠莎等人维护。
131131
\begin{itemize}
132132
\item 此时,\BIThesis 仅支持本科生毕业论文的排版。
133133
\item 在此期间,\BIThesis 从无到有诞生了,包括使用手册、
134134
在线文档和开箱即用的模板。
135-
\item 同时,2017 级的赵池等同学完成了一系列 \BIThesisLaTeX
135+
\item 同时,2017 级的赵池等同学完成了一系列 \BIThesisLaTeX
136136
的视频教程。
137137
\end{itemize}
138138
\item 2020 - 2021 年,2017 级的冯开宇、杨思云、郝正亮和顾骁等人
@@ -147,7 +147,7 @@ \subsection{历史与贡献者们}
147147
2022 毕业季收到的反馈对该项目进行维护升级。
148148
\begin{itemize}
149149
\item 在此期间,冯开宇合入了杨雅婷等人在 2017 年开发的研究生学位论文模板。
150-
\item 在项目架构上,BIThesis-scaffold 合入 BIThesis 以便于进一步维护。
150+
\item 在项目架构上,BIThesis-scaffold 合入 BIThesis 以便于进一步维护。
151151
\item 次年暑假期间,冯开宇用 \pkg{expl3} 重构了\LaTeX 样式代码,
152152
向用户提供了简易易用的接口。
153153
\item 同时,也增加了本科全英文专业的毕设论文模板样式。
@@ -190,16 +190,16 @@ \subsubsection{\BIThesisLaTeX 的组成}
190190
\begin{tabular}{@{}l l p{6cm} @{}}
191191
\toprule
192192
项目 & 项目地址 & 主要目的 \\ \midrule
193-
BIThesis & \href{https://github.com/BITNP/BIThesis}{BITNP/BIThesis}
193+
BIThesis & \href{https://github.com/BITNP/BIThesis}{BITNP/BIThesis}
194194
& 主要存储 \BIThesis 宏包以及开箱即用的模板样式 \\
195-
BIThesis-wiki
196-
& \href{https://github.com/BITNP/BIThesis-wiki}{BITNP/BIThesis-wiki}
195+
BIThesis-wiki
196+
& \href{https://github.com/BITNP/BIThesis-wiki}{BITNP/BIThesis-wiki}
197197
& 存储 \BIThesisLaTeX 项目在线文档 \\ \bottomrule
198198
\end{tabular}
199199
\end{table}
200200

201201
如果你仅想解决「我如何使用 \BIThesisLaTeX 来帮助我完成实验论文?」这个问题,
202-
那么欢迎你访问我们的\href{https://bithesis.bitnp.net}{在线文档}以获得更多信息。
202+
那么欢迎你访问我们的\href{https://bithesis.bitnp.net}{在线文档}以获得更多信息。
203203

204204
如果你想深入了解 \BIThesisLaTeX 提供的接口的各种选项,那么请继续阅读。
205205

@@ -217,7 +217,7 @@ \subsection{\BIThesis 如何的设计原则是什么?}
217217
并采用了正规软件开发的流程,如版本控制、代码审查、持续集成等,来保证 \BIThesis 的可维护性。
218218

219219
\subsection{\BIThesis 宏包的组成}
220-
为了适应用户的不同需求,我们将 \BIThesisMacroPackage
220+
为了适应用户的不同需求,我们将 \BIThesisMacroPackage
221221
的主要功能设计安排在两个中文文档类当中,具体的组成见 \ref{tab:classes}。
222222
\begin{table}[H]
223223
\centering
@@ -227,20 +227,20 @@ \subsection{\BIThesis 宏包的组成}
227227
\toprule
228228
类别 & 文件
229229
& 说明 \\ \midrule
230-
\multirow{2}{*}{文档类} & \cls{bithesis.cls}\ref{sec:bithesis}
230+
\multirow{2}{*}{文档类} & \cls{bithesis.cls}\ref{sec:bithesis}
231231
& 封装本科生与研究生的毕业论文样式。 \\
232-
& \cls{bitreport.cls}\ref{sec:bitreport}
232+
& \cls{bitreport.cls}\ref{sec:bitreport}
233233
& 封装了本科生开题报告(已废弃)与实验报告样式。 \\ \cmidrule(l){2-3}
234-
& \cls{bitbeamer.cls}
235-
& 对应 ctexbeamer.cls ,提供了北理工的 Beamer 模板样式。
234+
& \cls{bitbeamer.cls}
235+
& 对应 ctexbeamer.cls ,提供了北理工的 Beamer 模板样式。
236236
\\ \cmidrule(l){2-3}
237237
\end{tabular}
238238
\end{table}
239239

240240
\subsection{\BIThesisLaTeX 是如何发布的?}
241241
\label{sec:release}
242242

243-
\BIThesisLaTeX 每一个版本会有三种发布方式:
243+
\BIThesisLaTeX 每一个版本会有三种发布方式:
244244

245245
\begin{itemize}
246246
\item CTAN 发布:
@@ -316,7 +316,7 @@ \subsection{\BIThesis 宏包的安装和更新}
316316
在安装完发行版之后,还需要安装编辑 \LaTeX 所需的编辑器,在这里推荐 TeXstudio。
317317
}
318318

319-
\textit{更多安装教程请访问我们的
319+
\textit{更多安装教程请访问我们的
320320
\href{https://bithesis.bitnp.net}{wiki 网站},那里收录了使用模板以外的信息。}
321321

322322
\subsubsection{升级模板版本}
@@ -360,7 +360,7 @@ \section{\cls{bithesis.cls} 使用与配置}
360360
推荐使用\BIThesisRelease (开箱即用)。
361361

362362
\BIThesisRelease 提供了多种最常用的模板,你可以在
363-
\href{https://github.com/BITNP/BIThesis/releases}{主项目的 Releases}中找到它们。
363+
\href{https://github.com/BITNP/BIThesis/releases}{主项目的 Releases}中找到它们。
364364

365365
使用此文档类的模板有:
366366
\begin{itemize}
@@ -466,7 +466,7 @@ \subsection{模板选项} \label{sec:template-options}
466466
\end{bitsyntax}
467467

468468
此选项用于开启针对北理工官方示例的兼容模式。
469-
469+
470470
具体包括:
471471
\begin{itemize}
472472
\item \pkg{biblatex} 中的 |patent| 类型将不再采用国标 GB/T 7714-2015 的格式,
@@ -477,12 +477,12 @@ \subsection{模板选项} \label{sec:template-options}
477477
与国标 GB/T 7714-2015 中的格式不一致;
478478
而这部分改动可能引入潜在的兼容性问题。
479479
而这些差异其实比较细微,所以我们将其作为一个默认不开启的选项。
480-
480+
481481
在未来,如果持续有用户反馈问题,亦或是没有边界问题,
482482
我们可能会将其中的功能移入默认效果中。
483483

484484
\end{function}
485-
485+
486486
\begin{function}{twoside}
487487
\begin{bitsyntax}[emph={[1]twoside}]
488488
twoside = (*<(false)|true>*)
@@ -501,28 +501,28 @@ \subsection{模板选项} \label{sec:template-options}
501501
\end{bitsyntax}
502502

503503
该选项用于传入模板选项至 ctexbook。
504-
504+
505505
例如:想要同时修改 ctex 的字体参数和标点符号处理格式
506506
(更多选项请参考 ctex 手册)。
507507

508508
\begin{latex}[emph={[1]type,master,ctex,fontset,fandol,punct,banjiao,bithesis}]
509509
\documentclass[type=master,ctex={fontset=fandol,punct=banjiao}]{bithesis}
510510
\end{latex}
511511
\end{function}
512-
512+
513513
\begin{function}[added=2023-03-10]{autoFakeBold}
514514
\begin{bitsyntax}[emph={[1]autoFakeBold}]
515515
autoFakeBold = (*<(3)|false|{数字}>*)
516516
\end{bitsyntax}
517517

518518
该选项用于调整 \cls{xeCJK} 中 |AutoFakeBold| 选项以定义伪粗体的粗细程度。
519-
519+
520520
默认为 3,一般按照经验来说,2.5–3 比较符合 Word 中的粗体样式。
521-
521+
522522
\end{function}
523-
523+
524524
\subsection{参数设置}
525-
525+
526526
\begin{function}{\BITSetup}
527527
\begin{bitsyntax}[emph={[1]BITSetup}]
528528
\BITSetup = {(*\oarg{键值对}*)}
@@ -565,7 +565,7 @@ \subsection{参数设置}
565565

566566
\textbf{请注意:以下选项根据模板的不同,可能会有不同的默认值。
567567
有些模板可能不会使用某些选项。使用与否以及使用方式是根据学校的论文撰写要求实现的。}
568-
568+
569569
\subsubsection{封面选项} \label{sec:cover}
570570

571571
\begin{function}{cover}
@@ -621,7 +621,7 @@ \subsubsection{封面选项} \label{sec:cover}
621621
\textit{此选项一般不需要用户自行修改。}
622622

623623
自动计算封面中下划线的长度。
624-
624+
625625
如果关闭了该选项,则建议配合\kvopt{cover/labelMaxWidth}{\meta{长度}}\\
626626
\kvopt{cover/valueMaxWidth}{\meta{长度}}使用,以控制下划线的长度。
627627
\end{function}
@@ -642,7 +642,7 @@ \subsubsection{封面选项} \label{sec:cover}
642642
\begin{bitsyntax}[emph={[1]labelMaxWidth}]
643643
labelMaxWidth = (*\marg{任意长度}*)
644644
\end{bitsyntax}
645-
645+
646646
此选项仅当\kvopt{cover/autoWidth}{false}时生效。
647647

648648
设置封面信息中标签的占位长度。
@@ -911,7 +911,7 @@ \subsubsection{论文基本信息}
911911
\end{bitsyntax}
912912

913913
特殊类型:交叉研究方向。(不勾选时不显示整个内容)
914-
914+
915915
\textit{此选项一般不需要用户自行修改。}
916916
\end{function}
917917

@@ -921,7 +921,7 @@ \subsubsection{论文基本信息}
921921
\end{bitsyntax}
922922

923923
特殊类型:政府项目留学生。
924-
924+
925925
\textit{此选项一般不需要用户自行修改。}
926926
\end{function}
927927

@@ -966,7 +966,7 @@ \subsubsection{样式信息}
966966
\textit{此选项一般不需要用户自行修改。}
967967

968968
控制参考文献的每一项中,首行之后的行是否缩进。
969-
969+
970970
之所以提供这个选项,
971971
是因为在(2023年以前的本科生) Word 模板中参考文献的格式(错误地)
972972
要求首行之后的行不缩进。
@@ -989,7 +989,7 @@ \subsubsection{样式信息}
989989
\begin{bitsyntax}[emph={[1]mathFont}]
990990
mathFont = (*(cm)|asana|fira|...|xits|none*)
991991
\end{bitsyntax}
992-
设置数学字体,具体配置见表~\ref{tab:math-font}。除 |Computer Modern| (默认)字体以外,均使用 \pkg{unicode-math} 宏包调用字体。
992+
设置数学字体,具体配置见表~\ref{tab:math-font}。除 |Computer Modern| (默认)字体以外,均使用 \pkg{unicode-math} 宏包调用字体。
993993

994994
\end{function}
995995

@@ -1053,7 +1053,7 @@ \subsubsection{样式信息}
10531053

10541054
默认值设置为 10pt——一个比较美观的宽度。
10551055
如果你更习惯 Word 文档的公式上下文距离,可以设置为一个更小的值(比如 3pt),反之亦然。
1056-
1056+
10571057
\textit{请保证源码中的公式的环境(如}\verb|\begin{equation}|
10581058
\textit{)与上一段落不要有空行。否则,公式和上文段落之间会有额外的空白。}
10591059

@@ -1265,7 +1265,7 @@ \subsubsection{其他配置}
12651265
\begin{latex}
12661266
{
12671267
\BITSetup{ misc / tabularFontSize = -4}
1268-
1268+
12691269
\begin{table}[hbt]
12701270
\centering
12711271
\caption{水系聚氨酯分类} \label{tab:category}
@@ -1313,7 +1313,7 @@ \subsubsection{其他配置}
13131313

13141314
\textit{此选项的默认值实际上是受到 \autoref{sec:const} 中 |const/autoref/xxx| \\
13151315
(如 \cmd{misc/autoref/algo})选项的影响。}
1316-
1316+
13171317
\end{function}
13181318

13191319
\begin{function}[added=2023-04-29]{misc/hideLinks}
@@ -1464,11 +1464,11 @@ \subsection{封面及基本信息}
14641464
此时,如果用户需要换行,可以通过「\\」控制换行。
14651465

14661466
当关闭自动计算下划线宽度后,
1467-
可以通过
1467+
可以通过
14681468

1469-
\meta{labelMaxWidth=xxx}
1469+
\meta{labelMaxWidth=xxx}
14701470

1471-
1471+
14721472

14731473
\meta{valueMaxWidth=xxx}
14741474

@@ -1527,7 +1527,7 @@ \subsection{前置部分}
15271527
\end{bitsyntax}
15281528

15291529
摘要。
1530-
1530+
15311531
摘要的最后会显示关键词,关键词通过 \cs{BITSetup} 录入。
15321532

15331533
\end{function}
@@ -1546,7 +1546,7 @@ \subsection{前置部分}
15461546
\end{bitsyntax}
15471547

15481548
主要符号对照表。
1549-
1549+
15501550
主要符号对照表类似于一个列表环境,用以添加文章中使用的关键符号与缩略词。
15511551

15521552
\end{function}
@@ -1740,7 +1740,7 @@ \subsection{后置部分}
17401740

17411741
\pubsection{分类一}
17421742
\printbibliography[heading=none,category=mypub,type=book,resetnumbers=true]
1743-
1743+
17441744
\pubsection{分类二}
17451745
\printbibliography[heading=none,category=mypub,type=article,resetnumbers=true]
17461746
\end{publications}
@@ -1853,7 +1853,7 @@ \subsection{如何修改数学公式的字体?}
18531853
\SetMathEnvironmentSinglespace{1.05}
18541854
\end{latex}
18551855

1856-
\textit{更多字体与使用方法请参考
1856+
\textit{更多字体与使用方法请参考
18571857
\href{https://ctan.org/pkg/unicode-math?lang=zh}{unicode-math 手册}和
18581858
\href{https://ctan.org/pkg/zhlineskip}{zhlineskip 手册}。}
18591859

@@ -1867,7 +1867,7 @@ \subsection{如何采用与 Word 相同的中文字体?} \label{sec:word-fonts
18671867
因此,用户有两种选择:
18681868
\begin{itemize}
18691869
\item 手动在系统中安装中易字库
1870-
(一般包括 SimSun、SimHei、KaiTi、FangSong 等)。
1870+
(一般包括 SimSun、SimHei、KaiTi、FangSong 等)。
18711871
\textbf{请注意,是 KaiTi 而不是 SimKai。}
18721872
并通过 |\documentclass[...,ctex={fontset=windows}]{bithesis}| 选项
18731873
强制使用中易字库。
@@ -1920,7 +1920,7 @@ \section{\cls{bitreport.cls} 使用与配置}
19201920

19211921
\BIThesisRelease 提供了多种最常用的模板,你可以在
19221922
\href{https://github.com/BITNP/BIThesis/releases}{主项目的 Releases}
1923-
中找到它们。
1923+
中找到它们。
19241924

19251925
使用此文档类的模板有:
19261926
\begin{itemize}
@@ -1976,7 +1976,7 @@ \subsection{模板选项}
19761976
\end{function}
19771977

19781978
\subsection{参数设置}
1979-
1979+
19801980
\begin{function}{\BITSetup}
19811981
\begin{bitsyntax}[emph={[1]BITSetup}]
19821982
\BITSetup = {(*\oarg{键值对}*)}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy