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
|
%%
%% This is file `ryethesis.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% ryethesis.dtx (with options: `class')
%%
%% This is a generated file.
%%
%% Copyright (C) 2009 by Jason V. Lassaline <jvl@ryerson.ca>
%%
%% This file may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.2 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.2 or later is part of all distributions of LaTeX version
%% 1999/12/01 or later.
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{ryethesis}
[2014/05/09 v1.36 Ryerson University thesis class definition]
\RequirePackage{ifthen}
\RequirePackage{fancyhdr}
\RequirePackage{setspace}
\RequirePackage{vmargin}
\newboolean{@ryedraft} \setboolean{@ryedraft}{false} % not draft == final
\newboolean{@ryelistoftables} \setboolean{@ryelistoftables}{true}
\newboolean{@ryelistofplates} \setboolean{@ryelistofplates}{false}
\newboolean{@ryelistoffigures} \setboolean{@ryelistoffigures}{true}
\newboolean{@ryelistofillustrations} \setboolean{@ryelistofillustrations}{false}
\newboolean{@ryelistofappendices} \setboolean{@ryelistofappendices}{true}
\newboolean{@ryehyperref} \setboolean{@ryehyperref}{true}
\newboolean{@ryenomenclature} \setboolean{@ryenomenclature}{false}
\newboolean{@ryeglossary} \setboolean{@ryeglossary}{false}
\newboolean{@ryeindex} \setboolean{@ryeindex}{false}
\DeclareOption*{%
\PassOptionsToClass{\CurrentOption}{book}
}
\DeclareOption{draft}{
\typeout{Ryerson-Thesis Class Option: `draft'}
\ExecuteOptions{10pt,oneside}
\PassOptionsToClass{draft,oneside}{book}
\setboolean{@ryedraft}{true}
}
\DeclareOption{review}{
\typeout{Ryerson-Thesis Class Option: `review'}
\ExecuteOptions{10pt,oneside}
\PassOptionsToClass{final,oneside}{book}
\setboolean{@ryedraft}{false}
}
\DeclareOption{final}{
\typeout{Ryerson-Thesis Class Option: `final'}
\ExecuteOptions{10pt,twoside}
\PassOptionsToClass{final,twoside}{book}
\setboolean{@ryedraft}{false}
}
\DeclareOption{lof}{
\typeout{Ryerson-Thesis Class Option: `lof' Enabling List of Figures}
\setboolean{@ryelistoffigures}{true}
}
\DeclareOption{nolof}{
\typeout{Ryerson-Thesis Class Option: `nolof' Disabling List of Figures}
\setboolean{@ryelistoffigures}{false}
}
\DeclareOption{lop}{
\typeout{Ryerson-Thesis Class Option: `lop' Enabling List of Plates}
\setboolean{@ryelistofplates}{true}
}
\DeclareOption{nolop}{
\typeout{Ryerson-Thesis Class Option: `nolop' Disabling List of Plates}
\setboolean{@ryelistofplates}{false}
}
\DeclareOption{loi}{
\typeout{Ryerson-Thesis Class Option: `loi' Enabling List of Illustrations}
\setboolean{@ryelistofillustrations}{true}
}
\DeclareOption{noloi}{
\typeout{Ryerson-Thesis Class Option: `noloi' Disabling List of Illustrations}
\setboolean{@ryelistofillustrations}{false}
}
\DeclareOption{lot}{
\typeout{Ryerson-Thesis Class Option: `lot' Enabling List of Tables}
\setboolean{@ryelistoftables}{true}
}
\DeclareOption{nolot}{
\typeout{Ryerson-Thesis Class Option: `nolot' Disabling List of Tables}
\setboolean{@ryelistoftables}{false}
}
\DeclareOption{loa}{
\typeout{Ryerson-Thesis Class Option: `loa' Enabling List of Appendices}
\setboolean{@ryelistofappendices}{true}
}
\DeclareOption{noloa}{
\typeout{Ryerson-Thesis Class Option: `noloa' Disabling List of Appendices}
\setboolean{@ryelistofappendices}{false}
}
\DeclareOption{nohyperref}{
\typeout{Ryerson-Thesis Class Option: `nohyperref' Do not include hyperref}
\setboolean{@ryehyperref}{false}
}
\DeclareOption{los}{
\typeout{Ryerson-Thesis Class Option: `los' Enabling Nomenclature}
\typeout{*********************************************************************}
\typeout{}
\typeout{ Use: makeindex filename.nlo -s nomencl.ist -o filename.nls }
\typeout{ where filename is the root file name of the TeX source file.}
\typeout{}
\typeout{*********************************************************************}
\setboolean{@ryenomenclature}{true}
}
\DeclareOption{nolos}{
\typeout{Ryerson-Thesis Class Option: `nolos' Disabling Nomenclature}
\setboolean{@ryenomenclature}{false}
}
\DeclareOption{glossary}{
\typeout{Ryerson-Thesis Class Option: `glossary' Enabling Glossary}
\typeout{*********************************************************************}
\typeout{}
\typeout{ Use: makeglossaries filename }
\typeout{ where filename is the root file name of the TeX source file.}
\typeout{}
\typeout{*********************************************************************}
\setboolean{@ryeglossary}{true}
}
\DeclareOption{noglossary}{
\typeout{Ryerson-Thesis Class Option: `noglossary' Disabling Glossary}
\setboolean{@ryeglossary}{false}
}
\DeclareOption{index}{
\typeout{Ryerson-Thesis Class Option: `index' Enabling Index}
\typeout{*********************************************************************}
\typeout{}
\typeout{ Use: makeindex filename }
\typeout{ where filename is the root file name of the TeX source file.}
\typeout{}
\typeout{*********************************************************************}
\setboolean{@ryeindex}{true}
}
\DeclareOption{noindex}{
\typeout{Ryerson-Thesis Class Option: `noindex' Disabling Index}
\setboolean{@ryeindex}{false}
}
\ExecuteOptions{letterpaper,10pt}
\ProcessOptions\relax
\LoadClass{book}
\setpapersize{USletter}
\setmargrb{1.25in}{1in}{1in}{1in}
\renewcommand{\cleardoublepage}{\newpage{\pagestyle{empty}%
\clearpage\if@twoside \ifodd\c@page\else%
\hbox{}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi}}
\newcommand{\ryethesis@clearpage}
{\if@openright\cleardoublepage\else\clearpage\fi}
\newif\if@ryethesismatchtoc \@ryethesismatchtocfalse
\renewcommand\frontmatter{%
\@mainmatterfalse
\@ryethesismatchtocfalse
\pagenumbering{roman}
\pagestyle{plain}
\maketitle
\ryethesis@insertdeclaration
\ryethesis@insertabstract
\ryethesis@insertacknowledgements
\ryethesis@insertdedication
\ryethesis@inserttoc
\ryethesis@insertlot
\ryethesis@insertlop
\ryethesis@insertlof
\ryethesis@insertloi
\ryethesis@insertloa
\ryethesis@insertnom
\ryethesis@clearpage
\pagenumbering{arabic}
\pagestyle{fancy}
% If the acronym feature is used with the glossary of terms, \gls
% commands for acronyms will be expanded on first use if used in the
% front matter (e.g. in the abstract). Reset this usage so that the
% first use of a \gls acronym is expanded in the main matter as well.
\ifthenelse{\boolean{@ryeglossary}}{\glsresetall}{}
}
\renewcommand\mainmatter{%
\@mainmattertrue
\pagenumbering{arabic}
\pagestyle{fancy}
}
\renewcommand\backmatter{%
\ifthenelse{\boolean{@ryelistofappendices}}{\@ryethesismatchtoctrue}{\@ryethesismatchtocfalse}
\ryethesis@insertappendix
\@ryethesismatchtocfalse
\ryethesis@insertreferences
\ryethesis@insertglossary
\ryethesis@insertindex
\@mainmatterfalse
}
\fancyhead{} % Clear all header fields
\fancyhead[LE,RO]{\slshape \rightmark}
\fancyhead[LO,RE]{\slshape \leftmark}
\fancyfoot{} % Clear all footer fields
\fancyfoot[C]{\thepage}
\global\def\ryethesis@documentType{thesis} % Alternate forms include 'dissertation' or 'project'
\global\def\ryethesis@degree{}
\global\def\ryethesis@prevDegreeA{}
\global\def\ryethesis@prevDegreeB{}
\global\def\ryethesis@prevDegreeC{}
\global\def\ryethesis@prevDegreeD{}
\global\def\ryethesis@prevLocationA{}
\global\def\ryethesis@prevLocationB{}
\global\def\ryethesis@prevLocationC{}
\global\def\ryethesis@prevLocationD{}
\global\def\ryethesis@prevYearA{}
\global\def\ryethesis@prevYearB{}
\global\def\ryethesis@prevYearC{}
\global\def\ryethesis@prevYearD{}
\global\def\ryethesis@program{}
\global\def\ryethesis@degreeyear{}
\global\def\ryethesis@partnerUniv{}
\global\def\ryethesis@theabstract{}
\global\def\ryethesis@theacknowledgements{}
\global\def\ryethesis@thededication{}
\global\def\ryethesis@listofbibfiles{}
\global\def\ryethesis@theappendices{}
\def\title#1{\gdef\@title{#1}\if@ryehyperref\hypersetup{pdftitle={#1}}\fi}
\def\author#1{\gdef\@author{#1}\if@ryehyperref\hypersetup{pdfauthor={#1}}\fi}
\newcommand{\documenttype}[1]{\ifx\empty#1\else\gdef\ryethesis@documentType{#1}\fi}
\newcommand{\thesis}{\documenttype{thesis}}
\newcommand{\dissertation}{\documenttype{dissertation}}
\newcommand{\project}{\documenttype{MRP}}
\newcommand{\degreeName}[1]{\gdef\ryethesis@degree{#1}\if@ryehyperref\hypersetup{pdfsubject={#1}}\fi}
\newcommand{\degreeYear}[1]{\gdef\ryethesis@degreeYear{#1}}
\newcommand{\program}[1]{\gdef\ryethesis@program{#1}}
\newcommand{\prevDegreeA}[3]{%
\gdef\ryethesis@prevDegreeA{#1}\gdef\ryethesis@prevLocationA{#2}\gdef\ryethesis@prevYearA{#3}}
\newcommand{\prevDegreeB}[3]{%
\gdef\ryethesis@prevDegreeB{#1}\gdef\ryethesis@prevLocationB{#2}\gdef\ryethesis@prevYearB{#3}}
\newcommand{\prevDegreeC}[3]{%
\gdef\ryethesis@prevDegreeC{#1}\gdef\ryethesis@prevLocationC{#2}\gdef\ryethesis@prevYearC{#3}}
\newcommand{\prevDegreeD}[3]{%
\gdef\ryethesis@prevDegreeD{#1}\gdef\ryethesis@prevLocationD{#2}\gdef\ryethesis@prevYearD{#3}}
\newcommand{\partnerUniversity}[1]{\gdef\ryethesis@partnerUniv{#1}}
\renewcommand{\maketitle}
{\begin{titlepage}
%% Set the line spacing to 1 for the title page.
\begin{spacing}{2}
\begin{large}
\begin{center}
\vfill
{\LARGE\textsc{\@title}}\\
\vfill%\vspace{2\baselineskip}
by \\
\vfill%\vspace{\baselineskip}
{\@author}\\
{\ifx\empty\ryethesis@prevDegreeA\else{\ryethesis@prevDegreeA, \ryethesis@prevLocationA, \ryethesis@prevYearA}\\\fi}
{\ifx\empty\ryethesis@prevDegreeB\else{\ryethesis@prevDegreeB, \ryethesis@prevLocationB, \ryethesis@prevYearB}\\\fi}
{\ifx\empty\ryethesis@prevDegreeC\else{\ryethesis@prevDegreeC, \ryethesis@prevLocationC, \ryethesis@prevYearC}\\\fi}
{\ifx\empty\ryethesis@prevDegreeD\else{\ryethesis@prevDegreeD, \ryethesis@prevLocationD, \ryethesis@prevYearD}\\\fi}
\vfill%\vspace{3\baselineskip}
{A \ryethesis@documentType}\\
{presented to Ryerson University}\\
{\ifx\empty\ryethesis@partnerUniv\else{and \ryethesis@partnerUniv}\\\fi}
\vspace{\baselineskip}
{in partial fulfillment of the}\\
{requirements for the degree of}\\
{\ryethesis@degree}\\
{in the Program of}\\
{\ryethesis@program}\\
\vfill
{Toronto, Ontario, Canada, \ryethesis@degreeYear}\\
{\copyright\@author~\ryethesis@degreeYear}\\
\end{center}
\end{large}
\end{spacing}
\end{titlepage}
}
\newcommand{\declaration}{%
\begin{flushleft}
\textbf{AUTHOR'S DECLARATION FOR ELECTRONIC SUBMISSION OF A \MakeUppercase{\ryethesis@documentType{}}}\\
\vspace{\baselineskip}
I hereby declare that I am the sole author of this
\ryethesis@documentType{}. This is a true copy of the thesis,
including any required final revisions, as accepted by my
examiners.\\
\vspace{\baselineskip}
I authorize Ryerson University to lend this
\ryethesis@documentType{} to other institutions or individuals for
the purpose of scholarly research.\\
\vspace{\baselineskip}
I further authorize Ryerson University to reproduce this \ryethesis@documentType{} by photocopying or by other means, in total or in part, at the request of other institutions or individuals for the purpose of scholarly research.\\
\vspace{0.75in}
I understand that my dissertation may be made electronically available to the public.
\end{flushleft}
}
\newcommand{\ryethesis@insertdeclaration}{%
\ifthenelse{\boolean{@ryedraft}}
{}
{
\ryethesis@clearpage\phantomsection\label{declaration}\addcontentsline{toc}{section}{\textit{\mdseries{}Declaration}}\declaration
}
}
\newcommand{\abstract}[1]{\ifx\empty#1\else\gdef\ryethesis@theabstract{\begin{center}\section*{Abstract}\end{center}#1}\fi}
\newcommand{\ryethesis@insertabstract}{%
\ryethesis@clearpage
\phantomsection\label{abstract}\addcontentsline{toc}{section}{\textit{\mdseries{}Abstract}}
\begin{spacing}{2}
\begin{center}
\normalsize
\@title\\
\ryethesis@degree{} \ryethesis@degreeYear\\
\@author\\
\ryethesis@program\\
Ryerson University{\ifx\empty\ryethesis@partnerUniv\else{ and
\ryethesis@partnerUniv}\fi}\\
\end{center}
{\ifx\empty\ryethesis@theabstract{\begin{center}\textit{Abstract goes here!}\end{center}}\else\ryethesis@theabstract\fi}
\end{spacing}
}
\newcommand{\acknowledgements}[1]{\ifx\empty#1\else\gdef\ryethesis@theacknowledgements{#1}\fi}
\newcommand{\ryethesis@insertacknowledgements}{%
\ifx\empty\ryethesis@theacknowledgements\else{
\ryethesis@clearpage
\phantomsection\label{acknowledgements}\addcontentsline{toc}{section}{\textit{\mdseries{}Acknowledgements}}
\begin{center}
\section*{Acknowledgements}
\end{center}
\ryethesis@theacknowledgements
}\fi
}
\newcommand{\dedication}[1]{\ifx\empty#1\else\gdef\ryethesis@thededication{#1}\fi}
\newcommand{\ryethesis@insertdedication}{%
\ifx\empty\ryethesis@thededication\else{
\ryethesis@clearpage
\phantomsection\label{dedication}\addcontentsline{toc}{section}{\textit{\mdseries{}Dedication}}
\begin{center}
\section*{Dedication}
\end{center}
\ryethesis@thededication
}\fi
}
\newcommand{\includelistoftables}{\setboolean{@ryelistoftables}{true}}
\newcommand{\nolistoftables}{\setboolean{@ryelistoftables}{false}}
\newcommand{\includelistoffigures}{\setboolean{@ryelistoffigures}{true}}
\newcommand{\nolistoffigures}{\setboolean{@ryelistoffigures}{false}}
\newcommand{\includelistofplates}{\setboolean{@ryelistofplates}{true}}
\newcommand{\nolistofplates}{\setboolean{@ryelistofplates}{false}}
\newcommand{\includelistofillustrations}{\setboolean{@ryelistofillustrations}{true}}
\newcommand{\nolistofillustrations}{\setboolean{@ryelistofillustrations}{false}}
\newcommand{\includelistofappendices}{\setboolean{@ryelistofappendices}{true}}
\newcommand{\nolistofappendices}{\setboolean{@ryelistofappendices}{false}}
\newcommand{\includenomenclature}{\setboolean{@ryenomenclature}{true}}
\newcommand{\nonomenclature}{\setboolean{@ryenomenclature}{false}}
\newcommand{\includeindex}{\setboolean{@ryeindex}{true}}
\newcommand{\noindex}{\setboolean{@ryeindex}{false}}
\newcommand{\includeglossary}{\setboolean{@ryeglossary}{true}}
\newcommand{\noglossary}{\setboolean{@ryeglossary}{false}}
\newcommand{\ryethesis@inserttoc}{
\ryethesis@clearpage
\tableofcontents
}
\newcommand{\ryethesis@insertlot}{
\ifthenelse{\boolean{@ryelistoftables}}{\ryethesis@clearpage\phantomsection\label{listoftab}\addcontentsline{toc}{section}{\textit{\mdseries{}List
of Tables}}\listoftables}{}
}
\ifthenelse{\boolean{@ryelistofplates}}
{\RequirePackage{float}\newfloat{plate}{h}{lop}}{}
\newcommand{\ryethesis@insertlop}{
\ifthenelse{\boolean{@ryelistofplates}}{\ryethesis@clearpage\phantomsection\label{listofplates}\addcontentsline{toc}{section}{\textit{\mdseries{}List
of Plates}}\listof{plate}{List of Plates}}{}
}
\newcommand{\ryethesis@insertlof}{
\ifthenelse{\boolean{@ryelistoftables}}{\ryethesis@clearpage\phantomsection\label{listoffig}\addcontentsline{toc}{section}{\textit{\mdseries{}List
of Figures}}\listoffigures}{}
}
\ifthenelse{\boolean{@ryelistofillustrations}}
{\RequirePackage{float}\newfloat{illustration}{h}{loi}}{}
\newcommand{\ryethesis@insertloi}{
\ifthenelse{\boolean{@ryelistofillustrations}}{\ryethesis@clearpage\phantomsection\label{listofillustrations}\addcontentsline{toc}{section}{\textit{\mdseries{}List
of Illustrations}}\listof{illustration}{List of Illustrations}}{}
}
\ifthenelse{\boolean{@ryelistofappendices}}
{
\newcommand{\nohyphens}{\hyphenpenalty=10000\exhyphenpenalty=10000\relax}
\newcommand{\listofappendices}{\chapter*{List of Appendices}\@starttoc{toa}}
}
{}
\newcommand{\ryethesis@insertloa}{%
\ifthenelse{\boolean{@ryelistofappendices}}{\ryethesis@clearpage\phantomsection\label{listofapp}\addcontentsline{toc}{section}
{\textit{\mdseries{}List of Appendices}}\listofappendices}{}
}
\renewcommand{\appendix}[1]{\ifx\empty#1\else\gdef\ryethesis@theappendices{#1}\fi}
\newcommand{\ryethesis@insertappendix}{%
\ifx\empty\ryethesis@theappendices\else{
\ryethesis@clearpage
\renewcommand{\chaptername}{Appendix}
\setcounter{chapter}{0}
\ryethesis@theappendices
}\fi
}
\if@ryehyperref
\RequirePackage[pageanchor,hyperindex]{hyperref}
\RequirePackage{bookmark}
\fi
\ifthenelse{\boolean{@ryeglossary}}
{\RequirePackage[acronym,toc]{glossaries}\makeglossaries%
%Glossaries prints a confusing warning
\global\let\warn@noprintglossary\relax
}{}
\ifthenelse{\boolean{@ryeindex}}
{
\providecommand*\see[2]{\emph{\seename} #1}
\providecommand*\seealso[2]{\emph{\alsoname} #1}
\providecommand\printindex{\@input@{\jobname.ind}}
\providecommand\seename{see}
\providecommand*\alsoname{see also}
\makeindex
\RequirePackage{multicol}
\renewenvironment{theindex}
{\begin{multicols}{2}[\@makeschapterhead{\indexname}\addcontentsline{toc}{chapter}{\indexname}%
\@mkboth{\MakeUppercase\indexname}%
{\MakeUppercase\indexname}]%
\thispagestyle{plain}\parindent\z@
\parskip\z@ \@plus .3\p@\relax
\columnseprule \z@
\columnsep 35\p@
\let\item\@idxitem}
{\end{multicols}\clearpage}
}
{}
\ifthenelse{\boolean{@ryenomenclature}}{%
\RequirePackage{nomencl}
\renewcommand{\nomname}{List of Symbols}
\makenomenclature
}{}
\newcommand{\ryethesis@insertnom}{%
\ifthenelse{\boolean{@ryenomenclature}}{\ryethesis@clearpage\printnomenclature}{}
}
\newcommand{\ryethesis@insertreferences}{%
\ifx\emtpy\ryethesis@listofbibfiles
\else
\ryethesis@clearpage\bibliography{\ryethesis@listofbibfiles}
\addcontentsline{toc}{chapter}{\bibname}
\fi
}
\newcommand{\ryethesis@insertglossary}{%
\ifthenelse{\boolean{@ryeglossary}}
{\ryethesis@clearpage%
\printglossaries%glossaries.sty prints a false warning.
\global\let\warn@noprintglossary\relax%
}
{}
}
\newcommand{\ryethesis@insertindex}{%
\ifthenelse{\boolean{@ryeindex}}
{\ryethesis@clearpage%
\printindex
}
{}
}
\newcommand{\addtoreferences}[1]{%
\ifx\empty\ryethesis@listofbibfiles\edef\ryethesis@listofbibfiles{#1}\else\edef\ryethesis@listofbibfiles{#1,\ryethesis@listofbibfiles}\fi
}
\newcommand{\usebibliography}{\renewcommand{\bibname}{Bibliography}}
\newcommand{\usereferences}{\renewcommand{\bibname}{References}}
\newcommand{\useendnotes}{\renewcommand{\bibname}{End Notes}}
\AtEndOfClass{
\ifthenelse{\boolean{@ryedraft}}
{% Draft mode uses double spacing
\doublespacing}
{% Final mode uses 1.5 spacing as specified in SGS policy Sept. 2009.
\onehalfspacing}
\usereferences
}
\RequirePackage{etoolbox}
\AfterEndPreamble{
\newcommand{\Saved@addtocontents}{}
\let\Saved@addtocontents\addtocontents
\def\addtocontents#1#2{%
\if@ryethesismatchtoc%
{\ifthenelse{\equal{#1}{toc}}%
{\Saved@addtocontents{toa}{#2}}
{\Saved@addtocontents{#1}{#2}}}
\else
{\Saved@addtocontents{#1}{#2}}
\fi}
\frontmatter\mainmatter
}
\AtEndDocument{\backmatter}
\endinput
%%
%% End of file `ryethesis.cls'.
|