forked from hqqasw/CUHK-thesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
thesis.sty
132 lines (106 loc) · 2.48 KB
/
thesis.sty
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
\def\degree#1{\def\degree{#1}}
\def\programme#1{\def\programme{#1}}
\def\supervisor#1{\def\supervisor{#1}}
\def\thesistitle#1{\def\thesistitle{#1}}
\def\authorname#1{\def\authorname{#1}}
\def\submitdate#1{\def\submitdate{#1}}
\def\institution{The Chinese University of Hong Kong}
\def\coverpage{
% no page number for the cover page
\thispagestyle{empty}
\vspace*{2cm}
\begin{center}
\Huge {\bf \thesistitle}
\vskip 1cm
\Large {\bf \authorname}
\vskip 1cm
\large
% both Fulfilment and Fulfillment are correct
A Thesis Submitted in Partial Fulfilment \\
of the Requirements for the Degree of \\
\degree \\
in \\
\programme \\
\vskip 1cm
%\large Supervised by \\
\vskip 0.5cm
%\large {\bf \supervisor}
\vskip 1cm
\large
\institution \\
\submitdate
\end{center}
\vfill
\noindent
%\institution~holds the copyright of this thesis.
%Any person(s) intending to use a part or whole of the materials in the thesis
%in a proposed publication must seek copyright release from the Dean of the
%Graduate School.
\newpage
}
%=======================================================
\def\abstractpage{
\addcontentsline{toc}{chapter}{Abstract}
\vspace*{2cm}
\large \noindent
Abstract of thesis entitled: \\
\indent \thesistitle \\
Submitted by \authorname \\
for the degree of \degree \\
at \institution~in \submitdate
\vskip 1cm \noindent
\input{abstract.tex}
\newpage
}
%=======================================================
\def\acknowledgementpage{%
\chapter*{Acknowledgement}
\addcontentsline{toc}{chapter}{Acknowledgement}
\input{acknowledgement.tex}
\newpage
}
%=======================================================
\def\dedicationpage{%
\vspace*{1cm}
\vfill
\begin{center}
\input{dedication.tex}
\end{center}
\vfill
\newpage
}
%=======================================================
\newcommand{\note}[2]{%
%\vspace*{3mm}
\begin{center}
\framebox[13cm][t]{%
\hspace*{3mm}
\parbox[t]{12cm}{%
\vspace*{2mm}
\centerline{\bf #1}\vspace*{-2mm}
\rule{12cm}{0.5mm}
\\#2
}
}
\end{center}
\vspace*{3mm}
}
\newcounter{mydefcounter}[chapter]
\newcommand{\mydef}[1]{%
\stepcounter{mydefcounter}
\note{Definition \thechapter.\themydefcounter}{#1}
}
\newcommand{\ill}[1]{%
\vspace*{5mm}
\noindent{\bf $\equiv$ #1}
\vspace*{5mm}
}
\newcommand{\chapterend}{
\vfill
\noindent\rule{\textwidth}{0.5mm} \\
\noindent{\large\bf $\Box$ End of chapter.}
}
\newcommand{\reading}[1]{
\vfill
\noindent {\bf $\equiv$ Readings:} #1
}