-
Notifications
You must be signed in to change notification settings - Fork 1
/
westernthesis.tex
executable file
·533 lines (467 loc) · 15.9 KB
/
westernthesis.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
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% University of Western Ontario Thesis Template
% 1. Initial version by: Justin Quinn Veenstra, 2010 with thanks to Mr. (soon to be Dr.) Will Robertson.
% 2. Adapted by: Dr. John Stuart Haberl Baxter, 2018 for his thesis.
% 3. Dr. Baxter's thesis converted to generic template by: Dr. Jonathan C. Lau, 2018.
\documentclass[hidelinks,12pt,oneside]{report}
%% Decomment next line to use PostScript fonts
%%\UsePackage{times}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% %%
%% *** I M P O R T A N T *** %%
%% %%
%% Fill in the following fields with the required information: %%
%% - \department{...} name of the graduate department %%
%% - \degree{...} name of the degree obtained %%
%% - \author{...} name of the author %%
%% - \title{...} title of the thesis %%
%% - \gyear{...} year of graduation %%
%% - \super{...} supervisor
%% - \firstname, \middlename, \lastname... there is additional documentation by the actual fields, so I'll leave it at that
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{appendix}
\usepackage{graphicx}
\usepackage[fleqn]{amsmath}
\usepackage[byname]{smartref}
\usepackage[]{amssymb}
\usepackage[font=small]{caption}
\usepackage[font=small]{subcaption}
\usepackage{setspace}
\usepackage{enumitem}
\usepackage{lmodern}
\newlength\longest
%\usepackage{lineno}%comment out for hardcopy
\usepackage{units}
\usepackage{txfonts}
\usepackage{tocloft}
\usepackage{tabularx}
\usepackage{longtable}
%\usepackage[sectionbib]{chapterbib}
\usepackage{hyperref} %comment out for hardcopy
\usepackage{txfonts}
\usepackage{tocloft}
\usepackage{color}
\usepackage{pdfpages}
\makeatletter
\numberwithin{figure}{chapter}
\newenvironment{acknowledgements}%
{\clearemptydoublepage
\begin{center}
\section*{Acknowledgements}
\end{center}
\begingroup
}{\newpage\endgroup}
\usepackage[boxruled,algochapter]{algorithm2e}
\DeclareMathOperator*{\argmin}{\operatorname{argmin}}
\DeclareMathOperator*{\Proj}{\operatorname{Proj}}
\DeclareMathOperator*{\dvg}{\operatorname{div}}
\newenvironment{dedication}%
{\clearemptydoublepage
\begin{center}
\section*{Dedication}
\end{center}
\begingroup
}{\newpage\endgroup}
\newenvironment{preliminary}%
{\pagestyle{plain}\pagenumbering{roman}}%
{\pagenumbering{arabic}}
\addtoreflist{chapter}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{axiom}{Axiom}
\newenvironment{proof}[1][Proof]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newenvironment{definition}[1][Definition]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newenvironment{example}[1][Example]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newenvironment{remark}[1][Remark]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newcommand{\qed}{\nobreak \ifvmode \relax \else
\ifdim\lastskip<1.5em \hskip-\lastskip
\hskip1.5em plus0em minus0.5em \fi \nobreak
\vrule height0.75em width0.5em depth0.25em\fi}
% Default values for title page.
%% To produce output with the desired line spacing, the argument of
%% \spacing should be multiplied by 5/6 = 0.8333, so that 1 1/2 spaced
%% corresponds to \spacing{1.5} and double spaced is \spacing{1.66}.
\def\normalspacing{1.66} % default line spacing
%% Define the "thesis" page style.
\if@twoside % If two-sided printing.
\def\ps@thesis{\let\@mkboth\markboth
\def\@oddfoot{}
\let\@evenfoot\@oddfoot
\def\@oddhead{
{\sc\rightmark} \hfil \rm\thepage
}
\def\@evenhead{
\rm\thepage \hfil {\sc\leftmark}
}
\def\chaptermark##1{\markboth{\ifnum \c@secnumdepth >\m@ne
Chapter \ \thechapter. \ \fi ##1}{}}
\def\sectionmark##1{\markright{\ifnum \c@secnumdepth >\z@
\thesection. \ \fi ##1}}}
\else % If one-sided printing.
\def\ps@thesis{\let\@mkboth\markboth
\def\@oddfoot{}
\def\@oddhead{
{\sc\rightmark} \hfil \rm\thepage
}
\def\chaptermark##1{\markright{\ifnum \c@secnumdepth >\m@ne
Chapter\ \thechapter. \ \fi ##1}}}
\fi
\if@twoside % If two-sided printing.
\def\ps@appendix{\let\@mkboth\markboth
\def\@oddfoot{}
\let\@evenfoot\@oddfoot
\def\@oddhead{
{\sc\rightmark} \hfil \rm\thepage
}
\def\@evenhead{
\rm\thepage \hfil {\sc\leftmark}
}
\def\chaptermark##1{\markboth{\ifnum \c@secnumdepth >\m@ne
Appendix \ \thechapter. \ \fi ##1}{}}
\def\sectionmark##1{\markright{\ifnum \c@secnumdepth >\z@
\thesection. \ \fi ##1}}}
\else % If one-sided printing.
\def\ps@thesis{\let\@mkboth\markboth
\def\@oddfoot{}
\def\@oddhead{
{\sc\rightmark} \hfil \rm\thepage
}
\def\chaptermark##1{\markright{\ifnum \c@secnumdepth >\m@ne
Chapter\ \thechapter. \ \fi ##1}}}
\fi
\pagestyle{thesis}
% Set up page layout.
\setlength{\textheight}{9in} % Height of the main body of the text
\setlength{\topmargin}{-.5in} % .5" margin on top of page
\setlength{\headsep}{.5in} % space between header and top of body
\addtolength{\headsep}{-\headheight} % See The LaTeX Companion, p 85
\setlength{\footskip}{.5in} % space between footer and bottom of body
\setlength{\textwidth}{6.25in} % width of the body of the text
\setlength{\oddsidemargin}{.25in} % 1.25" margin on the left for odd pages
\setlength{\evensidemargin}{0in} % 1.25" margin on the right for even pages
% Marginal notes
\setlength{\marginparwidth}{.75in} % width of marginal notes
\setlength{\marginparsep}{.125in} % space between marginal notes and text
% Make each page fill up the entire page. comment this out if you
% prefer.
\flushbottom
\setcounter{tocdepth}{3} % Number the subsubsections
\def\normalspacing{1.66} % default line spacing
\newcommand\isco[1]{%
\edef\@tempa{#1}%
\def\@tempb{}%
\ifx\@tempa\@tempb
\else \\\underline{Co-Supervisor:}\vspace{0.35in}\\\dots\dots\dots\dots\dots\dots\dots\\{#1}\\
\fi
}
\newcommand\isjoint[1]{%
\edef\@tempa{#1}%
\def\@tempb{}%
\ifx\@tempa\@tempb
\else \\\underline{Joint Supervisor:}\vspace{0.35in}\\\dots\dots\dots\dots\dots\dots\dots\\{#1}\\
\fi
}
\newcommand\isalt[1]{%
\edef\@tempa{#1}%
\def\@tempb{}%
\ifx\@tempa\@tempb
\else \\\underline{Alternate Supervisor:}\vspace{0.35in}\\\dots\dots\dots\dots\dots\dots\dots\\{#1}\\
\fi
}
\newcommand\isdefinedsig[1]{%
\edef\@tempa{#1}%
\def\@tempb{}%
\ifx\@tempa\@tempb
\else \\ \dots\dots\dots\dots\dots\dots\dots\\{#1}\\
\fi
}
\newcommand\isdefinedspinetitle[1]{%
\edef\@tempa{#1}%
\def\@tempb{}%
\ifx\@tempa\@tempb
\else (Spine title: #1)\\
\fi
}
\newcommand\coauthor[1]{%
\edef\@tempa{#1}%
\def\@tempb{}%
\ifx\@tempa\@tempb
\else \newpage \Large Co-Authorship Statement\normalsize\\\indent\\#1\\
\fi
}
\newcommand\acknowlege[1]{%
\edef\@tempa{#1}%
\def\@tempb{}%
\ifx\@tempa\@tempb
\else \newpage \Large Acknowledgements\normalsize\\\indent\\#1\newpage
\fi
}
%\renewcommand{\appendixtocname}{\Huge \textbf{List of Appendices} \normalsize}
\newcommand{\blank}{\hspace{-2mm}}
\newcommand{\super}{Dr. Supervisor1} %supervisor
\newcommand{\superj}{Dr. Supervisor2} %joint supervisor, if there is one, leave blank if not (lbin)... only one of the three.
\newcommand{\superc}{} %co-supervisor, if there is one, leave blank if not (lbin)
\newcommand{\supera}{} %alternate supervisor, if there is one, leave blank if not (lbin)
\newcommand{\scoa}{Dr. Committee1} %member of supervisory committee
\newcommand{\scob}{Dr. Committee2} %member of supervisory committee
\newcommand{\scoc}{Dr. Committee3} %member of supervisory committee
\newcommand{\sct}{} %other member of supervisory committee (lbin)
\newcommand{\examo}{Dr. Examiner1} %examining committee (up to four, if less leave blank)
\newcommand{\examt}{Dr. Examiner2}
\newcommand{\examth}{Dr. Examiner3}
\newcommand{\examf}{Dr. Examiner4}
\newcommand{\department}{Department of []}
\newcommand{\degree}{Doctor of Philosophy}
\newcommand{\firstname}{Firstname}
\newcommand{\middlename}{Middleinitial}
\newcommand{\lastname}{Lastname}
%\renewcommand{\author}[1]{\ifx\empty#1\else\gdef\@author{#1}\fi}
\newcommand{\authorname}{{\firstname} {\middlename} {\lastname}}
\newcommand{\titl}{Thesis Title}
\newcommand{\spinetitle}{}%only if the above is more than 60 characters
\newcommand{\thesisformat}{Integrated Article} %or Monograph
\newcommand{\gyear}{\number\year}
\newcommand{\makecoauthor}{}
\newcommand{\makeacknowlege} {
%Type in acknowlegements here
}
\newcommand{\listappendixname}{List of Appendices}
\newlistof{myappendices}{app}{\listappendixname}
\newcommand{\myappendices}[1]{%
\addcontentsline{app}{myappendices}{#1}\par}
\renewcommand{\maketitle}
{\begin{titlepage}
\setcounter{page}{1}
%% Set the line spacing to 1 for the title page.
%\begin{spacing}{1}
\begin{large}
\begin{center}
\mbox{}
\vfill
{\MakeUppercase{\titl}}\\
\isdefinedspinetitle{\spinetitle}
(Thesis format: \thesisformat)\\
\vfill
by \\
\vfill
{\firstname{} \middlename } \underline{\lastname}\\
\vfill
Graduate Program in {\department}\\
\vfill
A thesis submitted in partial fulfillment\\
of the requirements for the degree of\\
\degree\\
\vfill
The School of Graduate and Postdoctoral Studies\\
The University of Western Ontario\\
London, Ontario, Canada\\
\vfill
{\copyright} {\authorname} {\gyear} \\
\vspace*{.2in}
\end{center}
\end{large}
% \end{spacing}
\end{titlepage}
}%\maketitle
\newcommand{\makecert}{
\setcounter{page}{2}
\vfill
\begin{center}
\large
THE UNIVERSITY OF WESTERN ONTARIO\\
School of Graduate and Postdoctoral Studies\\
\vfill
\textbf{CERTIFICATE OF EXAMINATION}
\end{center}
\vfill
\begin{table}[ht]
\begin{minipage}[t]{0.5\linewidth} %tabular instead?
\begin{tabular}{l}
\underline{Supervisor:}\vspace{0.35in}
\isdefinedsig{\super}
\isco{\superc}
\isjoint{\superj}
\isalt{\supera}
\\
%\underline{Supervisory Committee:}\vspace{0.35in}
%\isdefinedsig{\scoa}\vspace{0.15in}
%\isdefinedsig{\scob}\vspace{0.15in}
%\isdefinedsig{\scoc}\vspace{0.15in}
%\isdefinedsig{\sct}
\end{tabular}
\vfill
\end{minipage}
\hspace{0.5in}
\begin{minipage}[t]{0.5\linewidth}
\begin{tabular}{l}
\underline{Examiners:} \\\vspace{.5cm}
\isdefinedsig{\examo}\\
\isdefinedsig{\examt}\\
\isdefinedsig{\examth}\\
\isdefinedsig{\examf}
\end{tabular}
\vfill
\end{minipage}
\vfill
\end{table}
\vfill
\begin{center}
The thesis by \\ \vfill
\textbf{\firstname{} \middlename{} \underline{\lastname}}\\
\vfill
entitled:\\\vfill
\textbf{\titl}\\\vfill
is accepted in partial fulfillment of the \\
requirements for the degree of\\
\degree\\
\end{center}
\begin{table}[ht]
\begin{minipage}[t]{0.5\linewidth}
\begin{tabular}{l}
\dots\dots\dots\dots\dots\\
Date
\end{tabular}
\end{minipage}
\hspace{0.5in}
\begin{minipage}[t]{0.5\linewidth}
\begin{tabular}{l}
\dots\dots\dots\dots\dots\dots\dots\dots\dots\dots\\
Chair of the Thesis Examination Board
\end{tabular}
\end{minipage}
\end{table}
}
\makeatother
\begin{document}
%% *** NOTE ***
%% You should put all of your '\newcommand', '\newenvironment', and
%% '\newtheorem's (in other words, all the global definitions that you
%% will need throughout your thesis) in a separate file and use
%% "\input{filename}" to input it here.
%% This sets the page style and numbering for preliminary sections.
\begin{preliminary}
%% This generates the title page from the information given above.
\maketitle
%\addcontentsline{toc}{chapter}{Certificate of Examination}
%\makecert
\newpage
%\addcontentsline{toc}{chapter}{Co-Authorship Statement}
%\coauthor{\makecoauthor} %comment this out if none
%\newpage
%\addcontentsline{toc}{chapter}{Acknowlegements}
%\acknowlege{\makeacknowlege} %as above
\setcounter{page}{2}
\addcontentsline{toc}{chapter}{Abstract}
\Large\begin{center}\textbf{Abstract}\end{center}\normalsize
%% *** Put your Abstract here. ***
%% (150 words for M.Sc. and 350 words for Ph.D.)
\input{abstract}
\vfill
\noindent\textbf{Keywords:} keyword 1, keyword 2, keyword 3.
\newpage
\clearpage
\thispagestyle{empty}
\null\vfill
{
\settowidth\longest{\Large\itshape Planning to write is not writing. Outlining, researching,}
\centering
\hspace{3cm}\parbox{\longest}{%
\raggedright{\Large\itshape%
Planning to write is not writing. Outlining, researching, talking to people about what you’re doing, none of that is writing. Writing is writing.\par\bigskip
}
\raggedleft\MakeUppercase{E. L. Doctorow}\par%
\raggedleft\MakeUppercase{\textit{Some book}}\par%
}}
\vfill\vfill
\newpage
\addcontentsline{toc}{chapter}{Acknowledgments}
\Large\begin{center}\textbf{Acknowledgments}\end{center}\normalsize
\input{acknowledgements}
\vfill
\newpage
\singlespacing
%% *** Put your Abstract here. ***
%% (150 words for M.Sc. and 350 words for Ph.D.)
\tableofcontents\newpage
\newpage
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures
\newpage
\addcontentsline{toc}{chapter}{List of Algorithms}
\listofalgorithms
\addtocontents{loa}{\def\string\figurename{Algorithm}}
\newpage
\addcontentsline{toc}{chapter}{List of Tables}
\listoftables
\newpage
\addcontentsline{toc}{chapter}{List of Appendices}
\listofmyappendices\newpage
\addcontentsline{toc}{chapter}{List of Abbreviations, Symbols, and Nomenclature}
\Large \textbf{List of Abbreviations, Symbols, and Nomenclature} \normalsize
\begin{tabular}{lcl}
\\
\multicolumn{3}{l}{\textbf{Terminology}}\\
CNR & & Contrast-to-noise ratio \\
SNR & \, & Signal-to-noise ratio \\
\\
\multicolumn{3}{l}{\textbf{Medical Imaging Terminology}}\\
CT & \, & Computed Tomography \\
MRI & \, & Magnetic Resonance Imaging \\
QSM & \, & Quantitative Susceptibility Mapping \\
\\
\multicolumn{3}{l}{\textbf{Terms Introduced by this Thesis}}\\
$\mathbb{ABC}$ && ABC \\
DEF & \, & DEF \\
\end{tabular}
\newpage
\clearpage
\addcontentsline{toc}{chapter}{Preface}
\Large\begin{center}\textbf{Preface}\end{center}\normalsize
\onehalfspacing
\input{preface}
\newpage
\end{preliminary}
%% End of the preliminary sections: reset page style and numbering.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% %%
%% *** I M P O R T A N T *** %%
%% %%
%% Put your Chapters here; the easiest way to do this is to keep each %%
%% chapter in a separate file and \include all the files right here. %%
%% Note that each chapter file should start with the line %%
%% "\chapter{ChapterName}". Note that using "\include" instead of %%
%% "\input" makes each chapter start on a new page. %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\onehalfspacing
\input{chapter_intro}
\input{chapter_example}
\input{chapter_conc}
%Appendices.
\begin{appendices}
%\pagestyle{appendix}
\input{app_example}
\input{app_ethics}
\input{app_copyright}
\end{appendices}
\newpage
\singlespacing
%% This adds a line for the Bibliography in the Table of Contents.
\addcontentsline{toc}{chapter}{Bibliography}
%% *** Set the bibliography style. ***
\bibliographystyle{plain} % (change according to your preference)
%%% *** Set the bibliography file. ***
\bibliography{westernthesis}{}
%% *** NOTE ***
%% If you don't use bibliography files, comment out the previous line
%% and use \begin{thebibliography}...\end{thebibliography}. (In that
%% case, you should probably put the bibliography in a separate file
%% and \include or \input it here).
%CV only relevant stuff... not full CV.
\include{curriculum_vitae}
\end{document}