-
Notifications
You must be signed in to change notification settings - Fork 4
/
mathesis.sty
226 lines (197 loc) · 6.89 KB
/
mathesis.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
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
% Copyright 2017 John C. Bowman
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This style file is written according to the thesis requirements
% of the Faculty of Graduate Studies and Research at the University of Alberta
% The current maintainer of this work is John C. Bowman
% It is based on an earlier version by Hongtao Yang (September, 2000),
% with contributions from Matthew Emmett (2010) and updates by
% John C. Bowman (27Jan2017).
%
\typeout{A thesis style file for Department of Math & Stat Sciences,}
\typeout{University of Alberta written by Hongtao Yang}
\hfuzz4pt % don't bother to report over-full boxes if over-edge is < 4pt
% number equations within chapter. if equations want to be numbered within
% section,then you should use:
% \renewcommand{\theequation}{\thesection.\arabic{equation}}
% and should set equation counter to be 0 at the beginning of each section by
% \setcounter{equation}{0}
\renewcommand{\theequation}{\thechapter.\arabic{equation}}
% new if constructs: default conditions:
\newif\iffigurespage \figurespagetrue
\newif\iftablespage \tablespagetrue
\newif\ifsymbolspage \symbolspagetrue
\newif\iffieldofstudy \fieldofstudyfalse
\newif\ifdepartment \departmenttrue
\newif\iftwo@supervisors \two@supervisorsfalse
\newif\ifthird@committeemember \third@committeememberfalse
\newif\iffourth@committeemember \fourth@committeememberfalse
\newif\iffifth@committeemember \fifth@committeememberfalse
\renewcommand\contentsname{Table of Contents}
% Redefine \thebibliography to go to a new page and put an entry in the
% table of contents
\let\@ldthebibliography\thebibliography
\renewcommand{\thebibliography}[1]{%
\newpage
\addcontentsline{toc}{chapter}{Bibliography}
\@ldthebibliography{#1}
}
% Define \listfigures to list figures
\newcommand\listfigures{\figurespagetrue}
% Define \listtables to list tables
\newcommand\listtables{\tablespagetrue}
% Define \listsymbols to list symbols
\newcommand\listsymbolname{List of Symbols}
\newcommand\listsymbols{\symbolspagetrue}
% \author, \title are defined in report; here are the rest of the
% front matter defining macros
\def\gradyear#1{\gdef\@gradyear{#1}}
\def\fieldofstudy#1{\gdef\@fieldofstudy{#1}\fieldofstudytrue}
\def\department#1{\gdef\@department{#1}\departmenttrue}
\def\copyrightyear#1{\gdef\@copyrightyear{#1}} % \author, \title in report
\def\degree#1{\gdef\@degree{#1}}
\def\convocationdate#1{\gdef\@convocationdate{#1}}
\def\@title{}
\def\@convocationdate{}
\def\@author{}
\def\@gradyear{}
\def\@fieldofstudy{}
\def\@department{}
\def\supervisor#1{\gdef\@supervisor{#1}}
\def\cosupervisor#1{\gdef\@cosupervisor{#1}\two@supervisorstrue}
\def\firstcommitteemember#1{\gdef\@firstcommitteemember{#1}}
\def\secondcommitteemember#1{\gdef\@secondcommitteemember{#1}}
\def\thirdcommitteemember#1{
\gdef\@thirdcommitteemember{#1}
\third@committeemembertrue}
\def\fourthcommitteemember#1{
\gdef\@fourthcommitteemember{#1}
\fourth@committeemembertrue}
\def\fifthcommitteemember#1{
\gdef\@fifthcommitteemember{#1}
\fifth@committeemembertrue}
\def\@supervisor{}
\def\@cosupervisor{}
\def\@firstcommitteemember{}
\def\@secondcommitteemember{}
\def\@thirdcommitteemember{}
\def\@fourthcommitteemember{}
\def\@fifthcommitteemember{}
% title page
\def\titlepage{
\thispagestyle{empty}
\ \vskip12mm
% \begin{center}
% \includegraphics[width=0.5\linewidth]{Logo.pdf}
% \end{center}
\setbox0=\vbox{\begin{center}{\large\bf\@title}\end{center}}
\dimen0=\ht0
\box0
\vskip -2mm
\centerline{by}
\vskip 4mm
\centerline{\large\@author}
\vskip 42.5mm
\vskip -\dimen0
\centerline{A thesis submitted
%to the Faculty of Graduate Studies and Research
in partial fulfillment of the requirements for the degree of}
\vskip8mm
\centerline{\textbf{\large \@degree}}
\vskip3mm
\iffieldofstudy
\centerline{in}
\vskip3mm
\centerline{\textbf{\large \@fieldofstudy}}
\fi
\ifdepartment
\vskip22mm
\centerline{\large \@department}
\centerline{\bf University of Alberta}
\fi
\vskip 47mm
\centerline{\copyright\ \@author, \@convocationdate}
%% \vskip0.5cm
%% \footnotesize\noindent
%% Permission is hereby granted to the University of Alberta
%% Libraries to reproduce single copies of this thesis and to lend
%% or sell such copies for private, scholarly, or scientific
%% research purposes only. Where the thesis is converted to, or
%% otherwise made available in digital form, the University of
%% Alberta will advise potential users of the thesis of these
%% terms.
%% The author reserves all other publication and other rights in
%% association with the copyright in the thesis and, except as
%% herein before provided, neither the thesis nor any substantial
%% portion thereof may be printed or otherwise reproduced in any
%% material form whatsoever without the author's prior written
%% permission.
}
% signature page
\def\signaturepage{
\newpage
\centerline{\bf Supervisory Committee}
\vskip1in
\@supervisor\\\bigskip
\iftwo@supervisors
\@cosupervisor\\\bigskip
\fi
\@firstcommitteemember\\\bigskip
\@secondcommitteemember\\\bigskip
\ifthird@committeemember
\@thirdcommitteemember\\\bigskip
\fi
\iffourth@committeemember
\@fourthcommitteemember\\\bigskip
\fi
\iffifth@committeemember
\@fifthcommitteemember\\\bigskip
\fi
}
\newenvironment{dedication}{
\newpage
}{}
\renewenvironment{abstract}{
\newpage
\centerline{\large\bf Abstract}
\vskip0.5in
}{}
\newenvironment{acknowledgement}{
\newpage
\centerline{\large\bf Acknowledgements}
\vskip0.5in
}{}
\newenvironment{preface}{
\newpage
\centerline{\large\bf Preface}
\vskip0.5in
}{}
\def\mathstyle{
\noindent
{\tt\large This thesis is prepared by using the style file mathesis.sty
written by Hongtao Yang for {\rm \LaTeX} according to the requirement
of thesis format of the University of Alberta.}\vskip7in
\centerline{\large \@date}%
}
\def\listofsymbols{
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\listsymbolname
\@mkboth{\MakeUppercase\listsymbolname}
{\MakeUppercase\listsymbolnam}
}
\@starttoc{lof}
\if@restonecol\twocolumn\fi
}
% for thebibilography: books or papers written by the same author(s)
%\def\sameauthor{\leavevmode\vrule height 2pt depth -1.6pt width 23pt}