-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutthesis.cls
More file actions
357 lines (348 loc) · 15.8 KB
/
utthesis.cls
File metadata and controls
357 lines (348 loc) · 15.8 KB
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% UT.UT.UT.UT.UT UT.UT.UT.UT.UT.U UT.UT.UT.UT.UT.UT.UT.UT.UT.UT.UT"" %
% UT.UT.UT.UT.UT ""UT.UT.UT.UT.UT.U UT.UT.UT.UT.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UT.UT.UT.UT.UT.UT.U UT.UT.UT.UT. %
%-----------------------------------------------------------------------------------%
%-----------------------------------------------------------------------------------%
% T H E S I S & D I S S E R T A T I O N T E M P L A T E %
%-----------------------------------------------------------------------------------%
%-----------------------------------------------------------------------------------%
% This template is distributed with ABSOLUTELY NO WARRANTY.
% It serves as a guideline and constitutes a basic structure for a
% thesis/dissertation. The user assumes full responsibility for formatting
% and typesetting their document and for verifying that all the thesis
% requirements set by the University of Tennessee are met. Please refer to the most
% recent UT thesis guide (http://web.utk.edu/~thesis/thesisresources.shtml)
% or contact the thesis consultant (http://web.utk.edu/~thesis/).
% Please report any bugs to the thesis consultant.
\NeedsTeXFormat{LaTeX2e}%
\def\filename{utthesis.cls}%
\def\fileversion{ver 1.0.0}%
\def\filedate{March 30, 2010}%
\def\contributors{Tony Saad}%
\typeout{\filename}%
\typeout{\fileversion}%
\typeout{Created by Tony Saad}%
\typeout{\filedate}%
\typeout{Some parts and settings of this class are based on the template provided by David L. Page.}
%---------------------------------------------------------------------------------------------------%
\ProvidesClass{utthesis}
% some internal variables
\def\thesisID{1}%
\def\dissertationID{2}%
\def\theDocumentType#1{\gdef\@theDocumentType{#1}}%
\def\documentID#1{\gdef\@documentID{#1}}% documentID is either 1 (for thesis) or 2 (for dissertation)
% declare package options
\DeclareOption{thesis}{%
\def\@theDocumentType{thesis}%
\def\@documentID{\thesisID}}%
\DeclareOption{dissertation}{%
\def\@theDocumentType{dissertation}%
\def\@documentID{\dissertationID}}%
\DeclareOption{linespacing}{\@lnspacing}
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{color}}%
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}%
\ExecuteOptions{dissertation,letterpaper,12pt}% execute default options
\ProcessOptions%
\LoadClass{report} % single-sided
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Main Definitions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\copyrightYear#1{\gdef\@copyrightYear{#1}}%
\def\graduationMonth#1{\gdef\@graduationMonth{#1}}%
\def\majorProfessor#1{\gdef\@majorProfessor{#1}}%
\def\keywords#1{\gdef\@keywords{#1}}%
\def\viceProvost#1{\gdef\@viceProvost{#1}} %
\def\major#1{\gdef\@major{#1}}%
\def\degree#1{\gdef\@degree{#1}}%
\def\college#1{\gdef\@college{#1}}%
\def\dept#1{\gdef\@dept{#1}}%
\def\university#1{\gdef\@university{#1}}%
\def\numberOfCommitteeMembers#1{\gdef\@numberOfCommitteeMembers{#1}} % enter the number of committee members
\def\committeeMemberA#1 {\gdef\@committeeMemberA{#1}}% first committee member
\def\committeeMemberB#1 {\gdef\@committeeMemberB{#1}}% second committee member
\def\committeeMemberC#1 {\gdef\@committeeMemberC{#1}}% ... you get the trend!
\def\committeeMemberD#1 {\gdef\@committeeMemberD{#1}}%
\def\committeeMemberE#1 {\gdef\@committeeMemberE{#1}}%
% initialize macros
\def\@title{My Title}
\def\@author{My Name}
\def\@keywords{My Keywords}
\def\@graduationMonth{May}
\def\@copyrightYear{2009}
\def\@majorProfessor{My Advisor}
\def\@degree{Doctor of Philosophy} % degree type
\def\@college{Engineering} % college
\def\@dept{Mechanical, Aerospace and Biomedical Engineering} % department
\def\@viceProvost{Carolyn R. Hodges} % vice provost name
\def\@major{Mechanical Engineering} % major
\def\@university{The University of Tennessee, Knoxville} % school
\def\@numberOfCommitteeMembers{3}
\def\@committeeMemberA {Committee member A} % first committee member
\def\@committeeMemberB {Committee member B} % second committee member
\def\@committeeMemberC {Committee member C} % ... you get the trend!
\def\@committeeMemberD {Committee member D} %
\def\@committeeMemberE {Committee member E} %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% LOAD PACKAGES
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{amsmath,amsthm,amssymb} % AMS math, AMS theorem, AMS fonts
\RequirePackage{setspace} % line spacing
\RequirePackage[vcentering,dvips]{geometry} % help with margins
\RequirePackage[pdftex,plainpages=false,pdfpagelabels=true,breaklinks=true,pagebackref]{hyperref} % for pdf bookmarks
\RequirePackage{color}
%----------------------------------------------------------------------------------------------------%
% define theorem, corollary, and lemma environments
\theoremstyle{plain}
\newtheorem*{theorem*}{Theorem}
\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{corollary}{Corollary}[theorem]
\newtheorem{lemma}{Lemma}[theorem]
%----------------------------------------------------------------------------------------------------%
% allow empty pages before chapters (i.e. no page numbers)
\let\origdoublepage\cleardoublepage
\newcommand{\clearemptydoublepage}{%
\clearpage
{\pagestyle{empty}\origdoublepage}%
}
\let\cleardoublepage\clearemptydoublepage
%----------------------------------------------------------------------------------------------------%
\hypersetup{%
bookmarksnumbered = true,
pdftitle={\@title},
pdfauthor={\@author},
pdfsubject={\@dept},
pdfkeywords={\@keywords},
pdfpagelayout=SinglePage,
bookmarksopen=False,
%pdfview=FitV,
pdfborder=0 0 0, % make all links invisible, so the pdf looks good when printed
pdffitwindow=true, % window fit to page when opened
%pdfstartview={FitV}, % fits the width of the page to the window
pdfcreator={\@author}, % creator of the document
pdfnewwindow=true, % links in new window
colorlinks=true, % false: boxed links; true: colored links
linkcolor=blue, % color of internal links
citecolor=magenta, % color of links to bibliography
filecolor=magenta, % color of file links
urlcolor=cyan % color of external links
}
%----------------------------------------------------------------------------------------------------%
\geometry{
letterpaper,
left = 1.5in,
right = 1.0in,
top = 1.0in,
bottom = 1.375in
}
%\hyphenation{example, pa-ra-me-ter} % Over-ride Latex hyphenation, define hyphenated words
\hyphenpenalty=5000 % reduce hyphenation as much as possible
\tolerance=1000 % goes with the previous command
% Widow/orphan protection
\clubpenalty=10000 % Minimize orphans orphans(eliminate 10000)
\widowpenalty=10000 % Minimize widows
\brokenpenalty=10000 % Do not allow hyphen across pages
% Use cool footnotes
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\raggedbottom
\pagestyle{plain}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% makeTitlePage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\makeTitlePage} {
\thispagestyle{empty}
\begin{spacing}{1.5}
\vspace*{0.3in}
\begin{center}
\huge
\bf
\@title%
%\vspace*{1.5in} \mbox{} \\
\vfill
\Large \rm
\ifnum\@documentID=\thesisID {
A Thesis Presented for
The \@degree
} \else {
A Dissertation
Presented for the
\@degree
} \fi
Degree
\@university
\vspace*{1.0in}%
\@author %
\\%
\@graduationMonth\ \@copyrightYear
\end{center}
\end{spacing}
\cleardoublepage
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% makeApprovalPage: this macro will make the approval page
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand {\makeApprovalPage} {
\thispagestyle{empty}
\begin{spacing}{1.1}
\noindent To the Graduate Council:
\noindent I am submitting herewith a \@theDocumentType\ written by \@author \, entitled ``\@title.''
I have examined the final paper copy of this \@theDocumentType\ for form and
content and recommend that it be accepted in partial fulfillment
of the requirements for the degree of \@degree, with a major in \@major.
\vspace*{.35in} \noindent
\newline
\hspace*{3.5in}\underline{\hspace*{2.5in}}
{\begin{flushright} \@majorProfessor, Major Professor \end{flushright}} %
\begin{singlespace}
\noindent We have read this \@theDocumentType
\newline and recommend its acceptance:
\addCommitteeMember{\@committeeMemberA}
\addCommitteeMember{\@committeeMemberB}
\ifnum\@numberOfCommitteeMembers>2
\addCommitteeMember{\@committeeMemberC}
\fi
\ifnum\@numberOfCommitteeMembers>3
\addCommitteeMember{\@committeeMemberD}
\fi
\ifnum\@numberOfCommitteeMembers>4
\addCommitteeMember{\@committeeMemberE}
\fi
\vfill
{\noindent \hspace*{2.65in}Accepted for the Council:
\\[20pt]
\hspace*{2.65in}\underline{\hspace*{2.5in}}
\newline
\hspace*{2.65in}\@viceProvost
\\[6pt]
\hspace*{2.6in} Vice Provost and Dean of the Graduate School}
\end{singlespace}
\end{spacing}
\pagebreak%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% makeETDApprovalPage: this macro will make the ETD approval page
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand {\makeETDApprovalPage} {
\thispagestyle{empty}
\begin{spacing}{1.1}
\noindent To the Graduate Council:
\noindent I am submitting herewith a \@theDocumentType\ written by \@author \, entitled ``\@title.''
I have examined the final electronic copy of this \@theDocumentType\ for form and
content and recommend that it be accepted in partial fulfillment
of the requirements for the degree of \@degree, with a major in \@major.
\vspace*{.05in} \noindent
{\begin{flushright} \@majorProfessor, Major Professor \end{flushright}} %
\vspace*{.1in} \noindent
\begin{singlespace}
\noindent We have read this \@theDocumentType
\newline and recommend its acceptance:
\addCommitteeMemberETD{\@committeeMemberA}
\addCommitteeMemberETD{\@committeeMemberB}
\ifnum\@numberOfCommitteeMembers>2
\addCommitteeMemberETD{\@committeeMemberC}
\fi
\ifnum\@numberOfCommitteeMembers>3
\addCommitteeMemberETD{\@committeeMemberD}
\fi
\ifnum\@numberOfCommitteeMembers>4
\addCommitteeMemberETD{\@committeeMemberE}
\fi
\vfill
\noindent \hspace*{2.65in}Accepted for the Council:
\newline
\\[-2pt]
\noindent \hspace*{2.65in}\@viceProvost
\\[-8pt]
\noindent \hspace*{2.65in}\underline{\hspace*{2.5in}}
\newline
\newline
\hspace*{2.65in}Vice Provost and Dean of the Graduate School
\begin{center}
(Original signatures are on file with official student records.)
\end{center}
\end{singlespace}
\end{spacing}
\pagebreak%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\addCommitteeMember}[1] {
\vspace*{.3in}%
\newline%
\underline{\hspace*{2.5in}}%
\\[8pt]%
\noindent #1%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\addCommitteeMemberETD}[1] {
\vspace*{.25in}%
\newline%
\noindent #1%
\\[-8pt]%
\underline{\hspace*{2.5in}}%
\newline%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\makeAppendixPage}{
\newpage
\vspace*{2.0in}
\begin{center}\Huge \bf{Appendix} \end{center}
\newpage
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\makeBibliographyPage}{
\newpage % create a new page for the bibliography title
\addToTOC{Bibliography} % add bibliography to table of contents
\vspace*{2.0in} % move down the page 2.0 inches
\begin{center}\Huge\bf{Bibliography}\end{center} % make the bibliography title
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% addToTOC: macro that adds an entry to the table of contents
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand {\addToTOC}[1] {
\cleardoublepage
\phantomsection
\addcontentsline{toc}{part}{#1}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% addToPDFBookmarks: macro that adds a bookmark to the PDF file
% without including it in the table of contents
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand {\addToPDFBookmarks}[3] {
\cleardoublepage
\phantomsection
\pdfbookmark[#1]{#2}{#3}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% makeCopyrightPage: this macro will make the copyright page
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand {\makeCopyrightPage} {
%\thispagestyle{empty}
\phantom{.}
\vspace*{4in}
\begin{center}
\copyright\ by \@author, \@copyrightYear \\
All Rights Reserved.
\end{center}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput