-
Notifications
You must be signed in to change notification settings - Fork 13
/
ConcordiaU.sty
311 lines (288 loc) · 11.7 KB
/
ConcordiaU.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
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
\everyjob{\typeout{Concordia University Thesis Style, Steve Malowany <10 Jan 1992>}}
\everyjob{\typeout{\space\space\space\space\space\space\space\space\space\space
\space\space\space\space\space\space\space\space\space\space\space
\space\space\space\space\space revised by Stan Swiercz <28 Mar 1995>}}
\everyjob{\typeout{\space\space\space\space\space\space\space\space\space\space
\space\space\space\space\space\space\space\space\space\space\space
\space\space\space revised by Patrice Chalin <12 Sep 1995>}}
\everyjob{\typeout{\space\space\space\space\space\space\space\space\space\space
\space\space\space\space\space\space\space\space\space\space\space
\space\space\space\space\space revised by Stan Swiercz <24 Sep 1996>}}
\immediate\write10{Concordia University Thesis Style, Steve Malowany <10 Jan 1992>}
\immediate\write10{\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space revised by Stan Swiercz <28 Mar 1995>}
\immediate\write10{\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space revised by Patrice Chalin <12 Sep 1995>}
\immediate\write10{\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space revised by Stan Swiercz <24 Sep 1996>}
\immediate\write10{\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space\space revised by Suo Tan <20 Oct 2015>}
% ---------------------------------------------------------------------------------------------
% A LaTeX 2e Style Sheet for the Concordia University Thesis
% - Refined and updated to modern requirements
%
% by Suo Tan (tandysony@gmail.com)
% Design Lab, ENCS
% Concordia University
% Montreal, QC, CA
% Oct. 20, 2015
% ---------------------------------------------------------------------------------------------
% require report
\@ifundefined{chapter}{\@latexerr{Please use 'report' document style}}{}
\makeatletter
\oddsidemargin 0.5in
\evensidemargin 0.5in
\marginparwidth 40pt
\marginparsep 10pt
\topmargin 0in
\headsep 0in %-0.1 topmargin
\textheight 8.75in
\textwidth 6in %9in textheight
\brokenpenalty=10000
\usepackage{times}
% for figures & tables numbered in the conventional report style (chapter.number)
% comment the above 3 lines and uncomment the following line:
\def\cl@chapter{\@elt{section}\@elt{footnote}\@elt{figure}\@elt{table}}
\def\theequation{\arabic{equation}}
\def\chairOfCommittee#1{\gdef\@chairOfCommittee{#1}}
\def\examinerFirstOfCommittee#1{\gdef\@examinerFirstOfCommittee{#1}}
\def\examinerSecondOfCommittee#1{\gdef\@examinerSecondOfCommittee{#1}}
\def\examinerExternalOfCommittee#1{\gdef\@examinerExternalOfCommittee{#1}}
\def\deanOfENCS#1{\gdef\@deanOfENCS{#1}}
\def\chairOfDept#1{\gdef\@chairOfDept{#1}}
\def\program#1{\gdef\@program{#1}}
\def\program#1{\gdef\@program{#1}}
\def\mastersDegree#1{\gdef\@mastersDegree{#1}}
\def\dept#1{\gdef\@dept{#1}}
\def\myCoSupervisor#1{\gdef\@myCoSupervisor{#1}}
\def\advis@r{Adviser}
\def\principaladvisor#1{\gdef\@principaladvisor{#1}\gdef\advis@r{Advisor}}
\def\submitdate#1{\gdef\@submitdate{#1}}
\def\copyrightyear#1{\gdef\@copyrightyear{#1}} % \author, \title in report
%
% If your name contains accents then you must use for example
% \a'{a} instead of \'{a}
%
\def\@title{A \LaTeX{} Thesis Template for ENCS Graduate Student from Concordia University}
\def\@author{Suo Tan}
\def\@mastersDegree{Master of Applied Science}
\def\@program{}\def\@dept{Mechanical and Industrial Engineering}
\def\@principaladviser{Yong Zeng}
\def\@deanOfENCS{Amir Asif}
\def\@chairOfDept{Martin D. Pugh}
\def\@chairOfCommittee{}
\def\@examinerFirstOfCommittee{}
\def\@examinerSecondOfCommittee{}
\def\@examinerExternalOfCommittee{}
\def\@submitdate{\ifcase\the\month\or
January\or February\or March\or April\or May\or June\or
July\or August\or September\or October\or November\or December\fi
\space \number\the\year}
\ifnum\month=12
\@tempcnta=\year \advance\@tempcnta by 1
\edef\@copyrightyear{\number\the\@tempcnta}
\else
\def\@copyrightyear{\number\the\year}
\fi
\newif\ifcopyright \newif\iffigurespage \newif\iftablespage
\copyrighttrue \figurespagetrue \tablespagetrue
% \titeOfPhDAuthor is to be set to Mr. or Mrs., etc.
\def\titleOfPhDAuthor#1{\gdef\@titleOfPhDAuthor{#1}}
\newif\ifphd % if not PhD then Masters
\def\PhDDegree{Doctor of Philosophy}
\def\PhD{\phdtrue}
\let\phd\PhD
\def\Masters{\phdfalse}
\let\masters\Masters
\let\Master\Masters
\let\master\Masters
\Masters % by default
\newif\ifcosupervisor
\let\cosupervisor\cosupervisortrue
\cosupervisorfalse
\def\titlep{%
\thispagestyle{empty}%
\null\vskip.4in%
\begin{center}
\begin{singlespace}
% {\Large\uppercase\expandafter{\@title}}
%% NO uppercase on the cover page according to the exmaple
%% provided by Concordia university. Suo Tan, Oct 20, 2015
\LARGE\bf\expandafter{\@title}
\end{singlespace}
\end{center}
\vskip.5in
\begin{center}
\bf \@author
\end{center}
\vskip.5in
\begin{center}
\bf A Thesis\\
in\\
The Department\\
of\\
\expandafter{\@dept}\\
\end{center}
\vskip.5in
\begin{center}
\bf Presented in Partial Fulfillment of the Requirements\\
for the Degree of\\
\ifphd\PhDDegree~(\@program)\else \@mastersDegree~(\@program)\fi \ at \\
Concordia University\\
Montr\'{e}al, Qu\'{e}bec, Canada
\end{center}
\vskip.6in
\begin{center}
\bf \@submitdate\\
\vskip.4in
\copyright \ {\@author}, \@copyrightyear
\end{center}\vskip.5in\newpage}
\long\def\phdsignature#1{%
\begin{center}
\begin{minipage}{4in}
\parindent=0pt
\begin{singlespace}
I certify that I have read this thesis and that in my opinion
it is fully adequate, in scope and in quality, as a dissertation for the degree
of Doctor of Philosophy.
\par
\vspace{.5in}
\hbox to 4in{\hfil\shortstack{\vrule width 3in height 0.4pt\\#1}}
\end{singlespace}
\end{minipage}
\end{center}}
\def\signaturepage{%
\begin{center}
{\Large \sc Concordia University}\\
{\large School of Graduate Studies}
\end{center}
\vspace{.2in}
This is to certify that the thesis prepared
\begin{tabbing}
\hspace*{1.2in} \= \kill
By: \> \bf \ifphd\@titleOfPhDAuthor~\fi\@author \\
Entitled: \> \parbox[t]{4.6in}{ \bf \@title \strut}
\end{tabbing}
and submitted in partial fulfillment of the requirements for the degree of
\begin{center}
\bf \ifphd\PhDDegree~(\@program)\else \@mastersDegree ~(\@program)\fi
\end{center}
complies with the regulations of this University and meets the
accepted standards with respect to originality and quality.
\ \\
Signed by the Final Examining Committee:\\
\begin{singlespace}
\noindent \hspace*{3cm} \hrulefill \makebox[4cm][l]{ Chair} \\
\hspace*{3cm} \raisebox{.1cm}{\makebox[4cm][l]{\it Dr. \@chairOfCommittee}} \\
\newline
\hspace*{3cm} \hrulefill \makebox[4cm][l]{ External Examiner} \\
\hspace*{3cm} \raisebox{.1cm}{\makebox[4cm][l]{\it Dr. \@examinerExternalOfCommittee}} \\
\newline
\hspace*{3cm} \hrulefill \makebox[4cm][l]{ Examiner} \\
\hspace*{3cm} \raisebox{.1cm}{\makebox[4cm][l]{\it Dr. \@examinerFirstOfCommittee}} \\
\ifphd%
\newline
\hspace*{3cm} \hrulefill \makebox[4cm][l]{ Examiner} \\
\hspace*{3cm} \raisebox{.1cm}{\makebox[4cm][l]{\it Dr. \@examinerSecondOfCommittee}} \\
\fi%
\newline
\hspace*{3cm} \hrulefill \makebox[4cm][l]{ Supervisor}\\
\hspace*{3cm} \raisebox{.1cm}{\makebox[4cm][l]{\it Dr. \@principaladvisor}} \\
\ifcosupervisor%
\newline
\hspace*{3cm} \hrulefill \makebox[4cm][l]{ Co-supervisor}\\
\hspace*{3cm} \raisebox{.1cm}{\makebox[4cm][l]{\it Dr. \@myCoSupervisor}} \\
\fi%
\ \\
\newline
Approved by \hspace*{.7cm} \makebox[4.5in]{\hrulefill} \\
\hspace*{3cm} \raisebox{.1cm}{\parbox[t]{4in}{\@chairOfDept, Chair \\ Department of \@dept}} \\
\vspace{.2in}
\begin{tabbing}
\hspace*{6.5cm} \= \kill
\makebox[1.2in]{\hrulefill } \the\year \> \makebox[3.13in][l]{\hrulefill} \\
\> \raisebox{.1cm}{\parbox[t]{4in}{\@deanOfENCS, Dean \\
Faculty of Engineering and Computer Science}}
\end{tabbing}
\end{singlespace}
}
\def\beforepreface{
\pagenumbering{roman}
\pagestyle{plain}
\thispagestyle{empty}
\titlep
\thispagestyle{empty}
\signaturepage}
\def\mastersabstract{%
\thispagestyle{empty}
\newpage
\null\vskip.25in%
\begin{center}
{\LARGE\bf{Abstract}}
\end{center}
\vskip.25in
\begin{center}
% The following line added extra vertical spacing in titles with more
% than 2 lines. Changed September 24, 1996.
% {\large\expandafter{\@title}}
\begin{singlespace}
\large\expandafter{\@title}
\end{singlespace}
\end{center}
\begin{center}
\@author\\ \null
\end{center}
\ \indent
% \addcontentsline{toc}{chapter}{Abstract}
}
\def\phdabstract{%
\newpage
\null\vskip.25in%
\begin{center}
{\LARGE\bf{Abstract}}
\end{center}
\vskip.25in
\begin{center}
\begin{singlespace}
{\expandafter{\bf \@title}}
\end{singlespace}
\end{center}
\textbf{\@author, Ph.D. \\ Concordia University, \@copyrightyear\\} \null \\ \indent
% \addcontentsline{toc}{chapter}{Abstract} % no longer acceptable
}
\def\prefacesection#1{%
\chapter*{#1}
% \addcontentsline{toc}{chapter}{#1}
}
\def\afterpreface{\newpage
\tableofcontents
\newpage
\iffigurespage
\addcontentsline{toc}{chapter}{List of Figures} % list of figures
{\addvspace{10pt}
\let\saveaddvspace=\addvspace
\def\addvspace##1{}
\let\oldnumberline\numberline%
\renewcommand{\numberline}{\figurename~\oldnumberline}%
\listoffigures
\let\addvspace=\saveaddvspace}
\newpage
\fi
\iftablespage
\addcontentsline{toc}{chapter}{List of Tables} % list of tables
{\addvspace{10pt}
\let\saveaddvspace=\addvspace
\def\addvspace##1{}
\let\oldnumberline\numberline%
\renewcommand{\numberline}{\tablename~\oldnumberline}
\listoftables
\let\addvspace=\saveaddvspace}
\newpage
\fi
\pagenumbering{arabic}
% \pagestyle{headings}} % no longer acceptable
}
\renewenvironment{abstract}
{\beforepreface
\ifphd\phdabstract\else\mastersabstract\fi}
{}
\newenvironment{acknowledgments}
{\prefacesection{Acknowledgments}}
{\afterpreface}
\makeatother