Skip to content

Commit 3433a53

Browse files
fix(GT): 参照Word模板微调摘要、正文、结论等标题上下的间距,并展示省略号写法
Fixes #601
1 parent 03e05f9 commit 3433a53

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

bithesis.dtx

+20-6
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,15 @@
199199
}
200200
% \end{macrocode}
201201
% \end{macro}
202-
% \begin{macro}{\@@_if_graduate:TF}
202+
% \begin{macro}{\@@_if_graduate:TF,\@@_if_graduate:T}
203203
% 是否为研究生学位论文。
204204
% \begin{macrocode}
205205
\cs_new:Npn \@@_if_graduate:TF #1#2 {
206206
\int_compare:nNnTF {3} < {\g_@@_thesis_type_int}
207207
{#1}
208208
{#2}
209209
}
210+
\cs_new:Npn \@@_if_graduate:T #1 {\@@_if_graduate:TF {#1} {}}
210211
% \end{macrocode}
211212
% \end{macro}
212213

@@ -1425,8 +1426,8 @@
14251426
titleformat = {},
14261427
aftername = \hspace{9bp},
14271428
pagestyle = BIThesis,
1428-
beforeskip = 8bp,
1429-
afterskip = 32bp,
1429+
beforeskip = \@@_if_graduate:TF {13bp} {8bp},
1430+
afterskip = \@@_if_graduate:TF {24.5bp} {32bp},
14301431
fixskip = true,
14311432
lofskip = 0cm,
14321433
lotskip = 0cm,
@@ -1439,8 +1440,8 @@
14391440
nameformat = {},
14401441
titleformat = {},
14411442
aftername = \hspace{8bp},
1442-
beforeskip = 20bp,
1443-
afterskip = 17bp,
1443+
beforeskip = \@@_if_graduate:TF {26bp} {20bp},
1444+
afterskip = \@@_if_graduate:TF {18bp} {17bp},
14441445
fixskip = true,
14451446
}
14461447
}
@@ -1612,7 +1613,7 @@
16121613
format = {
16131614
\l_@@_title_font_cs:n \l_@@_unnumchapter_style_cs:n \centering \zihao{3}
16141615
},
1615-
afterskip = 26bp,
1616+
afterskip = \@@_if_graduate:TF {31bp} {26bp},
16161617
}
16171618
}
16181619
}
@@ -2928,6 +2929,7 @@
29282929
\cleardoublepage
29292930
\linespread{1.53}\selectfont
29302931

2932+
% 本科模板在标题「摘要」二字上方另有毕业设计题目
29312933
\@@_if_bachelor_thesis:T {
29322934
\begin{center}
29332935
\vspace*{-17bp}
@@ -2954,6 +2956,12 @@
29542956
}
29552957
}
29562958

2959+
% 微调硕博模板标题上下的间距
2960+
\@@_if_graduate:T { \ctexset{ chapter = {
2961+
beforeskip = 13bp,
2962+
afterskip = 24bp,
2963+
} } }
2964+
29572965
{
29582966
\@@_same_page:
29592967
\bool_if:NTF \l_@@_add_abstract_to_toc_bool {
@@ -3017,6 +3025,12 @@
30173025
}
30183026
}
30193027

3028+
% 微调硕博模板标题上下的间距
3029+
\@@_if_graduate:T { \ctexset{ chapter = {
3030+
beforeskip = 19bp,
3031+
afterskip = 35bp,
3032+
} } }
3033+
30203034
{
30213035
\@@_same_page:
30223036
\bool_if:nTF {\l_@@_add_abstract_en_to_toc_bool} {

templates/graduate-thesis/chapters/abstract.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
% The Current Maintainer of this work is Feng Kaiyu.
1717

1818
\begin{abstract}
19-
本文......。
19+
本文……
2020
\textcolor{blue}{(摘要是一篇具有独立性和完整性的短文,应概括而扼要地反映出本论文的主要内容。包括研究目的、研究方法、研究结果和结论等,特别要突出研究结果和结论。中文摘要力求语言精炼准确,博士学位论文建议1000\textasciitilde{}1200字,硕士学位论文摘要建议500\textasciitilde{}800字。摘要中不可出现参考文献、图、表、化学结构式、非公知公用的符号和术语。英文摘要与中文摘要的内容应完全一致,在语法、用词上应准确无误,语言简练通顺。留学生的英文版博士学位论文中应有不少于3000字的“详细中文摘要”。)}
2121
\end{abstract}
2222

2323
% 如需手动控制换行连字符位置,可写 aa\-bb,详见
2424
% https://bithesis.bitnp.net/faq/hyphen.html
2525

2626
\begin{abstractEn}
27-
In order to exploit.......
27+
In order to exploit...
2828

2929
Lorem ipsum dolor sit amet, officia excepteur ex fugiat reprehenderit enim labore culpa sint ad nisi Lorem pariatur mollit ex esse exercitation amet. Nisi anim cupidatat excepteur officia. Reprehenderit nostrud nostrud ipsum Lorem est aliquip amet voluptate voluptate dolor minim nulla est proident. Nostrud officia pariatur ut officia. Sit irure elit esse ea nulla sunt ex occaecat reprehenderit commodo officia dolor Lorem duis laboris cupidatat officia voluptate. Culpa proident adipisicing id nulla nisi laboris ex in Lorem sunt duis officia eiusmod. Aliqua reprehenderit commodo ex non excepteur duis sunt velit enim. Voluptate laboris sint cupidatat ullamco ut ea consectetur et est culpa et culpa duis.
3030
\end{abstractEn}

0 commit comments

Comments
 (0)