-
Notifications
You must be signed in to change notification settings - Fork 0
/
uiucthesis2021.cls
executable file
·222 lines (216 loc) · 6.6 KB
/
uiucthesis2021.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
%%
%% This is file `uiucthesis2021.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% uiucthesis2021.dtx (with options: `class')
%%
%% Copyright 2021 Zachary J. Weiner
%% Version 3.x was derived (with substantial revision) from a prior version by
%% Stephen Mayhew available at https://github.com/mayhewsw/uiucthesis2014,
%% which indicates prior authorship by Charles Kiyanda, Tim Head, Peter Czoschke,
%% and David Hull.
%% No copyright statement or license was included in versions prior to 3.1.
%%
%% 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 work has the LPPL maintenance status “maintained”.
%%
%% The Current Maintainer of this work is Zachary J. Weiner.
%%
%% This work consists of the files uiucthesis2021.dtx and the derived files
%% uiucthesis2021.{sty,ins,cls,pd}, and example files thesis.tex,
%% ruledchapters.sty, and references.bib.
%%
\def\fileversion{v3.1}
\def\filedate{2021/09/01}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{uiucthesis2021}[\filedate\space\fileversion\space UIUC Thesis]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\PassOptionsToClass{letterpaper,oneside}{book}
\ProcessOptions
\LoadClass{book}
\usepackage[onehalfspacing]{setspace}
\def\@mkuptitle#1{\gdef\@Utitle{#1}}
\def\title#1{\gdef\@title{#1}\MakeUppercase{\protect\@mkuptitle{#1}}}
\def\@mkupauthor#1{\gdef\@Uauthor{#1}}
\def\author#1{\gdef\@author{#1}\MakeUppercase{\protect\@mkupauthor{#1}}}
\def\phdthesis{\def\@degree{Doctor of Philosophy}
\def\degree{Ph.D.}
\def\@thesisname{DISSERTATION}
\def\@committeename{Doctoral Committee:}
}
\def\prelim{\def\@degree{Doctor of Philosophy}
\def\degree{Ph.D.}
\def\@thesisname{PRELIMINARY EXAMINATION REPORT}
\def\@committeename{Doctoral Committee:}
}
\def\msthesis{\def\@degree{Master of Science}
\def\degree{M.S.}
\def\@thesisname{THESIS}
\def\@committeename{Master's Committee:}
}
\def\department#1{\def\@dept{#1}}
\def\concentration#1{\def\@concentration{#1}}
\def\minor#1{\def\@minor{#1}}
\def\college#1{\def\@college{#1}}
\def\degreeyear#1{\def\@degreeyear{#1}}
\newcommand{\committee}[1]{\gdef\@committee{#1}}
\def\copyrightnotice{\copyright~\@degreeyear~ \@author}
\newif\if@thesiscrpage \@thesiscrpagetrue
\let\nocopyrightpage\@thesiscrpagefalse
\phdthesis
\college{Graduate College}
\def\@degreeyear{\number\year}
\renewcommand\maketitle{
\if@thesiscrpage
\newpage
\thispagestyle{empty}
\null\vfill
\centerline{\copyrightnotice}%
\vskip 3ex % skip to visually center copyright notice
\vfill
\fi
\newpage
\thispagestyle{empty}%
\enlargethispage{1in}%
\begingroup
\def\baselinestretch{1}
\ifnum \@ptsize=2
\@normalsize
\newcommand{\thesis@small}{\small}
\else
\large
\newcommand{\thesis@small}{\@normalsize}
\fi
\headheight=0pt \headsep=0pt
\topmargin=0in
\@tempdima=\paperwidth
\advance\@tempdima by -\textwidth
\divide\@tempdima by 2
\advance\@tempdima by -1in
\oddsidemargin=\@tempdima
\let\evensidemargin=\oddsidemargin
\newdimen\thesis@dim
\thesis@dim=1.5in
\newdimen\ct@dim
\newdimen\cn@dim
\ct@dim=\oddsidemargin
\advance\ct@dim by -0.3125in
\cn@dim=\oddsidemargin
\advance\cn@dim by -0.6875in
\def\lc@selectfont{}%
\begin{center}
\vbox to 1in{}
\vbox to \thesis@dim{%
{\lc@selectfont\@Utitle}
\vfil}%
\vbox to 0.5in{%
{\lc@selectfont BY}\\[12pt]
\vfil}%
\vbox to 1.5in{%
{\lc@selectfont\@Uauthor}\\[12pt]
\vfil}%
\vbox to 2.0in{%
{\lc@selectfont \@thesisname}\\[12pt]
Submitted in partial fulfillment of the requirements\\
for the degree of \@degree\ in \@dept\\
\ifdefined\@concentration
with a concentration in \@concentration\\
\fi
\ifdefined\@minor
with a minor in \@minor\\
\fi
in the \@college\ of the\\
University of Illinois Urbana-Champaign, \@degreeyear\vfil}%
\vskip -1.5ex%
\vbox to 0.4in{%
Urbana, Illinois}%
\end{center}
\begin{flushleft}
\vbox to 0.3in{%
\hspace{-\ct@dim}\@committeename\\}
\hspace{-\cn@dim}\begin{tabular}{l}\@committee\end{tabular}\vfil
\end{flushleft}
\newpage
\endgroup
}
\let\thesis@frontmatter=\frontmatter
\def\frontmatter{%
\thesis@frontmatter
\setcounter{page}{2}}
\RequirePackage[english]{babel}
\addto{\captionsenglish}{\renewcommand*{\contentsname}{Contents}}
\let\thesis@tableofcontents=\tableofcontents
\def\tableofcontents{{\singlespacing\thesis@tableofcontents}}
\RequirePackage{titletoc}
\titlecontents{chapter}%
[0pt]%
{\vspace{1ex}}%
{\bfseries\chaptername~\thecontentslabel\quad}%
{\bfseries}%
{~\mdseries\titlerule*[0.5em]{.}\bfseries\contentspage}
\g@addto@macro{\appendix}{%
\titlecontents{chapter}%
[0pt]%
{\vspace{1ex}}%
{\bfseries\appendixname~\thecontentslabel\quad}%
{\bfseries}%
{~\mdseries\titlerule*[0.5em]{.}\bfseries\contentspage}
}
\setcounter{tocdepth}{2}
\let\thesis@listoftables=\listoftables
\def\listoftables{\newpage%
\addcontentsline{toc}{chapter}{\listtablename}%
{\singlespacing\thesis@listoftables}}
\let\thesis@listoffigures=\listoffigures
\def\listoffigures{\newpage%
\addcontentsline{toc}{chapter}{\listfigurename}%
{\singlespacing\thesis@listoffigures}}
\newenvironment{abstract}{\chapter*{\abstractname}}{}
\newenvironment{dedication}{
\newpage
\leavevmode\vfill
\begin{center}
\itshape
}{
\end{center}
\vskip 3ex
\vfill
\newpage
}
\newenvironment{acknowledgments}{\chapter*{Acknowledgments}}{}
\newenvironment*{symbollist}[1][1in]{
\begin{list}{}{\singlespacing
\setlength{\leftmargin}{#1}
\setlength{\labelwidth}{#1}
\addtolength{\labelwidth}{-\labelsep}
\setlength{\topsep}{0in}}%
\def\makelabel##1{\hfil##1\hfil}%
}{
\end{list}}
\newenvironment*{abbrevlist}[1][1in]{
\begin{symbollist}[#1]
\def\makelabel##1{##1\hfil}}
{\end{symbollist}}
\RequirePackage{geometry}
\geometry{letterpaper}
\geometry{margin=1in}
\RequirePackage{fancyhdr}
\fancypagestyle{plain}{%
\renewcommand{\headrulewidth}{0pt}%
\fancyhf{}%
\fancyfoot[C]{\thepage}%
}
\pagestyle{plain}
\pagenumbering{roman}
\endinput
%%
%% End of file `uiucthesis2021.cls'.