-
Notifications
You must be signed in to change notification settings - Fork 1
/
ukydissertation.cls
240 lines (229 loc) · 6.77 KB
/
ukydissertation.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
%%
%% This is file `ukydissertation.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% ukydissertation.dtx (with options: `class')
%%
%% This is a generated file.
%%
%% Copyright (C) 2015 by Grady Weyenberg <grady.weyenberg@uky.edu>.
%%
%% 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}
\ProvidesClass{ukydissertation}
[2015/06/05 v0.2 UKY Dissertation Class]
\newif\if@endorse
\newif\if@dedication
\@dedicationfalse
\newif\if@acknowledgements
\@acknowledgementsfalse
\newif\if@mainmatter
\@mainmatterfalse
\DeclareOption{endorse}{\@endorsetrue}
\DeclareOption{noendorse}{\@endorsefalse}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
\ExecuteOptions{noendorse, 12pt, letterpaper}
\ProcessOptions
\LoadClass{report}
\RequirePackage[hmargin={1.5in,1in},vmargin=1in,foot=0.5in]{geometry}
\RequirePackage[nottoc]{tocbibind}
\RequirePackage{needspace}
\newcommand{\college}[1]{\renewcommand{\@college}{#1}}
\newcommand{\@college}{\@latex@warning@no@line%
{No \noexpand\college given} COLLEGE}
\newcommand{\director}[1]{\renewcommand{\@director}{#1}}
\newcommand{\@director}{\@latex@warning@no@line%
{No \noexpand\director given} Advisor}
\newcommand{\dgs}[1]{\renewcommand{\@dgs}{#1}}
\newcommand{\@dgs}{\@latex@warning@no@line%
{No \noexpand\dgs given} DGS}
\newcommand{\department}[1]{\renewcommand{\@department}{#1}}
\newcommand{\@department}{\@latex@warning@no@line%
{No \noexpand\department given} DEPARTMENT}
\newcommand{\keywords}[1]{\renewcommand{\@keywords}{#1}}
\newcommand{\@keywords}{\@latex@warning@no@line%
{No \noexpand\keywords given}}
\renewcommand{\abstract}[1]{\renewcommand\@abstract{#1}}
\newcommand{\@abstract}{\@latex@warning@no@line%
{No \noexpand\abstract given}}
\newcommand{\dedication}[1]{\@dedicationtrue
\newcommand{\@dedication}{#1}}
\newcommand{\acknowledgements}[1]{\@acknowledgementstrue
\newcommand{\@acknowledgements}{#1}}
\newcommand\makefrontmatter{%
\maketitle \@makeabstract \@makeapproval
\if@dedication\@makededication\fi
\setcounter{page}{3}
\pagestyle{plain}
\if@acknowledgements\@makeacknowledgements\fi
\pdfbookmark[chapter]{\contentsname}{toc}
\tableofcontents \listoftables \listoffigures
\clearpage
\pagenumbering{arabic} \global\let\thanks\relax
\global\let\maketitle\relax \global\let\title\relax
\global\let\author\relax \global\let\date\relax
\global\let\and\relax \global\let\abstract\relax
\global\let\dedication\relax}
\newcommand{\backmatter}{\@mainmatterfalse\appendix}
\newcommand{\vita}{\clearpage\chapter*{Vita}%
\addcontentsline{toc}{chapter}{Vita}}
\renewcommand{\@makechapterhead}[1]{%
{\parindent \z@ \centering \normalfont
\ifnum \c@secnumdepth >\m@ne
\bfseries \@chapapp\space \thechapter
\par\nobreak
\vskip 10\p@
\fi
\interlinepenalty\@M
\bfseries #1\par\nobreak
\vskip 20\p@
}}
\renewcommand{\@makeschapterhead}[1]{%
{\parindent \z@ \raggedright
\normalfont
\interlinepenalty\@M
\centering\bfseries #1\par\nobreak
\vskip 20\p@
}}
\renewcommand{\section}{%
\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\bfseries}}
\renewcommand{\subsection}{%
\@startsection{subsection}{2}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\bfseries}}
\newcommand{\@period}[1]{#1.--- }
\renewcommand{\subsubsection}{%
\@startsection{subsubsection}{3}{\z@}%
{3.25ex \@plus1ex \@minus.2ex}%
{\z@}%
{\normalfont\normalsize\itshape\@period}}
\renewcommand\maketitle{%
\setcounter{page}{0}
\pagestyle{empty}
{\let\footnotesize\small
\let\footnoterule\relax
\let\footnote\thanks
\null
\bookmark[named=FirstPage,level=0]{Title Page}
\vskip 1.5in%
\begin{center}%
\parbox[t][1.5in]{\textwidth}%
{\centering\MakeUppercase\@title\par}%
\par
\parbox[t][3\baselineskip]%
{0.5\textwidth}{\hrule\vskip\baselineskip%
\centering DISSERTATION%
\par\vskip\baselineskip\hrule}
\vskip\baselineskip%
{A dissertation submitted in partial fulfillment of the \\
requirements for the degree of Doctor of Philosophy in the \\
\@college\\ at the University of Kentucky\par}%
\vskip 2\baselineskip%
{By\par\vskip 0.5\baselineskip\@author\par}%
\vskip 0.5\baselineskip%
{Lexington, Kentucky\par}%
\vskip 1em%
{Director: Dr. \@director, Professor of \@department\par}%
\vskip 0.5\baselineskip%
{Lexington, Kentucky\par}%
\vfill
{Copyright \textcopyright\ \@author\ \the\year\par}%
\vspace*{1.5in}\par
\end{center}\par
\null}
\clearpage
\setcounter{footnote}{0}}
\newcommand\@makeabstract{%
\pagestyle{empty}
\pagenumbering{Roman}
\hypertarget{abstract}{}
\bookmark[dest=abstract,level=0]{Abstract}
\null\vskip 1.5in
\begin{center}%
\parbox[t][1in]{\textwidth}{\centering ABSTRACT OF DISSERTATION\par}
\MakeUppercase\@title\par
\end{center}
\@abstract
\par\vspace\baselineskip\noindent
KEYWORDS: \parbox[t]{0.8\textwidth}{\@keywords}
\par\needspace{1.5in}\null\vfill
\hfill\parbox[t][1.5in]{0.5\textwidth}{%
\if@endorse
{\centering\MakeUppercase\@author\par}\vskip 2pt
\else\fi
\hrule
\vskip 2pt
Student's Signature\par
\vfil
\if@endorse
{\centering\MakeUppercase\@date\par}\vskip 2pt
\else\fi
\hrule
\vskip 2pt
Date\par}
\par\null\clearpage}
\newcommand\@makeapproval{
\pagenumbering{roman}
\null\vskip 2in
\noindent\parbox[t][1in]{\textwidth}%
{\centering\MakeUppercase\@title\par}\par
\begin{centering}
By
\vskip0.5\baselineskip
\@author\par
\end{centering}
\vfill
\hfill\parbox[t][3in]{0.5\textwidth}{%
\if@endorse
{\centering\MakeUppercase\@director\par}\vskip 2pt
\else\fi
\hrule
\vskip 2pt
Director of Dissertation\par
\vfil
\if@endorse
{\centering\MakeUppercase\@dgs\par}\vskip 2pt
\else\fi
\hrule
\vskip 2pt
Director of Graduate Studies\par
\vfil
\if@endorse
{\centering\MakeUppercase\@date\par}\vskip 2pt
\else\fi
\hrule
\vskip 2pt
Date\par}\hskip 1in
\par\vfil\clearpage}
\newcommand\@makeacknowledgements{
\phantomsection
\addcontentsline{toc}{chapter}{Acknowledgements}
\null
{\centering ACKNOWLEDGEMENTS \par}
\vspace{\baselineskip}\noindent
\@acknowledgements
\par\vfil\clearpage}
\newcommand\@makededication{%
\null\vfil
\@dedication
\par\vfil
\clearpage}
\renewcommand{\contentsname}{Table of Contents}
\endinput
%%
%% End of file `ukydissertation.cls'.