forked from CheckBoxStudio/BUAAThesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuaa.cls
1017 lines (917 loc) · 38.1 KB
/
buaa.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
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% %% <UTF-8>
%% %% 北航研究生毕业论文模板 - LaTeX 01-24-2022
%% %% 论文样式参考自《研究生手册--二〇二〇年七月》
%% %% 基于ctexbook
%% %%
%% %% 初始版本作者:
%% %% Wei Quanmao ([email protected])
%% %% 参与修改:
%% %% Qiao Junfeng ([email protected])
%% %%
%% %% Versions:
%% %% v3.1 WeiQM (01-24-2022)
%% %% v3.0 WeiQM (03-07-2020)
%% %% v2.2 WeiQM (11-30-2019)
%% %% v2.1 QiaoJF, WeiQM (12-19-2018)
%% %% v2.0 WeiQM, QiaoJF (11-22-2018)
%% %% v1.3 Wei Quanmao (10-15-2018)
%% %% v1.2 Wei Quanmao (07-31-2018)
%% %% v1.1 Wei Quanmao (01-04-2018)
%% %% v1.0a Wei Quanmao (12-17-2017)
%% %%
%% %% 建议采用等宽字体查看本文档
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 模板标识
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{buaa}[2022/01/24 v3.1 BUAA thesis class]
\typeout{This is LaTeX template buaa. Version 3.1 (based on CTeX) 01-24-2022}
%% 选项
%% 论文类型
\DeclareOption{master}{\gdef\@thesis{master}} % 学术硕士论文
\DeclareOption{professional}{\gdef\@thesis{professional}} % 专业硕士论文
\DeclareOption{doctor}{\gdef\@thesis{doctor}} % 博士论文
\DeclareOption{prodoctor}{\gdef\@thesis{prodoctor}} % 专业博士论文
\DeclareOption{thesis}{\ClassWarning{buaa}{%
You have not specified the THESIS option. The word thesis should be replaced by one of the following thesis type: master(default), professional, doctor, prodoctor.
}}
%% 密级
\DeclareOption{public}{\gdef\@permission{public}} % 公开
\DeclareOption{privacy}{\gdef\@permission{privacy}} % 内部
\DeclareOption{secret}{\gdef\@permission{secret3}} % 秘密 = 秘密3年
\DeclareOption{secret3}{\gdef\@permission{secret3}} % 秘密3年
\DeclareOption{secret5}{\gdef\@permission{secret5}} % 秘密5年
\DeclareOption{secret10}{\gdef\@permission{secret10}} % 秘密10年
\DeclareOption{secret*}{\gdef\@permission{secret*}} % 秘密永久
\DeclareOption{classified}{\gdef\@permission{classified5}} % 机密 = 机密5年
\DeclareOption{classified3}{\gdef\@permission{classified3}} % 机密3年
\DeclareOption{classified5}{\gdef\@permission{classified5}} % 机密5年
\DeclareOption{classified10}{\gdef\@permission{classified10}} % 机密10年
\DeclareOption{classified*}{\gdef\@permission{classified*}} % 机密永久
\DeclareOption{topsecret}{\gdef\@permission{topsecret10}} % 绝密 = 绝密10年
\DeclareOption{topsecret3}{\gdef\@permission{topsecret3}} % 绝密3年
\DeclareOption{topsecret5}{\gdef\@permission{topsecret5}} % 绝密5年
\DeclareOption{topsecret10}{\gdef\@permission{topsecret10}} % 绝密10年
\DeclareOption{topsecret*}{\gdef\@permission{topsecret*}} % 绝密永久
\DeclareOption{permission}{\ClassWarning{buaa}{%
You have not specified the PERMISSION option. The word permission should be replaced by one of the following thesis type: public, privacy, secret, classified, topsecret.
}}
%% 打印设置
\DeclareOption{oneside}{\gdef\@printtype{oneside}} % 单面打印
\DeclareOption{twoside}{\gdef\@printtype{twoside}} % 双面打印
\DeclareOption{printtype}{\ClassWarning{buaa}{%
You have not specified the PRINTTYPE option. The word printtype should be replaced by one of the following thesis type: oneside, twoside.
}}
%% 系统设置
\DeclareOption{win}{\gdef\@ostype{win}} % windows
\DeclareOption{linux}{\gdef\@ostype{linux}} % linux
\DeclareOption{max}{\gdef\@ostype{mac}} % mac
\DeclareOption{ostype}{\ClassWarning{buaa}{%
You have not specified the OSTYPE option. The word ostype should be replaced by one of the following thesis type: win, linux, mac.
}}
%% 适应首字母大写
\DeclareOption{Master}{\gdef\@thesis{master}}
\DeclareOption{Professional}{\gdef\@thesis{professional}}
\DeclareOption{Doctor}{\gdef\@thesis{doctor}}
\DeclareOption{ProDoctor}{\gdef\@thesis{prodoctor}}
\DeclareOption{Public}{\gdef\@permission{public}}
\DeclareOption{Privacy}{\gdef\@permission{privacy}}
\DeclareOption{Secret}{\gdef\@permission{secret3}}
\DeclareOption{Secret3}{\gdef\@permission{secret3}}
\DeclareOption{Secret5}{\gdef\@permission{secret5}}
\DeclareOption{Secret10}{\gdef\@permission{secret10}}
\DeclareOption{Secret*}{\gdef\@permission{secret*}}
\DeclareOption{Classified}{\gdef\@permission{classified5}}
\DeclareOption{Classified3}{\gdef\@permission{classified3}}
\DeclareOption{Classified5}{\gdef\@permission{classified5}}
\DeclareOption{Classified10}{\gdef\@permission{classified10}}
\DeclareOption{Classified*}{\gdef\@permission{classified*}}
\DeclareOption{TopSecret}{\gdef\@permission{topsecret10}}
\DeclareOption{TopSecret3}{\gdef\@permission{topsecret3}}
\DeclareOption{TopSecret5}{\gdef\@permission{topsecret5}}
\DeclareOption{TopSecret10}{\gdef\@permission{topsecret10}}
\DeclareOption{TopSecret*}{\gdef\@permission{topsecret*}}
\DeclareOption{Oneside}{\gdef\@printtype{oneside}}
\DeclareOption{Twoside}{\gdef\@printtype{twoside}}
\DeclareOption{Win}{\gdef\@ostype{win}}
\DeclareOption{Linux}{\gdef\@ostype{linux}}
\DeclareOption{Max}{\gdef\@ostype{mac}}
%% 选项传递给ctexbook
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}}
%% 默认选项配置
\ExecuteOptions{master,public,oneside,win,a4paper,sub4section}
\ProcessOptions\relax
%% 引用ctexbook: 小4,1.5倍行距
\LoadClass[UTF8,zihao=-4,linespread=1.7]{ctexbook}%1.5+0.2行间距
\setcounter{secnumdepth}{5}
%% BUAAThesis字样及版本信息
\usepackage{graphicx}
\def\BUAAThesisVer{v3.1 01-24-2022}
\def\BUAAThesis{%
B%
{\fontsize{0.8em}{\baselineskip}\selectfont
\kern-.12em\lower.5ex\hbox{U}%
\kern-.46em\raise.47ex\hbox{A}%
\kern-.12em A%
}
\kern-.35emT%
\kern-.22em\lower.5ex\hbox{H}%
\kern-.08em E%
\kern-.05em\lower.5ex\hbox{S}%
\kern-.26em I%
\kern-.26em\raise.5ex\hbox{\rotatebox[origin=c]{180}{S}}%
}
%% 预声明
\RequirePackage{ifthen} % ifthenelse/equal/isundefined等判断比较命令
\RequirePackage{etoolbox} % \AtBeginDocument等宏命令
\RequirePackage{titletoc} % 目录
\RequirePackage{remreset} % 计数器设置
\RequirePackage{geometry} % 设置页边距
\RequirePackage{fancyhdr} % 设置页眉页脚
\RequirePackage{setspace} % 设置行间距
\RequirePackage{float} % 图片
\RequirePackage{graphicx} % 图片
\RequirePackage{subfigure} % 图片
\RequirePackage{epstopdf} % 图片
\RequirePackage{array} % 列举
\RequirePackage{enumitem} % 列举
\RequirePackage{booktabs} % 表格上下粗线
\RequirePackage{longtable} % 长表格
\RequirePackage{multirow} % 多行表格
\RequirePackage{caption} % 标题设置
\RequirePackage{listings} % 代码环境
\RequirePackage{algorithm2e} % 算法环境
\RequirePackage{amsmath} % 数学
\RequirePackage{amsthm} % 定理
\RequirePackage[hypertexnames=false]{hyperref} % 超链接
\RequirePackage{pifont} % 画五角星
\RequirePackage{color} % To provide color for soul
\RequirePackage{soul} % To highlight text
\RequirePackage[sort&compress]{natbib} % BibTex
\DeclareGraphicsExtensions{.eps,.ps,.png,.jpg,.bmp} % 声明使用图像格式
\newcommand{\highlight}[1]{\colorbox{yellow}{#1}} % 高亮注释
% 根据不同系统调整
\ifthenelse{\equal{\@ostype}{win}}{ % win 配置
\RequirePackage{times} % Times New Roman字体
}{}
\ifthenelse{\equal{\@ostype}{linux}}{ % linux 配置
\RequirePackage{newtxtext} % Times New Roman字体
\RequirePackage{newtxmath} % 公式的Times New Roman字体 (!After package amsthm!)
}{}
\ifthenelse{\equal{\@ostype}{mac}}{ % mac 配置
\RequirePackage{times} % Times New Roman字体
\RequirePackage{fontspec} % 字体设置 (!Only for XeLaTeX!)
}{}
% 根据不同编译系统选择正确的 Times New Roman字体
\usepackage{iftex}
\ifPDFTeX
\else
\setmainfont{Times New Roman}
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 数学环境
% 数学符号:
\newcommand\eu{\mathrm{e}}
\newcommand\iu{\mathrm{i}}
\newcommand*{\diff}{\mathop{}\!\mathrm{d}}
\DeclareMathOperator*{\argmax}{arg\,max}
\DeclareMathOperator*{\argmin}{arg\,min}
% 数学定理:
% 以下定义数学定理环境默认风格为 buaa
\newtheoremstyle{buaa}%
{0pt}% measure of space to leave above the theorem.
{0pt}% measure of space to leave below the theorem.
{}% name of font to use in the body of the theorem.
{2\ccwd}% measure of space to indent.
{\bfseries}% name of head font.
{.}% punctuation between head and body.
{\ccwd}% space after theorem head; " " = normal interword space
{}% manually specify head (can be left empty, meaning `normal').
\theoremstyle{buaa}
% 定义新的定理
\newcommand{\theoremname}{定理}
\newcommand{\assertionname}{断言}
\newcommand{\axiomname}{公理}
\newcommand{\corollaryname}{推论}
\newcommand{\lemmaname}{引理}
\newcommand{\propositionname}{命题}
\newcommand{\definitionname}{定义}
\newcommand{\examplename}{例}
\newcommand{\remarkname}{注}
\renewcommand{\proofname}{证明}
\renewcommand{\lstlistingname}{代码}
\renewcommand{\algorithmcfname}{算法}
\newtheorem{theorem} {\theoremname} [chapter]
\newtheorem{assertion} [theorem] {\assertionname}
\newtheorem{axiom} [theorem] {\axiomname}
\newtheorem{corollary} [theorem] {\corollaryname}
\newtheorem{lemma} [theorem] {\lemmaname}
\newtheorem{proposition}[theorem] {\propositionname}
\newtheorem{definition} {\definitionname} [chapter]
\newtheorem{example} {\examplename} [chapter]
\newtheorem*{remark} {\remarkname}
% From MDPI.cls
%\renewcommand{\qed}{\unskip\nobreak\quad\qedsymbol} %% This places the symbol right after the text instead of placing it at the end on the line.
\renewenvironment{proof}[1][\proofname]{\par %% \proofname allows to have "Proof of my theorem"
\pushQED{\qed}%
\normalfont \topsep6\p@\@plus6\p@\relax
\trivlist
\item[\hskip\labelsep
\bfseries %% "Proof" is bold
#1\@addpunct{.}]\ignorespaces %% Period instead of colon
}{%
\popQED\endtrivlist\@endpefalse
}
% 代码环境
\lstset{
basicstyle=\small\ttfamily,
xleftmargin=2pc,
xrightmargin=2pc,
frame=single,
columns=flexible,
numbers=left,
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 输入
\def\@refcolor{} % 给注释及引用使用颜色 on/off
\newcommand{\refcolor}[1]{\gdef\@refcolor{#1}}
\def\@emptypagewords{} % 空白页留字
\newcommand{\emptypagewords}[1]{\gdef\@emptypagewords{#1}}
\def\@beginright{} % 摘要、目录、第一章右侧页起 on/off
\newcommand{\beginright}[1]{\gdef\@beginright{#1}}
\newcommand{\Title}[2]{\gdef\@titlecn{#1} \gdef\@titleen{#2}}
\newcommand{\Subtitle}[2]{\gdef\@subtitlecn{#1} \gdef\@subtitleen{#2}}
\newcommand{\Department}[1]{\gdef\@department{#1}}
\def\@branch{工学} % 学科大类
\newcommand{\Branch}[1]{\gdef\@branch{#1}}
\newcommand{\Major}[1]{\gdef\@major{#1}}
\newcommand{\Feild}[1]{\gdef\@feild{#1}}
\newcommand{\Tutor}[3]{\gdef\@tutorcn{#1} \gdef\@tutoren{#2} \gdef\@tutordegree{#3}}
\newcommand{\Cotutor}[3]{%
\gdef\@cotutorcn{#1}
\gdef\@cotutoren{#2}
\gdef\@cotutordegree{#3}}
\newcommand{\Author}[2]{\gdef\@authorcn{#1} \gdef\@authoren{#2}}
\newcommand{\StudentID}[1]{\gdef\@studentid{#1}}
\newcommand{\CLC}[1]{\gdef\@clc{#1}}
\newcommand{\DateEnroll}[3]{%
\gdef\@dateenrollm{#1}
\gdef\@dateenrolld{#2}
\gdef\@dateenrolly{#3}}
\newcommand{\DateGraduate}[3]{%
\gdef\@dategraduatem{#1}
\gdef\@dategraduated{#2}
\gdef\@dategraduatey{#3}}
\newcommand{\DateSubmit}[3]{%
\gdef\@datesubmitm{#1}
\gdef\@datesubmitd{#2}
\gdef\@datesubmity{#3}}
\newcommand{\DateDefence}[3]{%
\gdef\@datedefencem{#1}
\gdef\@datedefenced{#2}
\gdef\@datedefencey{#3}}
\newcommand{\Abstract}[2]{\gdef\@abstrctcn{#1} \gdef\@abstrcten{#2}}
\newcommand{\Keyword}[2]{\gdef\@keywordcn{#1} \gdef\@keyworden{#2}}
\newcommand{\Listfigtab}[1]{\gdef\@listfigtab{#1}} % on/off
\newcommand{\Abbreviations}[1]{\gdef\@abbreviations{#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 页面设置
% 设置页面大小
% A4纸页边距均25mm
% 打印留边平移5mm
\geometry{papersize={210mm,297mm}}
\ifthenelse{\equal{\@printtype}{twoside}}{% 双面面
\geometry{top=25mm,bottom=25mm,inner=30mm,outer=20mm}
}{%
\ifthenelse{\equal{\@printtype}{oneside}}{% 单面
\geometry{top=25mm,bottom=25mm,left=25mm,right=25mm}
\geometry{layouthoffset=5mm}}{}
}
% 设置空白页眉页脚
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
% 设置目录格式
\titlecontents{chapter}[0pt]{\settowidth{\hangindent}{\thecontentslabel}\heiti\zihao{-4}}
{\thecontentslabel}{}
{\hspace{.25em}\titlerule*[4pt]{$\cdot$}\contentspage}
\titlecontents{section}[2em]{\settowidth{\hangindent}{\thecontentslabel\ \ }\songti\zihao{-4}}
{\thecontentslabel\ \ }{}
{\hspace{.25em}\titlerule*[4pt]{$\cdot$}\contentspage}
\titlecontents{subsection}[3em]{\settowidth{\hangindent}{\thecontentslabel\ \ }\songti\zihao{-4}}
{\thecontentslabel\ \ }{}
{\hspace{.25em}\titlerule*[4pt]{$\cdot$}\contentspage}
\titlecontents{figure}[0pt]{\settowidth{\hangindent}{图~\thecontentslabel\ \ }\songti\zihao{-4}}
{图~\thecontentslabel\ \ }{}
{\hspace{.25em}\titlerule*[4pt]{$\cdot$}\contentspage}
\titlecontents{table}[0pt]{\settowidth{\hangindent}{表~\thecontentslabel\ \ }\songti\zihao{-4}}
{表~\thecontentslabel\ \ }{}
{\hspace{.25em}\titlerule*[4pt]{$\cdot$}\contentspage}
% 图表环境设置
\let\org@table\table
\let\org@endtable\endtable
\renewenvironment{table}[1][h!]
{\begin{spacing}{1.2} \org@table[#1] \songti\zihao{5}}
{\org@endtable \end{spacing}}
\let\org@longtable\longtable
\let\org@endlongtable\endlongtable
\renewenvironment{longtable}[1][h!]
{\begin{spacing}{1.2} \songti\zihao{5}\org@longtable[#1]}
{\org@endlongtable \end{spacing}}
\@removefromreset{table}{chapter}
\@removefromreset{figure}{chapter}
\renewcommand{\thefigure}{\arabic{figure}}
\renewcommand{\thetable}{\arabic{table}}
\renewcommand{\p@subfigure}{\thefigure}
\DeclareCaptionFormat{tabfigformat}{\bf\songti\zihao{5}{#1~~#3}}
\captionsetup[figure]{
position=bottom, margin=0mm, format=tabfigformat,
aboveskip=6pt, belowskip=-15pt, justification=centerlast}
\captionsetup[table]{
position=top, margin=0mm, format=tabfigformat,
aboveskip=0pt, belowskip=0pt, justification=centerlast}
%出现在页面中间的浮动对象与上下方文本之间的垂直距离
%缺省为 12pt plus 2pt minus 2pt。
%\setlength{\intextsep}{12pt \@plus2pt \@minus 2pt}
%出现在页面的顶部或底部的浮动对象之间的垂直距离
%缺省为 12pt plus 2pt minus 2pt
%\setlength{\floatsep}{12pt \@plus2pt \@minus2pt}
%出现在页面的顶部或底部的浮动对象与文本之间的垂直距离
% 缺省为 20pt plus 2pt minus 4pt。
%\setlength{\textfloatsep}{20bp \@plus2pt \@minus4pt}
% 设置行间距
\setlength{\parskip}{0pt}
% 列表间接设置
\setlist{
topsep=0pt, % 列表环境与上文距离
itemsep=0pt, % 条目间距离
parsep=\parskip, % 条目内段落距离
partopsep=0pt % 列表环境与下文距离
}
% 设置参考文献格式
\usepackage{notoccite}
\newcommand\bibstyle@super{\bibpunct{[}{]}{,}{s}{,}{\textsuperscript{,}}}
\newcommand\bibstyle@numbers{\bibpunct{[}{]}{,}{n}{,}{,}}
\newcommand\bibstyle@authoryear{\bibpunct{(}{)}{;}{a}{,}{,}}
\bibpunct{[}{]}{,}{n}{}{}
\setlength{\bibsep}{0pt}
\newcommand{\upcite}[1]{\textsuperscript{\cite{#1}}}
% 设置PDF
\hypersetup{%
colorlinks=true,
bookmarksnumbered=true,
bookmarksopen=true,
pdffitwindow=true,
pdfsubject={BUAA thesis},
pdfcreator={LaTeXed~By~WeiQM}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 工具函数
\newcommand{\checkinput}{%检测输入元素
\ifthenelse{\isundefined{\@titlecn}}{\errmessage{%
Please set title by 'Title'.}}{}
\ifthenelse{\isundefined{\@department}}{\errmessage{%
Please set department by 'Department'.}}{}
\ifthenelse{\isundefined{\@major}}{\errmessage{%
Please set major by 'Major'.}}{}
\ifthenelse{\isundefined{\@feild}}{\errmessage{%
Please set feild by 'Feild'.}}{}
\ifthenelse{\isundefined{\@tutorcn}}{\errmessage{%
Please set tutor name by 'Tutor'.}}{}
\ifthenelse{\isundefined{\@authorcn}}{\errmessage{%
Please set author name by 'Author'.}}{}
\ifthenelse{\isundefined{\@studentid}}{\errmessage{%
Please set student ID date by 'StudentID'.}}{}
\ifthenelse{\isundefined{\@dateenrolly}}{\errmessage{%
Please set enroll date by 'DateEnroll'.}}{}
\ifthenelse{\isundefined{\@dategraduatey}}{\errmessage{%
Please set graduate date by 'DateGraduate'.}}{}
\ifthenelse{\isundefined{\@datesubmity}}{\errmessage{%
Please set submite date by 'DateSubmit'.}}{}
\ifthenelse{\isundefined{\@datedefencey}}{\errmessage{%
Please set defence date by 'DateDefence'.}}{}
\ifthenelse{\equal{\@refcolor}{\empty}}{}{%
\ifthenelse{\equal{\@refcolor}{on} \OR \equal{\@refcolor}{off}}{}{
\errmessage{Please use 'on' of 'off' for refcolor.}}
}
\ifthenelse{\equal{\@beginright}{\empty}}{}{%
\ifthenelse{\equal{\@beginright}{on} \OR \equal{\@beginright}{off}}{}{
\errmessage{Please use 'on' of 'off' for beginright.}}
}
\ifthenelse{\isundefined{\@listfigtab}}{}{%
\ifthenelse{\equal{\@listfigtab}{on} \OR \equal{\@listfigtab}{off}}{}{
\errmessage{Please use 'on' of 'off' for listfigtab.}}
}
}
\newcommand{\clearautopage}{%右侧起新页
\clearpage
\ifthenelse{\equal{\@printtype}{twoside}}{% 双面
\ifodd\c@page
\else
\hbox{}
\vspace*{\fill}
\begin{center}
{\textcolor[rgb]{0.75,0.75,0.75}{\@emptypagewords}}
\end{center}
\vspace{\fill}
\thispagestyle{empty}
\newpage
\if@twocolumn \hbox{} \newpage \fi
\fi
}{}
}
\newcommand{\sethyper}{%设置链接引用颜色
\hypersetup{%
pdftitle={\@titlecn},
pdfkeywords={\@keywordcn},
pdfauthor={\@authorcn}
}
\ifthenelse{\equal{\@refcolor}{on}}{%
\hypersetup{
allcolors=blue,
}
}{%
\hypersetup{
allcolors=black,
}
}
}
\newcommand{\TranSecretLevel}[1]{%密级翻译
\ifthenelse{\equal{\@permission}{public}}{\relax}{%
\ifthenelse{\equal{\@permission}{privacy}}{内~~部}{%
\ifthenelse{\equal{\@permission}{secret3}}{秘密~\ding{73}~{\bfseries 3}年}{%
\ifthenelse{\equal{\@permission}{secret5}}{秘密~\ding{73}~{\bfseries 5}年}{%
\ifthenelse{\equal{\@permission}{secret10}}{秘密~\ding{73}~{\bfseries 10}年}{%
\ifthenelse{\equal{\@permission}{secret*}}{秘密~\ding{73}~永久}{%
\ifthenelse{\equal{\@permission}{classified3}}{机密~\ding{73}~{\bfseries 3}年}{%
\ifthenelse{\equal{\@permission}{classified5}}{机密~\ding{73}~{\bfseries 5}年}{%
\ifthenelse{\equal{\@permission}{classified10}}{机密~\ding{73}~{\bfseries 10}年}{%
\ifthenelse{\equal{\@permission}{classified*}}{机密~\ding{73}~永久}{%
\ifthenelse{\equal{\@permission}{topsecret3}}{绝密~\ding{73}~{\bfseries 3}年}{%
\ifthenelse{\equal{\@permission}{topsecret5}}{绝密~\ding{73}~{\bfseries 5}年}{%
\ifthenelse{\equal{\@permission}{topsecret10}}{绝密~\ding{73}~{\bfseries 10}年}{%
\ifthenelse{\equal{\@permission}{topsecret*}}{绝密~\ding{73}~永久}{%
\ifthenelse{\equal{\@permission}{permission*}}{密级~\ding{73}~保密期限}{%
}}}}}}}}}}}}}}}
}
\newcommand{\TranDegree}[1]{%职称翻译
\frenchspacing
\ifthenelse{\equal{#1}{教授}}{Prof.}{%
\ifthenelse{\equal{#1}{副教授}}{Prof.}{%
\ifthenelse{\equal{#1}{讲师}}{Teacher}{%
\ifthenelse{\equal{#1}{高工}}{Engineer}{%
\ifthenelse{\equal{#1}{研究员}}{Researcher}{%
\ifthenelse{\equal{#1}{副研究员}}{Researcher}{%
}}}}}}
}
\newcommand{\TranDepartment}[1]{%院系翻译
\ifthenelse{\equal{#1}{材料科学与工程学院}}{School of Materials Science and Engineering}{%
\ifthenelse{\equal{#1}{电子信息工程学院}}{School of Electronic and Information Engineering}{%
\ifthenelse{\equal{#1}{自动化科学与电气工程学院}}{School of Automation Science and Electronic Engineering}{%
\ifthenelse{\equal{#1}{能源与动力工程学院}}{School of Energy and Power Engineering}{%
\ifthenelse{\equal{#1}{航空科学与工程学院}}{School of Aeronautic Science and Engineering}{%
\ifthenelse{\equal{#1}{计算机学院}}{School of Computer Science and Engineering}{%
\ifthenelse{\equal{#1}{机械工程及自动化学院}}{School of Mechanical Engineering and Automation}{%
\ifthenelse{\equal{#1}{经济管理学院}}{School of Economics and Management}{%
\ifthenelse{\equal{#1}{数学与系统科学学院}}{School of Mathematics and Systems Science}{%
\ifthenelse{\equal{#1}{生物与医学工程学院}}{School of Biological Science and Medical Engineering}{%
\ifthenelse{\equal{#1}{人文社会科学学院}}{School of Humanities and Social Sciences}{%
\ifthenelse{\equal{#1}{公共管理学院}}{School of Humanities and Social Sciences}{%
\ifthenelse{\equal{#1}{人文社会科学学院(公共管理学院)}}{School of Humanities and Social Sciences}{%
\ifthenelse{\equal{#1}{人文社会科学学院(公共管理学院)}}{School of Humanities and Social Sciences}{%
\ifthenelse{\equal{#1}{外国语学院}}{School of Foreign Languages}{%
\ifthenelse{\equal{#1}{交通科学与工程学院}}{School of Transportation Science and Engineering}{%
\ifthenelse{\equal{#1}{可靠性与系统工程学院}}{School of Reliability and Systems Engineering}{%
\ifthenelse{\equal{#1}{宇航学院}}{School of Astronautics}{%
\ifthenelse{\equal{#1}{飞行学院}}{Flight College}{%
\ifthenelse{\equal{#1}{仪器科学与光电工程学院}}{School of Instrumentation Science and Opto-electronics Engineering}{%
\ifthenelse{\equal{#1}{北京学院}}{School of Beijing}{%
\ifthenelse{\equal{#1}{物理科学与核能工程学院}}{School of Physics and Nuclear Energy Engineering}{%
\ifthenelse{\equal{#1}{法学院}}{School of Law}{%
\ifthenelse{\equal{#1}{软件学院}}{School of Software}{%
\ifthenelse{\equal{#1}{继续教育学院}}{College of Continuing Education}{%
\ifthenelse{\equal{#1}{高等理工学院}}{School of Advance Engineering}{%
\ifthenelse{\equal{#1}{中法工程师学院}}{Sino-French Engineer School}{%
\ifthenelse{\equal{#1}{国际学院}}{Beihang School}{%
\ifthenelse{\equal{#1}{新媒体艺术与设计学院}}{School of New Media Art and Design}{%
\ifthenelse{\equal{#1}{化学学院}}{School of Chemistry}{%
\ifthenelse{\equal{#1}{马克思主义学院}}{School of Marxism}{%
\ifthenelse{\equal{#1}{无人系统研究院}}{Unmanned System Institute}{%
\ifthenelse{\equal{#1}{人文与社会科学高等研究院}}{Institue for Advanced Studies in Humanities and Social Science}{%
\ifthenelse{\equal{#1}{空间与环境学院}}{School of Space and Environment}{%
\ifthenelse{\equal{#1}{国际通用工程学院}}{School of General Engineering}{%
\ifthenelse{\equal{#1}{国际交叉科学研究院}}{International Research Institue for Multidisciplinary Science}{%
\ifthenelse{\equal{#1}{医工交叉创新研究院}}{Interdisciplinary Innovation Institute for Medicine and Engineering}{%
\ifthenelse{\equal{#1}{北斗丝路学院}}{School of BeiDou and the Silk Road}{%
\ifthenelse{\equal{#1}{网络空间安全学院}}{School of Cyber Science and Technology}{%
\ifthenelse{\equal{#1}{人工智能研究院}}{Institue of Artificial Intelligence}{%
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% CTeX调整
% 半角/缩进/行伸缩设置
\ctexset{%
punct=quanjiao, % 全角
autoindent=2, % 缩进
linestretch=2, % 行伸缩
}
% 部分标题修改
\ctexset{%
contentsname={目~~~~录},
listfigurename={图~清~单},
listtablename={表~清~单},
}
% 标题样式修改
\ctexset{%
chapter={%章标题 : 三号黑体居中 单倍行距 段前/段后0.5行 另起新页
format=\zihao{3} \heiti \centering \thispagestyle{fancy},
fixskip=true,
beforeskip=19.27pt,
afterskip=22.48pt,
break=\clearautopage,
},
section={%节标题 : 四号黑体居左 单倍行距 段前/段后0.5行
format=\zihao{4} \heiti \raggedright,
beforeskip=8.43pt,
afterskip=11.24pt,
},
subsection={%条标题 : 小四号黑体居左 单倍行距 段前/段后0.5行
format=\zihao{-4} \heiti \raggedright,
beforeskip=3.61pt,
afterskip=3.61pt,
},
subsubsection={% 附加4级标题 : 小四号宋体加粗居左
format=\zihao{-4} \songti \raggedright,
},
paragraph={% 附加5级标题 : 小四号宋体居左
format=\zihao{-4} \songti \raggedright,
},
subparagraph={% 附加6级标题 : 小四号宋体居左
format=\zihao{-4} \songti \raggedright,
}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% AfterPreamble = AtBeginDocument
% AtEndPreamble -> AtBeginDocument -> AfterEndPreamble -> AtEndDocument -> AfterEndDocument
\AtBeginDocument{%
\checkinput
\sethyper
}
\AfterEndPreamble{%
\makecovercn
\makecoveren
\makecoverinner
\makestatementbuaa
\fancyfoot[C]{\zihao{5} \uppercase\expandafter{\romannumeral \thepage}}
\setcounter{page}{1}
\abstructkeyword
\makecontextlist
\denotation
\renewcommand{\headrulewidth}{0.4pt}
\fancyfoot[C]{\zihao{5} \thepage}
\fancyhead[CE]{\zihao{-5} \leftmark}
\ifthenelse{\equal{\@thesis}{master} \OR \equal{\@thesis}{professional}}{%
\fancyhead[CO]{\zihao{-5} 北京航空航天大学硕士学位论文}}{}
\ifthenelse{\equal{\@thesis}{doctor} \OR \equal{\@thesis}{prodoctor}}{%
\fancyhead[CO]{\zihao{-5} 北京航空航天大学博士学位论文}}{}
\setcounter{page}{1}
}
%% 制作封面及声明
\newcommand{\makecovercn}{% 中文封面
{\pdfbookmark[0]{中文封面}{makecovercn}
{\zihao{5} \heiti \noindent
\makebox[5\ccwd][s]{中图分类号}:{\bfseries \@clc}%
\\
\makebox[5\ccwd][s]{论文编号}:{\bfseries 10006\@studentid}%
\\
\TranSecretLevel{\@permission}
}
\vspace{60pt}
\begin{figure}[h]
\centering
\includegraphics{pic/logo-buaa}
\end{figure}
\vspace{-10pt}
\begin{figure}[h]
\centering
\ifthenelse{\equal{\@thesis}{master}}{\includegraphics[width=0.9\linewidth]{pic/head-master}}{%
\ifthenelse{\equal{\@thesis}{professional}}{\includegraphics[width=0.9\linewidth]{pic/head-professional}}{%
\ifthenelse{\equal{\@thesis}{doctor}}{\includegraphics[width=0.9\linewidth]{pic/head-doctor}}{%
\ifthenelse{\equal{\@thesis}{prodoctor}}{\includegraphics[width=0.9\linewidth]{pic/head-prodoctor}}{%
}}}}
\end{figure}
\centering
\vspace{20pt}
\begin{spacing}{1.2}
\ifthenelse{\isundefined{\@subtitlecn}}{\vspace{20pt}}{}
\zihao{-0} \songti \bfseries \@titlecn
\ifthenelse{\isundefined{\@subtitlecn}}{\vspace{20pt}}{%
\\ \vspace{10pt}
\zihao{1} \@subtitlecn
}
\end{spacing}
\vspace{100pt}
\begin{spacing}{1.8}
\ziju{0.2} \zihao{-3} \heiti
\begin{tabular}{cll}
作者姓名 & \@authorcn \\
学科专业 & \multicolumn{2}{l}{\@major} \\
指导教师 & \@tutorcn & \@tutordegree \\
\ifthenelse{\isundefined{\@cotutorcn}}{}{%
& \@cotutorcn & \@cotutordegree\\
}
培养院系 & \multicolumn{2}{l}{\@department}
\end{tabular}
\end{spacing}
\clearautopage
}}
\newcommand{\makecoveren}{% 英文封面
{\pdfbookmark[0]{英文封面}{makecoveren}
\centering
\ \vspace{100pt}
\begin{spacing}{1.2}
{\begin{spacing}{1.2}
\zihao{-2} \bfseries
\ifthenelse{\isundefined{\@subtitleen}}{\vspace{20pt}}{}
\@titleen
\ifthenelse{\isundefined{\@subtitleen}}{\vspace{20pt}}{%
\\ \vspace{10pt}
\zihao{3} \@subtitleen}
\end{spacing}
}
\vspace{50pt}
{\zihao{4}
A Dissertation Submitted for the Degree of
\ifthenelse{\equal{\@thesis}{master}}{Master}{%
\ifthenelse{\equal{\@thesis}{professional}}{Master}{%
\ifthenelse{\equal{\@thesis}{doctor}}{Doctor of Philosophy}{%
\ifthenelse{\equal{\@thesis}{prodoctor}}{Doctor of Engineering}{%
}}}}
}
\vspace{100pt}
{\zihao{-3} \bfseries
\begin{tabular}{ll}
\ifthenelse{\isundefined{\@cotutorcn}}{%
\makebox[70pt][s]{Candidate}: & \@authoren \\
\vspace{-10pt}\\
\makebox[70pt][s]{Supervisor}: & \TranDegree{\@tutordegree} \hspace{-8pt} \@tutoren \\
}{%
\makebox[77pt][s]{Candidate}: & \@authoren \\
\vspace{-10pt}\\
\makebox[77pt][s]{Supervisors}: & \TranDegree{\@tutordegree} \hspace{-8pt} \@tutoren \\
& \TranDegree{\@cotutordegree} \hspace{-8pt} \@cotutoren\\
}
\end{tabular}
}
\end{spacing}
\vspace{150pt}
\begin{spacing}{2.2}
{\zihao{-3}
\TranDepartment{\@department} \\
Beihang University, Beijing, China
}
\end{spacing}
\clearautopage
}}
\newcommand{\makecoverinner}{% 封面内页
{\pdfbookmark[0]{题目页}{makecoverinner}
{\zihao{5} \heiti \noindent
\makebox[5\ccwd][s]{中图分类号}:{\bfseries \@clc}
\\
\makebox[5\ccwd][s]{论文编号}:{\bfseries 10006\@studentid}
}
\centering
\vspace{150pt}
\begin{spacing}{1.2}
{\zihao{-2} \heiti
\ifthenelse{\equal{\@thesis}{master}}{%
\makebox[11\ccwd][s]{硕士学位论文}}{
\ifthenelse{\equal{\@thesis}{professional}}{%
\makebox[11\ccwd][s]{硕士学位论文}}{
\ifthenelse{\equal{\@thesis}{doctor}}{%
\makebox[11\ccwd][s]{博士学位论文}}{
\ifthenelse{\equal{\@thesis}{prodoctor}}{%
\makebox[11\ccwd][s]{博士学位论文}}{}
}}}
}
\vspace{50pt}
{\begin{spacing}{1.2}
\zihao{-1} \heiti
\ifthenelse{\isundefined{\@subtitlecn}}{\vspace{20pt}}{}
\@titlecn
\ifthenelse{\isundefined{\@subtitlecn}}{\vspace{20pt}}{%
\\ \vspace{10pt}
\zihao{2} \@subtitlecn}
\end{spacing}
}
\end{spacing}
\vspace{120pt}
\begin{spacing}{2.3}
\zihao{-4} \songti
\begin{tabular}{lrrrlrrr}
作者姓名 & \multicolumn{3}{l}{\@authorcn} & 申请学位级别 & \multicolumn{3}{l}{
\@branch
\ifthenelse{\equal{\@thesis}{master} \OR \equal{\@thesis}{professional}}{硕士}{
\ifthenelse{\equal{\@thesis}{doctor} \OR \equal{\@thesis}{prodoctor}}{博士}{}}
} \\
指导教师姓名 & \multicolumn{3}{l}{\@tutorcn} & 职\hspace{2\ccwd}称 & \multicolumn{3}{l}{\@tutordegree} \\
学科专业 & \multicolumn{3}{l}{\@major} & 研究方向 & \multicolumn{3}{l}{\@feild} \\
学习时间自 & \@dateenrolly\ 年 & \@dateenrollm\ 月 & \@dateenrolld\ 日 & \hspace{2\ccwd}起至 & \@dategraduatey\ 年 & \@dategraduatem\ 月 & \@dategraduated\ 日止 \\
论文提交日期 & \@datesubmity\ 年 & \@datesubmitm\ 月 & \@datesubmitd\ 日 & 论文答辩日期 & \@datedefencey \ 年 & \@datedefencem \ 月 & \@datedefenced \ 日\hspace{\ccwd} \\
学位授予单位 & \multicolumn{3}{l}{北京航空航天大学} & 学位授予日期 & 年 & 月 & 日\hspace{\ccwd} \\
\end{tabular}
\end{spacing}
\clearautopage
}}
\newcommand{\makestatementbuaa}{% 北航声明
{\pdfbookmark[0]{北航声明}{makestatementbuaa}
\begin{spacing}{1.7}%1.5+0.2
{\zihao{3} \heiti \centerline{关于学位论文的独创性声明}}
{\zihao{-4} \songti ~\par
本人郑重声明:所呈交的论文是本人在指导教师指导下独立进行研究工作所取得的
成果,论文中有关资料和数据是实事求是的。尽我所知,除文中已经加以标注和致谢外,
本论文不包含其他人已经发表或撰写的研究成果,也不包含本人或他人为获得北京航空
航天大学或其它教育机构的学位或学历证书而使用过的材料。与我一同工作的同志对研
究所做的任何贡献均已在论文中作出了明确的说明。
若有不实之处,本人愿意承担相关法律责任。 \\
{\zihao{5}\ \ 学位论文作者签名:\underline{\hspace{7\ccwd}} \hspace{4\ccwd}
日期:\hspace{3\ccwd}年\hspace{2\ccwd}月\hspace{2\ccwd}日}
}
\vspace{50pt}
{\zihao{3} \heiti \centerline{学位论文使用授权}}
{\zihao{-4} \songti ~\par
本人完全同意北京航空航天大学有权使用本学位论文(包括但不限于其印刷版和电
子版),使用方式包括但不限于:保留学位论文,按规定向国家有关部门(机构)送交学
位论文,以学术交流为目的赠送和交换学位论文,允许学位论文被查阅、借阅和复印,
将学位论文的全部或部分内容编入有关数据库进行检索,采用影印、缩印或其他复制手
段保存学位论文。
保密学位论文在解密后的使用授权同上。 \\
{\zihao{5}\ \ 学位论文作者签名:\underline{\hspace{7\ccwd}} \hspace{4\ccwd}
日期:\hspace{3\ccwd}年\hspace{2\ccwd}月\hspace{2\ccwd}日}
{\zihao{5}\ \ 指导教师签名:\underline{\hspace{9\ccwd}} \hspace{4\ccwd}
日期:\hspace{3\ccwd}年\hspace{2\ccwd}月\hspace{2\ccwd}日}
}
\end{spacing}
\clearautopage
}}
\newcommand{\abstructkeyword}{% 摘要
{\pdfbookmark[0]{中英摘要}{abstructkeyword}
\begin{spacing}{1.7}%1.5+0.2
{\zihao{3} \heiti \centerline{摘~~~~要}}
{\zihao{-4} \songti ~\par
\@abstrctcn \par ~\par
{\heiti 关键字:} \@keywordcn
}
\clearpage
%\ifthenelse{\equal{\@beginright}{off}}{\clearpage}{\clearautopage}
{\zihao{3} \bfseries \centerline{Abstract}}
{\zihao{-4} ~\par
\@abstrcten \par ~\par
{\bfseries Key words:} \@keyworden
}
\end{spacing}
\ifthenelse{\equal{\@beginright}{off}}{\clearpage}{\clearautopage}
}}
\newcommand{\makecontextlist}{% 目录
{\pdfbookmark[0]{目录}{makecontextlist}
\tableofcontents
\renewcommand\addvspace[1]{}
\ifthenelse{\isundefined{\@listfigtab}}{}{%
\ifthenelse{\equal{\@listfigtab}{on}}{%
\renewcommand{\addvspace}[1]{}
\clearpage
\pdfbookmark[0]{图目录}{listoffigures}
\listoffigures
\clearpage
\pdfbookmark[0]{表目录}{listoftables}
\listoftables
}{}
}
\ifthenelse{\equal{\@beginright}{off}}{\clearpage}{\clearautopage}
}}
\newcommand{\denotation}{% 缩写定义
{\ifthenelse{\isundefined{\@abbreviations}}{}{%
\pdfbookmark[0]{主要符号表}{denotation}
\chapter*{主要符号表}
%\centering
%\begin{tabular}{cl}
\@abbreviations
%\end{tabular}%
\ifthenelse{\equal{\@beginright}{off}}{\clearpage}{\clearautopage}
}
}}
\newcommand{\chaptera}[1]{%无章号但编入目录
\ctexset{chapter/numbering=false}
\chapter{#1}
\setcounter{section}{0}%
\setcounter{subsection}{0}%
\setcounter{subsubsection}{0}%
%
\gdef\thesection{\@Alph\c@section}%
\gdef\thesubsection{\@Alph\c@section.\@arabic\c@subsection}%
%
\renewcommand{\thefigure}{A\arabic{figure}}
\setcounter{figure}{0}
\renewcommand{\thetable}{A\arabic{table}}
\setcounter{table}{0}
\renewcommand{\theequation}{A\arabic{equation}}
\setcounter{equation}{0}
}
\newcommand{\summary}{%结论
\ctexset{chapter/numbering=false}
\chapter{结~~~~论}
\setcounter{section}{0}%
\setcounter{subsection}{0}%
\setcounter{subsubsection}{0}%
%
\gdef\thesection{\@Alph\c@section}%
\gdef\thesubsection{\@Alph\c@section.\@arabic\c@subsection}%
%
\renewcommand{\thefigure}{A\arabic{figure}}
\setcounter{figure}{0}
\renewcommand{\thetable}{A\arabic{table}}
\setcounter{table}{0}
\renewcommand{\theequation}{A\arabic{equation}}
\setcounter{equation}{0}
}
\newcommand{\Bib}[2]{%参考文献
\bibliographystyle{#1}
\clearpage
\phantomsection
\addcontentsline{toc}{chapter}{参考文献}
\bibliography{#2}
}
\renewcommand{\appendix}{% 附录
\ctexset{chapter/numbering=false}
\chapter{附~~~~录}
\setcounter{section}{0}%
\setcounter{subsection}{0}%
\setcounter{subsubsection}{0}%
%
\gdef\thesection{\@Alph\c@section}%
\gdef\thesubsection{\@Alph\c@section.\@arabic\c@subsection}%
%
\renewcommand{\thefigure}{\thesection\arabic{figure}}
\numberwithin{figure}{section}
\renewcommand{\thetable}{\thesection\arabic{table}}
\numberwithin{table}{section}
\renewcommand{\theequation}{\thesection\arabic{equation}}
\numberwithin{equation}{section}
}
\newcommand{\achievement}{%学术成果
\ctexset{chapter/numbering=false}
\ifthenelse{\equal{\@thesis}{master}}{\chapter{攻读硕士学位期间取得的学术成果}}{
\ifthenelse{\equal{\@thesis}{professional}}{\chapter{攻读硕士学位期间取得的学术成果}}{
\ifthenelse{\equal{\@thesis}{doctor}}{\chapter{攻读博士学位期间取得的研究成果}}{
\ifthenelse{\equal{\@thesis}{prodoctor}}{\chapter{攻读博士学位期间取得的研究成果}}{
}}}}
\setcounter{section}{0}%
\setcounter{subsection}{0}%
\setcounter{subsubsection}{0}%
%
\gdef\thesection{\zhnum{section}}%
\gdef\thesubsection{\@arabic\c@section.\@arabic\c@subsection}%
%
\renewcommand{\thefigure}{A\arabic{figure}}
\setcounter{figure}{0}
\renewcommand{\thetable}{A\arabic{table}}
\setcounter{table}{0}
\renewcommand{\theequation}{A\arabic{equation}}
\setcounter{equation}{0}
}
\newcommand{\acknowledgments}{%致谢
\ctexset{chapter/numbering=false}
\chapter{致~~~~谢}
\setcounter{section}{0}%
\setcounter{subsection}{0}%
\setcounter{subsubsection}{0}%
%
\gdef\thesection{\@Alph\c@section}%
\gdef\thesubsection{\@Alph\c@section.\@arabic\c@subsection}%
%
\renewcommand{\thefigure}{A\arabic{figure}}
\setcounter{figure}{0}
\renewcommand{\thetable}{A\arabic{table}}
\setcounter{table}{0}
\renewcommand{\theequation}{A\arabic{equation}}
\setcounter{equation}{0}
}
\newcommand{\biography}{%作者简介
\ctexset{chapter/numbering=false}
\chapter{作者简介}
\setcounter{section}{0}%