-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvcuthesis.cls
1450 lines (1291 loc) · 52.6 KB
/
vcuthesis.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
% Modified by Bhanu Kamapantula for VCU, December 2012
% Based on the file from Scott A. King at TAMUCC
% This file was modified for TAMUCC by Scott A. King Dec 2009
% He got it from the EE department at TAMU College Station which was modified
% from Leslie Lamport's report.sty file
%
% Currently it will be used for the MS Thesis option, but if we end up adding
% a Ph.d it will be modified to do both.
%
% In addition the thesis proposal should follow a similar format.
% ---------- identification ----------
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{vcuthesis}[2009/12/05 Texas A&M University - Corpus Christi CSCI Thesis Class]
% ---------- initial code ----------
\newcommand{\pt@size}{} % \@ptsize declared in report.cls so using \pt@size
% ---------- declaration of options ----------
\DeclareOption{draft}{\setlength{\overfullrule}{5pt}%
\PassOptionsToClass{\CurrentOption}{report}}
\DeclareOption{final}{\setlength{\overfullrule}{0pt}%
\PassOptionsToClass{\CurrentOption}{report}}
\DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue%
\PassOptionsToClass{\CurrentOption}{report}}
% Only letter size paper acceptable
\DeclareOption{legalpaper}{%
\ClassWarningNoLine{vcuthesis}{'legalpaper' option not acceptable (defaulting to 'letterpaper')}%
\PassOptionsToClass{letterpaper}{report}}
\DeclareOption{executivepaper}{%
\ClassWarningNoLine{vcuthesis}{'executivepaper' option not acceptable (defaulting to 'letterpaper')}%
\PassOptionsToClass{letterpaper}{report}}
\DeclareOption{a4paper}{%
\ClassWarningNoLine{vcuthesis}{'a4paper' option not acceptable (defaulting to 'letterpaper')}%
\PassOptionsToClass{letterpaper}{report}}
\DeclareOption{a5paper}{%
\ClassWarningNoLine{vcuthesis}{'a5paper' option not acceptable (defaulting to 'letterpaper')}%
\PassOptionsToClass{letterpaper}{report}}
\DeclareOption{b5paper}{%
\ClassWarningNoLine{vcuthesis}{'b5paper' option not acceptable (defaulting to 'letterpaper')}%
\PassOptionsToClass{letterpaper}{report}}
% In eethesis of only 12pt is available.
\DeclareOption{12pt}{\renewcommand{\pt@size}{12}%
\PassOptionsToClass{\CurrentOption}{report}}
\DeclareOption{10pt}{%
\ClassWarningNoLine{vcuthesis}{'10pt' option not supported (defaulting to 12pt)}%
\PassOptionsToClass{12pt}{report}}
\DeclareOption{11pt}{%
\ClassWarningNoLine{vcuthesis}{'11pt' option not supported (defaulting to 12pt)}%
\PassOptionsToClass{12pt}{report}}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
% ---------- execution of options ----------
\ExecuteOptions{12pt,final}
\ProcessOptions
% ---------- package loading ----------
\LoadClass{report}
% The sty file is from TAMU EE which was modified from report.sty
% \ClassError{vcuthesis}{eethe\[email protected] file required.}}
\InputIfFileExists{vcuthesis.sty}{}{%
\ClassError{vcuthesis}{vcuthesis.sty file required.}}
%%%%% Remove figure and table counter reset by new chapters,
%%%%% 12/8/1994
\def\@removefromreset#1#2{{%
\def\rmv@ctr{#1}%
\def\rmv@lst{}%
\let\@elt\relax
\expandafter\expandafter\expandafter\rem@res\csname
cl@#2\endcsname\@nil\@nil
\global\expandafter\let\csname cl@#2\endcsname\rmv@lst
}}
\def\rem@res#1#2{%
\def\@tmp{#2}%
\ifx\@tmp\@nnil
\else
\ifx\@tmp\rmv@ctr
\else
\edef\rmv@lst{\rmv@lst\@elt{\@tmp}}%
\fi
\expandafter\rem@res
\fi
}
\@removefromreset{figure}{chapter}
\@removefromreset{table}{chapter}
\@removefromreset{algorithm}{chapter}
% ****************************************
% * 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.
\renewcommand{\labelenumi}{\arabic{enumi}.}
\renewcommand{\theenumi}{\arabic{enumi}}
\renewcommand{\labelenumii}{(\alph{enumii})}
\renewcommand{\theenumii}{\alph{enumii}}
\renewcommand{\p@enumii}{\theenumi}
\renewcommand{\labelenumiii}{\roman{enumiii}.}
\renewcommand{\theenumiii}{\roman{enumiii}}
\renewcommand{\p@enumiii}{\theenumi(\theenumii)}
\renewcommand{\labelenumiv}{\Alph{enumiv}.}
\renewcommand{\theenumiv}{\Alph{enumiv}}
\renewcommand{\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.
\renewcommand{\labelitemi}{$\bullet$}
\renewcommand{\labelitemii}{\bf --}
\renewcommand{\labelitemiii}{$\ast$}
\renewcommand{\labelitemiv}{$\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{\let\\=\@centercr
\list{}{\itemsep\z@ \itemindent -1.5em\listparindent \itemindent
\rightmargin\leftmargin\advance\leftmargin 1.5em}\item[]}
\let\endverse\endlist
% QUOTATION
% Fills lines
% Indents paragraph
%
\def\quotation{\list{}{\listparindent 1.5em
\itemindent\listparindent
\rightmargin\leftmargin\parsep 0pt plus 1pt}\item[]}
\let\endquotation=\endlist
% QUOTE -- same as quotation except no paragraph indentation,
%
\def\quote{\list{}{\rightmargin\leftmargin}\item[]}
\let\endquote=\endlist
% DESCRIPTION
%
% To change the formatting of the label, you must redefine
% \descriptionlabel.
\def\descriptionlabel#1{\hspace\labelsep \bf #1}
\def\description{\list{}{\labelwidth\z@ \itemindent-\leftmargin
\let\makelabel\descriptionlabel}}
\let\enddescription\endlist
\newdimen\descriptionmargin
\descriptionmargin=3em
% ****************************************
% * OTHER ENVIRONMENTS *
% ****************************************
%
%
% THEOREM
% \@begintheorem ... \@endtheorem are the commands executed at the
% beginning and end of a (user-defined) theorem-like environment.
% Except \@opargbegintheorem is executed when an optional argument is
% given. Cf. LATEX.TEX.
%
% \def\@begintheorem#1#2{\it \trivlist \item[\hskip \labelsep{\bf #1\ #2}]}
% \def\@opargbegintheorem#1#2#3{\it \trivlist
% \item[\hskip \labelsep{\bf #1\ #2\ (#3)}]}
% \def\@endtheorem{\endtrivlist}
% TITLEPAGE
% In the normal environments, the titlepage environment does nothing but
% start and end a page, and inhibit page numbers. It also resets the
% page number to zero. In two-column style, it still makes a one-column
% page.
\def\titlepage{
\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
\else \newpage \fi \thispagestyle{empty}\c@page\z@}
\def\endtitlepage{\if@restonecol\twocolumn \else \newpage \fi}
% ARRAY AND TABULAR
%
\setlength{\arraycolsep}{5pt} % Half the space between columns in an array environment.
\setlength{\tabcolsep}{6pt} % Half the space between columns in a tabular environment.
\setlength{\arrayrulewidth}{.4pt} % Width of rules in array and tabular environment.
\setlength{\doublerulesep}{2pt} % Space between adjacent rules in array or tabular env.
% TABBING
%
\tabbingsep \labelsep % Space used by the \' command. (See LaTeX manual.)
% 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
%
\setlength{\fboxsep}{3pt} % Space left between box and text by \fbox and \framebox.
\setlength{\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.
%\newcounter{part}
%\newcounter {chapter}
%\newcounter {section}[chapter]
%\newcounter {subsection}[section]
%\newcounter {subsubsection}[subsection]
%\newcounter {paragraph}[subsubsection]
%\newcounter {subparagraph}[paragraph]
%
% thesis mod
\newcounter {appendix}
\newcounter {sucount} % counter for supplemental sources
%
% 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}}
%
% thesis mod
%\renewcommand{\thepart} {\Roman{part}.}
%\renewcommand{\thechapter} {\arabic{chapter}}
%\renewcommand{\thesection} {\Alph{section}}
\renewcommand{\thesection} {\thechapter.\arabic{section}}
\renewcommand{\thesubsection} {\thechapter.\arabic{section}.\arabic{subsection}}
%\renewcommand{\thesubsubsection} {\thechapter.\arabic{section}.\arabic{subsection}.\arabic{subsubsection}}
%\def\thesubsection {\thesection.\arabic{subsection}}
%\def\thesubsubsection {\thesubsection.\arabic{subsubsection}}
%\renewcommand{\thesubsection} {\arabic{subsection}}
%\renewcommand{\thesubsubsection} {\alph{subsubsection}}
%\renewcommand{\thesubsubsection} {\arabic{subsubsection}}
\renewcommand{\theparagraph} {\null}
\renewcommand{\thesubparagraph} {\null}
\renewcommand{\theappendix} {\Alph{appendix}}
%
% when ref section(subsection and subsubsection) there is no '.' generated after
% section number any more. Ken 6-29-90
%
\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
\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}\addcontentsline
{toc}{#1}{\ifnum #2>\c@secnumdepth \else
\protect\numberline{\csname the#1\endcsname}\fi
#7}\else
\def\@svsechd{#6\hskip #3\@svsec #8\csname #1mark\endcsname
{#7}\addcontentsline
{toc}{#1}{\ifnum #2>\c@secnumdepth \else
\protect\numberline{\csname the#1\endcsname.}\fi
#7}}\fi
\@xsect{#5}}
% \@chapapp is initially defined to be 'Chapter'. The \appendix
% command redefines it to be 'Appendix'.
%
\def\@chapapp{CHAPTER}
% ****************************************
% * TABLE OF CONTENTS, ETC. *
% ****************************************
%
% A \subsection command writes a
% \contentsline{subsection}{TITLE}{PAGE}
% command on the .toc file, where TITLE contains the contents of the
% entry and PAGE is the page number. If subsections are being numbered,
% then TITLE will be of the form
% \numberline{NUM}{HEADING}
% where NUM is the number produced by \thesubsection. Other sectioning
% commands work similarly.
%
% A \caption command in a 'figure' environment writes
% \contentsline{figure}{\numberline{NUM}{CAPTION}}{PAGE}
% on the .lof file, where NUM is the number produced by \thefigure and
% CAPTION is the figure caption. It works similarly for a 'table' environment.
%
% The command \contentsline{NAME} expands to \l@NAME. So, to specify
% the table of contents, we must define \l@chapter, \l@section,
% \l@subsection, ... ; to specify the list of figures, we must define
% \l@figure; and so on. Most of these can be defined with the
% \@dottedtocline command, which works as follows.
%
% \@dottedtocline{LEVEL}{INDENT}{NUMWIDTH}{TITLE}{PAGE}
% LEVEL : An entry is produced only if LEVEL < or = value of
% 'tocdepth' counter. Note, \chapter is level 0, \section
% is level 1, etc.
% INDENT : The indentation from the outer left margin of the start of
% the contents line.
% NUMWIDTH : The width of a box in which the section number is to go,
% if TITLE includes a \numberline command.
%
% This command uses the following three parameters, which are set
% with a \def (so em's can be used to make them depend upon the font).
% \@pnumwidth : The width of a box in which the page number is put.
% \@tocrmarg : The right margin for multiple line entries. One
% wants \@tocrmarg > or = \@pnumwidth
% \@dotsep : Separation between dots, in mu units. Should be \def'd to
% a number like 2 or 1.7
\def\@pnumwidth{1.5em}
\def\@tocrmarg{4.5em}
\def\@dotsep{4.5}
\setcounter{tocdepth}{3}
% TABLEOFCONTENTS
% In report style, \tableofcontents, figures, etc. are always
% set in single-column style. @restonecol
\newdimen\toddhack
\newdimen\twoem \twoem 0em
\newdimen\zeroem \zeroem 0em
\newdimen\fignumbox \fignumbox 2em
\def\tocnumflushright{
\twoem 2em
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% The justification of the chapter heads is on the left side instead of
% the right
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% The macro below controls how the box is formed.
%\def\numberline#1{\hbox to\@tempdima{#1\hfil}}
\def\numberline##1{\hbox to\@tempdima{\hfil##1\hskip 2ex\hskip \toddhack}}
%
% these control the spacing from the left margin
% #1 is the indentation level at which an entry is produced in the toc file
% #2 is the total indentation from the left margin
% #3 is the width of the box containing the chapter/section number
%
\def\l@section{\@dottedtocline{1}{4em}{2.0em}}
\def\l@subsection{\@dottedtocline{2}{6em}{2.0em}}
\def\l@subsubsection{\@dottedtocline{3}{8.0em}{2.0em}}
\def\l@paragraph{\@dottedtocline{4}{7em}{2.0em}}
\def\l@subparagraph{\@dottedtocline{5}{8em}{2.0em}}
\def\l@chapter##1##2{\pagebreak[3]
\vskip 0.75em plus 1pt %%%%%% 1 em seems too large,
%%%%%% change to 0.75em; by Ken 7-8-91
{\leftskip 0em\relax \rightskip \@tocrmarg \parfillskip -\rightskip
\parindent 0em\relax\@afterindenttrue
\interlinepenalty\@M
\leavevmode
\@tempdima 4em \toddhack 1em \relax
\advance\leftskip \@tempdima \hbox{}\hskip -\leftskip
\uppercase{##1}\nobreak\leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern
\@dotsep mu$}\hfill \nobreak \hbox to\@pnumwidth{\hfil\rm ##2}\par}
\vskip 0.5em plus 1pt\toddhack 0em}} %%% change 1 em to 0.5em; by Ken 7-8-91.
\def\tableofcontents{
\newpage
\let \tempp \topskip
\topskip 1em
\addcontentsline{toc}{chapter}{Table of Contents}
% \@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn\fi
% thesis mod
\tocspace
%
% \chapter*{TABLE OF CONTENTS\markright{CONTENTS}}
% thesis mod
\chapter*{\vspace*{-2em}\bf Table of Contents\markright{CHAPTER}} % change -1em to -2em ; by jkh(16) 4-22-1993
{\vskip -1em Chapter \hfill Page\\}
\thispagestyle{plain} %myheadings}
%
\@starttoc{toc}
% \if@restonecol\twocolumn\fi}
% thesis mod
\doublespace \topskip \tempp}
%
%\def\l@part#1#2{\addpenalty{-\@highpenalty}
% \addvspace{2.25em plus 1pt} % space above part line
% \begingroup
% \@tempdima 3em % width of box holding part number, used by
% \parindent \z@ \rightskip \@pnumwidth %% \numberline
% \parfillskip -\@pnumwidth
% {\large \bf % set line in \large boldface
% \leavevmode % TeX command to enter horizontal mode.
% #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
% \nobreak % Never break after part entry
% \endgroup}
%
% thesis mod
\def\l@part#1#2{\pagebreak[3]
\vskip 0.75em plus 1pt % space above chapter line
%% change 1 em to 0.75em; by Ken 7-8-91.
\@tempdima 1.5em % width of box holding chapter number
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode % TeX command to enter horizontal mode.
#1\dotfill \hbox to\@pnumwidth{\hss #2}\par
\endgroup}
\def\l@chapter#1#2{\pagebreak[3]
\vskip 0.75em plus 1pt % space above chapter line
%% change 1 em to 0.75em; by Ken 7-8-91.
% \@tempdima 1.55em % width of box holding chapter number
% thesis mod
% this section is adapted from def of \@dottedtocline
% change hangindent in next line to
% leftskip 6-20-89 to work with later latex changes
{\leftskip 1em\relax \rightskip \@tocrmarg \parfillskip -\rightskip
\parindent 1em\relax\@afterindenttrue
\interlinepenalty\@M
\leavevmode
\@tempdima 1em\relax % width of box holding chapter number | Changed from 4em to 1 em on 5th June, 2013 - Bhanu Kamapantula
% change 6-20-89
\advance\leftskip \@tempdima \hbox{}\hskip -\leftskip
% end 6-20-89
%\uppercase{#1} Commented on 21st December, 2012 - Bhanu Kamapantula
#1\nobreak\leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern
\@dotsep mu$}\hfill \nobreak \hbox to\@pnumwidth{\hfil\rm #2}\par}
\vskip 0.5em plus 1pt} % space below chapter line
%% change 1 em to 0.5em; by Ken 7-8-91.
%
% \begingroup
% \parindent \z@ \rightskip \@pnumwidth
% \parfillskip -\@pnumwidth
% \bf % Boldface.
% \leavevmode % TeX command to enter horizontal mode.
% #1\hfil \hbox to\@pnumwidth{\hss #2}\par
%
%
% \endgroup}
%\def\l@section{\@dottedtocline{1}{1.55em}{2.3em}}
%\def\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
%\def\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
%\def\l@paragraph{\@dottedtocline{4}{10em}{5em}}
%\def\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
%
% thesis mod
% Changed from 7em to 3em on 5th June, 2013 - Bhanu Kamapantula
\def\l@section{\@dottedtocline{1}{3em}{2.0em}} % changed from 1.5 to 2.0 and fixed spacing for section 3.10, 3.11 # 14th December 2012 Bhanu
% Changed from 9em to 5em on 5th June, 2013 - Bhanu Kamapantula
\def\l@subsection{\@dottedtocline{2}{5em}{2.5em}} % changed from 1.5 to 2.5 fix spacing for subsection
% Changed from 11em to 7em on 5th June, 2013 - Bhanu Kamapantula
\def\l@subsubsection{\@dottedtocline{3}{7em}{3.5em}} % changed from 2.5 to 3.5 fix spacing for subsection
\def\l@paragraph{\@dottedtocline{4}{13em}{1.5em}}
\def\l@subparagraph{\@dottedtocline{5}{14em}{1.5em}}
%
%LIST OF FIGURES
%
%\def\listoffigures{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
% \fi\chapter*{LIST OF FIGURES\markboth
% {LIST OF FIGURES}{LIST OF FIGURES}}\@STARTTOC{lof}\if@restonecol\twocolumn
% \fi}
%
% thesis mod
\def\listoffigures{\tocspace % \tocspace for \listoffigures, Ken 5-28-90
\let \tempp \topskip
\topskip 1em
\addcontentsline{toc}{chapter}{List of Figures}
\chapter*{\bf List of Figures\markright{Figure}}
{\vskip -1em Figure \hfill Page\\}
\thispagestyle{plain}% myheadings}
\toddhack \twoem
\@starttoc{lof}\if@restonecol\twocolumn
\toddhack \zeroem
\fi\topskip \tempp \doublespace}
%
%\def\l@figure{\@dottedtocline{1}{0em}{5em}}
%%%%
%%%%
%%%% Inside the figure line is \tocspaced (16pt)
%%%% Between the figureline is 1.0em
%%%% Revised by Ken, 5-28-90
%%%%
%%%%
%\begin
\def\l@figure#1#2{\pagebreak[3]
\vskip .5em plus 1pt % space above figure line
{\leftskip 0pt\relax \rightskip \@tocrmarg \parfillskip -\rightskip
\parindent 0pt\relax\@afterindenttrue
\interlinepenalty\@M
\leavevmode
\@tempdima \fignumbox \relax % width of box holding figure number
% \fignumbox default to 4em
\advance\leftskip \@tempdima \hbox{}\hskip -\leftskip
#1\nobreak\leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern
\@dotsep mu$}\hfill \nobreak \hbox to\@pnumwidth{\hfil #2}\par}
\vskip .5em plus 1pt} % space below figure line
%\end
%LIST OF ALGORITHMS
%
%\def\listoffigures{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
% \fi\chapter*{LIST OF FIGURES\markboth
% {LIST OF FIGURES}{LIST OF FIGURES}}\@STARTTOC{lof}\if@restonecol\twocolumn
% \fi}
%
% thesis mod
\def\listofalgorithmsvcu{\tocspace
\let \tempp \topskip
\topskip 1em
%\refstepcounter{chapter}
\addcontentsline{toc}{chapter}{List of Algorithms}
\chapter*{\vspace*{-1em}\bf List of Algorithms\markright{Algorithm}}
{\vskip -1em Algorithm \hfill Page\\}
\thispagestyle{plain} %myheadings}
\toddhack \twoem
\@starttoc{loa}\if@restonecol\twocolumn
\toddhack \zeroem
\fi\topskip \tempp \doublespace}
%\begin
\def\l@algorithm#1#2{\pagebreak[3]
\vskip .5em plus 1pt % space above algo line
{\leftskip 0pt\relax \rightskip \@tocrmarg \parfillskip -\rightskip
\parindent 0pt\relax\@afterindenttrue
\interlinepenalty\@M
\leavevmode
\@tempdima \fignumbox \relax % width of box holding figure number
% \fignumbox default to 4em
\advance\leftskip \@tempdima \hbox{}\hskip -\leftskip
#1\nobreak\leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern
\@dotsep mu$}\hfill \nobreak \hbox to\@pnumwidth{\hfil #2}\par}
\vskip .5em plus 1pt} % space below figure line
%\end
% LIST OF TABLES
%
%\def\listoftables{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
% \fi\chapter*{LIST OF TABLES\markboth
% {LIST OF TABLES}{LIST OF TABLES}}\@starttoc{lot}\if@restonecol\twocolumn
% \fi}
% thesis mod
\def\listoftables{\tocspace
\let \tempp \topskip
\topskip 1em
\addcontentsline{toc}{chapter}{List of Tables}
\chapter*{\vspace*{-1em}\bf List of Tables\markright{Table}}
{\vskip -1em Table \hfill Page\\}
\thispagestyle{plain} %myheadings}
\toddhack \twoem
\@starttoc{lot}\if@restonecol\twocolumn
\toddhack \zeroem
\fi\topskip \tempp \doublespace}
%
\let\l@table\l@figure
% ****************************************
% * BIBLIOGRAPHY *
% ****************************************
%
%
% \def\newblock{\hskip .11em plus .33em minus -.07em} --
% Defines the `closed' format, where the blocks (major units of
% information) of an entry run together.
%
% \sloppy -- Used because it's rather hard to do line breaks in
% bibliographies,
%
% \sfcode`\.=1000\relax --
% Causes a `.' (period) not toproduce an end-of-sentence space.
\def\thebibliography#1{
\addcontentsline{toc}{chapter}{\null\hspace{-2em} References} % 8-19-1993
%\addcontentsline{toc}{chapter}{REFERENCES} % 8-19-1993
% % 4em -> -2em
% Modification to eliminate extra space 5-3-89 --- RLO
%\chapter*{REFERENCES\markboth{REFERENCES}{REFERENCES}}\list
\vskip .2truein
\centerline{REFERENCES}
\bigskip
\list % ******* LOST FOR SOME REASON, BUT RECOVERED AT RIGHT NOW ******
%
{[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
\advance\leftmargin\labelsep
\usecounter{enumi}}
\def\newblock{\hskip .11em plus .33em minus -.07em}
\sloppy
\sfcode`\.=1000\relax}
\let\endthebibliography=\endlist
% \def\@biblabel#1{[#1]\hfill} % Produces the label for a \bibitem[...]
% command.
% \def\@cite#1{[#1]} % Produces the output of the \cite command.
% ****************************************
% * THE INDEX *
% ****************************************
%
% THE THEINDEX ENVIRONMENT
% Produces double column format, with each paragraph a separate entry.
% The user commands \item, \subitem and \subsubitem are used to
% produce the entries, and \indexspace adds an extra vertical space
% that's the right size to put above the first entry with a new letter
% of the alphabet.
\newif\if@restonecol
\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
\columnseprule \z@
\columnsep 35pt\twocolumn[\@makeschapterhead{Index}]
\markboth{INDEX}{INDEX}\thispagestyle{plain}\parindent\z@
\parskip\z@ plus .3pt\relax\let\item\@idxitem}
\def\@idxitem{\par\hangindent 40pt}
\def\subitem{\par\hangindent 40pt \hspace*{20pt}}
\def\subsubitem{\par\hangindent 40pt \hspace*{30pt}}
\def\endtheindex{\if@restonecol\onecolumn\else\clearpage\fi}
\def\indexspace{\par \vskip 10pt plus 5pt minus 3pt\relax}
% ****************************************
% * FOOTNOTES *
% ****************************************
%
% \footnoterule is a macro to draw the rule separating the footnotes from
% the text. It should take zero vertical space, so it needs a negative
% skip to compensate for any positive space taken by the rule. (See
% PLAIN.TEX.)
% Paper format footnote separating line on first page of body must be 10 chars.
% Therefore, changed the hrule below from .4 to .125
% John Hermann (jkh(17)) March 27, 1993
\def\footnoterule{\kern-1\p@
\hrule width .125\columnwidth
\kern .6\p@} % The \hrule has default height of .4pt .
% \newcounter{footnote}
\@addtoreset{footnote}{chapter} % Numbers footnotes within chapters
% \@makefntext{NOTE} :
% Must produce the actual footnote, using \@thefnmark as the mark
% of the footnote and NOTE as the text. It is called when effectively
% inside a \parbox of width \columnwidth (i.e., with \hsize =
% \columnwidth).
%
% The following macro indents all lines of the footnote by 10pt, and
% indents the first line of a new paragraph by 1em. To change these
% dimensions, just substitute the desired value for '10pt' [in both
% places] or '1em'. The mark is flushright against the footnote.
% \long\def\@makefntext#1{\@setpar{\@@par\@tempdima \hsize
% \advance\@tempdima-10pt\parshape \@ne 10pt \@tempdima}\par
% \parindent 1em\noindent \hbox to \z@{\hss$^{\@thefnmark}$}#1}
%
% A simpler macro is used, in which the footnote text is
% set like an ordinary text paragraph, with no indentation except
% on the first line of a paragraph, and the first line of the
% footnote. Thus, all the macro must do is set \parindent
% to the appropriate value for succeeding paragraphs and put the
% proper indentation before mark.
\long\def\@makefntext#1{\parindent 1em\noindent
\hbox to 1.8em{\hss$^{\@thefnmark}$}#1}
%
% thesis mod
%\long\def\@makefntext#1{\@setpar{\@@par\@tempdima \hsize
% \advance\@tempdima-10pt\parshape \@ne 10pt \@tempdima}\par
% \parindent 1em\noindent \hbox to z@{\hss$^{\@thefnmark}$}#1}
%
% \@makefnmark : A macro to generate the footnote marker that goes
% in the text. Default used.
%
% ****************************************
% * FIGURES AND TABLES *
% ****************************************
%
% Float placement parameters. See LaTeX manual for their definition.
%
\setcounter{topnumber}{2}
\renewcommand{\topfraction}{.7}
\setcounter{bottomnumber}{1}
\renewcommand{\bottomfraction}{.3}
\setcounter{totalnumber}{3}
\renewcommand{\textfraction}{.2}
\renewcommand{\floatpagefraction}{.5}
\setcounter{dbltopnumber}{2}
\renewcommand{\dbltopfraction}{.7}
\renewcommand{\dblfloatpagefraction}{.5}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Long Captions -- this is a slightly modified \caption to allow just
% the first sentence on a very long caption to be
% written on the lof/lot
%
% \longcaption{sentence 1}{rest of caption}
%
% only 'sentence 1' will be written to the lof/lot as appropriate.
% 'sentence 1' and 'rest of caption' will be written together to the
% figure/table caption. --Todd
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \@dblarg{CMD}{ARG} : \@dblarg{CMD}{ARG} expands to CMD[ARG]{ARG}. Use
% \@dblarg\CS when \CS takes arguments [ARG1]{ARG2},
% where default is ARG1 = ARG2.
%
% \def\caption{\refstepcounter\@captype \@dblarg{\@caption\@captype}}
\def\longcaption{\refstepcounter\@captype \@longcaption\@captype}
\long\def\@longcaption#1#2#3{\par\addcontentsline{\csname
ext@#1\endcsname}{#1}{\protect\numberline{\csname
the#1\endcsname}{\ignorespaces #2}}\begingroup
\@parboxrestore
\normalsize
\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #2 #3}\par
\endgroup}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Multiline Fig. captions -- calculated the width of "Fig. ##. "
% and use that to indent the caption so all lines will allign under the
% first letter of the caption rather than against the right margin.
%
% Fig. ##. Long caption ....
% Start of second line....
% third line ... etc.
% --Todd
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \@makecaption{NUMBER}{TEXT} : Macro to make a figure or table caption.
% NUMBER : Figure or table number--e.g., 'Figure 3.2'
% TEXT : The caption text.
% Macro should be called inside a \parbox of right width, with \normalsize.
\def\captionspace{\baselineskip=18pt} %%%%%%%%%%%%%%%%% 4-24-90
%% \captionspace is added by Ken 4-20-90
\long\def\@makecaption#1#2{
\vskip 10pt
\setbox\@tempboxa\hbox{#1 #2} %
\ifdim \wd\@tempboxa >\hsize % IF longer than one line:
\captionspace % THEN measure the width of "Fig. ##. "
\setbox\@tempboxa\hbox{#1} % we'll indent the entire TEXT portion
\hangindent=\wd\@tempboxa % of the caption by this amount.
\hangafter=0 % The Fig. num. is typeset as a negative
% width hbox to cancel the \hangindent
% on the first line. This the only way
% I could line things up without
% messing with tex glue.
\setbox\@tempboxa\hbox{\llap{#1 }#2}
\unhbox\@tempboxa\par % set TEXT as an ordinary paragraph
\doublespace %
\else % ELSE center.
\hbox to\hsize{\hfil\box\@tempboxa\hfil}
\fi}
% To define a float of type TYPE (e.g., TYPE = figure), the document style
% must define the following.
%
% \fps@TYPE : The default placement specifier for floats of type TYPE.
%
% \ftype@TYPE : The type number for floats of type TYPE. Each TYPE has
% associated a unique positive TYPE NUMBER, which is a power
% of two. E.g., figures might have type number 1, tables type
% number 2, programs type number 4, etc.
%
% \ext@TYPE : The file extension indicating the file on which the
% contents list for float type TYPE is stored. For example,
% \ext@figure = 'lof'.
%
% \fnum@TYPE : A macro to generate the figure number for a caption.
% For example, \fnum@TYPE == Figure \thefigure.
%
% The actual float-making environment commands--e.g., the commands
% \figure and \endfigure--are defined in terms of the macros \@float
% and \end@float, which are described below.
%
% \@float{TYPE}[PLACEMENT] : Macro to begin a float environment for a
% single-column float of type TYPE with PLACEMENT as the placement
% specifier. The default value of PLACEMENT is defined by \fps@TYPE.
% The environment is ended by \end@float.
% E.g., \figure == \@float{figure}, \endfigure == \end@float.
% FIGURE
%\newcounter{figure}
%\@addtoreset{figure}{chapter}
%\def\thefigure{\@arabic\c@figure}
%
% thesis mod
\renewcommand{\thefigure}{\@arabic\c@figure}
\def\fps@figure{tbp}
\def\ftype@figure{1}
\def\ext@figure{lof}
\def\fnum@figure{Fig.\ \thefigure.}
\def\figure{\@float{figure}}
\let\endfigure\end@float
\@namedef{figure*}{\@dblfloat{figure}}
\@namedef{endfigure*}{\end@dblfloat}
% TABLE
%
%\newcounter{table}
%\@addtoreset{table}{chapter}
%\def\thetable{\@arabic\c@table}
% thesis mod
%
\renewcommand{\thetable}{\@Roman\c@table}
\def\fps@table{tbp}
\def\ftype@table{2}
\def\ext@table{lot}
\def\fnum@table{Table \thetable.}
\def\table{\@float{table}}
\let\endtable\end@float
\@namedef{table*}{\@dblfloat{table}}
\@namedef{endtable*}{\end@dblfloat}
% ****************************************
% * TITLE AND ABSTRACT *
% ****************************************
%
%
% Uses same title and abstract format as the article style's
% titlepage option.
% The TAMU EE package had the title page stuff as a separate cls file. I put
% it in this file so there is only one style file passed around.
\newcommand{\type}{Thesis} % Sets default document type to be a thesis
%\newcommand{\degree}{Doctor of Philosophy} % Sets default degree to be a MS, 6/17/93
%\newcommand{\major}{Computer Science} % Sets default major to be ELEN, 6/17/93
%\newcommand{\director}{Preetam Ghosh}
\def\maketitlepage{\begin{titlepage}
\let\footnotesize\small % Local definitions to make \thanks produce
\let\footnoterule\relax % \normalsize footnotes with no separating rule.
\setcounter{page}{0}
\null
\vfil
\vskip 5truept % To adjust centering.
\begin{center}
\vskip -2em % Adjust vertical position.
{\uppercase\expandafter{\thesistitle} \par} % Set title in \normal size.
\vskip 4.5em % Vertical space after title. 6em --> 4.5em, 6/17/93
{\singlespace A {\thesisordissertation} submitted in partial fulfillment of the requirements for the degree of \uppercase{\degree}\smallskip} at Virginia Commonwealth University.
%ADDED BY GABBIE changed from 4em to 2em
\vskip 2em % Vertical space, 6-->8, 6/17/93
{\lineskip .75em % Author
\begin{tabular}[t]{c} \\ by\\ \uppercase\expandafter{\authorsname}\\
{\pastdegreeone}\\ %B.E., Dr. B.A.M.U., India - September 2000 to April 2004\\
%{\pastdegreetwo}\\ %M.S., The University of Southern Mississippi, USA - Fall 2005 to Fall 2006
\end{tabular}\par}
\vskip 2em % Vertical space after author.
\begin{tabular}[t]{c} \\ %by\\ \uppercase\expandafter{\authorsname}\\
Director: {\committeechair}, \\ {\chairposition}, Department of {\major}, \\ {\school}
\end{tabular}\par
\begin{tabular}[t]{c} \\ %by\\ \uppercase\expandafter{\authorsname}\\
Director: {\committeechairtwo}, \\ {\chairpositiontwo}, Department of {\majortwo}, \\ {\schooltwo}
\end{tabular}\par
\vskip 6em % Vertical space, 6-->8, 6/17/93
{Virginia Commonwealth University \\Richmond, Virginia\par}
% \vskip 3em % Vertical space, 5-->6.5, 6/17/93
{\thesismonth} {\graduatingyear \par} % Date
%\vskip 5.5em % Vertical space, 5-->6.5, 6/17/93
%{Major Subject: \major}
\end{center} \par
\@thanks
\vfil
\null
\end{titlepage}
\setcounter{footnote}{0} % Footnotes start at zero again.
\let\thanks\relax
\gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\maketitlepage\relax}
\newdimen\apprlineup
\apprlineup 0pt
\def\approvalold{\newpage
\pagestyle{empty}
\setcounter{page}{1}
\null\vfill
\vskip -10em % 6/17/1993
\vspace*{\apprlineup} %%%%%%% To adjust cpproval line.
\begin{center}
{\uppercase{\thesistitle} \par}
\vskip 5em % 5em-->1.5em, 6/17/93
{\lineskip .75em
\begin{tabular}[t]{c} A \type\\ by\\ \uppercase{\authorsname}
\end{tabular}\par}
\vskip 4em % 6/17/93
{\singlespace Submitted in partial fulfillment of the requirements for the
degree of \\ \vskip 2em \uppercase{\degree}\smallskip}
\vskip 2em
{
\singlespace{
Computer Science Graduate Program\\
Department of Computing Sciences\\
Texas A\&M University - Corpus Christi\par
}
}
\end{center}
\vskip 3em % 4/26/05
\@@line{\hspace{1pt} Approved by:\hfil}
\vskip 2.0 em
{\singlespace
%\@@line{
%\begin{tabular}{ll}
\parbox[t][][c]{3.00in}{
\singlespace{
\makebox{\leaders\hrule\hskip 2.75in}\\{\centering\committeechair, Committee Chair}}}\hskip .25in
\parbox[t]{3.00in}{
\singlespace{
\makebox{\leaders\hrule\hskip 2.75in}\\{\centering\committeemembera, Committee Member}}}\vskip 1.5em
\hskip -2em
\parbox[t]{3.00in}{
\singlespace{
\makebox{\leaders\hrule\hskip 2.75in}\\{\centering\committeememberb, Committee Member}}}\hskip .25in
\parbox[t]{3.00in}{
\singlespace{
\makebox{\leaders\hrule\hskip 2.75in}\\{\centering\committeememberc, Department Chair}}}\vskip 1.5em
\vskip .0in
\hskip 9.5em
\parbox[t]{3.00in}{
\singlespace{
\makebox{\leaders\hrule\hskip 2.75in}\\{\centering\deptchair, Department Chair}}}\vskip 2.5em
%\end{tabular}
%}
}
\vskip 3.5em
\centerline{\thesismonth}
\vskip 2em
\vfill
\newpage}
\def\approval{\newpage
\pagestyle{empty}
\setcounter{page}{1}
\null\vfill