-
Notifications
You must be signed in to change notification settings - Fork 0
/
wuthesis.cls
474 lines (461 loc) · 15.3 KB
/
wuthesis.cls
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
%%
%% This is file `wuthesis.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% wuthesis.dtx (with options: `class')
%%
%% IMPORTANT NOTICE:
%%
%% For the copyright see the source file.
%%
%% Any modified versions of this file must be renamed
%% with new filenames distinct from wuthesis.cls.
%%
%% For distribution of the original source see the terms
%% for copying and modification in the file wuthesis.dtx.
%%
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
%% Copyright (C) 1996 Long Duan
%% 2005, 2007, and 2008 revisions by Greg Hackmann
%%
%% Please note: This document class is not compatable with the
%% old LaTeX 2.09. It uses LaTeX2e specific commands.
%%
%% Send bug reports to:
%%
%%
\def\fileversion{1.7a}
\def\filedate{07/01/2008}
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%% Digits \0\1\2\3\4\5\6\7\8\9
%% Exclamation \! Double quote \" Hash (number) \#
%% Dollar \$ Percent \% Ampersand \&
%% Acute accent \' Left paren \( Right paren \)
%% Asterisk \* Plus \+ Comma \,
%% Minus \- Point \. Solidus \/
%% Colon \: Semicolon \; Less than \<
%% Equals \= Greater than \> Question mark \?
%% Commercial at \@ Left bracket \[ Backslash \\
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
%%
\typeout{*************************************************************}
\typeout{** Wash U - Sever Institute thesis class }
\typeout{** version \fileversion, \filedate }
\typeout{** Copyright (c) 1995 Kevin Ruland }
\typeout{** with revisions by Long Duan and Greg Hackmann }
\typeout{*************************************************************}
%%
%% Actually not too much of this code remains but the copyright
%% remains.
%%*************************************************************
%%** UT Austin Thesis Style File, version 2.0, January 1995
%%**
%%** Copyright (c) 1995 Dinesh Das. All rights reserved.
%%** This file is free and can be modified or distributed as
%%** long as you meet the following conditions:
%%**
%%** (1) This copyright notice is kept intact on all modified
%%** copies.
%%** (2) If this file is modified, the original file name must
%%** not be used.
%%*************************************************************
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{wuthesis}[\filedate\space v\fileversion]
\DeclareOption{thesisdraft}{
\AtEndOfClass{
\def\ps@textpageheadings{%
\let\@oddfoot\@empty\let\@evenfoot\@empty
\def\@oddhead{\textsl{Draft of \timestamp}\hfil\thepage}%
\let\@mkboth\@gobbletwo
\let\chaptermark\@gobble
\let\sectionmark\@gobble}
}
}
\DeclareOption{phdthesis}{
\newcommand{\thesistype}{Dissertation}
\newcommand{\thesisdegree}{Doctor of Philosophy}
\newcommand{\thesisdegreeabbreviation}{Ph.D.}
}
\DeclareOption{dscthesis}{
\newcommand{\thesistype}{Dissertation}
\newcommand{\thesisdegree}{Doctor of Science}
\newcommand{\thesisdegreeabbreviation}{D.Sc.}
}
\DeclareOption{mastersthesis}{
\newcommand{\thesistype}{Thesis}
\newcommand{\thesisdegree}{Master of Science}
\newcommand{\thesisdegreeabbreviation}{M.S.}
}
\DeclareOption{singlespace}{\AtBeginDocument{\singlespacing}}
\DeclareOption{oneandhalfspace}{\AtBeginDocument{\onehalfspacing}}
\DeclareOption{doublespace}{\AtBeginDocument{\doublespacing}}
\DeclareOption{indentfirst}{\let\@afterindentfalse\@afterindenttrue
\@afterindenttrue}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\ExecuteOptions{oneandhalfspace}
\ProcessOptions
\LoadClass[oneside,openany]{book}[1994/12/01]
\ifx\undefined\thesistype
\ClassError{wuthesis}
{Please select either the phdthesis or mastersthesis class options}
{Use, for example, \protect\documentclass[phdthesis]{wuthesis}}
\fi
\RequirePackage[normalem]{ulem}
\RequirePackage{setspace}
\RequirePackage{remreset}
\@removefromreset{footnote}{chapter}
\newcommand{\thesisauthor}{Ima Gooden-Reddi}
\newcommand{\thesisauthorlastname}{Gooden-Reddi}
\newcommand{\thesisauthorpreviousdegrees}{}
\newcommand{\thesismonth}{May}
\newcommand{\thesisyear}{2009}
\newcommand{\thesistitle}{Title}
\newcommand{\thesisshorttitle}{Short Title}
\newcommand{\thesissupervisor}{Professor Katherine Doe}
\newcommand{\thesiscommittee}{Katherine Doe, Chair \\
Michael Allen \\
Robert Edward Thomas}
\newcommand{\thesisdepartment}{Department of Computer Science and Engineering}
\newcommand{\thesisfield}{Computer Science}
\hoffset -1in
\voffset -1in
\setlength{\textheight}{9.5in} % Shortened to make page number appear exactly one inch from bottom
\advance\textheight -0.75in % top and bottom margins
\advance\textheight -18pt % header
\advance\textheight -12pt % footer
\setlength{\textwidth}{6.5in}
\advance\textwidth 0in % left and right margins
\setlength{\oddsidemargin}{1.0in}
\setlength{\evensidemargin}{1.0in}
\setlength{\topmargin}{1in}
\setlength{\headheight}{0pt}
\setlength{\headsep}{18pt}
\setlength{\footskip}{18pt}
\setlength{\parskip}{12pt} % add 1 line skip between paragraphs
\setlength{\parindent}{0in} % use block indenting
\newlength{\chapterpadding}
\setlength{\chapterpadding}{1.75in}
\newlength{\chaptervspace}
\setlength{\chaptervspace}{\chapterpadding}
\addtolength{\chaptervspace}{-\topmargin}
\addtolength{\chaptervspace}{-60pt}
\widowpenalty =10000
\clubpenalty =10000
\brokenpenalty=10000
\AtBeginDocument{\pagestyle{plain}}
\renewcommand{\frontmatter}{
\cleardoublepage
\@mainmatterfalse
\pagenumbering{roman}}
\renewcommand{\mainmatter}{
\cleardoublepage
\@mainmattertrue
\pagenumbering{arabic}}
\def\ps@textpageheadings{%
\let\@oddfoot\@empty\let\@evenfoot\@empty
\def\@oddhead{\hfil\thepage}%
\let\@mkboth\@gobbletwo
\let\chaptermark\@gobble
\let\sectionmark\@gobble}
\newenvironment{thesisdedicationpage}{
\strut \vfill
\vspace{-20mm}
\begin{spacing}{1.5}
\begin{center}
\thesisdedication
\end{center}
\end{spacing}}
{\vfill \strut
\newpage}
\newcommand{\thesisdedication}{To myself}
\newenvironment{thesisacknowledgments}
{\chapter*{\thesisacknowledgmenthead}
\addcontentsline{toc}{chapter}{\thesisacknowledgmenthead}
\begin{spacing}{1.1}}
{\nopagebreak%
\thesisacknowledgmentsignature
\vskip 5mm
\thesisacknowledgmentpostscript
\end{spacing}
\newpage}
\newcommand{\thesisacknowledgmenthead}{Acknowledgments}
\newcommand{\thesisacknowledgmentsigname}{\thesisauthor}
\newcommand{\thesisacknowledgmentsignametype}{\large}
\newcommand{\thesisacknowledgmentpostscript}{}
\newcommand{\thesisacknowledgmentsignature}%
{\vskip 5mm
\raggedleft
{\thesisacknowledgmentsignametype\thesisacknowledgmentsigname}
\vskip 3mm
\raggedright
{\slshape
\noindent Washington University in Saint Louis \\
\thesismonth\ \thesisyear}}
\newenvironment{thesistitlepage}{
\thispagestyle{empty}
\addtocounter{page}{-1}
\begingroup
\advance\topmargin -18pt
\thesistitlepagefont
\strut \vfill
\begin{center}
\begin{doublespace}
WASHINGTON UNIVERSITY IN ST.\ LOUIS
\end{doublespace}
\begin{singlespace}
School of Engineering and Applied Science \\
\thesisdepartment
\end{singlespace}
\vspace{0.5in}
\begin{singlespace}
\thesistype\ Examination Committee: \\
\thesiscommittee
\end{singlespace}
\vspace{0.5in}
\begin{doublespace}
{\thesistitle} \\
by \\
\thesisstudent \\
\end{doublespace}
\vspace{0.75in}
\begin{singlespace}
A \MakeLowercase{\thesistype}\ presented to \\
The Graduate School \\
of Washington University in \\
partial fulfillment of the \\
requirements for the degree \\
of {\thesisdegree}
\thesismonth\ \thesisyear \\
Saint Louis, Missouri
\end{singlespace}
\end{center}
\vfill \strut}
{\newpage
\endgroup}
\newcommand{\thesistitlepagefont}{\fontsize{14}{14}\selectfont}
\newcommand{\thesisstudent}{\thesisauthor\thesisauthorpreviousdegrees}
\newenvironment{thesiscopyrightpage}{
\pagestyle{empty}
\strut \vfill
\vspace{-20mm}
\large{
\begin{center}
\begin{doublespace}
copyright by \\
\thesiscopyrightholder \\
\thesisyear
\end{doublespace}
\end{center}}}
{\vfill \strut
\newpage}
\newenvironment{extranotespage}{
\pagestyle{empty}}
{\newpage}
\newcommand{\thesiscopyrightholder}{\thesisauthor}
\newcommand{\thesisabstracthead}{Abstract}
\newenvironment{thesisabstract}{
%\setcounter{page}{2} % in revised edition abstract was moved.
\addcontentsline{toc}{chapter}{\thesisabstracthead}
\begin{center}
\begin{doublespace}
\vbox to 18pt{}
ABSTRACT OF THE \@uppercase{\thesistype} \\
\vspace{18pt}
\thesistitle \\
by \\
\thesisauthor \\
\thesisdegree\ in \thesisfield \\
Washington University in St.\ Louis, \thesismonth\ \thesisyear \\
Research Advisor: \thesissupervisor
\end{doublespace}
\end{center}
\vspace{-6pt}
\begin{doublespace}}
{ \end{doublespace}
\newpage}
\newenvironment{thesisshorttitlepage}{
\clearpage
\thispagestyle{empty}
\addtocounter{page}{-1}
\vbox to 4.1in{\vfil
{\small \textbf{\thesisshorttitle,
\thesisauthorlastname, \thesisdegreeabbreviation\ \thesisyear}
}}}
{\newpage}
\renewcommand{\listoffigures}{%
\chapter*{\listfigurename}%
\addcontentsline{toc}{chapter}{\listfigurename}%
\@starttoc{lof}%
}
\renewcommand{\listoftables}{%
\chapter*{\listtablename}%
\addcontentsline{toc}{chapter}{\listtablename}%
\@starttoc{lot}%
\listoftablespostscript
}
\newcommand{\listoftablespostscript}{}
\let\oldtoc=\@starttoc
\renewcommand*{\@starttoc}[1]{%
{%
\setlength{\parskip}{0pt}%
\oldtoc{#1}%
}%
}
\renewcommand{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi%
\global\@topnum\z@
\@afterindentfalse
\secdef\@chapter\@schapter}
\newif\if@appendix\@appendixfalse
\renewcommand{\appendix}{\par
\setcounter{chapter}{0}%
\setcounter{section}{0}%
\renewcommand{\@chapapp}{\appendixname}%
\renewcommand{\thechapter}{\Alph{chapter}}
\@appendixtrue}
\newlength{\appendixhspace}
\setlength{\appendixhspace}{1.0in}
\addtolength{\appendixhspace}{1.1em}
\def\wrappedappendix#1#2{%
\refstepcounter{chapter}%
\addcontentsline{toc}{chapter}%
{\hbox to \appendixhspace{\appendixname\ \thechapter \hfill} #1}%
\@makechapterhead{#2}%
}
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\refstepcounter{chapter}%
\typeout{\@chapapp\space\thechapter.}%
\if@appendix
\addcontentsline{toc}{chapter}%
{\hbox to \appendixhspace{\appendixname\
\thechapter \hfill} #1}%
\else
\addcontentsline{toc}{chapter}%
{\protect\numberline{\thechapter}#1}%
\fi
\else
\addcontentsline{toc}{chapter}{#1}%
\fi
\else
\addcontentsline{toc}{chapter}{#1}%
\fi
\chaptermark{#1}%
\addtocontents{lof}{\protect\addvspace{10\p@}}%
\addtocontents{lot}{\protect\addvspace{10\p@}}%
\if@twocolumn
\@topnewpage[\@makechapterhead{#2}]%
\else
\@makechapterhead{#2}%
\@afterheading
\fi}
\def\@makechapterhead#1{%
\vspace*{\chaptervspace}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\huge\bfseries \@chapapp\space \thechapter
\par\nobreak
\vskip 20\p@
\fi
\fi
\interlinepenalty\@M
\Huge \bfseries #1\par\nobreak
\vskip 40\p@
}}
\def\@makeschapterhead#1{%
\vspace*{\chaptervspace}%
{\parindent \z@ \raggedright
\normalfont
\interlinepenalty\@M
\Huge \bfseries #1\par\nobreak
\vskip 40\p@
}}
\renewcommand*{\l@chapter}[2]{%
\ifnum \c@tocdepth >\m@ne
\addpenalty{-\@highpenalty}%
\vskip 1.0em \@plus\p@
\setlength\@tempdima{1.5em}%
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode \bfseries
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\nobreak%
\leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}\hfill
\nobreak\hbox to\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup
\fi}
\renewenvironment{quote}
{\begin{singlespace}\list{}{\rightmargin\leftmargin}%
\item\relax}
{\endlist\end{singlespace}}
\newenvironment{thesisauthorvita}
{
\clearpage
\begin{spacing}{1.1}
\addcontentsline{toc}{chapter}{\thesisvitahead}
\thesisvitatop}
{\end{spacing}}
\newcommand{\thesisvitahead}{Vita}
\newcommand{\thesisvitatop}{%
\begin{center}
{\huge\bfseries\thesisvitahead}
\end{center}}
\renewcommand{\bibname}{References}
\renewenvironment{thebibliography}[1]
{\chapter*{\bibname}%
\addcontentsline{toc}{chapter}{\bibname}
\list{\@biblabel{\arabic{enumiv}}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
%\if@openbib
%\advance\leftmargin\bibindent
%\itemindent -\bibindent
%\listparindent \itemindent
%\parsep \z@
%\fi
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\arabic{enumiv}}}%
%\if@openbib
%\renewcommand\newblock{\par}
%\else
%\renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}%
%\fi
\sloppy\clubpenalty4000\widowpenalty4000%
\sfcode`\.=\@m}
{\def\@noitemerr{\@warning{Empty `thebibliography' environment}}%
\endlist}
\newcount\hour \newcount\minute
\hour=\time \divide \hour by 60
\minute=\time
\loop \ifnum \minute > 59 \advance \minute by -60 \repeat
\def\thesistime{\ifnum \hour<13 \number\hour:%
\ifnum \minute<10 0\fi
\number\minute
\ifnum \hour<12 \ am\else \ pm\fi
\else \advance \hour by -12 \number\hour:%
\ifnum \minute<10 0\fi
\number\minute \ pm\fi}
\def\timestamp{\thesistime, \today}
\newcommand{\@uppercase}[1]{{\expandafter\uppercase\expandafter{#1}}}
\newcommand\@seperator{\vrule height.4pt depth0pt width3.5in}
\newcommand\@numberword[1]{\ifcase#1 zero\or one\or two\or three\or
four\or five\or six\or seven\or eight\else nine\fi\relax}
\endinput
%%
%% End of file `wuthesis.cls'.