-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuptthesis.cls
574 lines (499 loc) · 17.5 KB
/
buptthesis.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
%% -----------------------------------------------------------------
%%
%% Copyright (C) 2016 -- 201X by
%%
%% Haojun Yang, Lu Hou and Jie Mei
%%
%% -----------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{buptthesis}
[2016/01/09 v0.1 Beijing University of Posts and Telecommunications (BUPT) thesis document class]
\typeout{-- See the "How_to_use_buptthesis" manual for usage information.}
%% -----------------------------------------------------------------
%% Document class options
%% Class option conditionals
\newif\ifBUPT@option@phd \BUPT@option@phdtrue
\newif\ifBUPT@option@master \BUPT@option@masterfalse
\newif\ifBUPT@option@electronic \BUPT@option@electronictrue
\newif\ifBUPT@option@print \BUPT@option@printfalse
\newif\ifBUPT@option@draftcls \BUPT@option@draftclsfalse
\newif\ifBUPT@option@cenhdr \BUPT@option@cenhdrfalse
\newif\ifBUPT@option@normaltoc \BUPT@option@normaltocfalse
\newif\ifBUPT@option@txmath \BUPT@option@txmathfalse
\newif\ifBUPT@option@macos \BUPT@option@macosfalse
%%blankdblpage
%% Declare class options
\DeclareOption{phd}{%
\BUPT@option@phdtrue%
\BUPT@option@masterfalse}
\DeclareOption{master}{%
\BUPT@option@phdfalse%
\BUPT@option@mastertrue}
\DeclareOption{electronic}{%
\BUPT@option@electronictrue%
\BUPT@option@printfalse%
\BUPT@option@draftclsfalse}
\DeclareOption{print}{%
\BUPT@option@electronicfalse%
\BUPT@option@printtrue%
\BUPT@option@draftclsfalse}
\DeclareOption{draftcls}{%
\BUPT@option@electronicfalse%
\BUPT@option@printfalse%
\BUPT@option@draftclstrue}
\DeclareOption{cenhdr}{%
\BUPT@option@cenhdrtrue}
\DeclareOption{normaltoc}{%
\BUPT@option@normaltoctrue%
\PassOptionsToPackage{nottoc,notlof,notlot}{tocbibind}}
\DeclareOption{txmath}{%
\BUPT@option@txmathtrue}
\DeclareOption{macos}{%
\BUPT@option@macostrue%
\typeout{-- Operating system is Mac OS.}}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}}
\ExecuteOptions{phd,electronic}
\ProcessOptions\relax
%% 注意:如果载入文档类的时候,使用phd选项,则phd选项被载入了2次!
\PassOptionsToPackage{no-math}{fontspec}
%% -----------------------------------------------------------------
%% Load ctexbook.cls document class
%% book.cls default:
%% \ExecuteOptions{letterpaper,10pt,twoside,onecolumn,final,openright}
\ifBUPT@option@macos
\LoadClass[
UTF8,
a4paper,
zihao = -4,
fontset = fandol
]{ctexbook}[2015/05/03]
\else
\LoadClass[
UTF8,
a4paper,
zihao = -4,
fontset = fandol
]{ctexbook}[2015/05/03]
\fi
\setcounter{secnumdepth}{5}
%% -----------------------------------------------------------------
%% Fonts setup
%% Chinese text fonts setup
\ifBUPT@option@macos
\typeout{-- See the "ctex-fontset-macwin.def" for more information about chinese text font.}
\else
\typeout{-- See the "ctex-fontset-windowsnew.def" for more information about chinese text font.}
\fi
% English text fonts setup
\RequirePackage[T1]{fontenc}
\renewcommand\sfdefault{phv}
\renewcommand\rmdefault{ptm}
\renewcommand\ttdefault{pcr}
%% Math fonts setup
\ifBUPT@option@txmath
\RequirePackage{newtxmath}
\fi
%% -----------------------------------------------------------------
%% Load packages
\RequirePackage{keyval}
%% In fact, the graphicx package has loaded the keyval package.
%% Math Packages
\RequirePackage{amsmath}
%\interdisplaylinepenalty=2500
\RequirePackage{amssymb}
%\RequirePackage{eucal}
\RequirePackage{bm}
\RequirePackage{mdwmath}
\RequirePackage{xfrac}
\RequirePackage{enumitem}
\setlist{nosep}
%% Graphic Related Packages
\ifBUPT@option@draftcls
\setkeys{Gin}{draft = true}
\else
\RequirePackage{graphicx}
%% In fact, the xunicode package has loaded the graphicx package.
\fi
\RequirePackage[font=footnotesize,subrefformat=parens]{subfig}
%% Table and Array Packages
\RequirePackage{makecell}
%% The makecell package already loads the array package.
\RequirePackage{multirow}
%% Specialzed List Packages
%\RequirePackage{algorithm2e}
%\RequirePackage{algorithmic}
%\RequirePackage[compatible]{algpseudocode}
\RequirePackage{acronym}
\RequirePackage{IEEEtrantools}
\RequirePackage[
linesnumbered,
lined,
boxruled,
commentsnumbered,
algochapter
]{algorithm2e}
\RequirePackage{mathtools}
\RequirePackage[table,usenames,svgnames,dvipsnames]{xcolor}
\RequirePackage{longtable}
\DeclarePairedDelimiter{\ceil}{\lceil}{\rceil}
\DeclarePairedDelimiter{\floor}{\lfloor}{\rfloor}
\newcolumntype{g}{>{\columncolor{LightSteelBlue}}c}
%% Citation Packages
%\RequirePackage[noadjust]{cite}
\RequirePackage[super]{gbt7714}
%% PDF, URL and Hyperlink Packages
\RequirePackage{url}
\ifBUPT@option@electronic
\RequirePackage{hyperref}
\fi
%% Geometry Package
\RequirePackage{geometry}
%% Fancyhdr Package
\RequirePackage{fancyhdr}
%% Units Package
\RequirePackage[binary-units]{siunitx}
%% Caption Package
\RequirePackage{caption}
\DeclareCaptionFont{kaishu}{\kaishu}
\captionsetup{format=plain,labelformat=simple,labelsep=space,justification=centering,font={small,kaishu}}
\renewcommand{\theequation}{\thechapter--\arabic{equation}}
\renewcommand{\thefigure}{\thechapter--\arabic{figure}}
\renewcommand{\thetable}{\thechapter--\arabic{table}}
%\renewcommand{\thealgorithm}{\thechapter--\arabic{algorithm}}
%% Tocbibind Package
\RequirePackage{tocbibind}
\AtEndOfClass{%
\InputIfFileExists{config/buptthesis.cfg}{}{}}
%% -----------------------------------------------------------------
%% Styles setup
%% For EPS and PDF figures:
%\graphicspath{{Figure/PDF/}{Figure/EPS/}}
%% For only PDF figures:
\graphicspath{{Figure/EPS/}{Figure/EPS/Chapter1/}}
%% Page layout
%% twoside:
%\geometry{left=2.5cm, right=3cm, top=3cm, bottom=3cm}
%% oneside:
\geometry{left=2.75cm, right=2.75cm, top=3cm, bottom=3cm}
%% Typeset LaTeX commands as text
\RequirePackage{listings}
\newcommand{\latextext}[1]{\lstinline[language={[LaTeX]TeX}, basicstyle=\ttfamily] {#1}}
%% Degree
\ifBUPT@option@phd
\def\BUPT@value@degree{\BUPT@label@phddegree}
\def\BUPT@value@englishdegree{\BUPT@label@englishphddegree}
\else
\def\BUPT@value@degree{\BUPT@label@masterdegree}
\def\BUPT@value@englishdegree{\BUPT@label@englishmasterdegree}
\fi
%% Page style
\ifBUPT@option@draftcls
\ctexset{today = old}
\let\oldtoday\today
\ctexset{today = small}
\fancypagestyle{BUPThdrstyle}{%
\fancyhf{}%
\fancyhead[OR]{\zihao{-5} \leftmark}%
\fancyhead[OL,ER]{\zihao{-5} DRAFT}%
\fancyhead[EL]{\zihao{-5} \BUPT@label@university\BUPT@value@degreetype\BUPT@value@degree\BUPT@label@thesis}%
\fancyhead[EC]{\zihao{-5} \oldtoday}%
\fancyfoot[C]{\zihao{5} \thepage}%
\renewcommand\headrulewidth{0.4\p@}%
\renewcommand\footrulewidth{0\p@}}
\else
\ifBUPT@option@cenhdr
\fancypagestyle{BUPThdrstyle}{%
\fancyhf{}%
\fancyhead[OC]{\zihao{-5} \leftmark}%
\fancyhead[EC]{\zihao{-5} \BUPT@label@university\BUPT@value@degreetype\BUPT@value@degree\BUPT@label@thesis}%
\fancyfoot[C]{\zihao{5} \thepage}%
\renewcommand\headrulewidth{0.4\p@}%
\renewcommand\footrulewidth{0\p@}}
\else
\fancypagestyle{BUPThdrstyle}{%
\fancyhf{}%
\fancyhead[OR]{\zihao{-5} \leftmark}%
\fancyhead[EL]{\zihao{-5} \BUPT@label@university\BUPT@value@degreetype\BUPT@value@degree\BUPT@label@thesis}%
\fancyfoot[C]{\zihao{5} \thepage}%
\renewcommand\headrulewidth{0.4\p@}%
\renewcommand\footrulewidth{0\p@}}
\fi
\fi
\let\BUPT@frontmatter\frontmatter
\def\frontmatter{\BUPT@frontmatter\pagestyle{BUPThdrstyle}}
%% Page style before \frontmatter
\AtBeginDocument{%
\pagenumbering{alpha}%
\pagestyle{empty}}
%% Headings
\ctexset{
chapter = {
format = \heiti\zihao{3}\bfseries\centering,
beforeskip = -\p@,
afterskip = 2 em,
pagestyle = BUPThdrstyle
},
section = {
format = \heiti\zihao{4}\bfseries\raggedright,
beforeskip = 2 em,
afterskip = 1 em,
},
subsection = {
format = \heiti\zihao{-4}\bfseries\raggedright,
beforeskip = 1 em,
afterskip = 1 em,
},
subsubsection = {
format = \heiti\zihao{-4}\bfseries\raggedright,
beforeskip = 1 em,
afterskip = 1 em,
},
}
%% Names
\ctexset{
contentsname = {目\quad 录},
listfigurename = {图目录},
listtablename = {表目录}
}
%% linespread行间距
\setlength\parskip{\p@}%0\p@ \@plus 0.1\p@}
\linespread{1.3} % 1.5倍行距,要求为20磅,小四号字体情况下差2磅
%% Set ToC depth
\setcounter{tocdepth}{2}
%% Titlepage options
\def\BUPTthesiscntitlepage#1{\setkeys{cntitle}{#1}}
\define@key{cntitle}{confidential}{\def\BUPT@value@confidential{#1}}
\define@key{cntitle}{confidentialtime}{\def\BUPT@value@confidentialtime{#1}}
\define@key{cntitle}{title}{\long\def\BUPT@value@title{#1}}
\define@key{cntitle}{studentid}{\def\BUPT@value@studentid{#1}}
\define@key{cntitle}{name}{\def\BUPT@value@name{#1}}
\define@key{cntitle}{major}{\def\BUPT@value@major{#1}}
\define@key{cntitle}{supervisor}{\def\BUPT@value@supervisor{#1}}
\define@key{cntitle}{institute}{\def\BUPT@value@institute{#1}}
\define@key{cntitle}{degreetype}{\def\BUPT@value@degreetype{#1}}
\def\BUPTthesisentitlepage#1{\setkeys{entitle}{#1}}
\define@key{entitle}{title}{\long\def\BUPT@value@englishtitle{#1}}
\define@key{entitle}{name}{\def\BUPT@value@englishname{#1}}
\define@key{entitle}{desc}{\def\BUPT@value@englishdescription{#1}}
\define@key{entitle}{supervisor}{\def\BUPT@value@englishsupervisor{#1}}
\define@key{entitle}{major}{\def\BUPT@value@englishmajor{#1}}
\define@key{entitle}{degree}{\def\BUPT@value@englishdegree{#1}}
\define@key{entitle}{institute}{\def\BUPT@value@englishinstitute{#1}}
%% Titlepage
%% The \hss glue is equivalent to \hskip 0pt plus 1fil minus 1fil.
%% Solution from https://github.com/CTeX-org/forum/issues/36
\ExplSyntaxOn
\seq_new:N \l_@@_title_seq
\cs_new_protected:Npn \BUPT@setstr #1
{ \exp_args:NNno \seq_set_split:Nnn \l_@@_title_seq { \\ } {#1} }
%% o means expansion once.
\dim_new:N \l_@@_title_width_dim
\cs_new_protected:Npn \BUPT@printcovertitle
{
\group_begin:
\@@_title_name_format:
\tl_use:N \c_@@_title_name_tl
\group_end:
\group_begin:
\@@_title_format:
\@@_get_max_width:NN \l_@@_title_width_dim \l_@@_title_seq
\dim_add:Nn \l_@@_title_width_dim { 20\p@ }
\dim_log:N \l_@@_title_width_dim
\parbox [t] { \l_@@_title_width_dim }
{
\seq_map_inline:Nn \l_@@_title_seq
{ \@@_underline:Nn \l_@@_title_width_dim {##1} \\ }
}
\group_end:
}
\cs_new_protected:Npn \BUPT@infomaxwidth #1
{
\group_begin:
\@@_info_format:
\@@_get_max_width:NN #1 \l_@@_title_seq
\group_end:
}
%% 获取最大宽度,存入 #1
\cs_new_protected:Npn \@@_get_max_width:NN #1#2
{
\group_begin:
\dim_zero:N #1
\bool_until_do:nn { \seq_if_empty_p:N #2 }
{
\seq_pop:NN #2 \l_tmpa_tl
\exp_args:NNV \@@_get_width:Nn \l_tmpa_dim \l_tmpa_tl
\dim_gset:Nn #1 { \dim_max:nn { \dim_use:N #1 } { \l_tmpa_dim } }
}
\group_end:
}
\cs_new_protected:Npn \@@_get_width:Nn #1#2
{
\hbox_set:Nn \l_tmpa_box {#2}
\dim_set:Nn #1 { \box_wd:N \l_tmpa_box }
}
\cs_new_protected:Npn \@@_underline:Nn #1#2
{ \underline { \hbox_to_wd:nn { \dim_use:N #1 } { \hss #2 \hss } } }
\tl_const:Nn \c_@@_title_name_tl { \BUPT@label@title }
\cs_new:Npn \@@_title_name_format: { \zihao{-2} \bfseries }
\cs_new:Npn \@@_title_format: { \zihao{-2} \bfseries }
\cs_new:Npn \@@_info_format: { \zihao{4} \bfseries }
\ExplSyntaxOff
\def\BUPTunderline#1#2{\underline{\hbox to #1{\hss #2\hss}}}
\def\makechinesetitle{%
\begin{flushright}
\zihao{4}\bfseries \BUPT@label@confidential\BUPT@value@confidential~~~~\BUPT@label@confidentialtime\BUPT@value@confidentialtime~~~~
\end{flushright}
\begin{center}
\includegraphics[width=12.67cm]{\BUPT@value@schoolname}
\vskip \stretch{0.5}
{\heiti\fontsize{32}{\p@}\bfseries \BUPT@value@degree\BUPT@label@thesis}
\vskip \stretch{0.5}
\includegraphics[width=3.43cm]{\BUPT@value@schoollogo}
\end{center}
\vskip \stretch{0.5}
\BUPT@setstr{\BUPT@value@title}
\begin{center}
\BUPT@printcovertitle
\end{center}
%% Line 353 already \\
\newlength{\BUPT@value@infomaxwidth}
\BUPT@setstr{\BUPT@value@studentid \\ \BUPT@value@name \\ \BUPT@value@major \\ \BUPT@value@supervisor \\ \BUPT@value@institute}
\BUPT@infomaxwidth{\BUPT@value@infomaxwidth}
\addtolength{\BUPT@value@infomaxwidth}{40\p@}
\begin{center}
{\zihao{4}\bfseries
\renewcommand\arraystretch{1.3}
\setlength\extrarowheight{1\p@}
\begin{tabular}{rc}
\BUPT@label@studentid & \BUPTunderline{\BUPT@value@infomaxwidth}{\BUPT@value@studentid} \\
\BUPT@label@name & \BUPTunderline{\BUPT@value@infomaxwidth}{\BUPT@value@name} \\
\BUPT@label@major & \BUPTunderline{\BUPT@value@infomaxwidth}{\BUPT@value@major} \\
\BUPT@label@supervisor & \BUPTunderline{\BUPT@value@infomaxwidth}{\BUPT@value@supervisor} \\
\BUPT@label@institute & \BUPTunderline{\BUPT@value@infomaxwidth}{\BUPT@value@institute}
\end{tabular}}
\vskip \stretch{0.5}
{\zihao{4}\bfseries \BUPT@value@chinesedate}
\end{center}
\cleardoublepage}
\def\makeenglishtitle{%
\begin{center}
{\zihao{-2}\bfseries \BUPT@value@englishtitle}
\vskip \stretch{2}
{\zihao{-3}\bfseries \BUPT@value@englishdescription}
\vskip \stretch{2}
{\zihao{3}\bfseries \BUPT@value@englishname}
\vskip \stretch{2}
{\zihao{-3}\bfseries \BUPT@value@englishdegree}
\vskip \stretch{2}
{\zihao{-3} \BUPT@value@englishsupervisor}\\
{\zihao{-3} BEIJING, CHINA}\\
{\zihao{-3} \BUPT@value@englishdate}
\end{center}
\cleardoublepage}
%% Statement
\ifx\BUPT@value@confidential\@empty
\def\BUPT@label@authorizationcomment{本学位论文不属于保密范围,适用本授权书。}
\else
\def\BUPT@label@authorizationcomment{~}
\fi
%\BUPTunderline{40\p@}{\BUPT@value@confidentialtime}
\def\makestatement{%
\begin{center}
\bfseries \BUPT@label@innovationtitle
\end{center}\par
\vskip 5\p@
\BUPT@label@innovationparagraph
\vskip 15\p@
\BUPT@label@authorsignature\BUPTunderline{100\p@}{}\hfil\BUPT@label@issuedate\BUPTunderline{100\p@}{}
\vskip 55\p@
\begin{center}
\bfseries \BUPT@label@authorizationtitle
\end{center}\par
\vskip 5\p@
\BUPT@label@authorizationparagraph\par
\BUPT@label@authorizationcomment
\vskip 15\p@
\BUPT@label@authorsignature\BUPTunderline{100\p@}{}\hfil\BUPT@label@issuedate\BUPTunderline{100\p@}{}
\vskip 15\p@
\BUPT@label@supervisorsignature\BUPTunderline{100\p@}{}\hfil\BUPT@label@issuedate\BUPTunderline{100\p@}{}
\cleardoublepage}
%% Abstract
\newenvironment{cnabstract}{%
\chapter[\BUPT@label@abstract]{\BUPT@value@title}
\begin{center}
{\zihao{-3}\heiti\bfseries\centering\BUPT@label@abstract}
\end{center}\par
\vskip 25\p@}%
{}
\def\cnkeywords#1{%
\vspace{2ex}\noindent{\bfseries\BUPT@label@keywords}#1}
\newenvironment{enabstract}{%
\chapter[\BUPT@label@englishabstract]{\zihao{3}\BUPT@value@englishtitle}
\begin{center}
{\zihao{-3}\bfseries\centering\BUPT@label@englishabstract}
\end{center}\par
\vskip 25\p@}%
{}
\def\enkeywords#1{%
\vspace{2ex}\noindent{\bfseries\BUPT@label@englishkeywords}~~#1}
%% Nomenclature
\def\BUPT@value@longestnomenclature{$BUPTBUPTBUPT$}
\def\BUPTlongestlength#1{\setkeys{longestlength}{#1}}
\define@key{longestlength}{nomenclature}{\def\BUPT@value@longestnomenclature{#1}}
\newenvironment{nomenclature}[1][\BUPT@label@nomenclature]{%
\chapter{#1}
\begin{IEEEdescription}[\IEEEsetlabelwidth{\BUPT@value@longestnomenclature}\IEEEusemathlabelsep]}%
{\end{IEEEdescription}}
\newlength\defaultlongestnomenclaturelen
\settowidth\defaultlongestnomenclaturelen{$BUPTBUPTBUPT$}
\typeout{-- Default longest nomenclature length is \defaultlongestnomenclaturelen.}
%% Abbreviation
\def\BUPT@value@longestabbreviation{BUPTBUPTBUPT}
\define@key{longestlength}{abbreviation}{\def\BUPT@value@longestabbreviation{#1}}
\newenvironment{abbreviation}[1][\BUPT@label@abbreviation]{%
\chapter{#1}
\begin{IEEEdescription}[\IEEEsetlabelwidth{\BUPT@value@longestabbreviation}]}%
{\end{IEEEdescription}}
\newlength\defaultlongestabbreviationlen
\settowidth\defaultlongestabbreviationlen{BUPTBUPTBUPT}
\typeout{-- Default longest abbreviation length is \defaultlongestabbreviationlen.}
%% Appendix
%\newenvironment{appendix}[1][\BUPT@label@appendix]{\chapter{#1}}{}
%% Acknowledgement
\newenvironment{acknowledgement}[1][\BUPT@label@acknowledgement]{\chapter{#1}}{}
%% Publication
\newenvironment{publication}[1][\BUPT@label@publications]{\chapter{#1}}{}
%% Hyperref package setup
\ifBUPT@option@electronic
\hypersetup{%
bookmarksopen=true,%
bookmarksnumbered=true,%
pdfpagemode={UseOutlines},%default
pdfstartview={FitH},%
colorlinks=true,%
citecolor={cyan},%
pdftitle={English Title of Thesis},%
pdfsubject={Beijing University of Posts and Telecommunications (BUPT) Thesis},%
pdfauthor={Author Name},%
pdfkeywords={BUPT, Thesis, LaTeX, Template}}
\fi
%% Extra definitions
\def\cemph#1{\textcolor{RubineRed}{#1}} % Emphasize with color RubineRed
\DeclareSIUnit{\belmilliwatt}{Bm}
\DeclareSIUnit{\belwatt}{BW}
\DeclareSIUnit{\dBm}{\deci\belmilliwatt}
\DeclareSIUnit{\dBW}{\deci\belwatt}
\DeclareSIUnit{\bitabbr}{b}
\DeclareSIUnit{\bits}{bits}
\DeclareSIUnit{\bytefull}{byte}
\DeclareSIUnit{\bytes}{bytes}
\DeclareSIUnit{\bps}{\bitabbr\per\second}
\DeclareSIUnit{\Bps}{\byte\per\second}
%% -----------------------------------------------------------------
%% Define uesr commands
\def\upperroman#1{\uppercase\expandafter{\romannumeral#1}}
\def\lowerroman#1{\romannumeral#1}
\def\myvec#1{\bm{\mathrm{#1}}}
%% -----------------------------------------------------------------
\endinput
%% End of file `buptthesis.cls'.