-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathucdenver-dissertation.cls
469 lines (408 loc) · 13.2 KB
/
ucdenver-dissertation.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
%% The `ucdenver-dissertation.cls' is used for formatting a PhD thesis
%% for the Department of Biostatistics & Informatics,
%% University of Colorado Denver.
%% It may be applicable to other students in the Graduate School
%% on Anschutz Medical Campus, but please check the
%% Graduate School rules prior to using.
%%
%% Author: Sarah Kreidler
%% Peter DeWitt
%% Michael Pilosov
%% Jordan Hall
%%
%%
%% Package 'ucdenver-dissertation' to use with LaTeX2e
%% License: GPL-2
%% Copyright: (C) University of Colorado Denver
%% Author: Sarah Kreidler
%% Please report errors to [email protected], and/or
%% [email protected], and/or (more likely to get a response) open an issue at
%% github.com/mathematicalmichael/dissertation-template
%%
%% Change log
%% 13 Apr 2014 - added vspace*{\fill} to the listofigures to center vertically
%% 26 Jan 2016 - commented out the vspace*{\fill} from listtofigures
%% 21 Nov 2020 - updated for 2020 Graduate Student Handbook: ragged edges, different numbering / spacing
%% Table of Contents - added in hspace{7em}, changed depth to 3 for subsubsection to appear
%% Subsubsection - changed from boldfaced to italicized font, % added vspace, which was missing and made 7.0 into 4.5 for em to make indents equal throughout
%% \postSskip and \preSskip set to 0cm, and removed hyperindex = {true} from hypersetup
%% Roman numerals should only appear in chapter headings and chapter number in TOC -- Arabic used otherwise
%% Removed a few lines that were commented out and made a few comments clearer
\def\fileversion{1.0}
\def\filename{ucdenver-dissertation}
\def\filedate{2012/09/24}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{ucdenver-dissertation}[\filedate\space\fileversion\space UCD Dissertation dissertation Class by Sarah Kreidler]
\ProcessOptions
%% load report defaults
\LoadClass[10pt]{report}
%% required packages
\RequirePackage[total={6.5in,9in}, margin=1in, bindingoffset=0in]{geometry}
\RequirePackage[font=singlespacing]{caption}
\RequirePackage[raggedright]{titlesec}
\RequirePackage{setspace,savesym,amsmath,amsthm,amsfonts,graphicx,color,hyperref,extramarks,lastpage,chngpage}
\RequirePackage[T1]{fontenc}
\RequirePackage{fancyhdr}
\RequirePackage{framed}
\RequirePackage{appendix}
%%
%% The following preamble elements are required to properly create
%% the title page
%%
%% definitions from calling document
\newcommand{\authorLast}[1]{\def\@authorLast{#1}}
\newcommand{\authorFirst}[1]{\def\@authorFirst{#1}}
\newcommand{\authorMiddle}[1]{\def\@authorMiddle{#1}}
\newcommand{\education}[1]{\def\@education{#1}}
\newcommand{\school}[1]{\def\@school{#1}}
\newcommand{\program}[1]{\def\@program{#1}}
\newcommand{\advisor}[1]{\def\@advisor{#1}}
\newcommand{\advisorTitle}[1]{\def\@advisorTitle{#1}}
\newcommand{\coadvisor}[1]{\def\@coadvisor{#1}}
\newcommand{\coadvisorTitle}[1]{\def\@coadvisorTitle{#1}}
\newcommand{\committeeChair}[1]{\def\@committeeChair{#1}}
\newcommand{\committeeMembers}[1]{\def\@committeeMembers{#1}}
\newcommand{\submitDate}[1]{\def\@submitDate{#1}}
\newcommand{\acknowledgements}[1]{\def\@acknowledgements{#1}}
\newcommand{\dedication}[1]{\def\@dedication{#1}}
\newcommand{\preface}[1]{\def\@preface{#1}}
%% numbering for theorems
\newcounter{theorem}
\newcounter{lemma}
%% set margins
\geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1in,rmargin=1in}
\pagestyle{fancy} %
\fancyhf{} %
\cfoot{\thepage} %
\renewcommand{\headrulewidth}{0pt} %
%% setup the document
\AtBeginDocument{
\pagenumbering{roman}
\begin{titlepage}
\maketitle
\end{titlepage}
\addtocounter{page}{1}
\makecommitteepage
\makeprefacepage
\makededicationpage
\makeacknowledgementspage
\newpage
\tableofcontents
\newpage
\listoftables
\newpage
\listoffigures
\newpage
\pagenumbering{arabic}
\setcounter{page}{1}
}
%% Format the title page
\renewcommand{\maketitle}{
\vspace{1in}
\doublespacing
\begin{center}
{\MakeUppercase{\@title}} \\
by \\
\MakeUppercase{\@authorFirst{}\ \@authorMiddle{}\ \@authorLast{}} \\
\@education \\[3in]
A thesis submitted to the \\
Faculty of the Graduate School of the \\
University of Colorado in partial fulfillment \\
of the requirements for the degree of \\
Doctor of Philosophy \\
\@program\ Program \\
\@date \\
\end{center}
\vspace*{\fill}
}
%% formatting committee page
\newcommand{\makecommitteepage}{
\newpage
\vspace*{\fill}
\begin{center}
\doublespacing
This thesis for the Doctor of Philosophy degree by \\
\@authorFirst\ \@authorMiddle\ \@authorLast \\
has been approved for the \\
\@program\ Program \\
by \\[3in]
\@committeeChair, Chair \\
\@advisor, Advisor \\
\@committeeMembers \\[1in]
\end{center}
\begin{flushright}
Date: \@submitDate
\end{flushright}
\vspace*{\fill}
}
%% formatting abstract page
\newcommand{\makeprefacepage}{
\newpage
\begin{flushleft}
\@authorLast{}, \@authorFirst{} \@authorMiddle{} (Ph.D., \@program) \\
{ \doublespacing \@title \par Thesis directed by \@advisorTitle{} \@advisor\ \par}
\end{flushleft}
%\medskip
\begin{center}
{\bf ABSTRACT}\\
\end{center}
\raggedright %% ragged edges
{\doublespacing \@preface \par }
\vfill
\begin{flushright}
The form and content of this abstract are approved. We recommend its publication.
\end{flushright}
\begin{flushright}
\hfill Approved: \@advisor\
\end{flushright}
}
%% formatting acknowledgements page
\newcommand{\makeacknowledgementspage}{
\ifdefined\@acknowledgements
\newpage
\begin{center}
{\bf ACKNOWLEDGEMENTS} \\
\end{center}
{ \doublespacing \@acknowledgements }
\fi
}
%% formatting dedication page
\newcommand{\makededicationpage}{
\ifdefined\@dedication
\newpage
\vspace*{\fill}
%\hskip \parindent \@dedication \\ % For a dedication of one or more sentences
\begin{center} \@dedication \end{center} % for a dedication less than one sentence
\vspace*{\fill}
\fi
}
%% Theorems, lemmas, and proofs
%% theorems
%\newenvironment{theorem}{%
% \setcounter{lemma}{1}%
% \refstepcounter{theorem}
% \medskip
% \noindent{\emph{Theorem \thetheorem}.}%
%}{}
%\renewcommand*\thetheorem{\thesection.\arabic{theorem}}
%\newenvironment{problem}{\begin{framed}\begin{bfseries}}{\end{bfseries}\end{framed}\vspace{11pt}}
%% Proofs
%\newenvironment{proof}{%
% \medskip
% \noindent\emph{Proof}\vspace{\z@}
%}
%% colors
%\definecolor{Red}{rgb}{0.5,0,0}
%\definecolor{Blue}{rgb}{0,0,0.5}
%% hyperlink formatting
%% NOTE colors changed to black for final submission
\hypersetup{%
colorlinks = {true},
linktocpage = {true},
plainpages = {false},
linkcolor = {blue},
citecolor = {blue},
urlcolor = {blue},
pdfstartview = {Fit},
pdfpagemode = {UseOutlines},
pdfview = {XYZ null null null}
}
\urlstyle{same}
%% table of contents
\setcounter{tocdepth}{3}
\renewcommand{\@tocrmarg}{2.55em plus1fil}
\renewcommand*\l@chapter[2]{%
\ifnum \c@tocdepth >\m@ne
\addpenalty{-\@highpenalty}%
\vskip 1.0em \@plus\p@
\setlength\@tempdima{1.5em}%
\begingroup
\parindent \z@ \rightskip \@tocrmarg
\parfillskip -\rightskip
\leavevmode
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\nobreak
\leaders\hbox{$\m@th
\mkern \@dotsep mu\hbox{.}\mkern \@dotsep
mu$}\hfill%
\nobreak\hb@xt@\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup
\fi}
\renewcommand*\l@section{\vspace{12pt}\@dottedtocline{1}{1.5em}{2.3em}}
\renewcommand*\l@subsection{\vspace{12pt}\@dottedtocline{2}{3.0em}{3.2em}}
\renewcommand*\l@subsubsection{\vspace{12pt}\@dottedtocline{3}{4.5em}{4.1em}}
\renewcommand*\l@paragraph{\@dottedtocline{4}{10em}{5em}}
\renewcommand*\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
\newcommand{\ucdtocchapterlabel}{CHAPTER}
\newcommand{\ucdtocheader}[1]{\newpage%
\pdfbookmark[0]{\contentsname}{Table of Contents}
{\begin{center}#1\end{center}
\ucdtocchapterlabel
}%
}
\renewcommand\contentsname{TABLE OF CONTENTS}
\renewcommand\tableofcontents{%
%%\setcounter{page}{\value{fmpage}}%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\singlespacing
\ucdtocheader{\textbf{\MakeUppercase\contentsname}}%
\@starttoc{toc}%
\doublespacing
\if@restonecol\twocolumn\fi
}
%% custom list of tables
\newcommand{\ucdlisttableheader}[1]{\newpage%
\pdfbookmark[0]{\listtablename}{LIST OF TABLES}
{\begin{center}#1\end{center}
TABLE
}%
}
\renewcommand\listtablename{LIST OF TABLES}
\renewcommand*\l@table{\vspace{12pt}\@dottedtocline{1}{0em}{2.3em}}
\renewcommand\listoftables{%
\singlespacing
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\ucdlisttableheader{\textbf{\MakeUppercase\listtablename}}%
\@starttoc{lot}%
\if@restonecol\twocolumn\fi
\doublespacing
}
%% custom list of figures
\renewcommand\listfigurename{LIST OF FIGURES}
\newcommand{\ucdlistfigureheader}[1]{\newpage%
\pdfbookmark[0]{\listfigurename}{LIST OF FIGURES}
%\vspace*{\fill}
{\begin{center}#1\end{center}
FIGURE
}%
}
\renewcommand*\l@figure{\vspace{12pt}\@dottedtocline{1}{0em}{2.3em}}
\renewcommand\listoffigures{%
\singlespacing
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\ucdlistfigureheader{\textbf{\MakeUppercase\listfigurename}}%
\@starttoc{lof}%
\if@restonecol\twocolumn\fi
%\vspace*{\fill}
\doublespacing
}
%% we override the abstract command to avoid a new page
\renewenvironment{abstract}{%
\small
\begin{center}%
{\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%
\end{center}%
\quotation
}
%% appendix
\newcommand\ucdappendix{%
\appendix
\addtocontents{toc}{\vspace{12pt}\noindent APPENDIX \par}
}
%% footnote size
\let\footnotesize\normalsize
\renewcommand\footnoterule{%
\vspace{12pt}
\kern-3\p@
\hrule\@width.4\columnwidth
\kern2.6\p@}
\usepackage{chngcntr}
\counterwithout{footnote}{chapter}
%% sections, subsections, and subsubsections
\newlength{\preXLskip}
\newlength{\preLskip}
\newlength{\preMskip}
\newlength{\preSskip}
\newlength{\postMskip}
\newlength{\postSskip}
\setlength{\preXLskip}{1.8\baselineskip plus 0.5ex minus 0ex}
\setlength{\preLskip}{1.5\baselineskip plus 0.3ex minus 0ex}
\setlength{\preMskip}{1\baselineskip plus 0.2ex minus 0ex}
\setlength{\preSskip}{0cm}
\setlength{\postMskip}{.5\baselineskip plus 0ex minus 0.1ex}
\setlength{\postSskip}{0cm}
\newcounter {chapternn}
\renewcommand \thechapternn {\@arabic\c@chapternn}
% chapter
\renewcommand \thechapter {\@Roman\c@chapter}
\newcommand{\ucdchapter}[2][default]{
\newpage%
\refstepcounter{chapter}%
\addcontentsline{toc}{chapter}{\hspace{2em} \thechapter.\space #1}
{\begin{center}\textbf{\MakeUppercase\@chapapp\ \thechapter \\ #2}\end{center}} \nopagebreak
\vskip \postSskip \nopagebreak
}
\newcommand{\ucdchapternn}[1]{\newpage%
\refstepcounter{chapternn}% -- required to make pdf bookmarks work
\addcontentsline{toc}{chapter}{#1}
{\begin{center}\textbf{#1}\end{center}} \nopagebreak
\vskip \postSskip \nopagebreak
}
% part
\newcommand{\ucdpart}[2][default]{
\newpage%
\refstepcounter{part}%
\addcontentsline{toc}{part}{Part \thepart\space #1}
{\@afterindentfalse\@afterheading\singlespacing\textbf{\Huge Part \thepart\space #2}} \nopagebreak
\vskip \postMskip \nopagebreak
}
\newcommand{\ucdpartnn}[1]{\newpage%
\addcontentsline{toc}{part}{#1}
{\@afterindentfalse\@afterheading\singlespacing\textbf{\Huge #1}} \nopagebreak
\vskip \postMskip \nopagebreak
}
% section
\newcommand{\ucdsec}[2][default]{%
\refstepcounter{section}%
\addcontentsline{toc}{section}{\hspace{3em}\thesection\space #1}
{\@afterindentfalse\@afterheading\singlespacing\centerline{\textbf{\thesection\space #2}}} \nopagebreak
\vskip \postSskip \nopagebreak
}
\newcommand{\ucdsecnn}[1]{%
{\@afterindentfalse\@afterheading\singlespacing\textbf{#1}} \nopagebreak
\vskip \postSskip \nopagebreak
}
\renewcommand \thesection {\arabic{chapter}.\arabic{section}}
% subsection
\newcommand{\ucdsubsec}[2][default]{%
\refstepcounter{subsection}%
\addcontentsline{toc}{subsection}{\hspace{5em}\thesubsection\space #1}
{\@afterindentfalse\@afterheading\singlespacing\textbf{\thesubsection\space #2}} \nopagebreak
\vskip \postSskip \nopagebreak}
\newcommand{\ucdsubsecnn}[1]{%
{\@afterindentfalse\@afterheading\singlespacing\textbf{#1}} \nopagebreak
\vskip \postSskip \nopagebreak
}
% subsubsection
\newcommand{\ucdsubsubsec}[2][default]{%
\refstepcounter{subsubsection}%
\addcontentsline{toc}{subsubsection}{\hspace{7em}\thesubsubsection\space #1}
{\@afterindentfalse\@afterheading\singlespacing\normalsize\textit{\thesubsubsection\space #2}} \nopagebreak
\vskip \postSskip \nopagebreak}
\newcommand{\ucdsubsubsecnn}[1]{%
{\@afterindentfalse\@afterheading\singlespacing{\normalsize\textbf #1}} \nopagebreak
\vskip \postSskip \nopagebreak
}
\renewcommand{\chapter}{\secdef \ucdchapter \ucdchapternn}
\renewcommand{\part}{\secdef \ucdpart \ucdpartnn}
\renewcommand{\section}{\secdef \ucdsec \ucdsecnn}
\renewcommand{\subsection}{\secdef \ucdsubsec \ucdsubsecnn}
\renewcommand{\subsubsection}{\secdef \ucdsubsubsec \ucdsubsubsecnn}
\renewcommand{\thefigure}{\arabic{chapter}.\arabic{figure}}
\renewcommand{\thetable}{\arabic{chapter}.\arabic{table}}
%%
%% End of file `ucdenver-dissertation.cls'.