-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUTSAthesis.sty
More file actions
495 lines (441 loc) · 15.5 KB
/
UTSAthesis.sty
File metadata and controls
495 lines (441 loc) · 15.5 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
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
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
%%%
%%% utsathesis.sty
%%%
%%% Author: Xu (Kevin) Su, Sept 2008
%%% Modified by: Prof. Weining Zhang, Feb. 2012
%%% Usage: \documentclass[12pt]{report}
%%% \RequirePackage{UTSAthesis} or \RequirePackage[ms]{UTSAthesis}
%%% The default thesis style is for PhD Dissertation
%%%
%%% This file is a LaTeX2e style file for creating documents which
%%% meet the Spring 2008 UTSA Graduate School dissertation guidelines.
%%% Note that this style file has not been tested under every
%%% possible configuration and no guarantees are made.
%%%
%%% Need to define the following
%%% \thesistitle{Thesis Title}
%%% \thesisauthor{Author's Name}
%%% \thesiscopyright{Optional Copyright Statement}
%%% \thesismonth{Month}
%%% \thesisyear{Year}
%%% \thesisabstract{The abstract starts here. Should within one page.}
%%% \degree{Doctor of Philosophy in Field Name}
%%% \degreeshort{Ph.D.}
%%% \department{Department Name}
%%% \college{College Name}
%%% \dedication{Optional Dedication}
%%% \acknowledgements{People, organization, supports that you want to thank for}
%%% \supervisor{My Supervisor, Degree}
%%% \cosupervisor{Optional, default to empty string}
%%% \committeeB{Committe member B, Degree}
%%% \committeeC{Committe member C, Degree}
%%% \committeeD{Committe member D, Degree}
%%% \committeeE{Committe member E, Degree}
\NeedsTeXFormat{LaTeX2e}
\DeclareOption{phd}{%
\def\@thesistype{DISSERTATION}%
\def\@signature{
\begin{flushright}
APPROVED BY SUPERVISING COMMITTEE:\\[4pt]
\rule{3.3in}{0.5pt} \\[-12pt]
\raisebox{0pt}{\makebox[3.3in][r]{\@committeeA}}\\[4pt]
\rule{3.3in}{0.5pt} \\[-12pt]
\raisebox{0pt}{\makebox[3.3in][r]{\@committeeB}} \\[4pt]
\rule{3.3in}{0.5pt} \\[-12pt]
\raisebox{0pt}{\makebox[3.3in][r]{\@committeeC}} \\[4pt]
\rule{3.3in}{0.5pt} \\[-12pt]
\raisebox{0pt}{\makebox[3.3in][r]{\@committeeD}} \\[4pt]
\rule{3.3in}{0.5pt} \\[-12pt]
\raisebox{0pt}{\makebox[3.3in][r]{\@committeeE}} \\[4pt]
Accepted:\hspace{1em}\rule{3.3in}{0.5pt} \\[-12pt]
\raisebox{0pt}{\makebox[3.3in][r]{Dean, Graduate School}}
\end{flushright}
}
}% End PHD
\DeclareOption{ms}{%
\def\@thesistype{THESIS}%
\def\@signature{
\begin{flushright}
APPROVED BY SUPERVISING COMMITTEE:\\[4pt]
\rule{3.3in}{0.5pt} \\[-12pt]
\raisebox{0pt}{\makebox[3.3in][r]{\@committeeA}}\\[4pt]
\rule{3.3in}{0.5pt} \\[-12pt]
\raisebox{0pt}{\makebox[3.3in][r]{\@committeeB}} \\[4pt]
\rule{3.3in}{0.5pt} \\[-12pt]
\raisebox{0pt}{\makebox[3.3in][r]{\@committeeC}} \\[4pt]
% \rule{3.3in}{0.5pt} \\[-12pt]
% \raisebox{0pt}{\makebox[3.3in][r]{\@committeeD}} \\[4pt]
% \rule{3.3in}{0.5pt} \\[-12pt]
% \raisebox{0pt}{\makebox[3.3in][r]{\@committeeE}} \\[4pt]
Accepted:\hspace{1em}\rule{3.3in}{0.5pt} \\[-12pt]
\raisebox{0pt}{\makebox[3.3in][r]{Dean, Graduate School}}
\end{flushright}
}
}% End MS
\typeout{UTSAthesis.sty by Prof. Weining Zhang, March 2012}
\typeout{Vertion 2.0. Confirm to UTSA Thesis/Dissertation Style 2011}
\ExecuteOptions{phd}
\ProcessOptions
\RequirePackage{times}
\RequirePackage{epsfig}
\RequirePackage{amsmath}
\RequirePackage{amssymb}
\RequirePackage{amsthm}
\RequirePackage{setspace}
\RequirePackage{lscape}
\RequirePackage{graphicx}
\RequirePackage{cite}
\RequirePackage{latexsym}
\RequirePackage{amsfonts}
\RequirePackage{algorithm}
\RequirePackage[noend]{algorithmic}
\RequirePackage{xspace}
\RequirePackage{enumerate}
\RequirePackage{array}
\RequirePackage{color}
\RequirePackage{subfig}
\RequirePackage{cases}
\RequirePackage{textcase}
%
%--------------------- margins ------------------------------------------%
% This sets the top, left margin to 1 and 1/4 inches %
% right and bottom margin to 3/4 inch. %
% the distance between page number and bottom edge of page to 1/2 inch %
%------------------------------------------------------------------------%
\setlength{\pdfpagewidth}{8.5in} % paper width
\setlength{\pdfpageheight}{11in} % paper height
\setlength{\textwidth}{6.5in} %
\setlength{\textheight}{8.9in} %
%\setlength{\oddsidemargin}{0.25in} % left margin;
%\setlength{\evensidemargin}{0.25in} %
%\setlength{\topmargin}{0.25in} % top margin;
\setlength{\oddsidemargin}{0.0in} % left margin;
\setlength{\evensidemargin}{0.0in} %
\setlength{\topmargin}{0.0in} % top margin;
\setlength{\headheight}{0.0in} % Height of the header (the header is text that appears atop all pages)
\setlength{\headsep}{0.0in} % Distance from bottom of header to the body of text on a page.
\setlength{\topskip}{0.0in} % Distance from top of main text box to the baseline of the first line of
% text in the main text box.
\setlength{\footskip}{0.35in} % Distance from bottom of body to the bottom of the footer\
% % value = 11 - (1.0 + 0.25) - 8.9 - 0.5 = 0.35
% ------------------ change name format---------------
\renewcommand{\bibname}{\vspace{0.1875in}\centering\large\bf BIBLIOGRAPHY
\addcontentsline{toc}{chapter}{\hspace{-0.25in}\protect\numberline{}
{Bibliography}{\dotfill}}
}
% -----------------------change heading ------------------------
% This is used for change title font size for table of content,
% List of Figures and List of Tables
% --------------------------------------------------------------
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
\refstepcounter{chapter}%
\typeout{\@chapapp\space\thechapter.}%
\addcontentsline{toc}{chapter}%
{\@chapapp\space {\thechapter}: {#1}{\dotfill}}%
\else
\addcontentsline{toc}{chapter}{#1}%
\fi
\chaptermark{#1}%
\addtocontents{lof}{\protect\addvspace{10\p@}}%
\addtocontents{lot}{\protect\addvspace{10\p@}}%
\if@twocolumn
\@topnewpage[\@makechapterhead{#2}]%
\else
\@makechapterhead{#2}%
\@afterheading
\fi}
\def\@makechapterhead#1{%
\vspace*{-20\p@}%
{\parindent \z@ \raggedright \normalfont
\interlinepenalty\@M
\ifnum \c@secnumdepth >\m@ne
\centering \large\bfseries
\uppercase{\@chapapp\space \thechapter: #1}
\fi
\vskip 20\p@
}}
\def\@makeschapterhead#1{%
%\vspace*{-26\p@}%
\vspace*{-20\p@}%
{\parindent \z@ \raggedright
\normalfont
\interlinepenalty\@M
%\centering \large \bfseries #1\par\nobreak
\centering \bfseries #1\par\nobreak
\vskip 20\p@
}}
% ------------------ define section/subsection format---------------
\renewcommand{\section}{\@startsection
{section}% % the name
{1}% % the level
{0mm}% % the indent
{-0.5\baselineskip}% % the before skip
{0.5\baselineskip}% % the after skip
{\normalfont\large\bfseries}} % the style
%
%
\renewcommand{\subsection}{\@startsection
{subsection}% % the name
{2}% % the level
{0mm}% % the indent
{-0.5\baselineskip}% % the before skip
{0.5\baselineskip}% % the after skip
%{\normalfont\large\bfseries}} % the style
{\normalfont\normalsize\bfseries}} % the style
\renewcommand{\subsubsection}{\@startsection
{subsubsection}% % the name
{3}% % the level
{0mm}% % the indent
{-0.5\baselineskip}% % the before skip
{0.5\baselineskip}% % the after skip
{\normalfont\normalsize\bfseries}} % the style
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Re-define List of Figures and List of Tables
%
\renewcommand\tableofcontents{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\newpage
\renewcommand{\contentsname}{
\vspace{0.1875in}\centering\bf TABLE OF CONTENTS}
\chapter*{\contentsname
\@mkboth{%
\MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
\@starttoc{toc}%
\if@restonecol\twocolumn\fi
}
\renewcommand\listoffigures{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\newpage
\addcontentsline{toc}{chapter}{\hspace{-0.25in}\protect\numberline{}
{List of Figures}{\dotfill}}
\renewcommand\listfigurename{\vspace{0.1875in}\centering\bf LIST OF FIGURES}
\chapter*{\listfigurename}%
\@mkboth{\MakeUppercase\listfigurename}%
{\MakeUppercase\listfigurename}%
\@starttoc{lof}%
\if@restonecol\twocolumn\fi
}
\renewcommand*\l@figure{\@dottedtocline{1}{1.5em}{5.3em}}
\renewcommand{\fnum@figure}{{\bf \figurename~\thefigure}} %
\newcommand{\ffnum@figure}{Figure \thefigure}
\renewcommand\listoftables{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\newpage
\addcontentsline{toc}{chapter}{\hspace{-0.25in}\protect\numberline{}
{List of Tables}{\dotfill}}
\renewcommand\listtablename{\vspace{0.1875in}\centering\bf LIST OF TABLES}
\chapter*{\listtablename}%
\@mkboth{%
\MakeUppercase\listtablename}%
{\MakeUppercase\listtablename}%
\@starttoc{lot}%
\if@restonecol\twocolumn\fi
}
\renewcommand*\l@table{\@dottedtocline{1}{1.5em}{5.3em}}
\renewcommand{\fnum@table}{{\bf \tablename~\thetable}} %
\newcommand{\ffnum@table}{Table \thetable}
\long\def\@caption#1[#2]#3{%
\par
\addcontentsline{\csname ext@#1\endcsname}{#1}%
{\protect\numberline{\csname ffnum@#1\endcsname}{\ignorespaces #2}}%
\begingroup
\@parboxrestore
\if@minipage
\@setminipage
\fi
\normalsize
\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
\endgroup}
\newenvironment{acknowledgements}{
\addcontentsline{toc}{chapter}{\hspace{-0.25in}\protect\numberline{}{
Acknowledgements}{\dotfill}}
\begin{center}
{\bf ACKNOWLEDGEMENTS}
\end{center}
\vspace{2ex}
}{
\vfill
\begin{singlespace}
\begin{center}
\@month\ \@year
\end{center}
\end{singlespace}
\newpage
}
\renewenvironment{abstract}{
\addcontentsline{toc}{chapter}{\hspace{-0.25in}\protect\numberline{}
{Abstract}{\dotfill}}
\begin{center}
\@thesistitle
\vspace{0.4in}
\begin{spacing}{1}
\@thesisauthor, \@degreeshort \\
The University of Texas at San Antonio, \@year \\
\end{spacing}
\vspace{0.25in}
Supervising Professor:
\ifx \@empty\@cosupervisor
\@supervisor \\
\else
\@supervisor\space and \@cosupervisor \\
\fi
\end{center}
\hspace*{\parindent}
}{
\newpage
\tableofcontents
\listoffigures
\listoftables
}
\newcommand{\pageone}{
\newpage
\pagenumbering {arabic}
\setcounter {page}{1}
\pagestyle{plain}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The command that produces the preliminary pages
% satisfying UTSA Grad School guideline as of 2008
%
\renewcommand{\maketitle}{
\doublespacing
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Preliminaries - as per 9-6-2011 UTSA Graduate School Guidelines
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 1. Blank Page (not counted or typed)
% \pagestyle{empty}
% \mbox{}
% 2. Signature Page (not counted or typed)
% \newpage
% \pagestyle{empty}
% \begin{center}
% \@thesistitle
% \end{center}
% \vfill % put signature lines at bottom of page
% \@signature
% 3. Copyright (optional, counted, not typed)
% \ifx \@empty\@thesiscopyright
% \else
% \newpage
% \pagenumbering{roman} %counting starts
% \pagestyle{empty}
% \vspace*{1.5in}
% \begin{singlespace}
% \begin{center}
% \@thesiscopyright
% \end{center}
% \end{singlespace}
% \fi
% 5. Title page (counted, note typed)
\newpage
\pagestyle{empty}
\begin{center}
%\MakeUppercase{\@thesistitle}
\@thesistitle
\vspace{4ex}
by
\vspace{4ex}
\MakeUppercase{\@thesisauthor, \@lastdegree}
\vspace{1.5in}
\begin{singlespace}
\@thesistype\\
Presented to the Graduate Faculty of \\
The University of Texas at San Antonio \\
In Partial Fulfillment \\
Of the Requirements \\
For the Degree of
\vspace{.25in}
\MakeUppercase{\@degree}
\vfill
THE UNIVERSITY OF TEXAS AT SAN ANTONIO \\
\@college \\
\@department \\
\@month\space \@year
\end{singlespace}
\end{center} %\linespace{2}
\newpage
% 4. Dedication (optional, counted, not typed)
\newpage
\ifx \@empty\@thesiscopyright
\pagenumbering{roman} %counting starts
\fi
\pagestyle{empty}
\begin{center}
{\bf DEDICATION}
\end{center}
\vspace{2ex}
\@dedication
\newpage
\pagestyle{plain} % page number typed starts
% % 6. Acknowledgements (counted, typed in lower case Roman numerals
% % 7. Abstract (counted, typed in lower case Roman numerals)
% % 8. Table of contents (counted, typed in lower case Roman numerals)
% % 9. List of Tables (counted, typed in lower case Roman numerals)
% % 10. List of Figures (counted, typed in lower case Roman numerals)
}
\newcommand{\informationitems}[7]{
\def\@degree{#1}
\def\@degreeshort{#2}
\def\@lastdegree{#3}
\def\@department{#4}
\def\@college{#5}
\def\@month{#6}
\def\@year{#7}
}
\newcommand{\degree}[1]{\def\@degree{#1}}%
\newcommand{\degreeshort}[1]{\def\@degreeshort{#1}}%
\newcommand{\lastdegree}[1]{\def\@lastdegree{#1}}%
\newcommand{\department}[1]{\def\@department{#1}}%
\newcommand{\college}[1]{\def\@college{#1}}%
\newcommand{\supervisor}[1]{\def\@supervisor{#1}
\def\@committeeA{#1, Chair}}%
\newcommand{\cosupervisor}[1]{\def\@cosupervisor{#1}
\def\@committeeB{#1, Co-Chair}}%
\newcommand{\committeeB}[1]{\def\@committeeB{#1}}%
\newcommand{\committeeC}[1]{\def\@committeeC{#1}}%
\newcommand{\committeeD}[1]{\def\@committeeD{#1}}%
\newcommand{\committeeE}[1]{\def\@committeeE{#1}}%
\newcommand{\committee}[5]{%
\def\@supervisor{#1} \def\@committeeA{#1}%
\def\@committeeB{#2} \def\@committeeC{#3}%
\def\@committeeD{#4} \def\@committeeE{#5}%
}%
\newcommand{\thesismonth}[1]{\def\@month{#1}}%
\newcommand{\thesisyear}[1]{\def\@year{#1}}%
\newcommand{\thesisdate}[2]{\def\@month{#1} \def\@year{#2}}%
\newcommand{\thesisabstract}[1]{\def\@thesisabstract{#1}}%
\newcommand{\dedication}[1]{\def\@dedication{#1}}%
\newcommand{\thesiscopyright}[1]{\def\@thesiscopyright{#1}}%
\newenvironment{vita}{
\newpage
\thispagestyle{empty}
\doublespacing
\addtocontents{toc}{\contentsline {chapter}{{}{Vita}}{}}
\vspace{0.1875in}
\begin{center}
{\large\bf VITA}
\end{center}
\vspace{2ex}
} {}
\def\@thesistitle{\@title}
\def\@thesisauthor{\@author}
\thesiscopyright{} % Optional
\thesisabstract{The abstract starts here. Should within one page.}
\dedication{Optional Dedication}
\cosupervisor{} % optional
\informationitems{Full Name of the Degree}{Short Degree Name}{The
Last Degree}{Department Name}{College Name}{Graduation Month}{Graduation Year}
\committee{My Supervisor, Degree}{Committe member B, Degree}{Committe member C,
Degree}{Committe member D, Degree}{Committe member E, Degree}