forked from lotten/uci-thesis-latex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ucithesis.cls
282 lines (266 loc) · 7.56 KB
/
ucithesis.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
% ucithesis.cls: LaTeX2e class for writing UCI Ph.D. dessertation, based on
% LaTeX ``report'' class, to comply with ``UCI Thesis and Dissertation Manual''
% (http://special.lib.uci.edu/dissertations/electronic/tdmanuale.html).
%
% Disclaimer: not endorsed by UCI, provided without any guarantees.
%
% Authors:
% Xianping Ge <[email protected]>
% Trevor Harmon <[email protected]>
% Lars Otten <[email protected]>
%
% Changelog:
% Oct 11, 2012: Defaulted back to standard \appendix with subsequent \chapter,
% since custom \appendix confused figure/table counters. (Lars)
% Oct 10, 2012: Changed all margins to 1 in and removed signature page. (Lars)
% Aug 15, 2008: added "Page" as column title to Table of Contents, List of
% Figures, and List of Tables (Trevor)
% Dec 6, 2007: eliminated some spurious "duplicate ignored" (Trevor)
% corrected bibliography spacing (Trevor)
% May 17, 2007: added support for the pre-published copyright page (Trevor)
% corrected spelling (Trevor)
% made dedication page optional (Trevor)
% tweaked certain text and formatting to be closer to the UCI thesis manual (Trevor)
% Jan 12, 2005: beautified and trimmed fat (Trevor)
% verified compatibility with latest LaTeX packages (Trevor)
% Oct 3, 2002: added a \clearpage before each \addcontentsline (Xianping)
% corrected spacing in preliminary pages. (Xianping)
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{ucithesis}[2012/10/10 UCI Thesis class]
\LoadClassWithOptions{report}
\RequirePackage[hmargin={1in,1in},vmargin={1in,1in}]{geometry}
\RequirePackage{setspace}
\newcommand{\thesistitle}[1]{\newcommand\Thesistitle{#1}}
\newcommand{\documenttitle}[1]{\newcommand\Documenttitle{#1}}
\newcommand{\degreename}[1]{\newcommand\Degreename{#1}}
\newcommand{\degreefield}[1]{\newcommand\Degreefield{#1}}
\newcommand{\authorname}[1]{\newcommand\Authorname{#1}}
\newcommand{\degreeyear}[1]{\newcommand\Degreeyear{#1}}
\newcommand{\committeechair}[1]{\newcommand\Committeechair{#1}}
\newcommand{\othercommitteemembers}[1]{\newcommand\Othercommitteemembers{#1}}
\newcommand{\copyrightdeclaration}[1]{\newcommand\Copyrightdeclaration{#1}}
\newcommand{\prepublishedcopyrightdeclaration}[1]{\newcommand\Prepublishedcopyrightdeclaration{#1}}
\newcommand{\dedications}[1]{\newcommand\Dedications{#1}}
\newcommand{\acknowledgments}[1]{\newcommand\Acknowledgments{#1}}
\newcommand{\curriculumvitae}[1]{\newcommand\Curriculumvitae{#1}}
\newcommand{\thesisabstract}[1]{\newcommand\Thesisabstract{#1}}
\newcommand{\thesistitlepage}
{
\vspace*{0.5in}
\thispagestyle{empty}
\singlespacing
\begin{center}
UNIVERSITY OF CALIFORNIA, \\
IRVINE \\
\vspace{0.4in}
\Thesistitle \\
\vspace{0.15in}
\MakeUppercase\Documenttitle \\
\vspace{0.4in}
submitted in partial satisfaction of the requirements \\
for the degree of \\
\vspace{0.4in}
\MakeUppercase\Degreename \\
\vspace{0.15in}
in \Degreefield \\
\vspace{0.4in}
by \\
\vspace{0.4in}
\Authorname \\
\end{center}
\vspace{1in}
\begin{flushright}
\Documenttitle \;Committee: \\
\Committeechair, Chair \\
\Othercommitteemembers \\
\end{flushright}
\vfill
\begin{center}
\Degreeyear
\end{center}
\clearpage
}
\newcommand{\copyrightpage}
{
\thispagestyle{empty}
\rule{0in}{0in}
\protect\vfill
\begin{center}
\Copyrightdeclaration
\end{center}
\clearpage
}
\newcommand{\prepublishedcopyrightpage}
{
\thispagestyle{empty}
\rule{0in}{0in}
\protect\vfill
\begin{center}
\Prepublishedcopyrightdeclaration
\end{center}
\clearpage
}
\newcommand{\signaturepage}
{
\vspace*{1in}
\begin{center}
The \MakeLowercase\Documenttitle of \Authorname \\
is approved and is acceptable in quality and form for \\
publication on microfilm and in digital formats: \\
\end{center}
\vspace{3in}
\begin{flushright}
\rule{3in}{0.01in} \\
\vspace{0.4in}
\rule{3in}{0.01in} \\
\vspace{0.4in}
\rule{3in}{0.01in} \\
Committee Chair
\end{flushright}
\vspace{.75in}
\begin{center}
University of California, Irvine \\
\Degreeyear
\end{center}
\clearpage
}
\newcommand{\dedicationpage}
{
\begin{center}
\textbf{\Large DEDICATION} \\
\vspace{0.4in}
\Dedications
\end{center}
\clearpage
}
\newcommand{\acknowledgmentspage}
{
\begin{center}
\textbf{\Large ACKNOWLEDGMENTS}
\end{center}
\parskip 12pt
\parindent 0pt
\Acknowledgments
\clearpage
}
\newcommand{\curriculumvitaepage}
{
\begin{center}
\textbf{\Large CURRICULUM VITAE} \\
\vspace{0.4in}
\textbf{\large{\Authorname}}
\end{center}
\Curriculumvitae
\clearpage
}
\newcommand{\abstractpage}
{
\begin{center}
{\bf\Large ABSTRACT OF THE \expandafter\MakeUppercase\expandafter\Documenttitle} \\
\vspace{0.2in}
\Thesistitle \\
\vspace{0.2in}
By \\
\vspace{0.2in}
\Authorname \\
\vspace{0.2in}
\Degreename\ in \Degreefield \\
\vspace{0.2in}
University of California, Irvine, \Degreeyear \\
\vspace{0.2in}
\Committeechair, Chair \\
\end{center}
\vspace{0.2in}
\doublespacing
\Thesisabstract
\clearpage
}
\renewcommand{\contentsname}{\protect\centering\protect\Large TABLE OF CONTENTS}
\renewcommand{\listfigurename}{\protect\centering\protect\Large LIST OF FIGURES}
\renewcommand{\listtablename}{\protect\centering\protect\Large LIST OF TABLES}
% Add "Page" as column title to Table of Contents, List of Figures,
% List of Tables, and List of Algorithms
\addtocontents{toc}{{\protect\flushright Page\par}}
\addtocontents{lof}{{\protect\flushright Page\par}}
\addtocontents{lot}{{\protect\flushright Page\par}}
\addtocontents{loa}{{\protect\flushright Page\par}}
\newcommand{\preliminarypages}
{
\pagenumbering{gobble}% Remove page numbers (and reset to 1), see http://tex.stackexchange.com/questions/54333/no-page-numbering
\clearpage
\thispagestyle{empty}
\thesistitlepage
\clearpage
\pagenumbering{roman}
\ifx\Prepublishedcopyrightdeclaration\undefined
\copyrightpage
\else
\prepublishedcopyrightpage
\fi
\setcounter{page}{2}
%\signaturepage %% not for electronic submission
\ifx\Dedications\undefined
\else
\dedicationpage
\fi
\tableofcontents
\clearpage
\phantomsection
\addcontentsline{toc}{chapter}{LIST OF FIGURES}
\listoffigures
\clearpage
\phantomsection
\addcontentsline{toc}{chapter}{LIST OF TABLES}
\listoftables
\ifx\listalgorithmname\undefined % for algorithm package
\else
\clearpage
\phantomsection
\addcontentsline{toc}{chapter}{LIST OF ALGORITHMS}
\listofalgorithms
\fi
\clearpage
\phantomsection
\addcontentsline{toc}{chapter}{ACKNOWLEDGMENTS}
\acknowledgmentspage
\clearpage
\ifx\Curriculumvitae\undefined
\else
\phantomsection
\addcontentsline{toc}{chapter}{CURRICULUM VITAE}
\curriculumvitaepage
\clearpage
\fi
\phantomsection
\addcontentsline{toc}{chapter}{ABSTRACT OF THE \uppercase{\Documenttitle}}
\abstractpage
\clearpage
\setcounter{page}{1}
\pagenumbering{arabic}
}
% Reverted back to standard latex appendix, since numbering of
% figures/tables was broken with custom command.
%\renewcommand{\appendix}
\newcommand{\myappendix}
{
\par
\setcounter{section}{0}
\setcounter{figure}{0}
\setcounter{table}{0}
\setcounter{equation}{0}
\gdef\thechapter{\@Alph\c@section}
\gdef\thesection{\@Alph\c@section}
\chapter*{Appendices}
\addcontentsline{toc}{chapter}{Appendices}
}
% Redefine the bibliography to make it single-spaced.
\renewcommand{\bibliography}[1]{%
\if@filesw
\immediate\write\@auxout{\string\bibdata{#1}}%
\fi
% Make sure the table of contents has an entry for the bibliography
\addcontentsline{toc}{chapter}{Bibliography}
\begin{singlespacing}
\@input@{\jobname.bbl}
\end{singlespacing}
}