This repository has been archived by the owner on Mar 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
/
sustcthesis.cls
executable file
·828 lines (769 loc) · 30.5 KB
/
sustcthesis.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
%
% South University of Science and Technology Thesis Template
% For Bachelor, Master and Doctor
%
% Modified from the ustcthesis.
%
% Version
% Beta
% Created
% 2014.03.26 by ywg@USTC
% Last Modified
% 2019.04.27 by pengym@SUSTech
%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{sustcthesis}[2014/08/26 SUSTCthesis document class. Created: 2014.03.26 by ywg@USTC, Last Modified: 2014.08.29 by whzecomjm@SUSTC]
%Dew class options
\newif\ifustc@basic\ustc@basicfalse
\newif\ifustc@oldfontcfg\ustc@oldfontcfgfalse
\newif\ifustc@master\ustc@masterfalse
\newif\ifustc@doctor\ustc@doctorfalse
\newif\ifustc@bachelor\ustc@bachelorfalse
\newif\ifustc@adobefont\ustc@adobefontfalse
\newif\ifustc@euler\ustc@eulerfalse
\newif\ifustc@notchinese\ustc@notchinesefalse
%Define new commands
\def\ustc@define@term#1{
\expandafter\gdef\csname #1\endcsname##1{%
\expandafter\gdef\csname ustc@#1\endcsname{##1}}
\csname #1\endcsname{}}
\DeclareOption{basic}{\ustc@basictrue}
\DeclareOption{oldfontcfg}{\ustc@oldfontcfgtrue}
%Dissertation categories - use only one option at a time, never try to use more than one options.
\DeclareOption{master}{\ustc@mastertrue}
\DeclareOption{doctor}{\ustc@doctortrue}
\DeclareOption{bachelor}{\ustc@bachelortrue}
%For English and/or other language users
\DeclareOption{notchinese}{\ustc@notchinesetrue}
%Use Euler math font
\DeclareOption{euler}{\ustc@eulertrue}
%Enhance compatibility
\DeclareOption{adobefonts}{\ustc@adobefonttrue\PassOptionsToClass{adobefonts}{ctexbook}}
\DeclareOption{adobefont}{\ustc@adobefonttrue\PassOptionsToClass{adobefonts}{ctexbook}}
%Pass all unprocessed/unknown options to ctexbook. If a wrong option is specified, perhaps ctexbook will throw an error.
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}}
\ProcessOptions
%Minimum xeCJK version:3.2.10, date:2014/03/01
\PassOptionsToPackage{CJKchecksingle}{xeCJK}
%不再鼓励使用$$...$$的方式输入公式,可能会引起奇怪的问题
%如果一定要用$$...$$输入公式。请在更新到上述版本后加入PlainEquation选项。
\LoadClass[cs4size,a4paper,fancyhdr,fntef]{ctexbook}
%Check if extra pack should be used.
\ifustc@basic\relax\else\input{sustcxtra.cls}\relax\fi
% Alter some LaTeX defaults for better treatment of figures:
% See p.105 of "TeX Unbound" for suggested values.
% See pp. 199-200 of Lamport's "LaTeX" book for details.
% General parameters, for ALL pages:
\renewcommand{\topfraction}{0.9} % max fraction of floats at top
\renewcommand{\bottomfraction}{0.8} % max fraction of floats at bottom
% Parameters for TEXT pages (not float pages):
\setcounter{topnumber}{2}
\setcounter{bottomnumber}{2}
\setcounter{totalnumber}{4} % 2 may work better
\setcounter{dbltopnumber}{2} % for 2-column pages
\renewcommand{\dbltopfraction}{0.9} % fit big float above 2-col. text
\renewcommand{\textfraction}{0.07} % allow minimal text w. figs
% Parameters for FLOAT pages (not text pages):
\renewcommand{\floatpagefraction}{0.7} % require fuller float pages
% N.B.: floatpagefraction MUST be less than topfraction !!
\renewcommand{\dblfloatpagefraction}{0.7} % require fuller float pages
%remember to use [htp] or [htpb] for placement
%Check if user has specified one dissertation option.
\ifustc@master\relax\else
\ifustc@doctor\relax\else
\ifustc@bachelor\relax\else
\ClassError{USTCthesis}{You have to specify one of thesis options: bachelor, master or doctor.}{}
\fi
\fi
\fi
%Ensure only one dissertation option is specified.
\newcommand\ustc@error{\ClassError{USTCthesis}{You can ONLY specify ONE KEY option: bachelor, master or doctor!}{}}
\ifustc@doctor
\ifustc@master
\ustc@error
\else
\ifustc@bachelor
\ustc@error
\fi
\fi
\else
\ifustc@master
\ifustc@bachelor
\ustc@error
\fi
\fi
\fi
%load basic packages
\RequirePackage{amsmath,amsthm,amsfonts,amssymb,bm}
\RequirePackage{titletoc}
\RequirePackage{titlesec}
\RequirePackage[
left=3.17cm,
right=2.57cm,
top=2.50cm,
bottom=2.50cm,
headsep=0.25cm,
headheight=1.5cm,
footskip=0.79cm,
% showframe%uncomment this if you want to check the page setup.
]{geometry}
\RequirePackage{multicol}
\RequirePackage{multirow}
\RequirePackage{hyperref}
\pdfstringdefDisableCommands{\def\and{and }}
\hypersetup{
CJKbookmarks=true,%
bookmarksnumbered=true,%
bookmarksopen=true,
breaklinks=true,
colorlinks=true,%
linkcolor=red,%
citecolor=blue,%
plainpages=false,%
pdfstartview=FitH,}
\AtBeginDocument{\hypersetup{%
pdftitle={\ustc@entitle},%
pdfauthor={\ustc@author,\ustc@enauthor},%
pdfkeywords={},%Either put keywords here or not, as you wish.
pdfcreator={LaTeX using SUSTC LaTeX Thesis Template for Bachelor, created by whzecomjm}}}
\RequirePackage[numbers,sort&compress,square]{natbib}
\def\bibfont{\wuhao}
\setlength{\bibsep}{0pt plus1pt minus1pt}
\setlength{\bibhang}{2\ccwd}%Applied only to author-year style
\RequirePackage{caption}
%\RequirePackage[format=hang,labelsep=quad]{caption}
\DeclareCaptionFont{c5size}{\wuhao}
\captionsetup{labelfont={c5size,bf}}
\captionsetup{textfont=c5size}
%Chinese font size
\newcommand{\chuhao} {\fontsize{42pt} {\baselineskip}\selectfont}
\newcommand{\xiaochu} {\fontsize{36pt} {\baselineskip}\selectfont}
\newcommand{\xiaochuhao}{\fontsize{36pt} {\baselineskip}\selectfont}
\newcommand{\yihao} {\fontsize{28pt} {\baselineskip}\selectfont}
\newcommand{\erhao} {\fontsize{21pt} {\baselineskip}\selectfont}
\newcommand{\xiaoer} {\fontsize{18pt} {\baselineskip}\selectfont}
\newcommand{\xiaoerhao} {\fontsize{18pt} {\baselineskip}\selectfont}
\newcommand{\sanhao} {\fontsize{15.75pt}{\baselineskip}\selectfont}
\newcommand{\xiaosan} {\fontsize{15pt} {\baselineskip}\selectfont}
\newcommand{\xiaosanhao}{\fontsize{15pt} {\baselineskip}\selectfont}
\newcommand{\sihao} {\fontsize{14pt} {\baselineskip}\selectfont}
\newcommand{\xiaosi} {\fontsize{12pt} {\baselineskip}\selectfont}
\newcommand{\xiaosihao} {\fontsize{12pt} {\baselineskip}\selectfont}
\newcommand{\wuhao} {\fontsize{10.5pt} {\baselineskip}\selectfont}
\newcommand{\xiaowu} {\fontsize{9pt} {\baselineskip}\selectfont}
\newcommand{\xiaowuhao} {\fontsize{9pt} {\baselineskip}\selectfont}
\newcommand{\liuhao} {\fontsize{7.875pt}{\baselineskip}\selectfont}
\newcommand{\qihao} {\fontsize{5.25pt} {\baselineskip}\selectfont}
%Define font for vertical typesetting.
\ifustc@adobefont
\setCJKfamilyfont{verthei}[RawFeature={vertical:}]{Adobe Heiti Std}\relax
\else%
\setCJKfamilyfont{verthei}[RawFeature={vertical:}]{SimHei}\relax
\fi
\newcommand{\ustc@verthei}{\CJKfamily{verthei}}
%Set section numbering to subsubsection
\setcounter{secnumdepth}{3}
%Set numbering style to X.X
\numberwithin{equation}{chapter}
\numberwithin{figure}{chapter}
\numberwithin{table}{chapter}
%Title setup
\CTEXsetup[format={\centering}]{chapter}%规定16pt,三号为15.75pt
\CTEXsetup[nameformat={\bfseries\sanhao}]{chapter}
\CTEXsetup[titleformat={\bfseries\sanhao}]{chapter}
\CTEXsetup[beforeskip={0pt}]{chapter}
\CTEXsetup[afterskip={18pt}]{chapter}
\CTEXsetup[format={\flushleft\bfseries\sihao}]{section}%规定14pt,即四号
\CTEXsetup[format={\flushleft\bfseries\fontsize{13pt}\baselineskip}]{subsection}%规定13pt
\CTEXsetup[format={\flushleft\bfseries\xiaosihao}]{subsubsection}%规定12pt,即小四号
\ifustc@notchinese
\CTEXsetup[name={Part\space,}]{part}
\CTEXsetup[name={Chapter\space,}]{chapter}
\CTEXsetup[number={\Roman{part}}]{part}
\CTEXsetup[number={\arabic{chapter}}]{chapter}
\CTEXsetup[name={Appendix\space}]{appendix}
\CTEXoptions[contentsname={Table of Contents}]
\CTEXoptions[listfigurename={List of Figures}]
\CTEXoptions[listtablename={List of Tables}]
\CTEXoptions[figurename={Figure}]
\CTEXoptions[tablename={Table}]
\CTEXoptions[indexname={Indexes}]
\CTEXoptions[bibname={References}]
\else
\relax
\fi
%Define new commands for List of Figures/Tables
\ustc@define@term{ustclofname}
\ustc@define@term{ustclotname}
\ifustc@notchinese
\ustclofname{List of Figures}
\ustclotname{List of Tables}
\else
\ustclofname{插图索引}
\ustclotname{表格索引}
\fi
\CTEXoptions[listfigurename={\ustc@ustclofname}]
\CTEXoptions[listtablename={\ustc@ustclotname}]
\newcommand\ustclot{\cleardoublepage\addcontentsline{toc}{chapter}{\ustc@ustclotname}\listoftables}
\newcommand\ustclof{\cleardoublepage\addcontentsline{toc}{chapter}{\ustc@ustclofname}\listoffigures}
%New mathematical environments
\ifustc@notchinese
\newtheorem{theorem}{\textbf{Theorem}}[section]
\newtheorem{lemma}{\textbf{Lemma}}[section]
\newtheorem{example}{\textbf{Example}}[section]
\newtheorem{definition}{\textbf{Definition}}[section]
\newtheorem{axiom}{\textbf{Axiom}}[section]
\newtheorem{property}{\textbf{Property}}[section]
\newtheorem{proposition}{\textbf{Proposition}}[section]
\newtheorem{corollary}{\textbf{Corollary}}[section]
\newtheorem{remark}{\textbf{Remark}}[section]
\newtheorem{condition}{\textbf{Condition}}[section]
\newtheorem{conclusion}{\textbf{Conclusion}}[section]
\newtheorem{assumption}{\textbf{Assumption}}[section]
\newtheorem{prove}{\textbf{Prove}}[section]
\renewcommand{\proofname}{Proof}
\renewcommand\appendixname{Appendix}
%New autorefname
\def\equationautorefname{Equation}
\def\footnoteautorefname{Footnote}
\def\itemautorefname{Item}
\def\figureautorefname{Figure}
\def\subfigureautorefname{Figure}
\def\tableautorefname{Table}
\def\partautorefname{Part}
\def\appendixautorefname{Appendix}
\def\chapterautorefname{Chapter}
\def\sectionautorefname{Section}
\def\subsectionautorefname{Subsection}
\def\theoremautorefname{Theorem}
\def\assumptionautorefname{Assumption}
\def\propertyautorefname{Property}
\else
\newtheorem{theorem}{\textbf{\hspace{0.7cm}定理}}[section]
\newtheorem{lemma}{\textbf{\hspace{0.7cm}引理}}[section]
\newtheorem{example}{\textbf{\hspace{0.7cm}例}}[section]
\newtheorem{definition}{\textbf{\hspace{0.7cm}定义}}[section]
\newtheorem{axiom}{\textbf{\hspace{0.7cm}公理}}[section]
\newtheorem{property}{\textbf{\hspace{0.7cm}性质}}[section]
\newtheorem{proposition}{\textbf{\hspace{0.7cm}命题}}[section]
\newtheorem{corollary}{\textbf{\hspace{0.7cm}推论}}[section]
\newtheorem{remark}{\textbf{\hspace{0.7cm}注解}}[section]
\newtheorem{condition}{\textbf{\hspace{0.7cm}条件}}[section]
\newtheorem{conclusion}{\textbf{\hspace{0.7cm}结论}}[section]
\newtheorem{assumption}{\textbf{\hspace{0.7cm}假设}}[section]
\newtheorem{prove}{\textbf{\hspace{0.7cm}证明}}[section]
\renewcommand{\proofname}{证明}
\renewcommand\appendixname{附录}
%New autorefname
\def\equationautorefname{式}
\def\footnoteautorefname{脚注}
\def\itemautorefname{项}
\def\figureautorefname{图}
\def\subfigureautorefname{图}
\def\tableautorefname{表}
\def\partautorefname{篇}
\def\appendixautorefname{附录}
\def\chapterautorefname{章}
\def\sectionautorefname{节}
\def\subsectionautorefname{小节}
\def\theoremautorefname{定理}
\def\assumptionautorefname{假设}
\def\propertyautorefname{性质}
\fi
%Line and par setup
%It seems unnecessary since CTeX has already set the \baselinestretch etc.
%\renewcommand\baselinestretch{1.4}
\newcommand\ustc@underline[2][6em]{\hskip1pt\underline{\hb@xt@ #1{\hss#2\hss}}\hskip3pt}
\setlength{\parskip}{0pt plus3pt minus0pt}%{1ex plus1.5ex minus0.5ex}%{0.5\baselineskip}%{1.5pt plus1pt minus1pt}
\setlength{\parindent}{2\ccwd}
%\setlength{\parskip}{3pt plus1pt minus2pt}
%\setlength{\baselineskip}{22pt plus1pt minus1pt}
%\setlength{\textheight}{21true cm}
%\setlength{\headsep}{1 cm}
%\setlength{\textwidth}{14.5true cm}
%\setlength{\belowcaptionskip}{5pt}
%Title page setup
\newcommand\USTCHUGE{\fontsize{56}{67.2}\selectfont}%中文扉页第二行
\newcommand\USTCHuge{\fontsize{30}{40}\selectfont}%中文扉页第二行
\newcommand\USTCLARGE{\fontsize{26}{30}\selectfont}%英文扉页第二行
\newcommand\USTCLarge{\fontsize{20}{30}\selectfont}%英文扉页第一行
\newcommand\USTCTspace{\protect\CTEX@spaceChar}
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
\thispagestyle{empty}%
\hbox{}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi}
% !! Never try to set this value greater than 0.7.
% !! This value has already set previously. So, leave it here as a reminder.
%\renewcommand{\floatpagefraction}{0.80}
%Information used for title page and book spine
\renewcommand\title[1]{\def\ustc@title{#1}}
\renewcommand\author[1]{\def\ustc@author{#1}}
\ustc@define@term{advisor}
\ustc@define@term{coadvisor}
\ustc@define@term{major}%硕士博士论文适用专业全称,不可用缩写。本科论文不需要此项 Not used in bachelor thesis. For master and doctor thesis, use full name -- NEVER use abbr.
\ustc@define@term{submitdate}
\ustc@define@term{depart}%硕士博士论文用院系代号,仅用于书脊。本科论文用院系全称,仅用于扉页 For bachelor use full name(only used in title page). Currently unused for master and doctor
%English
\ustc@define@term{entitle}
\ustc@define@term{enauthor}
\ustc@define@term{enadvisor}
\ustc@define@term{encoadvisor}
\ustc@define@term{encoadvisorsec}
\ustc@define@term{ensubmitdate}
\ustc@define@term{enmajor}
\ustc@define@term{endepart}%本科论文用院系全称,仅用于扉页。硕博暂时没有用 For bachelor use full name(only used in title page). Currently unused for master and doctor
%Other language strings
\ustc@define@term{otherustcstr}%A translation of `University of Science and Technology' in your language
\ustc@define@term{otherthesisstr}%A translation of `A dissertation for doctor's degree' in your language
\ustc@define@term{otherauthorstr}%A translation of `Author' in your language
\ustc@define@term{otherdepartmentstr}%A translation of `Department' in your language
\ustc@define@term{otherstudentidstr}%A translation of `Student ID' in your language
\ustc@define@term{othersupervisorstr}%A translation of `Supervisor' in your language
\ustc@define@term{otherfinishedtimestr}%A translation of `Finished Time' in your language
\ustc@define@term{otherspecialitystr}%A translation of `Speciality' in your language
\ustc@define@term{othertitle}
\ustc@define@term{otherauthor}
\ustc@define@term{otheradvisor}
\ustc@define@term{othercoadvisor}
\ustc@define@term{othersubmitdate}
\ustc@define@term{othermajor}
\ustc@define@term{otherdepart}%本科论文用院系全称,仅用于扉页。硕博暂时没有用 For bachelor use full name(only used in title page). Currently unused for master and doctor
\ustc@define@term{studentid}%学号,仅本科论文 Student ID, only for bachelor
\ustc@define@term{spinetitle}%书脊使用的标题,当title里含有控制字符时使用此命令输入文本标题 Use this command to generate spine when there are some control commands in \title{}
\ustc@define@term{covertitle}%封皮使用的标题,当title里存在强制换行导致标题超过了三行时,或者存在其他特殊情况时,请使用此命令输入封皮的标题。根据制本厂的规定,封皮标题最多两行。
\ustc@define@term{encovertitle}%本科专用。封皮使用的英文标题,当entitle里存在强制换行导致标题超过了四行时,或者存在其他特殊情况时,请使用此命令输入封皮的英文标题。根据制本厂的规定,封皮英文标题最多三行。
\RequirePackage{subfiles}
\RequirePackage{xparse}
\DeclareDocumentCommand{\makecover}{ O{17pt} O{17pt} }{\make@bookspine{#1}{#2}}
\renewcommand\maketitle{
% \make@cntitle
% If you need a chinese title, please remove this "%" sign!
\make@entitle
\ifustc@notchinese
\ifx\ustc@othertitle\@empty
\relax
\else
\make@othertitle
\fi
\fi
\ifustc@bachelor
\relax
\else
\make@authorization
\fi}
%Chinese title page
\newcommand\make@cntitle{%
\newgeometry{%
top=3.8cm,
bottom=3.8cm,
left=3.2cm,
right=3.2cm
}
\pdfbookmark[-1]{\ustc@title}{title}
\cleardoublepage
\thispagestyle{empty}
\begin{center}
\vspace*{0.5cm plus 0.5cm minus 1cm}
\includegraphics[width=10cm]{sustech_logo_text.png}
\vskip -0.5cm
\bfseries\USTCHUGE\ifustc@doctor
{博士学位论文}
\else\ifustc@master
{硕士学位论文}
\else
{学士学位论文}
\fi\fi
\ifustc@bachelor\vskip 1cm\relax\else\vskip 1.5cm\fi
\includegraphics[width=4.5cm]{sustech_logo_fig.png}
\ifustc@bachelor\relax\else\vskip 0.5cm\fi %0.75cm
\renewcommand{\baselinestretch}{0.5}%Leading
\parbox[c]{11cm}%\begin{minipage}
{\center\bfseries\yihao\ustc@title}
%\end{minipage}
\end{center}
\vskip 1.0cm %0.6cm 0.7cm 2.3cm
\begin{center}
{\sanhao
\ifustc@bachelor\begin{tabular}{lc}%
\bfseries{姓\hspace{2\ccwd}名:} & \ustc@underline[6cm]{\ustc@author}\\
\bfseries{院\hspace{2\ccwd}系:} & \ustc@underline[6cm]{\ustc@depart}\\
\bfseries{学\hspace{2\ccwd}号:} & \ustc@underline[6cm]{\ustc@studentid}\\
\bfseries{导\hspace{2\ccwd}师:} & \ustc@underline[6cm]{\ustc@advisor}\\
\ifx\ustc@coadvisor\@empty\else & \ustc@underline[6cm]{\ustc@coadvisor}\\\fi
\bfseries{完成时间:} & \ustc@underline[6cm]{\ustc@submitdate}
\end{tabular}
\else \begin{tabular}{lc}%
\bfseries{作者姓名:} & \ustc@underline[6cm]{\ustc@author}\\
\bfseries{学科专业:} & \ustc@underline[6cm]{\ustc@major}\\
\bfseries{导师姓名:} & \ustc@underline[6cm]{\ustc@advisor}\\
\ifx\ustc@coadvisor\@empty\else
& \ustc@underline[6cm]{\ustc@coadvisor}\\\fi
\bfseries{完成时间:} & \ustc@underline[6cm]{\ustc@submitdate}
\end{tabular}
\fi}
\end{center}
\clearpage
\restoregeometry
\if@twoside
\thispagestyle{empty}
\cleardoublepage
\fi
}
%English title page
\newcommand\make@entitle{%
\newgeometry{%
top=1.5cm,
bottom=3.0cm,
left=3.0cm,
right=3.0cm
}
\pdfbookmark{Cover Page}{etitle}
\cleardoublepage
\thispagestyle{empty}
\begin{center}
\begin{tabular}{lr}CLC\underline{\hspace{2cm}}\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad &Number\underline{\hspace{2cm}}\\ UDC\underline{\hspace{2cm}}&Classification Level\underline{\hspace{2cm}}\end{tabular}\vspace*{1.5cm}
\vskip 0cm
\USTCLarge{\ttfamily{SOUTHERN UNIVERSITY OF SCIENCE AND TECHNOLOGY}}
\vskip 0.0cm
\USTCHuge{\ttfamily\ifustc@doctor
{A Dissertation for Doctor's Degree}
\else\ifustc@master
{A Dissertation for Master's Degree}
\else
{Undergraduate Thesis}
\fi\fi}
\vskip 1.0cm %1.25cm
\includegraphics[width=4.7cm]{sustech_logo_fig.png}
\vskip 1.0cm %2.4cm
\renewcommand{\baselinestretch}{1}
\bfseries\yihao\ustc@entitle
\end{center}
\vskip 1.0cm %1.8cm 2cm 3.1cm
\begin{center}
{\sanhao
\ifustc@bachelor
\begin{tabular}{lc}
Author :& \ustc@underline[7cm]{\ustc@enauthor}\\
Student ID :& \ustc@underline[7cm]{\ustc@studentid}\\
Department :& \ustc@underline[7cm]{\ustc@endepart}\\
Major :& \ustc@underline[7cm]{\ustc@enmajor}\\
Supervisor :& \ustc@underline[7cm]{\ustc@enadvisor}\\
\ifx\ustc@encoadvisor\@empty\else
Acad. Supervisors:& \ustc@underline[7cm]{\ustc@encoadvisor}\\
\fi
\ifx\ustc@encoadvisorsec\@empty\else
& \ustc@underline[7cm]{\ustc@encoadvisorsec}\\
\fi
Finished Time :& \ustc@underline[6cm]{\ustc@ensubmitdate}
\end{tabular}
\else
\begin{tabular}{lc}
Author :& \ustc@underline[6cm]{\ustc@enauthor}\\
Speciality :& \ustc@underline[6cm]{\ustc@enmajor}\\
Supervisor :& \ustc@underline[6cm]{\ustc@enadvisor}\\
\ifx\ustc@encoadvisor\@empty\else
& \ustc@underline[6cm]{\ustc@encoadvisor}\\
\fi
Finished Time :& \ustc@underline[6cm]{\ustc@ensubmitdate}
\end{tabular}
\fi}
\end{center}
\clearpage
\restoregeometry
\if@twoside
\thispagestyle{empty}
\cleardoublepage
\fi
}
%Other language title page
\newcommand\make@othertitle{%
\newgeometry{%
top=3.8cm,
bottom=3.8cm,
left=3.2cm,
right=3.2cm
}
%\pdfbookmark{英文标题}{etitle}
\cleardoublepage
\thispagestyle{empty}
\begin{center}
\vspace*{0cm}
\USTCLarge{\ttfamily{\ustc@otherustcstr}}
\vskip -0.2cm %-0.6cm
\USTCLARGE{\ttfamily\ustc@otherthesisstr}
\vskip 1.5cm %1.25cm
\includegraphics[width=4.7cm]{sustech_logo_fig.png}
\vskip 1.5cm %2.4cm
\renewcommand{\baselinestretch}{1}
\bfseries\yihao\ustc@othertitle
\end{center}
\vskip 1.0cm %1.8cm 2cm 3.1cm
\begin{center}
{\sanhao
\ifustc@bachelor
\begin{tabular}{lc}
\ustc@otherauthorstr :& \ustc@underline[6cm]{\ustc@otherauthor}\\
\ustc@otherdepartmentstr :& \ustc@underline[6cm]{\ustc@otherdepart}\\
\ustc@otherstudentidstr :& \ustc@underline[6cm]{\ustc@studentid}\\
\ustc@othersupervisorstr :& \ustc@underline[6cm]{\ustc@otheradvisor}\\
\ifx\ustc@encoadvisor\@empty\else
& \ustc@underline[6cm]{\ustc@othercoadvisor}\\
\fi
\ustc@otherfinishedtimestr :& \ustc@underline[6cm]{\ustc@othersubmitdate}
\end{tabular}
\else
\begin{tabular}{lc}
\ustc@otherauthorstr :& \ustc@underline[6cm]{\ustc@otherauthor}\\
\ustc@otherspecialitystr :& \ustc@underline[6cm]{\ustc@othermajor}\\
\ustc@othersupervisorstr :& \ustc@underline[6cm]{\ustc@otheradvisor}\\
\ifx\ustc@othercoadvisor\@empty\else
& \ustc@underline[6cm]{\ustc@othercoadvisor}\\
\fi
\ustc@otherfinishedtimestr :& \ustc@underline[6cm]{\ustc@othersubmitdate}
\end{tabular}
\fi}
\end{center}
\clearpage
\restoregeometry
\if@twoside
\thispagestyle{empty}
\cleardoublepage
\fi
}
%Cover page and book spine for bachelor, master and doctor
\newcommand{\cover@cnfontsize}{\relax}
\newcommand{\cover@enfontsize}{\relax}
\newcommand{\cover@defaultfontsize}{\fontsize{17pt}{\baselineskip}\selectfont}
\newlength{\cover@cnvoffset}
\newlength{\cover@cnhoffset}
\newlength{\cover@envoffset}
\newlength{\cover@enhoffset}
\newlength{\cover@cntitleh}
\newlength{\cover@entitleh}
\newcommand{\c@scn}[4]{
\def\c@s@default{17pt}
\def\c@s@var{#1}
\ifx\c@s@var\c@s@default\renewcommand{\cover@cnfontsize}{\cover@defaultfontsize}\else\renewcommand{\cover@cnfontsize}{\zihao{#1}}\fi
\setlength{\cover@cnvoffset}{#2}
\setlength{\cover@cnhoffset}{#3}
\setlength{\cover@cntitleh}{#4}}
\newcommand{\c@sen}[4]{
\def\c@s@default{17pt}
\def\c@s@var{#1}
\ifx\c@s@var\c@s@default\renewcommand{\cover@enfontsize}{\cover@defaultfontsize}\else\renewcommand{\cover@enfontsize}{\zihao{#1}}\fi
\setlength{\cover@envoffset}{#2}
\setlength{\cover@enhoffset}{#3}
\setlength{\cover@entitleh}{#4}}
\newcommand\make@bookspine[2]{
\def\cover@varcn{#1}
\def\cover@varen{#2}
\def\cover@san{3}
\def\cover@ssan{-3}
\def\cover@si{4}
\def\cover@ssi{-4}
\def\cover@wu{5}
\def\cover@swu{-5}
\ifustc@bachelor%cover page for bachelor
\ifx\cover@varcn\cover@san\c@scn{#1}{0mm}{-8.5mm}{1.6cm}\else
\ifx\cover@varcn\cover@ssan\c@scn{#1}{0.5mm}{-8.5mm}{1.55cm}\else
\ifx\cover@varcn\cover@si\c@scn{#1}{1mm}{-8.5mm}{1.5cm}\else
\ifx\cover@varcn\cover@ssi\c@scn{#1}{1.5mm}{-8.5mm}{1.45cm}\else
\ifx\cover@varcn\cover@wu\c@scn{#1}{2mm}{-8.5mm}{1.4cm}\else
\ifx\cover@varcn\cover@swu\c@scn{#1}{2.5mm}{-8.5mm}{1.35cm}\else
\c@scn{17pt}{0mm}{-0.85cm}{1.6cm}
\fi
\fi
\fi
\fi
\fi
\fi
\ifx\cover@varen\cover@san\c@sen{#2}{5mm}{0mm}{2.55cm}\else
\ifx\cover@varen\cover@ssan\c@sen{#2}{5.5mm}{0mm}{2.5cm}\else
\ifx\cover@varen\cover@si\c@sen{#2}{6mm}{0mm}{2.45cm}\else
\ifx\cover@varen\cover@ssi\c@sen{#2}{6.5mm}{0mm}{2.4cm}\else
\ifx\cover@varen\cover@wu\c@sen{#2}{7mm}{0mm}{2.35cm}\else
\ifx\cover@varen\cover@swu\c@sen{#2}{7.5mm}{0mm}{2.3cm}\else
\c@sen{17pt}{4.5mm}{0mm}{2.6cm}
\fi
\fi
\fi
\fi
\fi
\fi
\newgeometry{top=17.4cm,bottom=1.1cm,left=6cm,right=5.5cm}
\clearpage
\thispagestyle{empty}
\rule{0mm}{0mm}\vskip\cover@cnvoffset\hspace{\cover@cnhoffset}
\begin{minipage}[c]{9.7cm}
\begin{minipage}[c][\cover@cntitleh][s]{9.5cm}
\centering\bfseries\cover@cnfontsize\baselineskip=1\baselineskip plus 1fill\lineskip=0pt plus 1fill
\ifx\ustc@covertitle\@empty\ustc@title\else\ustc@covertitle\fi
\end{minipage}\vskip\cover@envoffset\hskip\cover@enhoffset
\begin{minipage}[c][\cover@entitleh][s]{9.5cm}
\centering\bfseries\cover@enfontsize\baselineskip=1\baselineskip plus 1fill\lineskip=0pt plus 1fill
\ifx\ustc@encovertitle\@empty\ustc@entitle\else\ustc@encovertitle\fi
\end{minipage}\vskip 0.5cm\hskip 0cm
\begin{minipage}[c][1.5cm][s]{9.5cm}
\centering\bfseries\cover@defaultfontsize\ustc@depart
\end{minipage}\vskip -0.5cm\hskip 0cm
\begin{minipage}[c][1.5cm][s]{9.5cm}
\centering\bfseries\cover@defaultfontsize\ustc@author\hfil\ustc@studentid
\end{minipage}\vskip -0.5cm\hskip 0cm
\begin{minipage}[c][1.5cm][s]{9.5cm}
\centering\bfseries\cover@defaultfontsize\ustc@advisor\ifx\ustc@coadvisor\@empty\else\quad\ustc@coadvisor\fi
\end{minipage}\vskip -0.5cm\hskip 0cm
\begin{minipage}[c][1.5cm][s]{9.5cm}
\centering\bfseries\cover@defaultfontsize\ustc@submitdate
\end{minipage}
\end{minipage}
\else
\ifx\cover@varcn\cover@san\c@scn{#1}{-7.3cm}{6.2cm}{1.5cm}\else
\ifx\cover@varcn\cover@ssan\c@scn{#1}{-7.3cm}{6.2cm}{1.5cm}\else
\ifx\cover@varcn\cover@si\c@scn{#1}{-7.2cm}{6.2cm}{1.4cm}\else
\ifx\cover@varcn\cover@ssi\c@scn{#1}{-7.2cm}{6.2cm}{1.4cm}\else
\ifx\cover@varcn\cover@wu\c@scn{#1}{-7.1cm}{6.2cm}{1.3cm}\else
\ifx\cover@varcn\cover@swu\c@scn{#1}{-7.1cm}{6.2cm}{1.3cm}\else
\c@scn{17pt}{-7.4cm}{6.2cm}{1.5cm}
\fi
\fi
\fi
\fi
\fi
\fi
\c@sen{17pt}{0cm}{0cm}{10cm}
\newgeometry{top=2cm,bottom=2cm,left=1.2cm,right=19.5cm}
\clearpage
\thispagestyle{empty}
\begin{flushleft}
\rotatebox{-90}{\makebox[23.7cm][c]{\ziju{0.17}\ustc@verthei\zihao{-4}{\ifx\ustc@spinetitle\@empty\ustc@title\else\ustc@spinetitle\fi\hfil\hfil\ustc@depart\hfil\hfil\ustc@author\hfil\hfil{}南方科技大学}}}
\end{flushleft}
\vspace{\cover@cnvoffset}\hspace{\cover@cnhoffset}
\begin{minipage}[c]{12.2cm}
\begin{minipage}[c][\cover@cntitleh][s]{12cm}
\centering\bfseries\cover@cnfontsize\baselineskip=1\baselineskip plus 1fill\lineskip=0pt plus 1fill
\ifx\ustc@covertitle\@empty\ustc@title\else\ustc@covertitle\fi
\end{minipage}\vskip 0.6cm\hskip 0cm
\begin{minipage}[c][1.5cm][s]{12cm}
\centering\bfseries\cover@defaultfontsize\ustc@author
\end{minipage}\vskip -0.6cm\hskip 0cm
\begin{minipage}[c][1.5cm][s]{12cm}
\centering\bfseries\cover@defaultfontsize\ustc@major
\end{minipage}\vskip -0.6cm\hskip 0cm
\begin{minipage}[c][1.5cm][s]{12cm}
\centering\bfseries\cover@defaultfontsize\ustc@advisor\ifx\ustc@coadvisor\@empty\else\quad\ustc@coadvisor\fi
\end{minipage}\vskip -0.6cm\hskip 0cm
\begin{minipage}[c][1.5cm][s]{12cm}
\centering\bfseries\cover@defaultfontsize\ustc@submitdate
\end{minipage}
\end{minipage}
\fi
\if@twoside
\thispagestyle{empty}
\cleardoublepage
\else
\clearpage
\fi
\restoregeometry
}
%Define head rule
\newcommand{\makeheadrule}{%
\rule[.7\baselineskip]{\headwidth}{1.2pt}\vskip-0.97\baselineskip%
\rule[.6\baselineskip]{\headwidth}{0.4pt}}%
\renewcommand{\headrule}{%
{\if@fancyplain\let\headrulewidth\plainheadrulewidth\fi}%
\makeheadrule}
%Define page style
\fancypagestyle{plain}{}
\pagestyle{fancy}
\fancyhf{}
\ifustc@bachelor\fancyhead[C]{\xiaowuhao{SUSTech's Dissertation for Bachelor's Degree}}\relax\else\fancyhead[C]{\small \nouppercase\leftmark}\fi
\renewcommand{\headrulewidth}{0.7pt}
\renewcommand\frontmatter{%
\cleardoublepage
\@mainmatterfalse
\pagenumbering{Roman}
\fancyfoot{}
\fancyfoot[C]{\small \thepage}}
\renewcommand\mainmatter{%
\cleardoublepage
\@mainmattertrue
\pagenumbering{arabic}
\fancyfoot{}
\fancyfoot[RO,LE]{\small \thepage}}
%Abstracts and thanks
\newcommand{\ustc@enabstractname}{ABSTRACT}
\newcommand{\ustc@cnabstractname}{摘\rule{\ccwd}{0pt}要}
\ifustc@notchinese
\newcommand{\ustc@thanksname}{Acknowledgements}
\else
\newcommand{\ustc@thanksname}{致\rule{\ccwd}{0pt}谢}
\fi
\newcommand\keywords[1]{%
\vspace{3.5ex}\noindent{\bfseries 关键词:~} #1}
\newcommand\enkeywords[1]{%
\vspace{3.5ex}\noindent{\bf Keywords:~} #1}
\newenvironment{cnabstract}
{\ifustc@bachelor\chapter{\texorpdfstring{\ustc@cnabstractname}{摘要}}\else\chapter[\texorpdfstring{\ustc@cnabstractname}{摘要}]{\protect\vskip-10pt\ustc@cnabstractname}\fi}
{}
\newenvironment{enabstract}
{\ifustc@bachelor\chapter{ABSTRACT}\else\chapter[ABSTRACT]{\protect\vskip-10pt{}ABSTRACT}\fi}
{}
\renewenvironment{thanks}
{\ifustc@bachelor\chapter[\texorpdfstring{\ustc@thanksname}{\ifustc@notchinese{}Acknowledgements\else{}致谢\fi}]{\protect\vskip-10pt\ustc@thanksname}\else\chapter{\texorpdfstring{\ustc@thanksname}{\ifustc@notchinese{}Acknowledgements\else{}致谢\fi}}\fi}
{}
%tableofcontents
\ifustc@notchinese
\renewcommand{\contentsname}{Contents}
\else
\renewcommand{\contentsname}{\texorpdfstring{目\rule{\ccwd}{0pt}录}{目录}}
\fi
\renewcommand\tableofcontents{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter[\contentsname]{\protect\vskip-10pt\contentsname}%
\renewcommand{\baselinestretch}{1}
\@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname}%
\@starttoc{toc}%
\if@restonecol\twocolumn\fi
}
%% tableofcontent
\titlecontents{chapter}[0em]
{\vspace{6bp}\sihao}%14pt,如果希望美观一些,可以无视章节标题用宋体的规定,自行添加\bfseries
{\thecontentslabel\hspace*{0.5em}}
{}
{\titlerule*[0.5pc]{$\cdot$}\contentspage}
\titlecontents{section}[1.1\ccwd]
{\vspace{1bp} \xiaosi}
{\thecontentslabel\hspace*{0.5em}}
{}
{\titlerule*[0.5pc]{$\cdot$}\contentspage}
\titlecontents{subsection}[2.5\ccwd]%原来是2.3
{\vspace{1bp} \wuhao}%规定三级标题是10.5pt
{\thecontentslabel\hspace*{0.5em}}
{}
{\titlerule*[0.5pc]{$\cdot$}\contentspage}
\renewcommand{\bibsection}{
\chapter{\bibname}
\renewcommand{\baselinestretch}{0.8}
%\setlength{\linestretch}{1.0}
\xiaowu%%\small
%\linespread{1.36}
\@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}
%\setlength{\bibsep}{0ex}
\let\OLDappendix\appendix
\newif\if@appendixinbackmatter
\renewenvironment{appendix}
{
\if@mainmatter
\@appendixinbackmatterfalse\OLDappendix
\else
\@appendixinbackmattertrue\@mainmattertrue\OLDappendix
\fi
\renewcommand\chaptername{\appendixname~\thechapter}}
{\if@appendixinbackmatter\@mainmatterfalse\fi
}
\endinput
%%
%% End of file `SUSTCthesis.cls'.