-
Notifications
You must be signed in to change notification settings - Fork 5
/
uicthesis.cls
1309 lines (1226 loc) · 41.2 KB
/
uicthesis.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
% UICTHESI DOCUMENT CLASS
% for LaTeX version 2e 02/01/96
%==============================================================================
% \section{A \LaTeX\ Style File for Thesis Formatting at UIC}
%
% This is the thesis style file to be used with \LaTeX .
% To use it please enter the line \verb+\documentstyle{uicthesis}+.
% This file an adoptation of the Report Document style for
% \LaTeX\ version 2.09 Copyright (C) 1988 by Leslie Lamport and
% for use with the new Font Selection Scheme that accompanied \TeX\
% version 3.1 at UIC.
%
% First Edition:
% Paul Davis, UIC Computer Center, 31 December 1991.
%
% Changes to this file:
% (should be described here)
% (remember to update the filedate and fileversion as needed.)
%
% Changed Acknowledgment to allow plurals and changed Cited Literature
% to avoid Appendix continued page headers.
% Paul Davis, UIC Computer Center, 27 February 1992.(a)
%
% Changed xnumberline to allow section,subsection,etc. headings to
% line up.
% Paul Davis, UIC Computer Center, 3 March 1992.(b)
%
% Changed formatting for table of contents.
% Paul Davis, UIC Computer Center, 12 March 1992.(c)
%
% Fixed footnote counter
% Paul Davis, UIC Computer Center, 14 May 1992.(d)
%
% Fixed footnote counter again, now it really does count correctly.
% Paul Davis, UIC Computer Center, 4 June 1992.(e)
%
% Changes \@pnumwidth and \@tocrmarg parameters to avoid line overruns
% in TOC, LOF, LOT. Added a new conditional, \ifabseqnumbering,
% to create absolute numbering of equtions as an option
% Paul Davis, UIC Computer Center, 25 June 1992.(f)
%
% Added spacing between cited literature sections (\itemsep)
% and deleted extra page before the Vita.(g)
%
%
% This file has been updated to work under \LaTeX\ version 2e.
% Wherever possible or necessary I have substituted the appropriate
% \LaTeX\ version 2e command for the old commands that didn't work.
% As I started this project with little prior knowledge there may
% be bugs or other mistakes, so please feel free to add corrections
% and enhancements as seen fit. I used the University of California
% thesis style class ucthesis.cls and associated files as guides in
% this effort. Those are available from any CTAN archive.
%
% Thomas McKibben, UIC Dept. of Physics, January 1996.
%
%
% Removed uppercase from title.
%
% Corrected initial formula.
%
% Changed environment name from uicthesi to uicthesis; file name changed
% accordingly.
%
% Filippo Sironi, UIC Alumni of Computer Science, 21 January 2010.
%
% Adapted so that it works with hyperref and other minor improvements
% Still wondering why the hell the table captions must be uppercase..
%
% Davide Basilio Bartolini, UIC Alumni of Computer Science, February 2011
%
% First, let us announce ourselves.
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{uicthesis}[2010/01/21 v1.3 University of Illinois at Chicago Thesis Class]
%
% BEGIN OPTIONS
%
\newcommand\@ptsize{}
\newcommand\@draftmark{}
\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
\DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
\DeclareOption{draft}{\renewcommand\@draftmark{1}}
\DeclareOption{final}{\renewcommand\@draftmark{0}}
\DeclareOption{letterpaper}{\setlength{\paperheight}{11in}
\setlength{\paperwidth}{8.5in}}
\ExecuteOptions{letterpaper,11pt,oneside,final} % default options
%
% END OPTIONS
%
%
% CHOOSING THE TYPE SIZE
%
% 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.
\def\newblock{\hskip .11em plus .33em minus .07em}
% 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
% The type size option is handled by reading uicthesis11.clo
% There is no alternates to the default 11 point style.
\input uicthesis11.clo\relax
%
%
% BEGIN FRONT MATTER
%
%
% \section{Title Page}
%
% In this section we will define the title page. The only macros that
% were added are the \verb+\degree+ macro that will be used to print the
% degree that the student is pursuing and the\verb+\pdegrees+ macro that
% will be used to print the prior degrees earned by the author.
% \verb+\date+ is redefined so that it only prints the year.
% The title is forced to uppercase.
% \begin{macrocode}
\def\title#1{\gdef\@title{\expandafter{#1}}}
\def\author#1{
\gdef\@author{#1}
\gdef\@upauthor{\expandafter\uppercase{#1}}}
\def\@date{\the\year}
\def\degree#1{\def\@degree{#1}}
\def\pdegrees#1{\def\@pdegrees{#1}}
\def\titlepage{
\newpage
\c@page\z@}
\def\endtitlepage{\newpage}
\def\maketitle{%
\begin{titlepage}
%\centering
\thispagestyle{empty}
\c@page=2
\vbox to 0pt{%
\begin{center}
\large\transparentbold\@title
\end{center}\vss}
\vfill
\begin{center}
\begin{singlespace}
BY
\vskip\baselineskip
\begin{tabular}{c}
\@upauthor\\\@pdegrees
\end{tabular}
\vfill
\vbox to 0pt{\vss
\begin{center}
THESIS
\vskip \baselineskip
Submitted as partial fulfillment of the requirements\\
for the degree of \@degree\\
in the Graduate College of the\\
University of Illinois at Chicago, \@date
\vskip 3\baselineskip
Chicago, Illinois
\end{center}}
\end{singlespace}
\end{center}
\begin{tabular}{lr}
Defense Committee: & \\
& V.N. Venkatakrishnan \\
& Stefano Zanero
\end{tabular}
\end{titlepage}}
% \end{macrocode}
%
% \section{Chapters and Sections}
% By default, \LaTeX\ will only number thru the Subsections.
% Paragraphs and subparagraphs are not numbered so we will change
% the value of secnumdepth to a high number like 10 (5 will do).
% \begin{macrocode}
\c@secnumdepth=10 % or \setcounter{secnumdepth}{10}
\def\@sect#1#2#3#4#5#6[#7]#8{
\ifnum #2>\c@secnumdepth
\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 \underl #8 & }%
\endgroup
\csname #1mark\endcsname{#7}
\if@startedappendices
\else
\addcontentsline
{toc}
{#1}
{\ifnum #2>\c@secnumdepth
\else
\protect\numberline{\csname the#1\endcsname}
\fi
#7}
\fi
\else
\def\@svsechd{#6\hskip #3\@svsec #8\csname #1mark\endcsname
{#7}
\if@startedappendices
\else
\addcontentsline
{toc}
{#1}
{\ifnum #2>\c@secnumdepth
\else
\protect\numberline{\csname the#1\endcsname}
\fi
#7}}
\fi
\fi
\@xsect{#5}}
% \end{macrocode}
%
% \section{Preliminary Sections}
% If this is to be a preliminary section, this macro causes the
% name designated by \verb+\section@mark+ to be used as the section
% title and to use that title in the heading of the continued pages
% of this section.
% \begin{macrocode}
\def\@makeprelimhead{
\def\headmark{\vbox{
\hbox to \textwidth{\bfseries\large\hfil\section@mark{}
(Continued) \hfil}}}
\pagestyle{continued}
\thispagestyle{pageonbottom}
\@makeschapterhead{\section@mark}
\par}
% \end{macrocode}
%
% \subsection{Copyright Page}
% \begin{macrocode}
\def\copyrightpage{
\newpage\thispagestyle{empty}
\c@page=2
\vspace*{2.5in}
\begin{center}
Copyright by\\\@author\\\@date
\end{center}
\vfill\eject}
% \end{macrocode}
%
% \subsection{Dedication}
% \begin{macrocode}
\def\dedication{
\clearpage
\typeout{DEDICATION}
\chapter*{}}
% \end{macrocode}
%
% \subsection{Acknowledgment(s)}
% \begin{macrocode}
\def\acknowledgment{
\clearpage
\typeout{ACKNOWLEDGEMENT.}
\def\section@mark{ACKNOWLEDGEMENT}
\@makeprelimhead}
\let\acknowledgement\acknowledgment
\def\acknowledgments{
\clearpage
\typeout{ACKNOWLEDGEMENTS.}
\def\section@mark{ACKNOWLEDGEMENTS}
\@makeprelimhead}
\let\acknowledgements\acknowledgments
\def\initials#1{
\par\vspace{50pt}
\leftline{\hskip 5.5in #1 \hfil}}
% \end{macrocode}
%
% \subsection{Preface}
% \begin{macrocode}
\def\preface{
\clearpage
\typeout{PREFACE.}
\def\section@mark{PREFACE}
\@makeprelimhead}
% \end{macrocode}
%
% \subsection{Summary}
% \begin{macrocode}
\def\summary{
\clearpage
\typeout{SUMMARY.}
\def\section@mark{SUMMARY}
\@makeprelimhead}
% \end{macrocode}
%
% \subsection{List of Abbreviations}
% \begin{macrocode}
\def\listofabbreviations{
\clearpage
\typeout{LIST OF ABBREVIATIONS.}
\def\section@mark{LIST OF ABBREVIATIONS}
\@makeprelimhead}
% \end{macrocode}
%
% \subsection{Vita}
% \begin{macrocode}
\def\vita{
\clearpage
\typeout{VITA.}
\addtocontents{toc}{\protect\addvspace{\baselineskip}}
\addcontentsline{toc}{chapter}
{\protect\xnumberline{\ }VITA}
\def\section@mark{VITA}
\pagestyle{pageontop}
\thispagestyle{pageonbottom}
\@makeprelimhead}
% \end{macrocode}
%
% \section{Table of Contents}
% Here we define \verb+\tableofcontents+, we create a page style for
% the table of contents called \verb+\toc+. First let's define the name
% for the table of contents.
% \begin{macrocode}
\def\tocname{TABLE OF CONTENTS}
% \end{macrocode}
%
% Increase the heading level that will be included in the table of contents.
% The default is 2. We will set it equal to \verb+\c@secnumdepth+
% \begin{macrocode}
\c@tocdepth=\c@secnumdepth
% \end{macrocode}
%
% We change the \verb+\tableofcontents macro+
% \begin{macrocode}
\def\@pnumwidth{3em}
\def\@tocrmarg {4em}
\def\@dotsep{4.0}
\def\tableofcontents{
\clearpage
\typeout{TABLE OF CONTENTS.}
\def\headmark{\vbox{
\hbox to \textwidth{\bfseries\large\hfil TABLE OF CONTENTS
(Continued) \hfil}
\vspace{\innerheadskip}
\hbox to \textwidth{\bfseries\normalsize
\underbar{CHAPTER}\hfil\underbar{PAGE}}}}
\pagestyle{continued}
\table@of@cont
\newpage
}
\def\table@of@cont{%
\begin{singlespace}
\thispagestyle{pageonbottom}
\@makeschapterhead{TABLE OF CONTENTS}
\par
\hbox to \textwidth{\bfseries\underbar{CHAPTER}
\hfil\underbar{PAGE}}
\@starttoc{toc}
\end{singlespace}}
% \end{macrocode}
%
% \section{Figures and Tables}
% \subsection{Float placement parameters}
% See LaTeX manual for their definition.
% \begin{macrocode}
\setcounter{topnumber}{2}
\def\topfraction{.7}
\setcounter{bottomnumber}{1}
\def\bottomfraction{.3}
\setcounter{totalnumber}{3}
\def\textfraction{.2}
\def\floatpagefraction{.5}
\setcounter{dbltopnumber}{2}
\def\dbltopfraction{.7}
\def\dblfloatpagefraction{.5}
% \end{macrocode}
% The caption for a table is forced to uppercase, but that for a figure
% is left in mixed case.
% \begin{macrocode}
\long\def\@caption#1[#2]#3{
\par
\addtocontents
{\csname ext@#1\endcsname}
{\protect\addvspace{\baselineskip}}
\if@isatable
\addcontentsline%
{\csname ext@#1\endcsname}{#1}{\protect\xnumberline%
{\csname the#1\endcsname\hskip 2em}%
{\expandafter{\uppercase{\ignorespaces #2}}}}
\else
\addcontentsline
{\csname ext@#1\endcsname}{#1}{\protect\xnumberline%
{\csname the#1\endcsname\hskip 2em}%
{\ignorespaces #2}}
\fi
\begingroup
\@parboxrestore
\normalsize
\if@isatable
\@makecaption{\csname fnum@#1\endcsname}
{\expandafter{\uppercase{\ignorespaces #3}}}\par
\else
\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
\fi
\endgroup}
\long\def\@makecaption#1#2{
{\vspace{10pt}\centering
\if@isatable
\setbox\@tempboxa\hbox {#1: #2}
\ifdim \wd\@tempboxa >\hsize
#1: #2\par
\else
\hbox to \hsize{\hfil\box\@tempboxa\hfil}
\fi
\hbox to \hsize{\hfil \hfil}
\vspace{\baselineskip}
\else
\setbox\@tempboxa\hbox{#1: #2}
\ifdim \wd\@tempboxa >\hsize % IF longer than one line:
#1: #2\par % THEN set as ordinary paragraph.
\else % ELSE center.
\hbox to \hsize{\hfil\box\@tempboxa\hfil}
\fi
\fi}}
\def\tablerule{
\kern-3\p@
\hrule width \columnwidth
\kern 2.6\p@}
% \end{macrocode}
%
% \subsection{Figure}
% \begin{macrocode}
\newcounter{figure}
\def\thefigure{\arabic{figure}}
%\def\p@figure{Figure~}
\def\fps@figure{tbp}
\def\ftype@figure{1}
\def\ext@figure{lof}
\def\fnum@figure{Figure~\thefigure}
\def\figure{\@isatablefalse\@float{figure}}
\def\endfigure{\end@float}
\@namedef{figure*}{\@dblfloat{figure}}
\@namedef{endfigure*}{\end@dblfloat}
% \end{macrocode}
%
% \subsection{Table}
% \begin{macrocode}
\newcounter{table}
\def\thetable{\Roman{table}}
%\def\p@table{Table~}
\def\fps@table{tbp}
\def\ftype@table{2}
\def\ext@table{lot}
\def\fnum@table{TABLE~\thetable}
\def\table{\@isatabletrue\@float{table}}
\def\endtable{\end@float}
\@namedef{table*}{\@dblfloat{table}}
\@namedef{endtable*}{\end@dblfloat}
% \end{macrocode}
%
% \section{Lists of Figures and Tables}
% \subsection{List of Figures}
% \begin{macrocode}
\def\listoffigures{
\clearpage
\typeout{LIST OF FIGURES.}
\def\headmark{\vbox{
\hbox to \textwidth{\large\bfseries\hfil LIST OF FIGURES
(Continued) \hfil}
\vspace{\innerheadskip}
\hbox to \textwidth{\normalsize\bfseries
\underbar{FIGURE}\hfil\underbar{PAGE}}}}
\pagestyle{continued}
\list@of@figs
% \newpage
}
\def\list@of@figs{
\begin{singlespace}
\thispagestyle{pageonbottom}
\@makeschapterhead{LIST OF FIGURES}
\par
\hbox to \textwidth{\normalsize\bfseries
\underbar{FIGURE}\hfil\underbar{PAGE}}
\vspace{0.3cm}
\@starttoc{lof}
\end{singlespace}}
\def\l@figure{
\@dottedtocline{1}{2.5em}{3.5em}}
% \end{macrocode}
%
% \subsection{List of Tables}
% \begin{macrocode}
\def\listoftables{
\clearpage
\typeout{LIST OF TABLES.}
\def\headmark{\vbox{
\hbox to \textwidth{\large\bfseries \hfil LIST OF TABLES
(Continued) \hfil}
\vspace{\innerheadskip}
\hbox to \textwidth{\normalsize\bfseries
\underbar{TABLE}\hfil\underbar{PAGE}}}}
\pagestyle{continued}
\list@of@tabs
% \newpage
}
\def\list@of@tabs{
\begin{singlespace}
\thispagestyle{pageonbottom}
\@makeschapterhead{LIST OF TABLES}
\par
\hbox to \textwidth{\normalsize\bfseries
\underbar{TABLE}\hfil\underbar{PAGE}}
\vspace{0.3cm}
\@starttoc{lot}
\end{singlespace}}
\def\l@table{
\@dottedtocline{1}{3.5em}{4.0em}}
% \end{macrocode}
%
% END FRONT MATTER
%
%
% BEGIN LISTS
%
% \section{Lists}
% \subsection{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
% \verb+\labelenumi+ ... \verb+\labelenumiv+.
% The expansion of \verb+\p@enumN\theenumN+ defines the
% output of a \verb+\ref+ command.
% \begin{macrocode}
\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}
% \end{macrocode}
%
% \subsection{Itemize}
% Itemization is controlled by four commands:
% \verb+\labelitemi+,
% \verb+\labelitemii+,
% \verb+\labelitemiii+, and
% \verb+\labelitemiv+,
% which define the labels of the various
% itemization levels.
% \begin{macrocode}
\def\labelitemi{$\bullet$}
\def\labelitemii{\bfseries --}
\def\labelitemiii{$\ast$}
\def\labelitemiv{$\cdot$}
% \end{macrocode}
%
% \subsection{Verse}
% The verse environment is defined by making clever use of the
% list environment's parameters. The user types \verb+\\+
% to end a line.
% This is implemented by \verb+\let'in \\ equal \@centercr+.
% \begin{macrocode}
\def\verse{\let\\=\@centercr
\list{}{\itemsep\z@ \itemindent -1.5em\listparindent \itemindent
\rightmargin\leftmargin\advance\leftmargin 1.5em}\item[]}
\let\endverse\endlist
% \end{macrocode}
%
% \subsection{Quotation}
% Fills lines and indents paragraph.
% \begin{macrocode}
\def\quotation{\list{}{\listparindent 1.5em
\itemindent\listparindent
\rightmargin\leftmargin\parsep 0pt plus 1pt}\item[]}
\let\endquotation=\endlist
% \end{macrocode}
%
% \subsection{Quote}
% Same as quotation except no paragraph indentation,
% \begin{macrocode}
\def\quote{\list{}{\rightmargin\leftmargin}\item[]}
\let\endquote=\endlist
% \end{macrocode}
%
% \subsection{Description}
% To change the formatting of the label, you must redefine
% \verb+\descriptionlabel+.
% \begin{macrocode}
\def\descriptionlabel#1{\hspace\labelsep \bfseries #1}
\def\description{\list{}{\labelwidth\z@ \itemindent-\leftmargin
\let\makelabel\descriptionlabel}}
\let\enddescription\endlist
\newdimen\descriptionmargin
\descriptionmargin=3em
% \end{macrocode}
%
% END LISTS
%
%
% BEGIN OTHER ENVIRONMENTS
%
% \section{Other Environments}
% \subsection{Equation numbering}
% Equations are numbered as two arabic numbers, separated by a period.
% The first number, to the left of the period, is the chapter number.
% The second number is a counter that is initialized to start at 1
% at the beginning of each chapter and is incremented for each new
% equation. As an option, the command \verb+\abseqnumberingtrue+ will
% allow absolute rather than chapter-relative numbering.
% \begin{macrocode}
\def\p@equation{Equation~}
\def\theequation{\ifabseqnumbering\arabic{equation}
\else\thechapter.\arabic{equation}\fi}
% \end{macrocode}
%
% \subsection{Array and Tabular}
% \begin{macrocode}
\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 env.
% \end{macrocode}
%
% \subsection{Tabbing}
% \begin{macrocode}
\tabbingsep \labelsep % Space used by the \' command. (See LaTeX manual.)
% \end{macrocode}
%
% \subsection{Minipage}
% \verb+\@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.
%
% \verb+\skip\@mpfootins+ plays same role for footnotes in a minipage as
% \verb+\skip\footins+ does for ordinary footnotes
% \begin{macrocode}
\skip\@mpfootins = \skip\footins
% \end{macrocode}
%
% \subsection{Framebox}
% \begin{macrocode}
\fboxsep = 3pt % Space left between box and text by \fbox and \framebox.
\fboxrule = .4pt % Width of rules in box made by \fbox and \framebox.
% \end{macrocode}
%
%
% END OTHER ENVIRONMENTS
%
%
% BEGIN CHAPTERS AND SECTIONS
%
% \subsection{Chapter}
% This changes the way chapter headings are printed. The size was reduced
% and it is centered instead of left justified.
% \verb+\@makechapterhead+ is used by \verb+\chapter+ and
% \verb+\@makeschapterhead+ is used by \verb+\chapter*+.
% The \verb+\chapter+ macro calls the \verb+\@chapter+ if \verb+\chapter+
% was used and calls the \verb+\@schapter+ if \verb+\chapter*+ was used.
% \begin{macrocode}
\newcounter{chapter} % The counter
\def\thechapter{\arabic{chapter}} % Printed representation of counter.
\def\chapter{
\clearpage % Starts new page.
\if@startedappendices
\pagestyle{appendixcontinued}
\thispagestyle{pageonbottom}
\if@multappendices
\def\headmark{\vbox{
{\hbox to \textwidth{\rmfamily\normalsize\hfil\thepage}}
\vspace{\innerheadskip}
{\hbox to \textwidth
{\hfil{\bfseries\large Appendix
\thechapter{} (Continued)}\hfil}}}}
\else
\def\headmark{\vbox{
{\hbox to \textwidth{\rmfamily\normalsize\hfil\thepage}}
\vspace{\innerheadskip}
{\hbox to \textwidth
{\hfil{\bfseries\large APPENDIX (Continued)}\hfil}}}}
\fi
\thispagestyle{pageonbottom}
\else
\thispagestyle{pageonbottom}
% Page number of chapter page is on bottom
% except for appendix chapters, where it
% appears on top.
\fi
\global\@topnum\z@ % Prevents figures from going at top of page.
\ifabseqnumbering\relax\else\setcounter{equation}{0}\fi
\secdef\@chapter\@schapter}
\def\@schapter#1{
\typeout{Unnumbered Chapter.}
\@makeschapterhead{#1}
\@afterheading}
\def\@chapter[#1]#2{
\ifnum \c@secnumdepth > \m@ne
\refstepcounter{chapter}
\typeout{\@chapapp\space\thechapter.} % Msg to term
\fi
\if@startedappendices
\if@multappendices
\addcontentsline{toc}{chapter}%
{\protect\xnumberline{\ }\ \ \ \ \ Appendix \thechapter}
\else
\addtocontents{toc}{\protect\addvspace{\baselineskip}}
\addcontentsline{toc}{chapter}%
{\protect\xnumberline{\ }APPENDIX }
\fi
\else
\addtocontents{toc}{\protect\addvspace{\baselineskip}}
\addcontentsline{toc}{chapter}%
{\protect\xnumberline{\thechapter}\texorpdf\uppercase{#1}}
\fi
\if@startedbodyyet % Then do nothing
\else
\pagestyle{pageontop}
\pagenumbering{arabic}
\@startedbodyyettrue
\fi
\@makechapterhead{#2}
\@afterheading}
% \end{macrocode}
%
% The section of the code for \verb+\@chapter+ between
% \verb+\if@startedbodyyet+ and \verb+\fi+ was added so that when we call
% \verb+\chapter+ for the first time in the body of the macro, the
% page number will be reset to one and to roman.
% The \verb+\numberline+ command takes as an argument the section number
% and we need to change it. As defined in the
% \verb+report.sty+ is set so that the section numbers align to the left
% instead of the right.
% \begin{macrocode}
\def\chaptermark#1{}
% \end{macrocode}
%
% \subsubsection{Make Chapter Heading}
% \paragraph{Numbered Chapter Heading}
% \begin{macrocode}
\def\@makechapterhead#1{
{\parindent 0pt \centering
\ifnum \c@secnumdepth > \m@ne % If > -1 then write it
\if@startedappendices
\if@multappendices
\large\transparentbold \@chapapp{} \thechapter\par
\else
\large\transparentbold APPENDIX\par
\fi
\else
\large\transparentbold \@chapapp{} \thechapter\par
\fi
\vspace{20pt}
\fi
\large\transparentbold\uppercase{#1}\par
\nobreak
\vspace{20pt}}}
% \end{macrocode}
%
% \paragraph{Unnumbered Chapter Heading}
% \begin{macrocode}
\def\@makeschapterhead#1{
{\parindent 0pt \centering
\large\transparentbold\uppercase{#1}\par
\nobreak
\vspace{20pt}}}
% \end{macrocode}
%
% \subsubsection{Appendix Chapters}
% \verb+\@chapapp+ is initially defined to be ``CHAPTER''.
% The \verb+\appendix+ command redefines it to be ``Appendix''.
% \begin{macrocode}
\def\@chapapp{CHAPTER}
\def\appendix{\par
\@startedappendicestrue
\setcounter{chapter}{0}
\setcounter{section}{0}
\def\@chapapp{Appendix}
\def\thechapter{\Alph{chapter}}}
% \end{macrocode}
%
% If there are multiple appendix chapters, they are to be preceeded by
% a page with the word ``APPENDICES'' centered horizontally
% and vertically.
% \begin{macrocode}
\def\appendices{
\clearpage
\thispagestyle{pageonbottom}
\vspace*{3in}
\begin{center}
{\bfseries APPENDICES}
\end{center}
\@multappendicestrue
\addtocontents{toc}{\protect\addvspace{\baselineskip}}
\addcontentsline{toc}{chapter}
{\protect\xnumberline{\ }APPENDICES}
\vfill\eject}
% \end{macrocode}
%
% \subsubsection{Table of Contents entry for Chapter}
% The entry in the table of contents does not include a dotted line.
% This is a change to remedy that.
% \begin{macrocode}
\def\numberline#1{\texorpdfstring{\hbox to 0.75in{#1\hss}}{#1}}
\def\xnumberline#1{\texorpdfstring{\hbox to\@tempdima{#1\hss}}{#1}}
\def\l@chapter#1#2{
\if@startedappendices
\if@multappendices
\@dottedtocline
{0} % appendix chapter like a section
{8.0em} % indentation of the entry in toc
{3.2em}
{Appendix \thechapter}
{#2}
\else
\@dottedtocline
{0} % appendix chapter like a section
{0.75in} % indentation of the entry in toc
{0.75in}
{APPENDIX}
{#2}
\fi
\else
\@dottedtocline
{0} % chapter is level zero used by tocdepth
{0.4in} % indentation of the entry in toc
{0.35in} % width of the chapter number
{\transparentbold #1} % title
{#2} % Page number
\fi}
% \end{macrocode}
%
% \subsection{Section}
% \subsubsection{Section Headings}
% \begin{macrocode}
\newcounter{section}[chapter] % The counter
\def\thesection {\thechapter.\arabic{section}} %Printed representation.
\def\section{
\@startsection{section} % name of section and also name of
% the counter.
{1} % level, level 0 is chapter
% (for report.sty)
{0 pt} % Indentation from left margin.
% It can be negative -$>$ moved into
% the left margin.
{2 pt plus 3 pt minus 4 pt}
% Skip before heading is printed.
% see expl. above for neg. val.
{5 pt plus 1 pt minus 2 pt}
% After heading skip. If negative
% The text will be printed next
% to the heading text leaving
% the space (absolute value)
% indicated. Don't use
% zero as it will be printed on
% the same line without any space
% If negative remove stretch.
{\normalsize\bfseries}}
% \end{macrocode}
%
% \subsubsection{Table of Contents entry for Section}
% \begin{macrocode}
\def\l@section{
\@dottedtocline
{1} % chapter is level zero used by tocdepth
{0.75in} % indentation of the entry in toc=
{0.82in}} % Indent + Space of l@chapter
% \end{macrocode}
%
% \subsection{Subsection}
% \subsubsection{Subsection Headings}
% \begin{macrocode}
\newcounter{subsection}[section] % The counter
\def\thesubsection{\thesection.\arabic{subsection}} % printed form
\def\subsection{%
\@startsection{subsection} % name of section and also name of
% the counter.
{2} % level, level 0 is chapter
% (for report.sty)
{0 pt} % Indentation from left margin.
% It can be negative -$>$ moved into
% the left margin.
{2 pt plus 3 pt minus 4 pt}
% Skip before heading is printed.
% see expl. above for neg. val.
{5 pt plus 1 pt minus 2 pt}
% After heading skip. If negative
% The text will be printed next
% to the heading text leaving
% the space (absolute value)
% indicated. Don't use
% zero as it will be printed on
% the same line without any space
% If negative remove stretch.
{\normalsize\bfseries}}
% \end{macrocode}
%
% \subsubsection{Table of Contents entry for Subsection}
% \begin{macrocode}
\def\l@subsection{
\@dottedtocline
{2} % chapter is level zero used by tocdepth
{0.75in} % indentation of the entry in toc=
{0.82in}} % Indent + Space of l@section
% \end{macrocode}
%
% \subsection{Subsubection}
% \subsubsection{Subsubsection Headings}
% \begin{macrocode}
\newcounter{subsubsection}[subsection] % The counter
\def\thesubsubsection{\thesubsection .\arabic{subsubsection}}
\def\subsubsection{%
\@startsection{subsubsection} % name of section and also name of
% the counter.
{3} % level, level 0 is chapter
% (for report.sty)
{0 pt} % Indentation from left margin.
% It can be negative -$>$ moved into
% the left margin.
{2 pt plus 3 pt minus 4 pt}
% Skip before heading is printed.
% see expl. above for neg. val.
{5 pt plus 1 pt minus 2 pt}
% After heading skip. If negative
% The text will be printed next
% to the heading text leaving
% the space (absolute value)
% indicated. Don't use