forked from BHOSC/BUAAthesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample-doctor.tex
152 lines (144 loc) · 5.95 KB
/
sample-doctor.tex
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
%=============================================================================%
\documentclass[doctor,oneside,openany,fontset=windows]{buaathesis}
%-----------------------------------------------------------------------------%
\usepackage{amsmath}
\usepackage{bm}
\usepackage{mathtools}
\usepackage[extdef]{delimset}
\usepackage[bb=txof]{mathalfa}
\allowdisplaybreaks[1]
%-----------------------------------------------------------------------------%
\usepackage{siunitx}
\DeclareSymbolFontAlphabet{\mathrm}{operators}
\sisetup{range-phrase = { \text{ 至\,} }}
\sisetup{retain-explicit-plus = true}
\sisetup{mode = text}
\sisetup{group-digits = false}
%-----------------------------------------------------------------------------%
\hypersetup{bookmarksdepth=4}
%-----------------------------------------------------------------------------%
\usepackage{cleveref}
\newcommand{\crefpairconjunction}{ 和 }
\newcommand{\crefmiddleconjunction}{、}
\newcommand{\creflastconjunction}{ 和 }
\newcommand{\crefrangeconjunction}{ 至 }
\crefname{algocf}{算法}{算法}
\crefname{appendix}{附录}{附录}
\crefname{assumption}{假设}{假设}
\crefname{chapter}{章}{章}
\crefname{corollary}{推论}{推论}
\crefname{definition}{定义}{定义}
\crefname{equation}{式}{式}
\crefname{figure}{图}{图}
\crefname{lemma}{引理}{引理}
\crefname{problem}{问题}{问题}
\crefname{remark}{注释}{注释}
\crefname{section}{节}{节}
\crefname{subsection}{节}{节}
\crefname{subsubsection}{节}{节}
\crefname{table}{表}{表}
\crefname{theorem}{定理}{定理}
%-----------------------------------------------------------------------------%
\usepackage{xspace}
\xspaceaddexceptions{、,;。()}
\let\oldcref\cref \renewcommand{\cref}[1]{\oldcref{#1}\xspace}
\let\oldCref\Cref \renewcommand{\Cref}[1]{\oldCref{#1}\xspace}
\let\oldnum\num \renewcommand{\num}[1]{\ensuremath{\oldnum{#1}}}
\let\oldsi\si \renewcommand{\si}[1]{\ensuremath{\oldsi{#1}}}
\let\oldSI\SI \renewcommand{\SI}[2]{\ensuremath{\oldSI{#1}{#2}}}
\let\oldSIrange\SIrange \renewcommand{\SIrange}[3]{\ensuremath{\oldSIrange{#1}{#2}{#3}}}
%-----------------------------------------------------------------------------%
\usepackage{subfigure}
% \usepackage{float}
% \usepackage{graphicx}
% \usepackage{caption}
% \usepackage{subcaption}
% \captionsetup[subfigure]{subrefformat=simple,labelformat=simple}
% \renewcommand\thesubfigure{~(\alph{subfigure})}
%-----------------------------------------------------------------------------%
\usepackage{makecell}
%-----------------------------------------------------------------------------%
\usepackage[algoruled,algochapter]{algorithm2e}
\SetAlgorithmName{算法}{算法}{算法}
\SetAlgoCaptionSeparator{ \hspace{.5em}}
\SetKwInput{KwIn}{输入}
\SetKwInput{KwOut}{输出}
%-----------------------------------------------------------------------------%
\newcommand{\s}[1]{
\chapter{#1}
\pagestyle{mainmatter}
\renewcommand{\headrulewidth}{0.5bp} % 页眉线宽度
}
%-----------------------------------------------------------------------------%
% 参考文献标号左对齐
\makeatletter \renewcommand{\@biblabel}[1]{[#1]\hfill} \makeatother
%-----------------------------------------------------------------------------%
\usepackage{hologo}
%=============================================================================%
\school{XXX}{School of XXX}
\major{XXXX}{XXXX Engineering}
\applydegree{X学博士}
\category{TP312}
\thesisID{10006SY0000000}
\thesistitle
{基于Texlive的北航毕设论文模板设计长标题长标题}{}
{How to design the BUAA-thesis with \LaTeX{} very very very very very very long}{}
\teacher{导师中文名}{Name of tutor}
\teacherdegree{教授}{Prof.}
\thesisauthor{姓名}{Name}
\direction{XXXXXXXX}
\thesisbegin{\phantom{0000}}{\phantom{00}}{\phantom{00}}
\thesisend {\phantom{0000}}{\phantom{00}}{\phantom{00}}
\commit {\phantom{0000}}{\phantom{00}}{\phantom{00}}
\defense{\phantom{0000}}{\phantom{00}}{\phantom{00}}
\award {\phantom{0000}}{\phantom{00}}{\phantom{00}}
%=============================================================================%
\begin{document}
%-----------------------------------------------------------------------------%
\sloppy
%-----------------------------------------------------------------------------%
% 中文封面、英文封面、题名页、独创性声明和使用授权书
\maketitle
%-----------------------------------------------------------------------------%
\clearpage
\frontmatter
\pagestyle{frontmatter}
%-----------------------------------------------------------------------------%
% 中文摘要、英文摘要
\include{data/abstract}
%-----------------------------------------------------------------------------%
% 目录、插图目录、表格目录、主要符号对照表
\tableofcontents
\listoffigures
\listoftables
%-----------------------------------------------------------------------------%
\markboth{}{} % <- HACK for \contentsname and \CJKfakebold
\clearpage
\mainmatter
\raggedbottom
%-----------------------------------------------------------------------------%
% 主体部分
\include{data/chapter1-intro}
\include{data/chapter2-config}
\include{data/chapter3-download}
\include{data/chapter4-basic}
\include{data/chapter5-usage}
\include{data/chapter6-implement}
\include{data/chapter7-conclusion}
%-----------------------------------------------------------------------------%
% 参考文献
\include{data/reference}
%-----------------------------------------------------------------------------%
% 附录
\appendix
\include{data/appendix1-faq}
\include{data/appendix2-contactus}
%-----------------------------------------------------------------------------%
% 攻读博士学位期间取得的研究成果、致谢、作者简介
\backmatter
\include{data/master/back1-achievement}
\include{data/master/back2-acknowledgement}
\include{data/master/back3-aboutauthor}
%-----------------------------------------------------------------------------%
\end{document}
%=============================================================================%