-
Notifications
You must be signed in to change notification settings - Fork 0
/
uuthesis2e.cls
2096 lines (1839 loc) · 67.9 KB
/
uuthesis2e.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
%% From Ken Parker (kparker@facility.cs.utah.edu) Fri May 5 16:34:08 1995
%% uuthesis2e.cls
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesClass{uuthesis2e}
[1998/04/01 v1.3 University of Utah Thesis Class]
\newcommand\@ptsize{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\typeout{Document Style `uuthesis2e'. Version 1.8d - 6 Apr 1996}
\def\@warning#1{\typeout{LaTeX Warning [l.\the\inputlineno]: #1.}}
%%%%%%%%%%%%%%%%%%%%
% 11pt and 12pt are the only possibilities for type size - default is 12pt.
% These defns relate document style options to style file names loaded later.
\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
%%% Used to use \input size\@ptsize.clo, not now. See below.
%%%%%%%%%%%%%%%%%%%%
% Choice a style guild.
\DeclareOption{Chicago}{
\@ifundefined{@StyleGuild}
{\gdef\@StyleGuild{Chicago}}
{\@latex@error{Can't specify more than one style guild}\@eha}
}
\DeclareOption{MLA}{
\@ifundefined{@StyleGuild}
{\gdef\@StyleGuild{MLA}}
{\@latex@error{Can't specify more than one style guild}\@eha}
}
\DeclareOption{Turabian}{
\@ifundefined{@StyleGuild}
{\gdef\@StyleGuild{Turabian}}
{\@latex@error{Can't specify more than one style guild}\@eha}
}
%%%%%%%%%%%%%%%%%%%%
% "twoside" printing option not for theses, but maybe for drafts?
\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
\DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
%%%%%%%%%%%%%%%%%%%%
% "draft" option relaxes pickiness about overfull hboxes.
\DeclareOption{draft}{\setlength\overfullrule{5pt}}
\DeclareOption{final}{\setlength\overfullrule{0pt}}
%%%%%%%%%%%%%%%%%%%%
% "report" option does single-spacing and other stuff suitable for a
% tech report version of the thesis. The option just sets a flag that
% everybody else will look at.
\newif\if@report \@reportfalse
\DeclareOption{reoprt}{\@reporttrue}
%%%%%%%%%%%%%%%%%%%%
% Other stuff, not necessarly working
\newif\if@titlepage
\DeclareOption{titlepage}{\@titlepagetrue}
\DeclareOption{notitlepage}{\@titlepagefalse}
\newif\if@openright
\DeclareOption{openright}{\@openrighttrue}
\DeclareOption{openany}{\@openrightfalse}
\DeclareOption{onecolumn}{\@twocolumnfalse}
\DeclareOption{twocolumn}{\@twocolumntrue}
\DeclareOption{leqno}{\input{leqno.clo}}
\DeclareOption{fleqn}{\input{fleqn.clo}}
\newif\if@honors\@honorsfalse
\DeclareOption{honors}{\@honorstrue}
\newif\if@csreport\@csreportfalse
\DeclareOption{csreport}{\@csreporttrue}
\newif\if@openbib \@openbibfalse
\DeclareOption{openbib}{\@openbibtrue}
\def\reportitle{Define control sequence reporttitle to produce titlepage}
\ExecuteOptions{letterpaper,12pt,oneside,onecolumn,final,openany}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ProcessOptions
%% Check that the user selected a style guild.
\@ifundefined{@StyleGuild}
{\@latex@error{You must specify a style guild.}\@ehc}
{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{\@StyleGuild.clo}
\input{size1\@ptsize.clo}
\if@csreport\global\def\reporttitle{\CSREPORTTITLE}\fi
\if@honors\global\def\reporttitle{\HONORSTITLE}\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Thesis 12-point type is being used.
% Each size-changing command \SIZE executes the command
% \@setsize\SIZE{BASELINESKIP}\FONTSIZE\@FONTSIZE
% where:
% BASELINESKIP = Normal value of \baselineskip for that size. (Actual
% value will be \baselinestretch * BASELINESKIP.)
%
% \FONTSIZE = Name of font-size command. The currently available
% (preloaded) font sizes are: \vpt (5pt), \vipt (6pt),
% \viipt (etc.), \viiipt, \ixpt, \xpt, \xipt, \xiipt,
% \xivpt, \xviipt, \xxpt, \xxvpt.
% \@FONTSIZE = The same as the font-size command except with an
% '@' in front---e.g., if \FONTSIZE = \xivpt then
% \@FONTSIZE = \@xivpt.
%
% For reasons of efficiency that needn't concern the designer,
% the document style defines \@normalsize instead of \normalsize . This is
% done only for \normalsize, not for any other size-changing commands.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Set all the basic size parameters of the UU thesis for 12pt
%% 1.2em= 14.09981pt, 2em= 23.49976pt in 12pt font
\lineskip 1pt % \lineskip is 1pt for all font sizes.
\normallineskip 1pt
\def\@optionONE{2}
\if\@optionONE\@ptsize
\typeout{Using 12pt option}
\def\singlespace{\baselineskip=13.5pt}
\def\doublespace{\baselineskip=21pt}
% Define sectional baseline skip for each sectional font
%
%% Sometimes the space after a main heading is too large or too small.
%% This is created by a chapter command followed by a section command,
%% or in some cases, a table insertion where the caption interferes with
%% the chapter heading. Use \fixchapterheading to remove extra space.
%
\def\doublespacedheadings{
\def\HFmainheadHT{24pt}
\def\HFpartHT{24pt}
\def\HFchapterHT{24pt}
\def\HFsectionHT{20pt}
\def\HFsubsectionHT{20pt}
\def\HFsubsubsectionHT{20pt}
\def\HFsubsubsubsectionHT{20pt}
\def\HFparagraphHT{14.5pt}
% Skips
\def\HFmainheadSKIP{24pt}
\def\HFpartSKIP{14.5pt}
\def\HFchapterSKIP{14.5pt}
\def\HFsectionSKIP{14.5pt}
\def\HFsubsectionSKIP{14.5pt}
\def\HFsubsubsectionSKIP{15.5pt}
\def\HFsubsubsubsectionSKIP{15.5pt}
\def\fixchapterheading{\vspace{-18pt}}
\def\fixmainheadingSKIP{\vskip 12pt}
}
\def\singlespacedheadings{
\def\HFmainheadHT{24pt}
\def\HFpartHT{24pt}
\def\HFchapterHT{24pt}
\def\HFsectionHT{15.5pt}
\def\HFsubsectionHT{13.5pt}
\def\HFsubsubsectionHT{13.5pt}
\def\HFsubsubsubsectionHT{13.5pt}
\def\HFparagraphHT{14.5pt}
% skips
\def\HFmainheadSKIP{24pt}
\def\HFpartSKIP{14.5pt}
\def\HFchapterSKIP{14.5pt}
\def\HFsectionSKIP{21pt}
\def\HFsubsectionSKIP{21pt}
\def\HFsubsubsectionSKIP{21pt}
\def\HFsubsubsubsectionSKIP{21pt}
\def\fixchapterheading{\vspace{-24pt}}
\def\fixmainheadingSKIP{\vskip 12pt}
}
% Define special fonts for sectional headings
%
\def\HFmainhead{\@setsize\HFmainhead{\HFmainheadHT}\xivpt\@xivpt}
\def\HFpart{\@setsize\HFpart{\HFpartHT}\xivpt\@xivpt}
\def\HFchapter{\@setsize\HFchapter{\HFchapterHT}\xivpt\@xivpt}
\def\HFsection{\@setsize\HFsection{\HFsectionHT}\xivpt\@xivpt}
\def\HFsubsection{\@setsize\HFsubsection{\HFsubsectionHT}\xiipt\@xiipt}
\def\HFsubsubsection{\@setsize\HFsubsubsection{\HFsubsubsectionHT}\xiipt\@xiipt}
\def\HFsubsubsubsection{\@setsize\HFsubsubsubsection{\HFsubsubsubsectionHT}\xiipt\@xiipt}
\def\HFparagraph{\@setsize\HFparagraph{\HFparagraphHT}\xiipt\@xiipt}
\def\HFapproval{\@setsize\HFapproval{13pt}\xipt\@xipt}
\def\HFapprovalsmall{\@setsize\HFapprovalsmall{12pt}\xpt\@xpt}
\fi
%% End of all 12pt specific stuff
%% Begin 11pt specific settings
\def\@optionONE{1}
\if\@optionONE\@ptsize
\typeout{Using 11pt option}
\def\singlespace{\baselineskip=13pt}
\def\doublespace{\baselineskip=19pt}
\def\doublespacedheadings{
\def\HFmainheadHT{24pt}
\def\HFpartHT{24pt}
\def\HFchapterHT{24pt}
\def\HFsectionHT{20pt}
\def\HFsubsectionHT{20pt}
\def\HFsubsubsectionHT{20pt}
\def\HFsubsubsubsectionHT{20pt}
\def\HFparagraphHT{13.5pt}
% Skips
\def\HFmainheadSKIP{24pt}
\def\HFpartSKIP{14.5pt}
\def\HFchapterSKIP{14.5pt}
\def\HFsectionSKIP{14.5pt}
\def\HFsubsectionSKIP{14.5pt}
\def\HFsubsubsectionSKIP{15.5pt}
\def\HFsubsubsubsectionSKIP{15.5pt}
\def\fixchapterheading{\vspace{-18pt}}
\def\fixmainheadingSKIP{\vskip 12pt}
}
\def\singlespacedheadings{
\def\HFmainheadHT{24pt}
\def\HFpartHT{24pt}
\def\HFchapterHT{24pt}
\def\HFsectionHT{15.5pt}
\def\HFsubsectionHT{13.5pt}
\def\HFsubsubsectionHT{13.5pt}
\def\HFsubsubsubsectionHT{13.5pt}
\def\HFparagraphHT{13.5pt}
% skips
\def\HFmainheadSKIP{24pt}
\def\HFpartSKIP{14.5pt}
\def\HFchapterSKIP{14.5pt}
\def\HFsectionSKIP{21pt}
\def\HFsubsectionSKIP{21pt}
\def\HFsubsubsectionSKIP{21pt}
\def\HFsubsubsubsectionSKIP{21pt}
\def\fixchapterheading{\vspace{-24pt}}
\def\fixmainheadingSKIP{\vskip 12pt}
}
% Define special fonts for sectional headings
%
\def\HFmainhead{\@setsize\HFmainhead{\HFmainheadHT}\xivpt\@xivpt}
\def\HFpart{\@setsize\HFpart{\HFpartHT}\xivpt\@xivpt}
\def\HFchapter{\@setsize\HFchapter{\HFchapterHT}\xivpt\@xivpt}
\def\HFsection{\@setsize\HFsection{\HFsectionHT}\xivpt\@xivpt}
\def\HFsubsection{\@setsize\HFsubsection{\HFsubsectionHT}\xiipt\@xiipt}
\def\HFsubsubsection{\@setsize\HFsubsubsection{\HFsubsubsectionHT}\xiipt\@xiipt}
\def\HFsubsubsubsection{\@setsize\HFsubsubsubsection{\HFsubsubsubsectionHT}\xiipt\@xiipt}
\def\HFparagraph{\@setsize\HFparagraph{\HFparagraphHT}\xipt\@xipt}
\def\HFapproval{\@setsize\HFapproval{13pt}\xipt\@xipt}
\def\HFapprovalsmall{\@setsize\HFapprovalsmall{12pt}\xpt\@xpt}
\typeout{Option 11pt uses 5pt for 'tiny': microfilm needs 2mm.}
\fi
%% End of 11pt settings
% Default is single-spaced headings
\singlespacedheadings
%% Document Style Parameters.
% Many specific numbers are in the type size files, while others are
% absolute distance mandated by the thesis format itself.
% The names of type-size-specific parameters are given here, but commented out.
%% Page Style Parameters.
\oddsidemargin 0.5in
\evensidemargin 0in % does this work right with \textwidth below?
\marginparwidth = 0pt % theses don't have marginal notes
%\marginparsep
\topmargin -0.25in
\headheight 1em
\headsep 2em
\textheight 8.7in % 9in - 1em more or less
\textwidth 5.85in % 6in - 1em more or less
\topskip 10pt % default from rep12.sty (dubious)
\newdimen\footheight
\footheight 2em % page foot is used by front matter page numbers
\footskip 10pt
%% Paragraph Style Parameters.
\parindent 1.5em % Width of paragraph indentation.
\def\baselinestretch{1} % \baselinestretch * \baselineskip = \normalbaselineskip
%% Displayed Paragraph Style Parameters.
% Fix by Nelson Beebe Nov 1992
%% NB: None of these may have glue; otherwise, spacing around section
%% headings violates thesis guidelines!
\topsep=10pt
\partopsep=3pt
\itemsep=5pt
\parsep=5pt
\parskip=0pt
% The following commands are used to set the default values for the list
% environment's parameters. See the LaTeX manual for an explanation of
% the meanings of the parameters. Defaults for the list environment are
% set as follows. First, \rightmargin, \listparindent and \itemindent
% are set to 0pt. Then, for a Kth level list, the command \@listK is
% called, where 'K' denotes 'i', 'ii', ... , 'vi'. (I.e., \@listiii is
% called for a third-level list.) By convention, \@listK should set
% \leftmargin to \leftmarginK.
%
% For efficiency, level-one list's values are defined at top level, and
% \@listi is defined to set only \leftmargin.
\leftmargini 2.5em
\leftmarginii 2.2em % > \labelsep + width of '(m)'
\leftmarginiii 1.87em % > \labelsep + width of 'vii.'
\leftmarginiv 1.7em % > \labelsep + width of 'M.'
\leftmarginv 1em % is 1em a random value?
\leftmarginvi 1em % random value?
\def\@listi{\leftmargin\leftmargini}
\def\@listii{\leftmargin \leftmarginii
\labelwidth \leftmarginii \advance\labelwidth-\labelsep
\topsep 5pt plus 2.5pt minus 1pt
\parsep 2.5pt plus 1pt minus 1pt
\itemsep \parsep
}
\def\@listiii{\leftmargin \leftmarginiii
\labelwidth \leftmarginiii \advance\labelwidth-\labelsep
\topsep 2.5pt plus 1pt minus 1pt
\parsep \z@ \partopsep 1pt plus 0pt minus 1pt
\itemsep \topsep
}
\def\@listiv{\leftmargin \leftmarginiv
\labelwidth \leftmarginiv \advance\labelwidth-\labelsep
}
\def\@listv{\leftmargin \leftmarginv
\labelwidth \leftmarginv \advance\labelwidth-\labelsep
}
\def\@listvi{\leftmargin \leftmarginvi
\labelwidth \leftmarginvi \advance\labelwidth-\labelsep
}
\leftmargin \leftmargini
%\rightmargin
%\listparindent
%\itemindent
\labelsep .5em
\labelwidth \leftmargini \advance\labelwidth-\labelsep
%% Math Mode Style Parameters.
%\jot
%\mathindent
%...
%% Tabbing Style Parameters.
\tabbingsep \labelsep
%% Array Style Parameters.
% The numbers are conventional, since thesis format does not say much.
\arraycolsep 5pt
\tabcolsep 6pt
\arrayrulewidth .4pt
\doublerulesep 2pt
\def\arraystretch{1}
%% Box Style Parameters.
% Again, numbers are conventional.
\fboxrule .4pt
\fboxsep 3pt
%% Page-Breaking Penalties. (Mysterious numbers, fitted by experiment.)
\@lowpenalty 51 % Produced by \nopagebreak[1] or \nolinebreak[1]
\@medpenalty 151 % Produced by \nopagebreak[2] or \nolinebreak[2]
\@highpenalty 301 % Produced by \nopagebreak[3] or \nolinebreak[3]
\@beginparpenalty -\@lowpenalty % Before a list or paragraph environment.
\@endparpenalty -\@lowpenalty % After a list or paragraph environment.
\@itempenalty -\@lowpenalty % Between list items.
\hyphenpenalty=400
\exhyphenpenalty=400
\clubpenalty=4000 % Try to eliminate club lines.
\widowpenalty=4000 % Ditto for widows.
\displaywidowpenalty=3000 % Again, for math display widow line.
\predisplaypenalty=3000 % Breaking before a math display.
\postdisplaypenalty=2000 % Breaking after a math display.
% Committee approval page format depends on committee size (flags set
% automatically by use of \fourthreader etc commands).
\newif\iffourth
\newif\iffifth
\fourthfalse
\fifthfalse
% Only do a dedication page if a dedication has been supplied (auto set by
% \dedication command).
\newif\ifdedication
\dedicationfalse
% Correct front matter requires knowing if lists of figures and tables present.
% Unfortunately these have to be under manual control.
\newif\iflistoffigures
\newif\iflistoftables
\listoffigurestrue
\listoftablestrue
% For controlling the various chit-chat that might be issued.
\newif\ifnoisy \noisytrue
%%% Define the macros that the user will define everything with.
% \title already defined.
% \author already defined.
\def\title#1{\gdef\@title{\uppercase{#1}}} % 17-Apr-1992 to uppercase
\def\thesistype#1{\gdef\@thesistype{#1}} % thesis or dissertation
\def\graduatedean#1{\gdef\@graduatedean{#1}} % dean of the graduate school
\def\department#1{\gdef\@department{#1}} % academic department
\def\degree#1{\gdef\@degree{#1}} % exact degree being gotten
\def\committeechair#1{\gdef\@committeechair{#1}} % Committee chair-critter.
\def\firstreader#1{\gdef\@firstreader{#1}} % The other committee members.
\def\secondreader#1{\gdef\@secondreader{#1}}
\def\thirdreader#1{\gdef\@thirdreader{#1}\fourthtrue}
\def\fourthreader#1{\gdef\@fourthreader{#1}\fifthtrue}
\def\departmentchair#1{\gdef\@departmentchair{#1}} % Department chair-person.
\def\chairtitle#1{\gdef\@chairtitle{#1}} % Title of chair-person.
\def\submitdate#1{\gdef\@submitdate{#1}} % Submission date.
\def\copyrightyear#1{\gdef\@copyrightyear{#1}} % Copyright year.
\def\dedication#1{\gdef\@dedication{#1}\dedicationtrue} % The dedication.
\def\reportnumber#1{\gdef\@reportnumber{#1}} % Number/id of tech report.
\def\honorsdepartment#1{\gdef\@honorsdepartment{#1}}
\def\honorsadvisor#1{\gdef\@honorsadvisor{#1}}
\def\honorssupervisor#1{\gdef\@honorssupervisor{#1}}
\def\honorsdirector#1{\gdef\@honorsdirector{#1}}
% Number of appendices could be computed I suppose, but probably hard and
% (more importantly) unreliable. Correct TOC format requires this number.
\newcount\numberofappendices
\numberofappendices=0
% Constrain the submission dates to be only the four possible months for
% a valid thesis submission.
\def\@submitdate{\ifcase\the\month\or March\or June\or August\or December\fi
\space\number\the\year}
%%% Define all our counters. (Which style guide approves of these?)
\def\labelenumi{\arabic{enumi}.}
\def\theenumi{\arabic{enumi}}
\def\labelenumii{(\alph{enumii})}
\def\theenumii{\alph{enumii}}
\def\p@enumii{\theenumi}
\def\labelenumiii{\roman{enumiii}.}
\def\theenumiii{\roman{enumiii}}
\def\p@enumiii{\theenumi(\theenumii)}
\def\labelenumiv{\Alph{enumiv}.}
\def\theenumiv{\Alph{enumiv}}
\def\p@enumiv{\p@enumiii\theenumiii}
% Bullets for itemization. (Who says these are the way to go?)
\def\labelitemi{$\bullet$} % filled-in disk
\def\labelitemii{\bfseries --} % en-dash
\def\labelitemiii{$\ast$} % asterisk
\def\labelitemiv{$\cdot$} % centered dot
% Parameters for leader dot spacing in toc.
% They should be defined with \def's.
% \@pnumwidth : Width of box in which page number is set.
% \@tocrmarg : Right margin indentation for all but last line of
% multiple-line entries.
% \@dotsep : Separation between dots, in mu units. Should be \def'd to
% a number like 2 or 1.7
%
\def\@pnumwidth{1.55em}
\def\@tocrmarg{2.55em}%was 2.55em.
\def\@dotsep{2.5}
%%% Section Headings.
%
% Old pre-1993 \chapter and \part controls sometimes made mistakes in
% the toc because too-long lines were broken in a bad way. Indents
% failed for the second and succeeding lines (James Rieger, Feb 1993).
% -Problem verified and fixed by GBG Oct 1993
%
% A "groupheader" is one of those phrases that goes all by itself in the TOC.
\def\l@groupheader#1#2{\par\noindent \protect\\ {\bfseries #1}\par}
% A part gets big Roman numerals and a centered title on its own page.
\newcounter{part}
\def\thepart{\Roman{part}}
\def\part{\cleardoublepage
\thispagestyle{empty}
\hbox{}\vfil
\bgroup \centering \secdef \@part \@spart}
% Parts can be numbered or unnumbered - this handles both.
% Section depth for a part is 1.
%
% Adjust interline spacing and title width
\def\mainheadingwidth{4.5in}% Increased from 4in to 4.8in for Tina Ma's thesis
%
\def\@part[#1]#2{%
\ifnoisy\testsize{#2}{\HFpart\bfseries}\fi
\ifnum \c@secnumdepth >-2\relax
\refstepcounter{part}%
\addcontentsline{toc}{part}
{\protect\numberline{PART \thepart}\thesisTOC{#1}}%
\ifnoisy \typeout{PART \arabic{part}.} \fi
\else
\addcontentsline{toc}{part}{\thesisTOC{#1}}
\fi
\markboth{}{}
\parbox{\mainheadingwidth}{%
\begin{center}
\ifnum \c@secnumdepth >-2\relax
\HFpart\bfseries PART \thepart
\par \vspace{\HFpartSKIP}%
\fi
\HFpart\bfseries \uppercase{\nohyphenation #2}
\end{center}
}\@endpart
}
% Define \part*{#1}
\def\@spart#1{%
\ifnoisy\testsize{#1}{\HFpart\bfseries}\fi
\parbox{\mainheadingwidth}{%
\begin{center}
\HFpart\bfseries \uppercase{\nohyphenation #1}
\end{center}
}\@endpart
}
% Finish the part page and maybe zip out a blank backside page.
\def\@endpart{\par \egroup \vfil
\newpage
\if@twoside
\hbox{}
\thispagestyle{empty}
\newpage
\fi
}
% Composition of the part's mention in the TOC.
%
\def\l@part{\@PARTdottedtocline{1}{0.0em}{4.6em}}
%
% \@dottedtocline{LEVEL}{INDENT}{NUMWIDTH}{TITLE}{PAGE} :
% Macro to produce a table of contents line with the following
% parameters:
% LEVEL : If LEVEL > \c@tocdepth, then no line produced.
% INDENT : Total indentation from the left margin.
% NUMWIDTH : Width of box for number if the TITLE has a
% \numberline command.
% As of 25 Jan 88, this is also the amount of extra indentation
% added to second and later lines of a multiple line entry.
% TITLE : Contents of entry.
% PAGE : Page number.
%
%
\def\@PARTdottedtocline#1#2#3#4#5{\ifnum #1>\c@tocdepth\relax \else
\addpenalty{-\@highpenalty}%
% \vskip \z@ plus .2pt
\vskip 1.25em plus 1pt
{%
\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
\parindent #2\relax\@afterindenttrue
\interlinepenalty\@M
\normalsize\bfseries
\leavevmode
\@tempdima #3\relax \advance\leftskip \@tempdima \hbox{}\hskip -\leftskip
#4\nobreak\normalsize\rmfamily
\leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep
mu$}\hfill \nobreak \hbox to\@pnumwidth{\hfil\rmfamily #5}\par}\fi}
% "Main headings" are a common generalization throughout the thesis format.
% They are invariably two inches down, centered, and all uppercase boldface.
% (Arithmetic is such that only need 1/2 inch of blank space - invisible
% hrules are kludge to keep the space from vanishing.)
% 9-Feb-1990 D.Eyre. Oct 1993 GBG
%
\def\mainheading#1{
\hrule width0in \vspace{0.4in} \hrule width0in
\mainheadingtext{#1}{\HFmainhead\bfseries}%
}
\def\mainheadingtext#1#2{% #1=text, #2=font size and style
\begin{center}%
\parbox{\mainheadingwidth}{%
\begin{center}%
#2%
\uppercase{{\nohyphenation #1}}%
\end{center}%
\removelastskip
}% end parbox
\end{center}%
}
% Chapters are an important case of main headings.
\newcounter{chapter}
\def\thechapter{\arabic{chapter}}
% Turns into ``APPENDIX'' when it's appendix time.
% We need a shorthand to suppress hyphenations in various places
\def\nohyphenation{\hyphenpenalty=10000\exhyphenpenalty=10000\relax}
% Modify uuthesis \chapter macro to take an optional argument
\def\chapter{\@ifnextchar[{\@chapter}{\@@chapter}}
\def\@@chapter#1{\@chapter[#1]{{\nohyphenation #1}}}
\def\@chapapp{CHAPTER}
% Chapter title pages include text but no page number.
% Repair table of contents spacing problems
% Replaced baselineskip commands by special font command. GBG Oct 1993
% Fixed missing \global\@nobreakfalse at end of routine.
% Define \mainheadingwidth=4.0in so adjustments can be made. GBG Oct 1993
% Affects appendix and chapter headings.
% Fixed hyphen trouble Nov 1992 Nelson Beebe
% Nelson Beebe Nov 1992: Fixes to \uppercase{#1}
% G.B.G 17-April-1992, fixed \vskip to \vspace.
% Try to get 4-inch Thesis Editor rule to work;D.Eyre 9-Feb-1990
% The actual rule is up to 4.5in heading.
% Appendix problem: Fix applied to \refstepcounter{chapter}-1990
%
%\chapter command \def's
\def\@optionA{A}
\def\thesisTOC#1{\nohyphenation\linepenalty=0\uppercase{#1}}
%
\def\@chapter[#1]#2{\clearpage
\thispagestyle{empty}%
\global \@topnum \z@
\if@oneappendix% Different treatment for one appendix
\ifnoisy \typeout{\@chapapp:} \fi
\refstepcounter{chapter}
\addcontentsline{toc}{chapter}{\thesisTOC{\@chapapp: #1}}%
\mainheading{\@chapapp}%
\else
\ifnum \c@secnumdepth >\m@ne\relax
\refstepcounter{chapter}
% If chapter==1 or chapter==A, then TOC gets header
\edef\@tmp{\thechapter}
\ifx\@tmp\@optionA
\addcontentsline{toc}{groupheader}{APPENDICES}%
\fi
\ifx\@tmp\@optionONE
\addcontentsline{toc}{groupheader}{CHAPTERS}
\fi
\addcontentsline{toc}{chapter}%
{\protect\numberline{\thechapter.}\thesisTOC{#1}}%
\addcontentsline{toc}{groupheader}{\protect\vspace{-22pt}}
\else
\addcontentsline{toc}{chapter}{\thesisTOC{#1}}%
\fi
\ifnoisy \typeout{\@chapapp\space\thechapter.} \fi
\mainheading{\@chapapp\space\thechapter}
\fi
\mainheadingtext{#2}{\HFchapter\bfseries}% Text=boldface chapter header font
\vskip \HFchapterSKIP
\nobreak\@afterheading\global\@nobreakfalse
}
%%
%% Use \minusline, \plusline to remove or insert whole lines.
%% Use \minushalfline, \plushalfline to remove or insert half lines.
%%
\def\minusline{\vspace{-\normalbaselineskip}}
\def\plusline{\vspace{\normalbaselineskip}}
\def\minushalfline{\vspace{-0.5\normalbaselineskip}}
\def\plushalfline{\vspace{0.5\normalbaselineskip}}
\def\minusfourthline{\vspace{-0.25\normalbaselineskip}}
\def\plusfourthline{\vspace{0.25\normalbaselineskip}}
%
% 1988: In the TOC, the chapter number and title appear in bf, followed
% by leaders then right-justified page number.
% Original 1.0em changed to .75em and changed #1\hfil to #1\mydotfill.
%
\def\l@chapter{\@CHAPTERdottedtocline{2}{0.0em}{2em}}
%
\def\@CHAPTERdottedtocline#1#2#3#4#5{\pagebreak[3]
\ifnum #1>\c@tocdepth\relax \else
% \vskip \z@ plus .2pt
\vskip .75em plus 1pt
{%
\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
\parindent #2\relax\@afterindenttrue
\interlinepenalty\@M
\leavevmode
\@tempdima #3\relax \advance\leftskip \@tempdima \hbox{}\hskip -\leftskip
\normalsize\bfseries
#4\nobreak\normalsize\rmfamily
\leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep
mu$}\hfill\nobreak \hbox to\@pnumwidth{\hfil\rmfamily #5}\par}\fi}
% Section numbering/titling is a problem for UU theses, since the format is
% different, depending on how many subsections one has. Therefore, we have
% some commands to set the number of levels.
% \@Ustartsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}
% optional * [ALTHEADING]{HEADING}
% Generic command to start a section.
% NAME : e.g., 'subsection'
% LEVEL : a number, denoting depth of section -- e.g., chapter=1,
% section = 2, etc. A section number will be printed if
% and only if LEVEL < or = the value of the secnumdepth
% counter.
% INDENT : Indentation of heading from left margin
% BEFORESKIP : Absolute value = skip to leave above the heading.
% If negative, then paragraph indent of text following
% heading is suppressed.
% AFTERSKIP : if positive, then skip to leave below heading,
% else - skip to leave to right of run-in heading.
% STYLE : commands to set style
% If '*' missing, then increments the counter. If it is present, then
% there should be no [ALTHEADING] argument. A sectioning command
% is normally defined to \@Ustartsection + its first six arguments.
%
\def\@Ustartsection#1#2#3#4#5#6{%
\@testsizetrue\ifnum\c@secnumdepth=#2\relax \@testsizefalse \fi
\if@noskipsec \leavevmode \fi
\par\@tempskipa #4\relax
\@afterindenttrue
\ifdim \@tempskipa <\z@ \@tempskipa -\@tempskipa \@afterindentfalse\fi
\if@nobreak \everypar{}
\addpenalty{\@secpenalty}% Added by GBG
\advance\@tempskipa by -14.5pt% Added by GBG
\addvspace{\@tempskipa}% Added by GBG
\else
\addpenalty{\@secpenalty}\addvspace{\@tempskipa}\fi
\@ifstar
{\@Ussect{#3}{#4}{#5}{#6}}{\@dblarg{\@Usect{#1}{#2}{#3}{#4}{#5}{#6}}}}
%
% \testsize checks for title width and issues error message if too wide
%
% Build a tabular array from the title string. Measure the width of the
% table and test it against the maximum allowed width of 4.0 inches (about
% 1/2 inch is used for the section number). Issue error message if the
% width is exceeded but otherwise do nothing. -GBG OCT 1993
%
\newdimen\@titlesize
\newdimen\@maxsize
\newif\if@testsize \@testsizetrue
\def\testsize#1#2{%
\if@testsize
\let\@CENTER\center
\let\center\relax
\@maxsize=\mainheadingwidth
\advance\@maxsize by -0.5in
\setbox\@tempboxa=\hbox{{#2\begin{tabular}{@{}l@{}}#1\end{tabular}}}%
\@titlesize\wd\@tempboxa\relax
\ifdim\@titlesize>\@maxsize
\ifnoisy
\advance\@titlesize by -\@maxsize
\typeout{Title Error: (\the\@titlesize\space too wide)}
\typeout{Page \thepage, Title="#1"}\typeout{}
\fi
\fi
\let\center\@CENTER
\fi
}
\def\@Usect#1#2#3#4#5#6[#7]#8{%
\testsize{#8}{#6}\@testsizetrue
\ifnum #2>\c@secnumdepth\relax
\def\@svsec{}\else
\refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname\hskip 1em }\fi
\@tempskipa #5\relax
\ifdim \@tempskipa>\z@
\begingroup #6\relax
\@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\par}%
\endgroup
\csname #1mark\endcsname{#7}%
\ifnum\c@tocdepth>\z@\relax
\addcontentsline{toc}{#1}%
{\ifnum #2>\c@secnumdepth \else
\protect\numberline{\csname the#1\endcsname}\fi #7}%
\fi
\else
\def\@svsechd{#6\hskip #3\relax %% \relax added 2 May 90
\@svsec #8\csname #1mark\endcsname {#7}%
\ifnum\c@tocdepth>\z@\relax
\addcontentsline{toc}{#1}%
{\ifnum #2>\c@secnumdepth \else
\protect\numberline{\csname the#1\endcsname}\fi #7}%
\fi
}
\fi
\@xsect{#5}%
}
%
\def\@Ussect#1#2#3#4#5{\testsize{#5}{#4}\@testsizetrue
\@tempskipa #3\relax
\ifdim \@tempskipa>\z@
\begingroup #4%
\@hangfrom{\hskip #1}{\interlinepenalty \@M%
\nopagebreak[4]%
#5\par}%
\endgroup
\else \def\@svsechd{#4\hskip #1\relax #5}\fi
\@xsect{#3}}
% Three levels of heading is most typical.
% Put in fixed spacing above and below headings, rather than keying it
% to \normalbaselineskip, which depends on the size of the current
% font.
%
% UofU thesis guidelines require two blank lines before some headings,
% and one blank line after after. Paragraph headings get indent equal
% to the usual indent for a paragraph. The heading ends with a period.
% Then the text of the paragraph continues on the same line as the
% heading. If two displayed subheadings follow one another without any
% text, then they are separated by only one blank line.
%
% I translate these requirements into typography as normal font height =
% 14.5pt, large font height = 18pt. These are the only two font sizes
% used for headings in this style, hence everything can be set from
% them.
%
% Fixes by Nelson Beebe 22 June 1993 and GBG Oct 1993
%
\def\threelevels{
% The value of the counter secnumdepth gives the depth of the
% highest-level sectioning command that is to produce section numbers.
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
\newcounter{section}[chapter]
\newcounter{subsection}[section]
\newcounter{paragraph}[subsection]
\def\thesection{\thechapter.\arabic{section}}
\def\thesubsection{\thesection.\arabic{subsection}}
\def\theparagraph{\thesubsection.\arabic{paragraph}}
\def\section{\@Ustartsection{section}{3}
{\z@} %indent. \z@ == 0pt
{\HFsectionSKIP} % before=\baselineskip for \large
{1sp} %after
{\center %style
\HFsection\bfseries}}
\def\subsection{\@Ustartsection{subsection}{4}
{\z@} %indent
{\HFsubsectionSKIP} % before=\baselineskip for \normalsize
{1sp} %after
{\HFsubsection\bfseries}} %style
\def\subsubsection{\typeout{No subsubsections allowed with three levels.}}
\def\paragraph{\@Ustartsection{paragraph}{5}
{\parindent} %indent
{1sp} %before
{-1em} %after
{\HFparagraph\bfseries}} %style
\def\subsubsubsection{\typeout{No subsubsubsections allowed in threelevels.}}
\def\subparagraph{\typeout{No subparagraphs allowed in this style.}}
\def\l@section{\@dottedtocline{3}{2em}{2em}}
\def\l@subsection{\@dottedtocline{4}{3.5em}{2.8em}}
\def\l@paragraph{\@dottedtocline{5}{5em}{3.6em}}
}
% Four levels of sectioning
% Fixes by Nelson Beebe Nov 1992. Fixes by GBG Oct 1993
\def\fourlevels{
\threelevels
\setcounter{secnumdepth}{6}
\setcounter{tocdepth}{6}
\newcounter{subsubsection}[subsection]
\def\thesubsubsection{\thesubsection.\arabic{subsubsection}}
\def\theparagraph{\thesubsubsection.\arabic{paragraph}}
\def\subsection{\@Ustartsection{subsection}{4}% Fix Nov 1992
{\z@} %indent. \z@ == 0pt
{\HFsubsectionSKIP} %before
{1sp} %after
{\center %style
\HFsubsection\bfseries}}
\def\subsubsection{\@Ustartsection{subsubsection}{5}% Fix Nov 1992
{\z@} %indent
{\HFsubsubsectionSKIP} %before
{1sp} %after
{\HFsubsubsection\bfseries %style
\hsize=\mainheadingwidth}}
\def\paragraph{\@Ustartsection{paragraph}{6}
{\parindent} %indent
{1sp} %before
{-1em} %after
{\HFparagraph\bfseries}} %style
\def\subsubsubsection{\typeout{No subsubsubsections allowed in fourlevels.}}
\def\subparagraph{\typeout{No subparagraphs allowed in this style.}}
\def\l@subsubsection{\@dottedtocline{5}{5em}{3.6em}}
\def\l@paragraph{\@dottedtocline{6}{6.5em}{4.2em}}
}
% Five levels of sectioning
% by GBG Oct 1993
\def\fivelevels{
\fourlevels
\setcounter{secnumdepth}{7}
\setcounter{tocdepth}{7}
\newcounter{subsubsubsection}[subsubsection]
\def\thesubsubsubsection{\thesubsubsection.\arabic{subsubsubsection}}
\def\theparagraph{\thesubsubsubsection.\arabic{paragraph}}
\def\subsubsubsection{\@Ustartsection{subsubsubsection}{6}
{\z@} %indent
{\HFsubsubsectionSKIP} %before
{1sp} %after
{\HFsubsubsection\bfseries %style
\hsize=\mainheadingwidth}}
\def\paragraph{\@Ustartsection{paragraph}{7}
{\parindent} %indent
{1sp} %before
{-1em} %after
{\HFparagraph\bfseries}} %style
\def\l@subsubsubsection{\@dottedtocline{6}{6.5em}{4.2em}}
\def\l@paragraph{\@dottedtocline{7}{8em}{5.0em}}
}
%%% Footnote parameters
%
% \skip\footins : Space between main text and footnotes. The rule
% separating footnotes from text occurs in this space.
% This space lies above the strut of height \footnotesep
% which is at the beginning of the first footnote.
\skip\footins 1em plus 4pt minus 2pt
\skip\@mpfootins = \skip\footins
% 1.8 inches is more or less the 20 spaces that the footnote rule should be.
\def\footnoterule{\kern-3\p@ \hrule width 1.8in \kern 2.6\p@}
% Footnotes numbered on a per-chapter basis (Chicago Manual, 2.22).
\@addtoreset{footnote}{chapter}
% Wrapper for footnote text, does paragraph indent and adds footnote number.
\long\def\@makefntext#1{\parindent 1em \noindent
\hbox to 1.8em {\hss$^{\@thefnmark}$}#1
}
% Height of strut placed at the beginning of every footnote is enough to
% make something like doublespacing, but will apply to all footnotes, not
% just the first (sigh).
\footnotesep 20pt
%%
%% End of footnote options
%%
% ****************************************
% * FIGURES AND TABLES *
% ****************************************
%
% Fix by Nelson Beebe Nov 1992 and Sep 1993
% More fixes by GBG Oct 1993