forked from jolohaga/uclathes
-
Notifications
You must be signed in to change notification settings - Fork 10
/
uclathti.clo
578 lines (539 loc) · 19.9 KB
/
uclathti.clo
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
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
% UCLA THESIS TITLE PAGE STYLE (format for preliminary pages)
% (C) Copyright 2017 by Louis Yang
% derived from (C) Copyright 2012 by Jose Hales-Garcia
% derived from (C) Copyright 1995 by John Heidemann,
% derived from work (C) Copyright 1988 Richard B. Wales,
% taken in turn from material Copyright (C) 1985 by Leslie Lamport.
%%%
% Version checking.
%%%
\NeedsTeXFormat{LaTeX2e}
\def\uclathtiversion{2.0}
\def\uclathtidate{2012/05/03}
\ProvidesFile{uclathti}[\uclathtidate, \uclathtiversion]
%
% When this file is included from other than uclathes,
% \@spacing may be undefined.
%
% NEEDSWORK: This test always fails, even when uclathes.cls is loaded.
\def\@stdsinglespacing{1.0}
\ifx\@singlespacing\@stdsinglespacing
% Spacing has already been set (in uclathes.cls).
\else
% Spacing was not set, set it here as if we were uclathes.cls.
% \typeout{Spacing not set.}
\def\@singlespacing{1.0}
\def\@doublespacing{1.544} % see above for explanation of value
\let\@spacing=\@singlespacing
\fi
%
% The following macro pair save and restore ``twocolumn'' status.
%
\newif\if@ColumnSaveValue
\newcommand{\ColumnSave}{
\if@twocolumn
\@ColumnSaveValuetrue
\else
\@ColumnSaveValuefalse
\fi
\pagebreak
\onecolumn
}
\newcommand{\ColumnSaveHeading}[1]{
\if@twocolumn
\@ColumnSaveValuetrue
\pagebreak
\twocolumn[#1]
\else
\@ColumnSaveValuefalse
\pagebreak
#1
\fi
}
\newcommand{\ColumnRestore}{\if@ColumnSaveValue\twocolumn\fi}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% TITLE PAGE %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 2017 Requirements: Do not bold anything on title and abstract pages;
\newcommand\@maketitlepage{
\begin {titlepage}
\ColumnSave
\normalsize \normalfont
\ifdefined\pdfbookmark\pdfbookmark{Title Page}{titlepage}\fi
\begin {center}
\MakeUppercase{University of California} \\
Los Angeles \\
\vfill
\@titlesize \@title \\
\vskip 48pt minus 12pt
\normalsize \normalfont
A \@thesisname\
submitted in partial satisfaction \\
of the requirements for the degree \\
\@degreename\if@department\ in \@department \fi \\
\vskip 24pt minus 6pt
by \\
\vskip 24pt minus 6pt
{\@author} \\ % bolding has been removed (2017, Louis)
\vfill
\normalsize \normalfont \@degreeyear
\end {center}
\ColumnRestore
\end {titlepage}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% COPYRIGHT PAGE %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newif\if@copyright
\@copyrighttrue
\newcommand\nocopyright{\@copyrightfalse}
\def\@copyrightinfo{All Rights Reserved}
\newcommand\copyrightinfo[1]{\def\@copyrightinfo{#1}}
\newcommand\@makecopyrightpage{
\ColumnSave
% \ifdefined\pdfbookmark\pdfbookmark{Copyright}{copyright}\fi
\thispagestyle{empty}
\null
\vfill
\if@copyright
\begin{center}
%\normalsize \rm Copyright \copyright\ \@copyrightyear
%\ifx\@copyrightyear\@degreeyear\else , \@degreeyear \fi
%\ by \@author \\
%\@copyrightinfo
\normalsize \normalfont \copyright\ Copyright by \\
\@author \\
\normalsize \normalfont \@copyrightyear
\end{center}
\fi
\ColumnRestore
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% SIGNATURE PAGE %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The following definitions for "\chair" and "\member" allow for one or
% three chairs (co-chairs) and up to six additional committee members.
\newcounter{chairs}
\setcounter{chairs}{0}
\newcommand\chair[1]{
\ifcase\value{chairs}
\def\@chairA{#1} \or \def\@chairB{#1} \or \def\@chairC{#1}
\else
\typeout{Too many co-chairs.}
\fi
\addtocounter{chairs}{1}
}
\newcounter{members}
\setcounter{members}{0}
\newcommand\member[1]{
\ifcase\value{members}
\def\@memberA{#1} \or \def\@memberB{#1} \or \def\@memberC{#1} \or
\def\@memberD{#1} \or \def\@memberE{#1} \or \def\@memberF{#1}
\else
\typeout{Too many committee members.}
\fi
\addtocounter{members}{1}
}
% The following definition for "\@signatureline" draws a line and puts
% a name underneath the line. If the standard "single" line spacing is
% changed, it may be desirable to change the "\vskip" before the name.
\newcommand\@signatureline[1]{
#1\par%
}
\newcommand\@makesignaturepage{
\ColumnSave
\ifdefined\pdfbookmark\pdfbookmark{Committee}{committee}\fi
\noindent
\renewcommand\baselinestretch{\@doublespacing}\@normalsize
\normalsize \normalfont The \@thesisname\ of {\@author} is approved.\par%
{\centering % Need \centering instead of \begin{center} to avoid extra
% line spacing (2017 Thesis & Dissertation Filing Requirements).
% Non-chair committee members
\ifnum\c@members>0 \@signatureline{\@memberA}
\ifnum\c@members>1 \@signatureline{\@memberB}
\ifnum\c@members>2 \@signatureline{\@memberC}
\ifnum\c@members>3 \@signatureline{\@memberD}
\ifnum\c@members>4 \@signatureline{\@memberE}
\ifnum\c@members>5 \@signatureline{\@memberF}
\fi
\fi
\fi
\fi
\fi
\else
\typeout{No non-chair committee members.}
\fi
% Committee chairs
\ifnum\c@chairs>2
\@signatureline{\@chairA, Committee Co-chair}
\@signatureline{\@chairB, Committee Co-chair}
\@signatureline{\@chairC, Committee Co-chair}
\else\ifnum\c@chairs>1
\@signatureline{\@chairA, Committee Co-chair}
\@signatureline{\@chairB, Committee Co-chair}
\else\ifnum\c@chairs>0
\@signatureline{\@chairA, Committee Chair}
\else\typeout{No committee chair.}
\fi\fi\fi
\vskip 6em
University of California, Los Angeles\par
\@degreeyear\par % Need to end with \par to avoid \centering not end issue
}
\ColumnRestore
\renewcommand\baselinestretch{\@spacing}\@normalsize
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% DEDICATION PAGE %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newif\if@dedication
\def\@dedication{}
\newcommand\dedication[1]{\@dedicationtrue\def\@dedication{#1}}
\newcommand\@makededication{
\if@dedication
\ColumnSave
\ifdefined\pdfbookmark\pdfbookmark{Dedication}{dedication}\fi
\par\pagestyle{plain}
\renewcommand\baselinestretch{\@spacing}\@normalsize\normalfont
\vspace*{0pt} % force spacing at top of page
\vfill
\begin{center}
\@dedication
\end{center}
\vfill
\ColumnRestore
\fi
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% ACKNOWLEDGMENTS PAGE %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newif\if@acks
\def\@acknowledgments{}
\newcommand\acknowledgments[1]{\@ackstrue\def\@acknowledgments{#1}}
% Modified by Louis 2017
\newcommand\acksname{Acknowledgments} % Allows user to change later
\newcommand\@makeacknowledgmentsheading{
\chapter*{\acksname}% Change it to a chapter so that toc is correct
\markboth{\MakeUppercase\acksname}{\MakeUppercase\acksname}%
\addcontentsline{toc}{chapter}{\acksname}% Add to toc
}
% \newcommand\@makeacknowledgmentsheading{
% {
% \centering
% \textsc{\large Acknowledgments}
% \vskip 12pt
% }
% }
\newcommand\@makeacknowledgments{
\if@acks
\ColumnSaveHeading{\@makeacknowledgmentsheading}
\par\pagestyle{plain}
\renewcommand\baselinestretch{\@spacing}\@normalsize
\noindent \normalsize \normalfont \@acknowledgments
\vfill
\ColumnRestore
\fi
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% VITA PAGE %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This definition for the "\vitaitem" command allows for up to 26 vita
% items. The use of "\normalfont" in each definition permits any macros that
% are sensitive to type style (and which might be disrupted by the mode
% set for the "tabular" processing) to work properly.
\newcounter{vitaitems}
\setcounter{vitaitems}{0}
%\newcommand\@vitadate[1]{{\parbox[t]{1in}{\normalfont{#1}}}}
%\newcommand\@vitatext[1]{{\parbox[t]{5.25in}{\normalfont{#1}}}}
\newcommand\@vitadate[1]{#1}
\newcommand\@vitatext[1]{#1}
\newcommand\vitaitem[2]{
\ifcase\value{vitaitems}
\def\@vitaA{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaB{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaC{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaD{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaE{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaF{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaG{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaH{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaI{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaJ{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaK{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaL{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaM{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaN{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaO{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaP{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaQ{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaR{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaS{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaT{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaU{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaV{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaW{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaX{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaY{\@vitadate{#1} & \@vitatext{#2}} \or
\def\@vitaZ{\@vitadate{#1} & \@vitatext{#2}}
\else
\typeout{Too many vita items.}
\fi
\addtocounter{vitaitems}{1}
}
% These definitions for the "\publication" and "\presentation" commands
% allow for up to 26 publications and/or presentations. Note that UCLA
% requires publications and presentations to be combined into a single
% list with a single title; the "@pubs" and "@pres" flags are used to
% determine what the title will look like.
\newcounter{publications}
\setcounter{publications}{0}
\newif\if@pubs \newif\if@pres
\newcommand\publication[1]{
\@pubstrue
\ifcase\value{publications}
\def\@pubA{#1} \or \def\@pubB{#1} \or \def\@pubC{#1} \or
\def\@pubD{#1} \or \def\@pubE{#1} \or \def\@pubF{#1} \or
\def\@pubG{#1} \or \def\@pubH{#1} \or \def\@pubI{#1} \or
\def\@pubJ{#1} \or \def\@pubK{#1} \or \def\@pubL{#1} \or
\def\@pubM{#1} \or \def\@pubN{#1} \or \def\@pubO{#1} \or
\def\@pubP{#1} \or \def\@pubQ{#1} \or \def\@pubR{#1} \or
\def\@pubS{#1} \or \def\@pubT{#1} \or \def\@pubU{#1} \or
\def\@pubV{#1} \or \def\@pubW{#1} \or \def\@pubX{#1} \or
\def\@pubY{#1} \or \def\@pubZ{#1}
\else
\typeout{Too many publications/presentations.}
\fi
\addtocounter{publications}{1}
}
\newcommand\presentation[1]{
\@prestrue
\ifcase\value{publications}
\def\@pubA{#1} \or \def\@pubB{#1} \or \def\@pubC{#1} \or
\def\@pubD{#1} \or \def\@pubE{#1} \or \def\@pubF{#1} \or
\def\@pubG{#1} \or \def\@pubH{#1} \or \def\@pubI{#1} \or
\def\@pubJ{#1} \or \def\@pubK{#1} \or \def\@pubL{#1} \or
\def\@pubM{#1} \or \def\@pubN{#1} \or \def\@pubO{#1} \or
\def\@pubP{#1} \or \def\@pubQ{#1} \or \def\@pubR{#1} \or
\def\@pubS{#1} \or \def\@pubT{#1} \or \def\@pubU{#1} \or
\def\@pubV{#1} \or \def\@pubW{#1} \or \def\@pubX{#1} \or
\def\@pubY{#1} \or \def\@pubZ{#1}
\else
\typeout{Too many publications/presentations.}
\fi
\addtocounter{publications}{1}
}
\newcommand\@printvitaitem[1]{#1\\}
\newcommand\@printpubitem[1]{\noindent #1\par}
\newcommand\vitaname{Vita} % Allows user to change later
\newcommand\vitastretch{1.67} % Allows user to change later
\newcommand\vitadatewidth{1in} % Width of date column in vita
\newcommand\vitatextwidth{5.25in} % Width of text column in vita
% The sum of the widths needs to be 6.25in since 2 columns give 3 column
% spacing. 3 column spacing take 3 * 6 pt * 0.1384 in/pt ~= 0.25 in.
% Remaning width for table columns is 6.5in - 0.25in = 6.25in
\newcommand{\customCV}[1]{\def\@customCV{#1}}
\newcommand\@makevitapage{
% Save the old stretch.
\ColumnSave
\let\OldArrayStretch=\arraystretch
\renewcommand\arraystretch{\vitastretch}
\pagestyle{plain}
\ifnum\c@vitaitems>0
\renewcommand\baselinestretch{\@spacing}\@normalsize
\chapter*{\vitaname}% Changes this to a chapter*
\addcontentsline{toc}{chapter}{\vitaname}%
% \begin{center}
% \textsc{\large Vita} \\
% \end{center}
% \vskip 12pt
\normalsize \normalfont \noindent%
\renewcommand\baselinestretch{\@spacing}\@normalsize
\begin{tabular}{p{\vitadatewidth}p{\vitatextwidth}}
\ifnum\c@vitaitems>0 \@printvitaitem{\@vitaA} \fi
\ifnum\c@vitaitems>1 \@printvitaitem{\@vitaB} \fi
\ifnum\c@vitaitems>2 \@printvitaitem{\@vitaC} \fi
\ifnum\c@vitaitems>3 \@printvitaitem{\@vitaD} \fi
\ifnum\c@vitaitems>4 \@printvitaitem{\@vitaE} \fi
\ifnum\c@vitaitems>5 \@printvitaitem{\@vitaF} \fi
\ifnum\c@vitaitems>6 \@printvitaitem{\@vitaG} \fi
\ifnum\c@vitaitems>7 \@printvitaitem{\@vitaH} \fi
\ifnum\c@vitaitems>8 \@printvitaitem{\@vitaI} \fi
\ifnum\c@vitaitems>9 \@printvitaitem{\@vitaJ} \fi
\ifnum\c@vitaitems>10 \@printvitaitem{\@vitaK} \fi
\ifnum\c@vitaitems>11 \@printvitaitem{\@vitaL} \fi
\ifnum\c@vitaitems>12 \@printvitaitem{\@vitaM} \fi
\ifnum\c@vitaitems>13 \@printvitaitem{\@vitaN} \fi
\ifnum\c@vitaitems>14 \@printvitaitem{\@vitaO} \fi
\ifnum\c@vitaitems>15 \@printvitaitem{\@vitaP} \fi
\ifnum\c@vitaitems>16 \@printvitaitem{\@vitaQ} \fi
\ifnum\c@vitaitems>17 \@printvitaitem{\@vitaR} \fi
\ifnum\c@vitaitems>18 \@printvitaitem{\@vitaS} \fi
\ifnum\c@vitaitems>19 \@printvitaitem{\@vitaT} \fi
\ifnum\c@vitaitems>20 \@printvitaitem{\@vitaU} \fi
\ifnum\c@vitaitems>21 \@printvitaitem{\@vitaV} \fi
\ifnum\c@vitaitems>22 \@printvitaitem{\@vitaW} \fi
\ifnum\c@vitaitems>23 \@printvitaitem{\@vitaX} \fi
\ifnum\c@vitaitems>24 \@printvitaitem{\@vitaY} \fi
\ifnum\c@vitaitems>25 \@printvitaitem{\@vitaZ} \fi
\end{tabular}
\fi%
\ifnum\c@publications>0
\vskip 36pt
{\centering
\header{
\if@pubs
\if@pres Publications and Presentations
\else Publications
\fi
\else Presentations
\fi
}\par
}
\nobreak \vspace{12pt}% Use \vspace to make sure no page break here
{% Make sure the \parskip only affect this part
\ifx\@spacing\@doublespacing\parskip 24pt plus 4pt
\else \parskip 12pt plus 2pt
\fi
\ifnum\c@publications>0 \@printpubitem{\@pubA} \fi
\ifnum\c@publications>1 \@printpubitem{\@pubB} \fi
\ifnum\c@publications>2 \@printpubitem{\@pubC} \fi
\ifnum\c@publications>3 \@printpubitem{\@pubD} \fi
\ifnum\c@publications>4 \@printpubitem{\@pubE} \fi
\ifnum\c@publications>5 \@printpubitem{\@pubF} \fi
\ifnum\c@publications>6 \@printpubitem{\@pubG} \fi
\ifnum\c@publications>7 \@printpubitem{\@pubH} \fi
\ifnum\c@publications>8 \@printpubitem{\@pubI} \fi
\ifnum\c@publications>9 \@printpubitem{\@pubJ} \fi
\ifnum\c@publications>10 \@printpubitem{\@pubK} \fi
\ifnum\c@publications>11 \@printpubitem{\@pubL} \fi
\ifnum\c@publications>12 \@printpubitem{\@pubM} \fi
\ifnum\c@publications>13 \@printpubitem{\@pubN} \fi
\ifnum\c@publications>14 \@printpubitem{\@pubO} \fi
\ifnum\c@publications>15 \@printpubitem{\@pubP} \fi
\ifnum\c@publications>16 \@printpubitem{\@pubQ} \fi
\ifnum\c@publications>17 \@printpubitem{\@pubR} \fi
\ifnum\c@publications>18 \@printpubitem{\@pubS} \fi
\ifnum\c@publications>19 \@printpubitem{\@pubT} \fi
\ifnum\c@publications>20 \@printpubitem{\@pubU} \fi
\ifnum\c@publications>21 \@printpubitem{\@pubV} \fi
\ifnum\c@publications>22 \@printpubitem{\@pubW} \fi
\ifnum\c@publications>23 \@printpubitem{\@pubX} \fi
\ifnum\c@publications>24 \@printpubitem{\@pubY} \fi
\ifnum\c@publications>25 \@printpubitem{\@pubZ} \fi
}% End the \parskip change
\fi
\ifdefined\@customCV
\@customCV
\fi
\renewcommand\arraystretch{\OldArrayStretch}
\ColumnRestore
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% ABSTRACT PAGE %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newif\if@abstract
\def\@abstract{}
\newcommand\abstract[1]{\@abstracttrue\def\@abstract{#1}}
%
% one argument: the baselinestretch
% The RFTADP requires doublespacing, but in techreports
% you may wish something less.
%
\newcommand{\@makeabstractpage}[1]{
\if@abstract
\ColumnSave
\ifdefined\pdfbookmark\pdfbookmark{Abstract}{abstract}\fi
\pagenumbering{roman}
\setcounter{page}{2}
\par\pagestyle{plain}
\normalsize \normalfont
\begin{center}
\MakeUppercase{Abstract of the \@Thesisname} \\
\vskip 24pt minus 6pt
\@title \\ \normalsize \normalfont
\vskip 24pt minus 6pt
by \\
\vskip 24pt minus 6pt
\@author \normalsize \normalfont \\ % bolding has been removed (2017, Louis)
\@degreename\if@department\ in \@department \fi\\
University of California, Los Angeles, \@degreeyear \\
\ifnum\c@chairs>2
Professor \@chairA, Co-chair \\
Professor \@chairB, Co-chair \\
Professor \@chairC, Co-chair \\
\else\ifnum\c@chairs>1
Professor \@chairA, Co-chair \\
Professor \@chairB, Co-chair \\
\else\ifnum\c@chairs>0
Professor \@chairA, Chair \\
\else\typeout{No committee chair.}
\fi\fi\fi
\end{center}
\ifx\@spacing\@doublespacing\vskip 12pt\else\vskip 24pt\fi
\renewcommand\baselinestretch{#1}\@normalsize
%
% Set up spacing.
% If it's single spacing, indent the margins.
% If double spacing is required than things are already
% ugly enough (and we loose enough space) that we may
% as well use the whole \textwidth.
%
\ifthenelse{\equal{#1}{\@stdsinglespacing}}{
\begin{center}
\begin{minipage}{4.75in}
\setlength{\parindent}{1.5em}
\@abstract
\end{minipage}
\end{center}
}{
\@abstract
}
\renewcommand\baselinestretch{\@spacing}\@normalsize
\ColumnRestore
\else
\typeout{No abstract.}
\fi
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% PRINT ALL PRELIMINARY PAGES %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand\makeintropages{
\@maketitlepage
% If we're printing two sided,
% insert a blank page for the back of the title page.
% NOTE: This extra page makes the output non-conforming
% to the RFTADP, unless you throw it away.
\if@twoside
\typeout{Two-side detected.}
\pagebreak % the back side of the title page
\fi
\@makecopyrightpage
\@makeabstractpage{\@doublespacing}
\@makesignaturepage
\@makededication
\tableofcontents
\ifLOF
\listoffigures
\fi
\ifLOT
\listoftables
\fi
\@makeacknowledgments
\@makevitapage
\newpage \pagenumbering{arabic}
}