-
Notifications
You must be signed in to change notification settings - Fork 0
/
okstate.cls
1629 lines (1394 loc) · 53.9 KB
/
okstate.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
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
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%%% ====================================================================
%%% To Do:
%%%
%%% - Section titles don't break well. These do not need to be
%%% justified full.
%%%
%%% - Vita titles don't break well. I need to add more freedom to add
%%% white space, or let the right hand side go ragged.
%%% Update: In the OGS manual, this is not justified full.
%%%
%%% - section and subsection titles are aligned differently.
%%%
%%% - Page numbering is hard coded for parts of the front matter.
%%% Instead, page numbering should be automatic, but a warning should
%%% be displayed if it is not what is expected.
%%%
%%% - A test page need to be added for the mathptmx font.
%%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{okstate}[2016/02/22 OSU LaTeX class]
\renewcommand\normalsize{%
\@setfontsize\normalsize\@xpt\@xiipt
\abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
\abovedisplayshortskip \z@ \@plus3\p@
\belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
\belowdisplayskip \abovedisplayskip
\let\@listi\@listI}
\normalsize
\def\newblock{\hskip .11em plus .33em minus .07em}
% ****************************************
% * OPTIONS *
% ****************************************
%
% Option values are now declared first thing. Defaults are set to
% 11 point, onesided, final (ie not draft) mode (BBF 10/31/94)
\newcommand\@ptsize{}
\newcommand\@draftmark{}
\newcommand\@chapterheadsmark{0}
\DeclareOption{10pt}{\renewcommand\@ptsize{0}}
\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
\DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
\DeclareOption{draft}{\renewcommand\@draftmark{1}}
\DeclareOption{final}{\renewcommand\@draftmark{0}}
% RMR - Toggle how chapters are listed
\DeclareOption{chapterheads}{\renewcommand\@chapterheadsmark{1}}
\ExecuteOptions{11pt,oneside,final}
%CHAPTER TITLES
% CHOOSING THE TYPE SIZE:
%
% The type size option is handled by reading a different file for each
% size, as follows, to define font size-specific commands:
% 10pt : UCT10, 11pt : UCT11, 12pt : UCT12
%
% Two-side or one-side printing.
%
% \@twosidefalse % Default is one-sided printing.
\def\ds@twoside{\@twosidetrue % Defines twoside option.
\@mparswitchtrue} % Marginpars go on outside of page.
% This is a tricky solution to a tough bootstrapping problem. The
% "draft" option requires the definition of the \ssp macro. However,
% the \ssp macro requires that the uct1?.clo file has been loaded. This
% loading is done by the \@options command which also invokes the
% \ds@draft macro. This was a cyclic dependency in the previous
% version. To break this dependency, I have made \ds@draft set a marker
% which is later tested to determine whether to actually do the draft
% mode actions.
%
% Ethan Munson (October 16, 1992)
% FMi 91/03/30: made twocolum.sty a file and twocolumn an option.
% RmS 91/10/15: moved actual reading of twocolumn.sty
% to the end of this file.
\def\ds@twocolumn{\@twocolumntrue}
% The \ProcessOptions command causes the execution of every option command
% FOO which is declared and for which the user typed the FOO option in his
% \documentclass. For every undeclared option BAR there will be a warning
% message. (BBF 10/31/94)
\ProcessOptions
%\input uct1\@ptsize.clo\relax
\input okstate.clo\relax
% Set the paper size to letter
\setlength{\paperheight}{11.0in}
\setlength{\paperwidth}{8.5in}
% \smallssp is used to produce tabular environments in the small font.
% This is required because single-spacing requires a change in font size.
% \scriptsizessp is a still smaller version of the same thing.
\def\smallssp{\def\baselinestretch{1.0}\large\small}
\def\scriptsizessp{\def\baselinestretch{1.0}\large\scriptsize}
% draft option (this is where the draft option is actually implemented)
%
% \overfullrule = 0pt % Default is don't mark overfull hboxes.
\ifnum \@draftmark = 1
\ssp % Single-spaces and
\overfullrule 5pt % causes overfull hboxes to be marked.
\fi
% hyperref defines the command \phantomsection in order to place entries
% which can be referenced in the TOC. We provide a null definition if it is not defined. - RMR 2007
\ifx\phantomsection\undefined
\def\phantomsection{}
\else \fi
% PREPARING A FOREIGN LANGUAGE VERSION:
%
% This document style is for documents prepared in the English language.
% To prepare a version for another language, various English words must
% be replaced. Many of the English words that required replacement are
% indicated below, where we give the name of the command in which the
% words appear, and which must be redefined, with the actual words
% underlined.
%
% Other English words that need replacement can be found in the macros
% supporting the title and approval pages.
%
% \tableofcontents:
\def\contentsshortname{Contents}
\def\contentslongname{Table of Contents}
% ~~~~~~~~~~~~~~~~~
% (Changed WBB 5.27.97: added ``Table of'', re UCSD OGSR style.)
%
% \listoffigures:
\def\listfigurename{List of Figures}
% ~~~~~~~~~~~~~~~
%
% \listoftables:
\def\listtablename{List of Tables}
% ~~~~~~~~~~~~~~
%
% \thebibliography:
\def\bibname{Bibliography}
% ~~~~~~~~~~~~
%
% \theindex:
\def\indexname{Index}
% ~~~~~
%
% figure environment:
\def\figurename{Figure}
% ~~~~~~
%
% table environment:
\def\tablename{Table}
% ~~~~~
%
% \chapter:
\def\chaptername{Chapter}
% ~~~~~~~
% \appendix:
\def\appendixname{Appendix}
% ~~~~~~~~
% \part
\def\partname{Part}
% ~~~~
% abstract environment:
\def\abstractshortname{Abstract of the Dissertation} % Used for TOC
\def\abstractlongname{Abstract of the Dissertation} % Used for Header
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% dedication:
\def\dedicationname{Dedication}
% ~~~~~~~~~~
%
% acknowledge environment:
\def\acknowledgename{Acknowledgements}
% ~~~~~~~~~~~~~~~~
\def\UCSD@text@chair{Chair}
\def\UCSD@text@cochair{Co-Chair}
% ****************************************
% * FRONT MATTER *
% ****************************************
%
% DECLARATIONS
%
% These macros are used to declare arguments needed for the
% construction of the front matter.
% The acknowledgement text
\def\acknow#1{\gdef\@acknow{#1}}
% The year the degree will be officially conferred
\def\degreeyear#1{\gdef\@degreeyear{#1}}
% The full (unabbreviated) name of the degree
\def\degreetitle#1{\gdef\@degreetitle{#1}}
% Committee definitions
\def\comchair#1{\gdef\comchair{#1}}
\def\comfirst#1{\gdef\comfirst{#1}}
\def\comsecond#1{\gdef\comsecond{#1}}
\def\comthird#1{\gdef\comthird{#1}}
\def\comout#1{\gdef\comout{#1}}
% cwid definition
\def\cwid#1{\gdef\cwid{#1}}
% The name of your committee's chair
%\def\chair#1{\gdef\UCSD@chair{#1}}
% The name of your committee's cochair (if applicable)
%\def\cochair#1{\gdef\UCSD@cochair{#1}}
% The names of your committee's equal co-chairs
% (if applicable, and use this instead of chair and cochair)
%\def\cochairs#1#2{
% \gdef\UCSD@cochairs{true}
% \gdef\UCSD@chair{#1}
% \gdef\UCSD@cochair{#2}
% \let\UCSD@text@chair\UCSD@text@cochair}
% The names of your other committe members, one per line,
% sorted alphabetically by last name.
%\def\othermembers#1{\gdef\@othermembers{#1}}
% The number of committee members, which affects both the
% number of lines and the amount of space between lines
% on the approval page.
%\def\@numberofmembers{3}
%\def\@approvalspace{.75in}
%\def\numberofmembers#1{\gdef\@numberofmembers{#1}
%\ifnum \@numberofmembers > 3
%\gdef\@approvalspace{.5in}
%\fi}
% The name of your degree's field (e.g. Psychology, Computer Science)
\def\field#1{\gdef\field{#1}}
\def\abstract#1{\gdef\@abstract{#1}}
% You have to define the campus name twice because I can't figure out
% how to get the TeX \uppercase macro to work for me (EVM, 9/21/94)
% The name of your UC Campus CAPITALIZED (e.g. Berkeley, Los Angeles)
% \def\campus#1{\gdef\@campus{#1}}
\def\@campus{San Diego}
\def\includefigureindex#1{\gdef\@includefigureindex{#1}}
\def\includetableindex#1{\gdef\@includetableindex{#1}}
% \alwayssingle and \endalwayssingle
%
% These macros define an environment for front matter that is always
% single column even in a double-column document.
\def\alwayssingle{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
\else \newpage \fi}
\def\endalwayssingle{\if@restonecol\twocolumn \else \newpage \fi}
% Set the font that will be used in the front matter headings
\def\fmfont{\fontsize\@xiipt{14.5}\selectfont}
\def\fmsmallfont{\fontsize\@xiipt{14pt}\selectfont}
\def\makefrontmatter{
% TITLE PAGE.
% page i (no number shown)
{\ssp
\begin{alwayssingle}
\thispagestyle{empty}
\setcounter{page}{1}
%\null\vfill % commented by Karol Kozioł (karol-koziol.net)
\begin{center}
\vspace*{1in}
\textsc{\@title} \\
\vfill
By \\
\vspace{10pt}
\textsc{\@author}\\
\vspace{10pt}
Bachelor of Science in Chemistry\\
University of Oklahoma\\
Norman, OK\\
2011\\
\vfill
Submitted to the Faculty of the\\
Graduate College of the\\
Oklahoma State University\\
in partial fulfillment of\\
the requirements for\\
the Degree of\\
\textsc{\@degreetitle}\\
{\@degreeyear}\\
\vfill
\end{center}
% {
% \vspace{6ex}
% \fmsmallfont
% Committee in charge:
% \begin{quote}
% {\UCSD@chair}, \UCSD@text@chair\newline
% \ifx\UCSD@cochair\@isnotdefined \else%
% {\UCSD@cochair}, \UCSD@text@cochair\newline\fi
% {\@othermembers}
% \end{quote}
% \begin{center}
% {\@degreeyear}
% \end{center}
% }
% \vfil\null
\end{alwayssingle}
%
% COMMITTEE PAGE.
\begin{alwayssingle}
% \thispagestyle{empty}
% added by Karol Kozioł (karol-koziol.net)
\begin{center}
\vspace*{1in}
\textsc{\@title} \\
\vfill
\begin{minipage}[b]{0.48\textwidth}
\hspace{15pt}
Dissertation Approved:\\[10pt]
\begin{center}
\comchair\\
\makebox[\textwidth]{\hrulefill}\\
Dissertation Adviser\\[0.5in]
\comfirst\\
\makebox[\textwidth]{\hrulefill}\\[0.5in]
\comsecond\\
\makebox[\textwidth]{\hrulefill}\\[0.5in]
\comthird\\
\makebox[\textwidth]{\hrulefill}\\[0.5in]
\comout\\
\makebox[\textwidth]{\hrulefill}\\
\end{center}
\end{minipage}
\vfill
\vfill
\end{center}
\end{alwayssingle}
}
% ACKNOWLEDGEMENTS
% The acknowledgements environment creates a page and puts it in the TOC.
{\begin{alwayssingle}
\begin{center}
\vspace*{1in}
\addcontentsline{toc}{frontmatter}{\protect\numberline{}\acknowledgename}%
\centerline{\expandafter\uppercase\expandafter{\acknowledgename}}%
\end{center}
{\@acknow}
\vfill
{\small Acknowledgements reflect the views of the author and are not endorsed by committee members or Oklahoma State University.}
\end{alwayssingle}}
% ABSTRACT
% page ii (no number shown)
% should be double spaced. Heading is not indented. Written at top of page.
\begin{alwayssingle}
%\thispagestyle{empty}
{\parindent0pt
\addcontentsline{toc}{frontmatter}{\protect\numberline{}Abstract}
\vspace*{1in}
Name: \textsc{\@author}\\
Date of Degree: \textsc{\@degreeyear}\\
Title of Study: \textsc{\@title}\\
Major Field: \textsc{\field}\\
Abstract: {\makeatletter
\let\@currsize\normalsize
\makeatother
{\begin{singlespace}
\@abstract
\end{singlespace}}}
}
\vfill
\end{alwayssingle}
% commented by Karol Kozioł (karol-koziol.net)
% % SIGNATURE PAGE
% % page iii (or greater if abstract greater than 1 page) (no number shown)
%
% %\phantomsection
% %\addcontentsline{toc}{frontmatter}{\protect\numberline{}Signature Page}
% \begin{alwayssingle}
% \begin{flushleft}
% \thispagestyle{empty}
% This thesis is approved for\\
% recommendation to the\\
% Graduate Council\\
% \vspace{0.75in}
% Thesis Director:\\
% \vspace{0.5 in}
% \makebox[3in]{\hrulefill}\\
% Dr. 1 - Set in okstate.cls\\
% \vspace{0.5 in}
% Thesis Committee:\\
% \vspace{0.5in}
% \makebox[3in]{\hrulefill}\\
% Dr. 2 - Set in okstate.cls\\
% \vspace{0.5in}
% \makebox[3in]{\hrulefill}\\
% Dr. 3 - Set in okstate.cls\\
% \vspace{0.5in}
% \makebox[3in]{\hrulefill}\\
% Dr. 4 - Set in okstate.cls\\
% \end{flushleft}
% \end{alwayssingle}
% \vfill
%KG Starting below is the UCSD code for making the signature page. It does some auto things after you define your committee in another document. I forgo all this to hard code it, but leave it in as an example for someone to reimplement this in the future.
% This requires that the \year, \author, and \campus macros have been
% defined. It uses lots of tricky spacing that is probably better
% handled with tabular environment code, but I'm too lazy to fix it.
% (EVM, 9/19/94)
%\phantomsection
%\addcontentsline{toc}{frontmatter}{\protect\numberline{}Signature Page}
%\begin{alwayssingle}
%\null\vfill
%\begin{center}
%\vspace{.25in}
%\vspace{\@approvalspace}
%\makebox[4in][l]{\parbox{4in}{\fmfont The dissertation of {\@author}
%is approved, and it is acceptable in quality and form for publication
%on microfilm and electronically: }}\\
%\begin{tabular*}{4in}[t]{r@{\extracolsep{\fill}}r}
%& \rule{0pt}{\@approvalspace} \\
%\hline
%\ifnum \@numberofmembers > 2
% & \rule{0pt}{\@approvalspace} \\
% \hline
%\fi
%\ifnum \@numberofmembers > 3
% & \rule{0pt}{\@approvalspace} \\
% \hline
%\fi
%\ifnum \@numberofmembers > 4
% & \rule{0pt}{\@approvalspace} \\
% \hline
%\fi
%\ifnum \@numberofmembers > 5
% & \rule{0pt}{\@approvalspace} \\
% \hline
%\fi
%\ifnum \@numberofmembers > 6
% & \rule{0pt}{\@approvalspace} \\
% \hline
%\fi
%\ifx\UCSD@cochair\@isnotdefined% No cochair
% &\rule{0pt}{\@approvalspace} \\
% \hline
%\else% Cochair
% &
% % Add the Co-Chair label below the last line and make
% % vertical space before adding another line.
% \newlength{\@tempapprovalspace}
% \settoheight{\@tempapprovalspace}{\UCSD@text@cochair}
% \setlength{\@tempapprovalspace}{-\@tempapprovalspace}
% \addtolength{\@tempapprovalspace}{-2pt}
% \raisebox{\@approvalspace}[\@approvalspace][0pt]%
% {\raisebox{\@tempapprovalspace}{\UCSD@text@cochair}}\\
% \hline
%\fi
%& \UCSD@text@chair
%\end{tabular*}\\[\@approvalspace]
%{\fmfont University of California, {\@campus}} \\
%\vspace{-.25in}
%\vspace{\@approvalspace}
%{\fmfont \@degreeyear}
%\end{center}
%\vfill\null
%\end{alwayssingle}
%END UCSD signature page.
%Thesis Duplication Release
%\begin{alwayssingle}
%\begin{flushleft}
%\thispagestyle{empty}
%\textbf{THESIS DUPLICATION RELEASE}\\
%\vspace{0.25in}
%I hereby authorize the University of Arkansas Libraries to duplicate this thesis when needed for research and/or scholarship.\\
%\vspace{0.3in}
%\textbf{Agreed}\makebox[3in]{\hrulefill}\\
%\hspace{1.5in}{\@author}\\
%\vspace{0.25in}
%\textbf{Refused}\makebox[3in]{\hrulefill}\\
%\hspace{1.5in}{\@author}\\
%
} % \makefrontmatter end
% SIGNABLE COMMITTEE PAGE
\def\signcom{
\begin{alwayssingle}
\begin{center}
Name: \@author
\hfill
CWID: \cwid\\
\vspace*{1in}
\begin{minipage}{.75\textwidth}
\begin{center}
\textsc{\@title}
\end{center}
\end{minipage}\\
\vspace*{1in}
\begin{minipage}[b]{0.48\textwidth}
\hspace{15pt}
Dissertation Approved:\\[5pt]
\comchair
\begin{center}
\makebox[\textwidth]{\hrulefill}
\end{center}
Dissertation Adviser\\[0.1in]
\comfirst
\begin{center}
\makebox[\textwidth]{\hrulefill}\\[0.1in]
\end{center}
\comsecond
\begin{center}
\makebox[\textwidth]{\hrulefill}\\[0.1in]
\end{center}
\comthird
\begin{center}
\makebox[\textwidth]{\hrulefill}\\[0.1in]
\end{center}
\comout
\begin{center}
\makebox[\textwidth]{\hrulefill}\\
\end{center}
\end{minipage}
\vfill
\vfill
\end{center}
\pagenumbering{gobble}
\end{alwayssingle}
}
% DEDICATION
%
% The dedication environment just makes sure the dedication gets its
% own page. The text is formatted with \large and \center.
\newenvironment{dedication}
{\phantomsection % RMR - hyperref requires a \section in order to place a hyperlink
\addcontentsline{toc}{frontmatter}{\protect\numberline{}Dedication}%
\begin{alwayssingle}
\centerline{\expandafter\uppercase\expandafter{Dedication}}%
\large\begin{center}
}
{\end{center}\end{alwayssingle}}
% The mydedication environment has no formatting information, so the
% user can do whatever they wish.
\newenvironment{mydedication}
{\phantomsection
\addcontentsline{toc}{frontmatter}{\protect\numberline{}Dedication}%
\centerline{\expandafter\uppercase\expandafter{Dedication}}}
{}
% EPIGRAPH
%
% The epigraph environment just makes sure the epigraph gets its
% own page. The text is formatted relatively high on the page and
% flush to the right.
\newenvironment{epigraph}
{\phantomsection
\addcontentsline{toc}{frontmatter}{\protect\numberline{}Epigraph}%
\begin{alwayssingle}
\centerline{\expandafter\uppercase\expandafter{Epigraph}}%
\vspace{2in}\hfill\begin{flushright}}
%\parbox[t]{3in}
{\end{flushright}\end{alwayssingle}}
% The myepigraph environment has no formatting information, so the
% user can do whatever they wish.
\newenvironment{myepigraph}
{\phantomsection
\addcontentsline{toc}{frontmatter}{\protect\numberline{}Epigraph}%
\centerline{\expandafter\uppercase\expandafter{Epigraph}}}%
{}
% ****************************************
% * OKSTATE VITA *
% ****************************************
%
% OKSTATE VITA
% OSU requires a special vita page to be made in teh back matter of
% the dissertation. This section defines the creation of a VITA page.
%
% 2017-Apr-9 Created section - WTH
%\def\vitedu#1#2{\gdef\@vitedu{#1}{#2}}
%
%\def\vitexp#1{\gdef\@vitexp{#1}}
%
%\def\vitpro#1{\gdef\@vitpro{#1}}
%\newcommand{\vitedu}[2]{Make {#1} and {#2}}
%
%\newcommand{\cvdate}[1]{\renewcommand{\givencvdate}{#1}}
%\newcommand{\cvcompany}[1]{\renewcommand{\givencvcompany}{#1}}
%\newcommand{\cvposition}[1]{\renewcommand{\givencvposition}{#1}}
%\newcommand{\cvcomment}[1]{\renewcommand{\givencvcomment}{#1}}
%\newcommand{\givencvdate}{REQUIRED!}
%\newcommand{\givencvcompany}{REQUIRED!}
%\newcommand{\givencvposition}{REQUIRED!}
%\newcommand{\givencvcomment}{} % this is optional
%
%\newenvironment{cvsection}
%{\begin{flushleft}}
% {\textbf{\givencvdate}\ \givencvcompany\ \givencvposition
% \ifx\empty\givencvcomment\else\\[.5ex] \textit{\givencvcomment}\fi
% \end{flushleft}}
\newcommand{\edutype}[1]{\renewcommand{\givenedutype}{#1}}
\newcommand{\givenedutype}{}
\newcommand{\okvitaedu}[6]{\noindent Completed the requirements for {#1} in {#2} at {#3}, {#4} {#5} in {#6}.\vspace{8pt}\\}
\newcommand{\okvitaexp}[6]{\noindent Employed by {#1} in the position of {#2} in {#3}, {#4} from {#5} to {#6}.\vspace{8pt}\\}
\newcommand{\okvitapro}[3]{\noindent {#1} of {#2} as of {#3}.\vspace{8pt}\\}
\newcommand{\okstatevita}
{\phantomsection
\addcontentsline{toc}{frontmatter}{\protect\numberline{}VITA}%
\thispagestyle{empty}
\vspace*{1in}
\centerline{\expandafter\uppercase\expandafter{VITA}}%
\large\begin{center}
\@author \\
\vspace{8pt}
Candidate for the Degree of: \\
\vspace{8pt}
\@degreetitle
\end{center}
\vspace{8pt}
Thesis: \textsc{\@title}
\vspace{8pt}\\
Major Field: \field
\vspace{8pt}\\
Biographical:}
% The mydedication environment has no formatting information, so the
% user can do whatever they wish.
% VITA PAGE
%
% In the normal environments, the vitapage environment does nothing
% but start and end a page. In two-column style it makes a one-column
% page.
%
\def\vitapage{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
\else \newpage \fi\pagestyle{preliminary}
\phantomsection
\addcontentsline{toc}{frontmatter}{\protect\numberline{}Vita and Publications}}
% Special label for the vita list
%
\def\vitalabel#1{#1\hfill}
\def\vita{\begin{center}VITA\end{center}
\list{}{\ssp \leftmargin 1.5in \labelwidth 1.2in \let\makelabel\vitalabel
\labelsep 0.3in}}
\let\endvita\endlist
% For making "bibliographic-like" entries on the Vita page
%
\def\publications{\medskip\begin{center}PUBLICATIONS\end{center}
\list{}{\ssp \leftmargin\z@}}
\let\endpublications\endlist
% FRONTMATTER environment
%
% The FRONTMATTER environment makes sure that page numbering is set
% correctly (roman, lower-case, starting at 3) for the front matter
% that follows the abstract. It also resets page-numbering for
% the remainder of the dissertation (arabic, starting at 1).
% (WBB) At UCSD: put everything, including \titlepage,\copyrightpage,
% \approvalpage in frontmatter.
% Changed def. WBB to go with change in use of frontmatter.
\newenvironment{frontmatter}
{\pagestyle{preliminary}\pagenumbering{roman}}%
{\pagestyle{thesis}\pagenumbering{arabic}}
% ****************************************
% * LISTS *
% ****************************************
%
% ENUMERATE
% Enumeration is done with four counters: enumi, enumii, enumiii
% and enumiv, where enumN controls the numbering of the Nth level
% enumeration. The label is generated by the commands \labelenumi
% ... \labelenumiv. The expansion of \p@enumN\theenumN defines the
% output of a \ref command.
%
% 16 Mar 88 -- changed defs of \labelenum... to use \theenum...
\def\labelenumi{\theenumi.}
\def\theenumi{\arabic{enumi}}
\def\labelenumii{(\theenumii)}
\def\theenumii{\alph{enumii}}
\def\p@enumii{\theenumi}
\def\labelenumiii{\theenumiii.}
\def\theenumiii{\roman{enumiii}}
\def\p@enumiii{\theenumi(\theenumii)}
\def\labelenumiv{\theenumiv.}
\def\theenumiv{\Alph{enumiv}}
\def\p@enumiv{\p@enumiii\theenumiii}
% ITEMIZE
% Itemization is controlled by four commands: \labelitemi, \labelitemii,
% \labelitemiii, and \labelitemiv, which define the labels of the
% various itemization levels.
\def\labelitemi{$\m@th\bullet$}
\def\labelitemii{\bfseries --}
\def\labelitemiii{$\m@th\ast$}
\def\labelitemiv{$\m@th\cdot$}
% VERSE
% The verse environment is defined by making clever use of the
% list environment's parameters. The user types \\ to end a line.
% This is implemented by \let'in \\ equal \@centercr.
%
\def\verse{\par\let\\=\@centercr
\list{}{\ssp\itemsep\z@ \itemindent -1.5em\listparindent \itemindent
\rightmargin\leftmargin\advance\leftmargin 1.5em}\item[]}
\let\endverse\endlist
% QUOTATION
% Fills lines
% Indents paragraph
%
\def\quotation{\par\list{}{\ssp\listparindent 1.5em
\itemindent\listparindent
\rightmargin\leftmargin\parsep \z@ plus\p@}\item[]}
\let\endquotation=\endlist
% QUOTE -- same as quotation except no paragraph indentation,
%
\def\quote{\par\list{}{\ssp\rightmargin\leftmargin}\item[]}
\let\endquote=\endlist
% DESCRIPTION
%
% To change the formatting of the label, you must redefine
% \descriptionlabel.
\def\descriptionlabel#1{\hspace\labelsep \bfseries #1}
\def\description{\list{}{\labelwidth\z@ \itemindent-\leftmargin
\let\makelabel\descriptionlabel}}
\let\enddescription\endlist
\newdimen\descriptionmargin
\descriptionmargin=3em
% ****************************************
% * OTHER ENVIRONMENTS *
% ****************************************
%
%
% VERBATIM
%
% standard verbatim mode driver macro is modified to use
% single-spacing. There appears to be a small problem with extra
% vertical space (1 or 2 points worth) after this environment.
% Probably, this results from returning to double-spacing before
% issuing a \parskip, but I'm not enough of TeX hacker to figure out
% the source of the problem. (EVM, 9/25/94)
% 94/11/03 BBF converted \tt to \ttfamily
\def\@verbatim{\trivlist\ssp \item[]\if@minipage\else\vskip\parskip\fi
\leftskip\@totalleftmargin\rightskip\z@
\parindent\z@\parfillskip\@flushglue\parskip\z@
%%RmS 91/08/26 Added \@@par to clear possible \parshape definition
%%from a surrounding list (the verbatim guru says)
\@@par
\@tempswafalse \def\par{\if@tempswa\hbox{}\fi\@tempswatrue\@@par
\penalty\interlinepenalty}%
\obeylines \ttfamily \catcode``=13 \@noligs \let\do\@makeother \dospecials}
% ARRAY AND TABULAR
%
\arraycolsep 5pt % Half the space between columns in an array
% environment.
\tabcolsep 6pt % Half the space between columns in a tabular
% environment.
\arrayrulewidth .4pt % Width of rules in array and tabular environment.
\doublerulesep 2pt % Space between adjacent rules in array or tabular
% environment.
% We have to redefine array here in order to make it single-spaced.
% (Not sure if this is really necessary.)
\def\array{\let\@acol\@arrayacol \let\@classz\@arrayclassz
\let\@classiv\@arrayclassiv \let\\\@arraycr\let\@halignto\@empty\@tabarray}
% TABBING
%
\tabbingsep \labelsep % Space used by the \' command.
% (See LaTeX manual.)
% We have to redefine tabular here in order to make it single-spaced.
\def\tabular{\par\ssp\let\@halignto\@empty\@tabular}
\expandafter \def\csname tabular*\endcsname #1%
{\par\ssp\def\@halignto{to#1}\@tabular}
% \smalltabular and \smalltabular* are alternative tabular styles
% in the \small font. They are required because single-spacing implies a
% change of font to a particular size.
% EVM, 7/20/93
\def\smalltabular{\par\smallssp\let\@halignto\@empty\@tabular}
\def\endsmalltabular{\endtabular}
\expandafter \def\csname smalltabular*\endcsname #1%
{\par\smallssp\def\@halignto{to#1}\@tabular}
\expandafter \let \csname endsmalltabular*\endcsname = \endtabular
% \scriptsizetabular and \scriptsizetabular* are analogs of \smalltabular
\def\scriptsizetabular{\par\scriptsizessp\let\@halignto\@empty\@tabular}
\def\endscriptsizetabular{\endtabular}
\expandafter \def\csname scriptsizetabular*\endcsname #1%
{\par\scriptsizessp\def\@halignto{to#1}\@tabular}
\expandafter \let \csname endscriptsizetabular*\endcsname = \endtabular
% MINIPAGE
% \@minipagerestore is called upon entry to a minipage environment to
% set up things that are to be handled differently inside a minipage
% environment. In the current styles, it does nothing.
%
% \skip\@mpfootins : plays same role for footnotes in a minipage as
% \skip\footins does for ordinary footnotes
\skip\@mpfootins = \skip\footins
% FRAMEBOX
%
\fboxsep = 3pt % Space left between box and text by \fbox and
% \framebox.
\fboxrule = .4pt % Width of rules in box made by \fbox and \framebox.
% ****************************************
% * CHAPTERS AND SECTIONS *
% ****************************************
%
% DEFINE COUNTERS:
%
% \newcounter{NEWCTR}[OLDCTR] : Defines NEWCTR to be a counter, which is
% reset to zero when counter OLDCTR is
% stepped.
% Counter OLDCTR must already be defined.
% Must redefine @startsection so that we always get indentation.
\def\@startsection#1#2#3#4#5#6{\if@noskipsec \leavevmode \fi
\par \@tempskipa #4\relax
\@afterindenttrue
\ifdim \@tempskipa <\z@ \@tempskipa -\@tempskipa \relax\fi
\if@nobreak \everypar{}\else
\addpenalty{\@secpenalty}\addvspace{\@tempskipa}\fi \@ifstar
{\@ssect{#3}{#4}{#5}{#6}}{\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}
\newcounter {part}
\newcounter {chapter}
\newcounter {section}[chapter]
\newcounter {subsection}[section]
\newcounter {subsubsection}[subsection]
\newcounter {paragraph}[subsubsection]
\newcounter {subparagraph}[paragraph]
% For any counter CTR, \theCTR is a macro that defines the printed
% version of counter CTR. It is defined in terms of the following
% macros:
%
% \arabic{COUNTER} : The value of COUNTER printed as an arabic numeral.
% \roman{COUNTER} : Its value printed as a lower-case roman numberal.
% \Roman{COUNTER} : Its value printed as an upper-case roman numberal.
% \alph{COUNTER} : Value of COUNTER printed as a lower-case letter:
% 1 = a, 2 = b, etc.
% \Alph{COUNTER} : Value of COUNTER printed as an upper-case letter:
% 1 = A, 2 = B, etc.
%
\def\thepart {\Roman{part}}
\def\thechapter {\arabic{chapter}}
\def\thesection {\thechapter.\arabic{section}}
\def\thesubsection {\thesection.\arabic{subsection}}
\def\thesubsubsection {\thesubsection .\arabic{subsubsection}}
\def\theparagraph {\thesubsubsection.\arabic{paragraph}}
\def\thesubparagraph {\theparagraph.\arabic{subparagraph}}
% \@chapapp is initially defined to be '\chaptername'. The \appendix
% command redefines it to be '\appendixname'.
%
\def\@chapapp{\chaptername}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PART %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Parts aren't defined by the UCSD OGSR, so this section has been
% commented out. Why? Because the sample pages given in the OGSR
% guidelines handout doesn't have a sample page for parts, and thus
% it is unknown how to handle them. -BB -(WBB)
% Left in, WBB, but noted; maybe should get rid of this?
%
\def\part{\cleardoublepage % Starts new page.
\thispagestyle{plain}% % Page style of part page is 'plain'
\if@twocolumn % IF two-column style
\onecolumn % THEN \onecolumn
\@tempswatrue % @tempswa := true
\else \@tempswafalse % ELSE @tempswa := false
\fi % FI
\hbox{}\vfil % Add fil glue to center title
% \bgroup \centering % BEGIN centering %% Removed 19 Jan 88
\secdef\@part\@spart}
\def\@part[#1]#2{\ifnum \c@secnumdepth >-2\relax % IF secnumdepth > -2
\refstepcounter{part}% % THEN step
% part counter
\addcontentsline{toc}{part}{\thepart % add toc line
\hspace{1em}#1}\else % ELSE add
% unnumb. line
\addcontentsline{toc}{part}{#1}\fi % FI
\markboth{}{}%
{\centering % %% added 19 Jan 88
\interlinepenalty \@M %% RmS added 11 Nov 91
\ifnum \c@secnumdepth >-2\relax % IF secnumdepth > -2
\huge\bfseries \partname~\thepart % THEN Print '\partname' and
\par % number in \huge bold.
\vskip 20\p@\fi % Add space before title.
\Huge \bfseries % FI
#2\par}\@endpart} % Print Title in \Huge bold.
% Bug Fix 13 Nov 89: #1 -> #2
% \@endpart finishes the part page
%
\def\@endpart{\vfil\newpage % End page with 1fil glue.
\if@twoside % IF twoside printing
\hbox{}% % THEN Produce totally blank page
\thispagestyle{empty}%
\newpage
\fi % FI
\if@tempswa % IF @tempswa = true
\twocolumn % THEN \twocolumn