-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblcuthesis.cls
663 lines (561 loc) · 21.6 KB
/
blcuthesis.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
% Identification
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{blcuthesis}[2022/08/09 Unofficial LaTeX Document Class for BLCU Thesis]
% Preliminary declarations
%% 基本文档类及引入的宏包 %%
\LoadClass{report}
\RequirePackage[UTF8,zihao=-4,heading=true,linespread=1.5]{ctex}
%\RequirePackage[a4paper,top=25mm,bottom=20mm,left=30mm,right=20mm]{geometry}
\RequirePackage[a4paper,top=30mm,bottom=30mm,left=30mm,right=30mm]{geometry}
\RequirePackage[colorlinks, linkcolor=black, citecolor=black, urlcolor=black]{hyperref}
\RequirePackage{amssymb, amsfonts, amsmath, amsthm, mathtools, mathrsfs, bm, calc} %% 和数学相关的一些宏包
\RequirePackage{fontspec}
\RequirePackage[numbered]{bookmark}
\RequirePackage{graphicx}
\RequirePackage{setspace}
\RequirePackage{needspace}
\RequirePackage{lastpage}
\RequirePackage{chngcntr} % 图表按章节编号
\RequirePackage{placeins} % 图片仅限本章浮动
\RequirePackage{stfloats} % 浮动体的 H 选项
\RequirePackage{subfigure}
\RequirePackage{caption} % 标题控制
\RequirePackage{listings} % 代码环境
\RequirePackage{xcolor} % 颜色支持
\RequirePackage{tcolorbox} % 文本框
\RequirePackage{longtable} % 长表格
\RequirePackage{makecell} % 表格线宽支持
\RequirePackage{booktabs} % 三线表支持
\RequirePackage{bigstrut} %% 该宏包提供 \bigstrut 命令,可以增大表格的行间距
%\RequirePackage{gbt7714}
\RequirePackage[backend=biber,style=gb7714-2015,gbnamefmt=lowercase]{biblatex}
\RequirePackage{emptypage} %% 此宏包负责的任务是当每一章最后一页是偶数页时,设置空白
\RequirePackage{tikz}
\RequirePackage{indentfirst}
\RequirePackage[final]{pdfpages}
\RequirePackage{titlesec} % titlespacing
\RequirePackage[titles,subfigure]{tocloft} % 用于设置目录条目
\RequirePackage{suffix} % 定义 * 命令
\RequirePackage{varwidth}
\RequirePackage{ulem} % 删除线
\RequirePackage{ wasysym}
\RequirePackage{kvoptions}
\RequirePackage{enumitem}
\RequirePackage{titlesec}
\RequirePackage{array}
\RequirePackage{pifont}
\RequirePackage{multirow}
\RequirePackage{fancyhdr}
\RequirePackage{etoolbox}
\RequirePackage{xstring}
\RequirePackage{forloop}
% Options
\SetupKeyvalOptions{family=blcu, prefix=blcu@}
\DeclareBoolOption{final}
\DeclareBoolOption{master}
\DeclareBoolOption{doctor}
\DeclareBoolOption{continuousNum}
\ProcessKeyvalOptions*
% More declarations
%% 全局设置 %%
%% 字体:宋体 %%
\setCJKmainfont [AutoFakeBold={2.17}, Path=fonts/] {simsun.ttc} % 中文默认字体
\setCJKfamilyfont{SimSun}[AutoFakeBold={2.17}, Path=fonts/] {simsun.ttc}
\renewcommand\songti{\CJKfamily{SimSun}}
%% 字体:黑体 %%
\setCJKfamilyfont{SimHei}[AutoFakeBold={2.17}, Path=fonts/] {simhei.ttf}
\renewcommand\heiti{\CJKfamily{SimHei}}
%% 字体:楷体 %%
\setCJKfamilyfont{SimKai}[AutoFakeBold={2.17}, Path=fonts/] {simkai.ttf}
\newcommand\kaiti{\CJKfamily{SimKai}}
%% 字体:仿宋 %%
\setCJKfamilyfont{SimFang}[AutoFakeBold={2.17}, Path=fonts/] {simfang.ttf}
\renewcommand\fangsong{\CJKfamily{SimFang}}
%% 字体:方正简明小标宋 %%
\setCJKfamilyfont{FZSong}[AutoFakeBold={2.17}, Path=fonts/] {fzxbs.ttf}
\newcommand\fzsong{\CJKfamily{FZSong}}
\setmainfont{Times New Roman} % 西文默认字体
\renewcommand{\bibfont}{\zihao{5}}
\newfontfamily\urlfontfamily{SimSun}
\def\UrlFont{\urlfontfamily}
% 章节标题
\ctexset{
chapter = { % 一级标题
format = \centering\heiti\zihao{3}, % 黑体三号居中
% number=\chinese{chapter},
number=\thechapter,
name={第,章},
break=\cleardoublepage,
},
section = { % 二级标题
format = \heiti\zihao{-3}, % 黑体小三号
number=\thechapter.\arabic{section},
},
subsection = { % 三级标题
format = \heiti\zihao{4}, % 黑体四号
number=\thechapter.\arabic{section}.\arabic{subsection}
},
subsubsection = { % 四级标题
format = \heiti\zihao{-4}, % 黑体小四号
% indent = 2\ccwd, % 缩进两字符
number=\arabic{subsubsection},
aftername={},
name = {(,)},
},
paragraph = {
format = \bfseries\heiti\zihao{-4},
% indent = 2\ccwd,
},
tocdepth=2,
secnumdepth=3,
listfigurename={图片},
}
% \paragraph 命令行距调整 {段首}{段前行间距}{标题后间距}
\titlespacing{\paragraph}{2em}{0pt}{1em}
% 调整参考文献间距
%\setlength{\bibsep}{1.5pt}
% 设置 \item 之间的间距
\setenumerate[1]{
itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=0pt}
\setitemize[1]{
itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=0pt}
\setdescription{
itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=0pt}
% 设置表格相关命令
\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
\newcolumntype{C}[1]{>{\PreserveBackslash\centering}p{#1}}
\newcolumntype{R}[1]{>{\PreserveBackslash\raggedleft}p{#1}}
\newcolumntype{L}[1]{>{\PreserveBackslash\raggedright}p{#1}}
\newcommand{\tabincell}[2]{\begin{tabular}{@{}#1@{}}#2\end{tabular}}
% footnote 编号在 chapter 之间连续
\counterwithout{footnote}{chapter}
% 页眉页脚预设置
\pagestyle{fancy}
\fancyhf{}
% 页眉设置
%\fancyhead[L]{ % 设置页眉左侧
% \raisebox{-.1cm}{
% \includegraphics[height=0.5cm]{figures/BLCULogo.pdf}
% \includegraphics[height=0.5cm]{figures/BLCULogoText.pdf}
% }
% }
%\fancyhead[R]{\let\\=\relax\heiti\zihao{5}\blcuthesis@title} % 设置页眉右侧
\fancyhead[C]{\let\\=\relax \zihao{5}\leftmark} % 设置页眉右侧
%\fancyfoot[C]{\thepage}
\fancyfoot[C]{\zihao{5}\thepage}
\fancypagestyle{plain}{
\pagestyle{fancy}
}
% 长度变量,定义各种封面时使用
\newlength{\maxwidth}
\newcommand{\titleBoxLen}{10.5cm}
\newcommand{\len}{8cm}
\newcommand{\llen}{6cm}
% 图表名格式设置
\captionsetup{font={small},labelsep=space} % 图表标题设为五号字体、序号与图表名之间以空格分隔
\captionsetup[table]{font={small},labelsep=space} % 表标题设为五号加粗、表序与表名之间以空格分隔
\ifblcu@continuousNum
\counterwithout{figure}{chapter} % 图按章节编号
\counterwithout{table}{chapter} % 表按章节编号
\renewcommand{\thefigure}{\arabic{figure}} % 图几.几
\renewcommand{\thetable}{\arabic{table}} % 表几-几
\else
\counterwithin{figure}{chapter} % 图按章节编号
\counterwithin{table}{chapter} % 表按章节编号
\renewcommand{\thefigure}{\thechapter.\arabic{figure}} % 图几.几
\renewcommand{\thetable}{\thechapter.\arabic{table}} % 表几-几
\fi
\numberwithin{equation}{chapter}
\renewcommand\theequation{\arabic{chapter}-\arabic{equation}}
\newtagform{leaderText}{式(}{)}
\usetagform{leaderText}
\AtBeginDocument{\setlength\abovedisplayskip{4pt}}
\AtBeginDocument{\setlength\belowdisplayskip{4pt}}
% 增大表格间距
% \renewcommand{\arraystretch}{1.2}
% 代码抄录的一系列设置
\lstset{
basicstyle=\footnotesize\ttfamily,
flexiblecolumns,
numbers=left,
numbersep=5pt,
numberstyle=\tiny,
backgroundcolor=\color{white},
frame=single,
breaklines=true,
showtabs=false,
showspaces=false,
showstringspaces=false,
keywordstyle=\color{teal},
commentstyle=\color{blue},
stringstyle=\color{red},
numberstyle=\color{gray},
tabsize=8,
breakatwhitespace=false,
postbreak=\mbox{\textcolor{violet}{$\hookrightarrow$}\space}
} %% 代码抄录的一系列设置
% 填写基本信息的命令
% 论文题目
\newcommand{\blcuthesis@title}{题目}
\newcommand{\blcuthesis@entitle}{Title}
\newcommand{\thesisTitle}[2]{
\def\blcuthesis@title{#1}
\def\blcuthesis@entitle{#2}
}
% 论文完成时间
\newcommand{\blcuthesis@completeYear}{}
\newcommand{\blcuthesis@completeMonth}{}
\newcommand{\blcuthesis@completeDay}{}
\newcommand{\thesisCompleteTime}[3]{
\def\blcuthesis@completeYear{#1}
\def\blcuthesis@completeMonth{#2}
\def\blcuthesis@completeDay{#3}
}
% 学生姓名
\newcommand{\blcuthesis@stuName}{}
\newcommand{\stuName}[1]{
\def\blcuthesis@stuName{#1}
}
% 学生英文姓名
\newcommand{\blcuthesis@stuEnName}{}
\newcommand{\stuEnName}[1]{
\def\blcuthesis@stuEnName{#1}
}
% 学生国籍
\newcommand{\blcuthesis@stuCountry}{}
\newcommand{\stuCountry}[1]{
\def\blcuthesis@stuCountry{#1}
}
% 学生学号
\newcommand{\blcuthesis@stuID}{}
\newcommand{\stuID}[1]{
\def\blcuthesis@stuID{#1}
}
% 学生班级
\newcommand{\blcuthesis@stuClass}{}
\newcommand{\blcuthesis@stuShortClass}{}
\newcommand{\stuClass}[2]{
\def\blcuthesis@stuClass{#1}
\def\blcuthesis@stuShortClass{#2}
}
% 学生专业
\newcommand{\blcuthesis@stuMajor}{}
\newcommand{\stuMajor}[1]{
\def\blcuthesis@stuMajor{#1}
}
% 学生英文专业
\newcommand{\blcuthesis@stuEnMajor}{}
\newcommand{\stuEnMajor}[1]{
\def\blcuthesis@stuEnMajor{#1}
}
% 学生研究方向
\newcommand{\blcuthesis@stuDirection}{}
\newcommand{\stuDirection}[1]{
\def\blcuthesis@stuDirection{#1}
}
% 指导老师姓名
\newcommand{\blcuthesis@supervisorName}{}
\newcommand{\supervisorName}[1]{
\def\blcuthesis@supervisorName{#1}
}
% 指导老师英文姓名
\newcommand{\blcuthesis@supervisorEnName}{}
\newcommand{\supervisorEnName}[1]{
\def\blcuthesis@supervisorEnName{#1}
}
% 学生所在学院
\newcommand{\blcuthesis@stuCollege}{}
\newcommand{\stuCollege}[1]{
\def\blcuthesis@stuCollege{#1}
}
% 诚信声明作者签名
\newcommand{\blcuthesis@integrityStatement@author}{}
\newcommand{\integrityStatementAuthor}[1]{
\def\blcuthesis@integrityStatement@author{#1}
}
% 诚信声明导师签名
\newcommand{\blcuthesis@integrityStatement@supervisor}{}
\newcommand{\integrityStatementSupervisor}[1]{
\def\blcuthesis@integrityStatement@supervisor{#1}
}
% 诚信声明年月日
\newcommand{\blcuthesis@integrityStatement@year}{}
\newcommand{\blcuthesis@integrityStatement@month}{}
\newcommand{\blcuthesis@integrityStatement@day}{}
\newcommand{\integrityStatementDate}[3]{
\def\blcuthesis@integrityStatement@year{#1}
\def\blcuthesis@integrityStatement@month{#2}
\def\blcuthesis@integrityStatement@day{#3}
}
% 定义中英文摘要的命令
\newcommand{\blcuthesis@abstract@title}{\blcuthesis@title}
\newcommand{\blcuthesis@abstract@entitle}{\MakeUppercase{\blcuthesis@entitle}}
\newcommand{\abstractZhtitle}[1]{
\def\blcuthesis@abstract@title{#1}
}
\newcommand{\abstractEntitle}[1]{
\def\blcuthesis@abstract@entitle{#1}
}
% 制作匿名评审封面
\def\makeReviewCover{
\begin{titlepage}
论文编号:\underline{\makebox[3cm][l]{}}
\begin{center}
\vspace*{1.5\baselineskip}
\includegraphics[height=2cm]{figures/BLCULogo.pdf}
\quad
\includegraphics[height=2cm]{figures/BLCULogoText.pdf}
\end{center}
\begin{center}
\bfseries\heiti
\vspace*{1\baselineskip}
\makebox{\fontsize{34bp}{2\hsize} 研究生学位论文}
\makebox{\zihao{3}(匿名评阅用)}
\end{center}
\vspace*{0.5cm}
\makebox[0.85\linewidth][r]{
\bfseries\zihao{3}\heiti \ifblcu@master \CheckedBox \else \Square \fi 硕士
\bfseries\zihao{3}\heiti \ifblcu@doctor \CheckedBox \else \Square \fi 博士
}
\begin{center}
\vspace*{1cm}
\begin{spacing}{1.8}
\zihao{-2}
\settowidth{\maxwidth}{English Title:}
\makebox[\maxwidth][s]{题目:}\underline{\makebox[\titleBoxLen][l]{}}
\StrCount{\blcuthesis@title}{\\}[\numbackslashes]
\newcounter{ct}
\forloop{ct}{0}{\value{ct} < \numbackslashes} {
\hspace*{\maxwidth}
\underline{\makebox[\titleBoxLen][l]{}}
}
% \vspace*{-2\baselineskip} % 2.78cm
\vspace*{-\numexpr\numbackslashes+1\relax\baselineskip}
\hspace*{\maxwidth}
\begin{minipage}[t][2\baselineskip][t]{\titleBoxLen}
\begin{center}\blcuthesis@title\end{center}
\end{minipage}
\makebox[\maxwidth][s]{English Title:}\underline{\makebox[\titleBoxLen][l]{}}
\hspace*{\maxwidth}\underline{\makebox[\titleBoxLen][l]{}}
\vspace*{-2\baselineskip} % 2.78cm
\hspace*{\maxwidth}
\begin{minipage}[t][2\baselineskip][t]{\titleBoxLen}
\zihao{3}
\begin{center}\blcuthesis@entitle\end{center}
\end{minipage}
\makebox[\maxwidth][s]{专业:} \underline{\makebox[\titleBoxLen][c]{\blcuthesis@stuMajor}}
\makebox[\maxwidth][s]{研究方向:} \underline{\makebox[\titleBoxLen][c]{\blcuthesis@stuDirection}}
\end{spacing}
\end{center}
\begin{center}
\vspace*{1cm}
\zihao{-2}
\makebox[\linewidth][c]{北京语言大学研究生院制}
\makebox[4em][r]{\blcuthesis@completeYear} 年
\makebox[2em][r]{\blcuthesis@completeMonth} 月
\end{center}
\end{titlepage}
\cleardoublepage
}
% 制作最终版封面
\def\makeFinalCover{
\newgeometry{
top=2.54cm,
bottom=2.54cm,
left=3.17cm,
right=3.17cm
}
\begin{titlepage}
\begin{center}
%\vspace*{-1\baselineskip}
\includegraphics[height=2.5cm]{figures/BLCULogo.pdf}
\quad
\includegraphics[height=2.5cm]{figures/BLCULogoTextZhEn.pdf}
\end{center}
\begin{center}
\bfseries\fzsong\zihao{-0}
% 2cm
% \vspace*{1cm}
\makebox[10em][s]{\ifblcu@doctor{博士}\else{硕士}\fi{研究生学位论文}}
\end{center}
\begin{center}
\vspace*{2.3\baselineskip}
\begin{spacing}{1.8}
\bfseries\heiti\zihao{-2}
% \settowidth{\maxwidth}{题\quad 目:}
\setlength{\maxwidth}{4em}
\makebox[3.5em][s]{题目:}\underline{\makebox[\titleBoxLen][l]{}}
\StrCount{\blcuthesis@title}{\\}[\numbackslashes]
\newcounter{ct}
\forloop{ct}{0}{\value{ct} < \numbackslashes} {
\hspace*{\maxwidth}
\underline{\makebox[\titleBoxLen][l]{}}
}
% \vspace*{-1\baselineskip} % 2.78cm
\vspace*{-\numexpr\numbackslashes+1\relax\baselineskip}
\hspace*{\maxwidth}
\begin{minipage}[t][2\baselineskip][t]{\titleBoxLen}
\begin{center}\blcuthesis@title\end{center}
\end{minipage}
\end{spacing}
\end{center}
\begin{center}
\vspace*{1\baselineskip}
\begin{spacing}{2.1}
\bfseries\zihao{3}
\makebox[2em][c]{姓名}:\underline{\makebox[\len][c]{\blcuthesis@stuName}}
\makebox[2em][c]{国籍}:\underline{\makebox[\len][c]{\blcuthesis@stuCountry}}
\makebox[2em][c]{学号}:\underline{\makebox[\len][c]{\blcuthesis@stuID}}
\makebox[2em][c]{院系}:\underline{\makebox[\len][c]{\blcuthesis@stuCollege}}
\makebox[2em][c]{专业}:\underline{\makebox[\len][c]{\blcuthesis@stuMajor}}
\makebox[2em][c]{导师}:\underline{\makebox[\len][c]{\blcuthesis@supervisorName}}
\end{spacing}
\end{center}
\begin{center}
\vspace*{1\baselineskip}
\bfseries\zihao{4}
\makebox[4em][r]{\blcuthesis@completeYear} 年
\makebox[2em][r]{\blcuthesis@completeMonth} 月
\end{center}
\end{titlepage}
\restoregeometry
\cleardoublepage
}
\newcommand{\makecover}{
\makeReviewCover
}
\ifblcu@final
\renewcommand{\makecover}{
\makeFinalCover
}
\fi
\def \makeIntegrityStatement {
\begin{titlepage}
% \setlength{\leftskip}{0.8em}
% \setlength{\rightskip}{0.8em}
\zihao{-3}
\begin{center}
%\vspace*{1.2\baselineskip}
\includegraphics[height=2cm]{figures/BLCULogo.pdf}
\quad
\includegraphics[height=2cm]{figures/BLCULogoTextZhEn.pdf}
\end{center}
\begin{center}
\zihao{-2}
论文原创性声明
\end{center}
本人郑重声明:所呈交的论文,是本人在导师指导下,独立进行的研究工作及取得的研究成果。尽我所知,除了文中已经注明引用和致谢的地方外,论文中不包含其他人或集体已经发表或撰写的研究成果,也不包含为获得北京语言大学或其他教育机构的学位或证书所使用过的材料。对本文的研究做出重要贡献的个人和集体,均已在文中以明确方式标明。本人完全意识到本声明的法律结果由本人承担。
\begin{spacing}{2}
\vspace*{-0.5\baselineskip}
\zihao{-3}
\makebox[0.85\linewidth][r]{\makebox[4em][s]{签名}:\underline{\makebox[3cm][c]{
\includegraphics[height=0.6cm]{\blcuthesis@integrityStatement@author}
}}}
\makebox[0.85\linewidth][r]{\makebox[4em][s]{日期}:\underline{\makebox[3cm][c]{
\blcuthesis@integrityStatement@year{.}\blcuthesis@integrityStatement@month{.}\blcuthesis@integrityStatement@day
}}}
\end{spacing}
\vspace*{-0.3\baselineskip}
\begin{center}
\zihao{-2}
学位论文知识产权权属声明
\end{center}
本人郑重声明:本人所呈交论文,是在导师指导下所完成的,论文知识产权归属北京语言大学。学校有权保留并向国家有关部门或机构送交论文的复印件和电子版本,允许论文被查询和借阅,将论文编入有关数据库进行检索等。本人离校后发表或使用学位论文或与该论文直接相关的学术论文获成果时,署名仍为北京语言大学。
\begin{spacing}{2}
\vspace*{-0.5\baselineskip}
\zihao{-3}
\makebox[0.85\linewidth][r]{\makebox[4em][s]{签名}:\underline{\makebox[3cm][c]{
\includegraphics[height=0.6cm]{\blcuthesis@integrityStatement@author}
}}}
\makebox[0.85\linewidth][r]{\makebox[4em][s]{导师签名}:\underline{\makebox[3cm][c]{
\includegraphics[height=1.2cm]{\blcuthesis@integrityStatement@supervisor}
}}}
\makebox[0.85\linewidth][r]{\makebox[4em][s]{日期}:\underline{\makebox[3cm][c]{
\blcuthesis@integrityStatement@year{.}\blcuthesis@integrityStatement@month{.}\blcuthesis@integrityStatement@day
}}}
\end{spacing}
\end{titlepage}
\cleardoublepage
}
% 制作中英文摘要的环境及命令
\newcommand\keywords[1]{\ \\{\heiti\zihao{4}关键词:}{#1}} % 黑体四号
\WithSuffix\newcommand\keywords*[1]{\ \\{\bfseries\zihao{4}Key words: }{#1}} % 四号加粗
\renewenvironment{abstract}{%
\markboth{摘要}{}
\phantomsection
%\addcontentsline{toc}{chapter}{摘要}
\begin{center}
\heiti
\vspace*{0.5\baselineskip}
\zihao{3} \blcuthesis@abstract@title
\vspace*{0.5\baselineskip}
\makebox[4em]{摘\quad 要}
\vspace*{0.5\baselineskip}
\end{center}
\par
}{%
\cleardoublepage
}
\newenvironment{abstract*}{%
\markboth{ABSTRACT}{}
\phantomsection
% \addcontentsline{toc}{chapter}{Abstract}
\begin{center}
% \vspace*{0.5\baselineskip}
{\bfseries\heiti\zihao{3} \blcuthesis@abstract@entitle}
\vspace*{0.5\baselineskip}
\zihao{5}
\textit{\blcuthesis@stuEnName} (\textit{\blcuthesis@stuEnMajor})
Directed by \textit{\blcuthesis@supervisorEnName}
% \bfseries\zihao{-3}ABSTRACT \\\ \\
\end{center}
\par
}{%
\cleardoublepage
}
% 制作目录的命令
\newcommand{\makecontents}{
\phantomsection
%\addcontentsline{toc}{chapter}{目录}
\renewcommand\contentsname{目\hspace{2em}录} % 设置目录字样
%\renewcommand\cftsecfont{\bfseries}
\setlength{\cftbeforechapskip}{0pt}
\renewcommand\cftchapleader{\cftdotfill{\cftdotsep}} %
% 自定义目录条目的样式
\renewcommand{\cftsecfont}{\bfseries\songti\fontsize{12pt}{12pt}\selectfont}
\setcounter{tocdepth}{1} % 论文目录页排版只排到二级标题,即章和节
\tableofcontents
\cleardoublepage
}
%图表汇总目录
\patchcmd{\listoffigures}{%
\@mkboth{\MakeUppercase\listfigurename}{\MakeUppercase\listfigurename}%
}{}{}{}
\patchcmd{\listoftables}{%
\@mkboth{\MakeUppercase\listtablename}{\MakeUppercase\listtablename}%
}{}{}{}
\newcommand{\listoffiguresandtables}[1]{
\chapter*{图表目录}
\markboth{图表目录}{}
\phantomsection
%\addcontentsline{toc}{chapter}{图表目录}
\begingroup
\let \cleardoublepage \relax
\renewcommand{\cftfigfont}{图}
\renewcommand{\cfttabfont}{表}
\setlength{\cftbeforechapskip}{0pt}
\let\origaddvspace\addvspace
\renewcommand{\addvspace}[1]{}
\vspace*{-2cm}
\listoffigures
\vspace*{-1cm}
\listoftables
\renewcommand{\addvspace}[1]{\origaddvspace{#1}}
\endgroup
\cleardoublepage
}
\newcommand{\acknowledgement}[1]{
\chapter*{#1}
\addcontentsline{toc}{chapter}{#1}
\markboth{#1}{}
}