forked from Sravan2j/SJSU-thesis-LaTeX
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathurithesis.cls
executable file
·1426 lines (1291 loc) · 44.5 KB
/
urithesis.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
%% urithesis.cls
%% Version 1.13 (2011/08/23)
%% Copyright 2004, 2005, 2006, ???
%% Author: Timothy Toolan, Department of Electrical Engineering
%% Modified by Annie Hii Toderici (4/18/2012) and Mark Stamp (ongoing)
%%
%% See http://www.ele.uri.edu/info/thesis/guide for the latest
%% info, including usage and examples.
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `maintained'.
%
% The Current Maintainer of this work is Timothy Toolan.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% San Jose State University thesis class for LaTeX.
%
% This LaTeX class is used to create theses and dissertations which
% conform the Graduate School guidelines at the San Jose State University.
% It generates all of the preliminary pages including the title page,
% approval page, table of contents, list of figures, and list of tables.
% It generates the required bibliography, as well as lists of references.
% It also sets margins, spacing, and other format elements as required.
% The primary style manual used is Kate Turabian's "Manual for Writers of
% Papers, Theses, and Dissertations," and the bibliography and references
% use the IEEE format. This class can also create thesis proposals by
% using the 'proposal' option. It has several other options which are
% described below. See the examples section for common uses.
%
% Author: Timothy Toolan, Department of Electrical Engineering
% at the San Jose State University.
%
%
% General Options:
% The options in this section affect the overall appearance of the
% thesis, but all of them should comply with the Graduate School
% guidelines for theses and dissertations.
%
% phd,masters: this specifies whether this is a PhD. dissertation
% or a masters thesis. The default is masters.
%
% 10pt,11pt,12pt: this determines the font size used throughout the
% document. The default is 12pt.
%
% oneref: this specifies that you want a single list of references
% after the last chapter right before the first appendix, instead
% of a list of references at the end of each chapter.
%
% manuscript: this specifies that your thesis is in manuscript format.
% The only difference between this and standard format, is that each
% chapter will be called manuscript. For instance, "Chapter 1" will
% now be "Manuscript 1".
%
% 3committee,4committee,5committee: this is the number of people
% on your core committee, which determines how many signature lines
% are needed on the signature page. Each committee consists of a
% minimum of three core members, plus the Dean of the Graduate School.
% The committee chairman does NOT sign the approval page. (If you are
% not sure how many core committee members you have, please consult
% with your major professor.) The default is 3committee.
%
% sequential,nonsequential: this specifies whether you want numbering
% of figures, equations, and tables reset to 1 at the beginning of
% each chapter (nonsequential), or if you want the numbers to be
% sequential throughout the whole document. The default is sequential.
%
% topnum,bottomnum: this specifies whether you prefer your page
% numbers on the top right or bottom center of the page.
% The default is bottomnum.
%
% aparefs: this will use the author last name and year for citations,
% like the APA style (Toolan, 2006), instead of a number like [1].
%
%
% Writing Options:
% The options in this section are intended to ease writing the thesis.
% All of the options in this section will make the thesis not conform to
% the Graduate School guidelines, so none of these should be used
% when generating the final copy.
%
% draft: when draft is selected any overfull boxes are shown
% by a black box indicating the area that is too large. This
% is useful for finding anything that has gone outside the
% acceptable margins, like equations that are too long or figures
% and tables that are too big. Only the filename of included
% figures are actually displayed.
%
% draftbox: this is the same as the 'draft' option, except figures
% are actually displayed.
%
% simpleref: when simpleref is specified, there will be a single list
% of references at the end of the document after all other material,
% and no bibliography. This is convient when writing because bibtex
% only needs to be run on a single file (thesis) to update the
% references.
%
% noprelim: when noprelim is specified, all of the preliminary pages,
% (the pages before the start of chapter 1), are not generated.
% This can be used with the option nobib and the LATEX command
% \includeonly{}, to produce a document containing only the chapter
% you are currently working on.
%
% nobib: when nobib is specified, there will be no bibliography
% or list of references.
%
%
% Library Rights Page:
% The Graduate School requires a "Library Rights Page," which is
% to be included with the "original" copy of the thesis. Selecting
% this option will generate that page, and only that page, ignoring
% the rest of the thesis.
%
% libraryrightspage: this option will generate just the "Library
% Rights Page", which should be included with the orignal copy
% submitted to the graduate school. All other options except
% font size, copy/nocopy, and phd/masters are ignored when this
% option is given.
%
% copy,nocopy: this determines whether you want to give the library
% permission to make copies of the thesis. The default is copy.
% This option only applies to the "Library Rights Page".
%
%
% Thesis Proposal:
% Because the thesis proposal is formatted similarly to the thesis
% in terms of spacing, this option can be used to generate the
% proposal. When selected, there is only one list of references
% at the end, and no bibliography. All of the other options except
% font size and page number location are ignored because they make no
% sense in a proposal.
%
% proposal: this specifies that this is a thesis proposal, and
% not an actual thesis.
%
%
% Examples:
%
% For a masters thesis with one list of references:
% \documentclass[oneref]{urithesis}
%
% For a Ph.D. dissertation:
% \documentclass[phd]{urithesis}
%
% For a manuscript format Ph.D. dissertation with a four member
% committee, and page numbers on the top:
% \documentclass[phd,manuscript,4committee,topnum]{urithesis}
%
%
% Notes:
%
% Portions of this package were derived frome the chapterbib
% package (Version 1.5 (09-OCT-1995) Donald Arseneau), therefore
% you should be sure not to use that package with this one due
% to inevitable conflicts.
%
% You will also need the file uribiblio.bst for creating the
% bibliography.
%
% This package has been disigned to comply with the library's
% format guidlines using either a 10pt or 12pt font, which is
% specified in the \documentclass line.
%
% By default the department named on the title page is Electrical
% Engineering, but that can be changed by putting the command:
% \dept{My Department}
% in the main .tex file before any of the chapters are included.
%
% The acknowledgements, preface, and dedication sections are not
% required, but the abstract section is.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e} \ProvidesClass{urithesis}[2011/08/23 v 1.13 %
San Jose State University thesis format]
% Declare our options.
\newif\if@wantchapterref \@wantchapterreftrue
\DeclareOption{chapterref}{\@wantchapterreftrue}
\DeclareOption{oneref}{\@wantchapterreffalse}
\newif\if@wantapalike \@wantapalikefalse
\DeclareOption{aparefs}{\@wantapaliketrue}
\newif\if@wantmanuscript \@wantmanuscriptfalse
\DeclareOption{manuscript}{\@wantmanuscripttrue}
\DeclareOption{standard}{\@wantwantmanuscriptfalse}
\newif\if@simpleref \@simplereffalse
\DeclareOption{simpleref}{\@simplereftrue \@wantchapterreffalse}
\newif\if@masters \@masterstrue
\DeclareOption{phd}{\@mastersfalse}
\DeclareOption{masters}{\@masterstrue}
\newif\if@fourcommittee \@fourcommitteefalse
\newif\if@fivecommittee \@fivecommitteefalse
\DeclareOption{3committee}{\@fourcommitteefalse \@fivecommitteefalse}
\DeclareOption{4committee}{\@fourcommitteetrue \@fivecommitteefalse}
\DeclareOption{5committee}{\@fourcommitteetrue \@fivecommitteetrue}
\newif\if@topnumbers \@topnumbersfalse
\DeclareOption{topnum}{\@topnumberstrue}
\DeclareOption{bottomnum}{\@topnumbersfalse}
\newif\if@libraryrights \@libraryrightstrue
\DeclareOption{nocopy}{\@libraryrightsfalse}
\DeclareOption{copy}{\@libraryrightstrue}
\newif\if@sequential \@sequentialtrue
\DeclareOption{nonsequential}{\@sequentialfalse}
\DeclareOption{sequential}{\@sequentialtrue}
\newif\if@noprelim \@noprelimfalse
\DeclareOption{noprelim}{\@noprelimtrue}
\DeclareOption{prelim}{\@noprelimfalse}
\newif\if@nobib \@nobibfalse
\DeclareOption{nobib}{\@nobibtrue}
\newif\if@proposal \@proposalfalse
\DeclareOption{proposal}{\@proposaltrue}
\newif\if@draftbox \@draftboxfalse
\DeclareOption{draftbox}{\@draftboxtrue}
\newif\if@libraryrightspage \@libraryrightspagefalse
\DeclareOption{nolibraryrightspage}{\@libraryrightspagefalse}
\DeclareOption{libraryrightspage}{\@libraryrightspagetrue}
% Declare options from report class that we want to pass.
\def\@optptsize{12pt}
\DeclareOption{10pt}{\def\@optptsize{10pt}}
\DeclareOption{11pt}{\def\@optptsize{11pt}}
\DeclareOption{12pt}{\def\@optptsize{12pt}}
\DeclareOption{draft}{\PassOptionsToClass{draft}{report}}
\DeclareOption{final}{\PassOptionsToClass{final}{report}}
\ProcessOptions
\LoadClass[letterpaper,oneside,titlepage,onecolumn,openany,\@optptsize]{report}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Set things that are determined permanently right after options
% are processed.
\if@draftbox
\setlength\overfullrule{5pt}
\fi
\if@proposal
\@noprelimtrue
\@simplereftrue
\@wantchapterreffalse
\@sequentialtrue
\fi
\if@libraryrightspage
\@noprelimtrue
\@simplereftrue
\@wantchapterreffalse
\@sequentialtrue
\@nobibtrue
\def\@include#1 {}%
\fi
\def\@refbstfile{uriref}
\if@wantapalike
% from apalike.sty
\def\@cite#1#2{(#1\if@tempswa , #2\fi)}
\def\citepunct{; }
\def\@biblabel#1{}
\def\@refbstfile{uriapa}
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Define functions for user to set things.
\def\dept#1{\gdef\@dept{#1}}
\def\copyrightyear#1{\gdef\@copyrightyear{#1}}
\def\reffile#1{\gdef\@reffile{#1}}
\def\abstract#1{\gdef\@abstract{#1}}
\def\acknowledgements#1{\gdef\@acknowledgements{#1}}
\def\preface#1{\gdef\@preface{#1}}
\def\dedication#1{\gdef\@dedication{#1}}
\def\titledisclaimer#1{\gdef\@titledisclaimer{#1}}
\def\signature#1{
\@ifundefined{@signatureA}{%
\gdef\@signatureA{#1}}{
\@ifundefined{@signatureB}{%
\gdef\@signatureB{#1}}{
\@ifundefined{@signatureC}{%
\gdef\@signatureC{#1}}{
\@ifundefined{@signatureD}{%
\gdef\@signatureD{#1}}{
\gdef\@signatureE{#1}}}}}
}
\def\newchapter#1{%
% ZSH - Needed to comply with thesis guidelines
\setlength{\parskip}{0em}
\setlength{\abovedisplayshortskip}{-2ex} % Ensure equations are double spaced.
%%%%%%
\if@gotfirstchapter\else
\@gotfirstchaptertrue
\initialstuff
\fi
\include{#1}
}
\def\newappendix#1{%
\if@gotfirstappendix
\immediate\write\@mainaux{\string\gdef\string\@multappendix{Y}}
\else
\@gotfirstappendixtrue
\@sequentialfalse % figures and tables in appendix must not be sequential
\startappendix
\immediate\write\@auxout{\string\@writefile{toc}{{\vskip 1.0ex plus\p@
{\string\bfseries \noindent APPENDIX \hfill}}}}
\immediate\write\@auxout{\string\@writefile{toc}{ }}
\fi
\include{#1}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Set page dimensions. These values give us 1.6in on the left margin,
% and 1.1in on the other margins, as well as placing the page numbers
% correctly.
\newlength{\@realheadsep}
\newlength{\@realtextheight}
\makeatletter
\setlength{\oddsidemargin}{.55in} %{.6in} %this is for leftmargin
\setlength{\textwidth}{5.8in}
\setlength{\textheight}{8.5in}
\setlength{\marginparsep}{.2in}
\setlength{\marginparwidth}{1in}
\setlength{\topmargin}{-.35in} %{-0.5in}
\setlength{\headheight}{0.01in}
\setlength{\headsep}{0.0in}
\setlength{\@realheadsep}{0.35in}
\setlength{\@realtextheight}{8.5in}
\setlength{\footskip}{.5in}
\setlength{\paperheight}{11.0in}
\setlength{\paperwidth}{8.5in}
\setlength{\headsep}{\@realheadsep}
\setlength{\textheight}{\@realtextheight}
% set paragraph indentation to 2em
\parindent 2em
% Lengths used by capheadings where we expand the header and shrink
% the text body to allow the heading on each page within original margins.
%\newlength{\@headerextra}
%\setlength{\@headerextra}{0.35in}
\newlength{\@altheadsep}
\setlength{\@altheadsep}{\@realheadsep}
%\addtolength{\@altheadsep}{\@headerextra}
\newlength{\@alttextheight}
\setlength{\@alttextheight}{\@realtextheight}
%\addtolength{\@alttextheight}{-\@headerextra}
\newlength{\@fullheadheight}
\setlength{\@fullheadheight}{\headheight}
\addtolength{\@fullheadheight}{\@realheadsep}
\newlength{\@headtofootheight}
\setlength{\@headtofootheight}{\@alttextheight}
\addtolength{\@headtofootheight}{\@realheadsep}
%\addtolength{\@headtofootheight}{\@headerextra}
% Set double spacing command for 12pt font.
\def\doublespace{%
\renewcommand{\baselinestretch}{1.66}
\renewcommand{\arraystretch}{0.602}
\normalsize%
}
% Set double spacing command for 11pt font.
\def\@tmppt{11pt}
\ifx\@optptsize\@tmppt
\def\doublespace{%
\renewcommand{\baselinestretch}{1.62}
\renewcommand{\arraystretch}{0.617}
\normalsize%
}
\fi
% Set double spacing command for 10pt font.
\def\@tmppt{10pt}
\ifx\@optptsize\@tmppt
\def\doublespace{%
\renewcommand{\baselinestretch}{1.67}%
\renewcommand{\arraystretch}{0.599}%
\normalsize%
}
\fi
% Set single spacing command.
\def\singlespace{%
\renewcommand{\baselinestretch}{1.0}%
\renewcommand{\arraystretch}{1.0}%
\normalsize%
}
% Do double spacing by default.
\doublespace
% fixes hyperref warning
\providecommand*{\toclevel@chapterx}{0}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Basic definitions.
% Set \@worktype to either "Thesis" or "Dissertation".
\def\@worktype{%
\if@masters%
Thesis%
\else%
Dissertation%
\fi%
}
% Set some default values for certain things.
\def\@title{}
\def\@author{}
\def\@dept{COMPUTER SCIENCE}
\def\@copyrightyear{\number\the\year}
\def\@reffile{references}
\def\@titledisclaimer{}
% Sets name of bibliography file to thesisbib.bbl assuming the
% thesis.tex file was not renamed.
\def\@bibliofileext{bib}
\def\@bibliofile{\jobname\@bibliofileext}
% Set some names used as chapter headings.
\renewcommand\contentsname{TABLE OF CONTENTS}
\renewcommand\listtablename{LIST OF TABLES}
\renewcommand\listfigurename{LIST OF FIGURES}
\if@wantchapterref
\newcommand\listrefname{List of References}
\else
\newcommand\listrefname{LIST OF REFERENCES}
\fi
\newcommand\biblioname{BIBLIOGRAPHY}
\if@wantmanuscript
\renewcommand\chaptername{MANUSCRIPT}
\else
\renewcommand\chaptername{CHAPTER}
\fi
% This is used to print the lead pages before the first chapter.
\newif\if@gotfirstchapter \@gotfirstchapterfalse
% This is used to convert over to appendices from chapters,
% and to print a list of references if using oneref format.
\newif\if@gotfirstappendix \@gotfirstappendixfalse
% Counts the number of references in each chapter to determine if there
% is a list of references for that chapter when using chapterref format.
\newcounter{chaptercitecount}
% These two are called from the main aux file if we need a list of figures
% page and/or a list of tables. They are put in the aux file from the
% enddocumenthook using totaltablecount and totalfigurecount.
\def\myusefigurespage{\gdef\@myusefigurespage{true}}
\def\myusetablespage{\gdef\@myusetablespage{true}}
% These are used to determine if there are any figures and/or tables
% in the thesis, because if there aren't any, we don't want a
% list of figures and/or list of tables.
\newcounter{totaltablecount}
\newcounter{totalfigurecount}
% Local mirror of \@myusefigurespage and \@myusetablespage.
\newif\if@usefigurespage \@usefigurespagefalse
\newif\if@usetablespage \@usetablespagefalse
% used to make correct pdf index for hyperref
\def\addcustomcontentsline{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This function adds a file name to \@biblist, which will be printed to
% console with a message telling the user to run bibtex on these files.
\def\add@biblist#1{\@ifundefined{@biblist}{%
\edef\@biblist{ bibtex #1}}{%
\edef\@tmpbl{\@biblist^^J bibtex #1}\let\@biblist=\@tmpbl}
}
\if@wantchapterref
% These are taken right from chapterbib.sty, and needed in the
% redefinition of \@include.
\def\@CB@writeContext{\if@filesw\begingroup
\edef\@tempa{\string\gdef\string\@extra@binfo{\@extra@b@citeb}}%
\immediate\write\@auxout{\@tempa\@CB@wtoc{toc}\@CB@wtoc{lof}\@CB@wtoc{lot}}%
\endgroup\fi}
\def\@CB@wtoc#1{\string\@writefile{#1}{\gdef
\string\the@ipfilectr{\@extra@b@citeb}}}%
% Need to include chapter references before the \clearpage and
% make some modifications from chapterbib package. This definition
% was taken from latex.ltx with some code from chapterbib.sty.
\def\@include#1 {%
\clearpage
% The next three lines are from chapterbib.
\global\advance\c@inputfile\@ne \xdef\the@ipfilectr{@-\the\c@inputfile}%
\@CB@writeContext%
\xdef\@currentipfile{#1}%
\if@filesw
\immediate\write\@mainaux{\string\@input{#1.aux}}%
\fi
\@tempswatrue
\if@partsw
\@tempswafalse
\edef\reserved@b{#1}%
\@for\reserved@a:=\@partlist\do
{\ifx\reserved@a\reserved@b\@tempswatrue\fi}%
\fi
\if@tempswa
\let\@auxout\@partaux
\if@filesw
\immediate\openout\@partaux #1.aux
\immediate\write\@partaux{\relax}%
\fi
\@input@{#1.tex}%
% the stuff before the \clearpage was addded
\if@filesw\immediate\write\@auxout{\string\bibstyle{\@refbstfile}}\fi%
\if@filesw\immediate\write\@auxout{\string\bibdata{\@reffile}}\fi%
\ifnum\value{chaptercitecount}>0
\if@nobib\else%
\def\addcustomcontentsline{\addcontentsline{toc}{section}{\listrefname}}
\@input{\@currentipfile.bbl}
\add@biblist{\@currentipfile}
\fi%
\fi
\clearpage
\@writeckpt{#1}%
\if@filesw
\immediate\closeout\@partaux
\fi
\else
\deadcycles\z@
\@nameuse{cp@#1}%
\fi
\let\@auxout\@mainaux%
% The next three lines are from chapterbib.
\global\let\@currentipfile\@savedjobname%
\gdef\the@ipfilectr{}%
\@CB@writeContext%
}
% This comes from chapterbib.sty.
\@ifundefined{@extra@binfo}{%
\def\bibcite#1#2{\global\@namedef{b@#1\@extra@binfo}{#2}}%
}{}
% This comes from chapterbib.sty.
\@ifundefined{@extra@b@citeb}{% if not defined by compatible package
\def\@citex[#1]#2{% Add \@extra@b@citeb to \cite
\let\@citea\@empty
\@cite{\@for\@citeb:=#2\do
{\@citea\let\@citea\citepunct
\edef\@citeb{\expandafter\@firstofone\@citeb\@empty}%
\stepcounter{chaptercitecount}% count references
\if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi
\if@filesw\immediate\write12{\string\citation{\@citeb}}\fi%
\@ifundefined{b@\@citeb \@extra@b@citeb}{\mbox{\reset@font\bf ?}%
\@warning{Citation `\@citeb' in file `\@currentipfile'
on page \thepage \space undefined}\G@refundefinedtrue}%
{\hbox{\citeform{\csname b@\@citeb \@extra@b@citeb\endcsname}}}}}{#1}}
\@ifundefined{citeform}{\let\citeform\@empty}{}
\@ifundefined{citepunct}{\def\citepunct{,\penalty\@m\ }}{}
}{}%
% These lines come from chapterbib.sty.
\xdef\@savedjobname{\jobname}% save root file name as a macro
\let\@currentipfile\@savedjobname
\gdef\the@ipfilectr{}
\def\@extra@b@citeb{\the@ipfilectr}
\newcount\c@inputfile \global\c@inputfile=0
\gdef\@extra@binfo{} % in case .aux files are left from old run.
\else%\if@wantchapterref
% This comes from latex.ltx, and is modified to add bibliography
% entries as well as reference entries.
\def\@citex[#1]#2{%
\let\@citea\@empty
\@cite{\@for\@citeb:=#2\do
{\if@wantapalike%
\@citea\def\@citea{; }%
\else%
\@citea\def\@citea{,\penalty\@m\ }%
\fi%
\edef\@citeb{\expandafter\@firstofone\@citeb\@empty}%
\if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi
\if@filesw\immediate\write12{\string\citation{\@citeb}}\fi
\@ifundefined{b@\@citeb}{\mbox{\reset@font\bfseries ?}%
\G@refundefinedtrue
\@latex@warning
{Citation `\@citeb' on page \thepage \space undefined}}%
{\hbox{\csname b@\@citeb\endcsname}}}}{#1}}
\fi%\if@wantchapterref
% These two things must be done after all other packages are included,
% specifically cite and/or overcite.
\AtBeginDocument{
% Redefine nocite so it writes to the bibliography only, and
% doesn't complain about undefined references since bibtex
% will complain anyway. It came from latex.ltx.
\def\nocite#1{\@bsphack
\@for\@citeb:=#1\do{%
\edef\@citeb{\expandafter\@firstofone\@citeb}%
\if@filesw\immediate\write12{\string\citation{\@citeb}}\fi
}\@esphack}
% Redefine these to do nothing because they should not be used
% beacuse they are done on the users behalf by this class.
\def\bibliography#1{}
\def\bibliographystyle#1{}
% This is used by cite.sty for the actual citations. It is modified
% to add entries to the bibliography, and count entries.
\@ifundefined{@extra@b@citeb}{}{
\def\@nocite#1{\begingroup\let\protect\string% normalize active chars
\xdef\@no@sparg{\expandafter\@ignsp#1 \: }\endgroup% and remove ALL spaces
\if@filesw \immediate\write\@auxout {\string\citation {\@no@sparg}}\fi%
\stepcounter{chaptercitecount}% count references in chapters
\if@filesw \immediate\write12 {\string\citation {\@no@sparg}}\fi}
}
}
% For compatibility with the old urithesis.sty command.
\def\bibliocite#1{\nocite{#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Style for references. This came from report.cls.
\renewenvironment{thebibliography}[1]
{\if@proposal%
\section*{\listrefname}%
\else%
\if@wantchapterref%
\section*{\listrefname}%
\else%
\chapter*{\listrefname}%
\fi%
\fi%
\singlespace\vspace{2ex}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\if@wantapalike%
\setlength{\leftmargin}{2.0em}
\addtolength{\leftmargin}{-\labelsep}
\setlength{\itemindent}{-2.0em}
\fi
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m} {\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
% Style for bibliography. This came from report.cls.
\newenvironment{thesisbib}[1]
{\chapter*{\biblioname}%
\singlespace\vspace{2ex}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\setlength{\leftmargin}{2.0em}
\addtolength{\leftmargin}{-\labelsep}
\setlength{\itemindent}{-2.0em}
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m} {\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Chapter headings
% This is used to replace ps@plain when we have numbers on the top for the
% body of the thesis. It will only be one sided so evenhead is empty.
\def\ps@plaintop{%
\let\@mkboth\@gobbletwo%
\let\@oddfoot\@empty%
\let\@evenfoot\@empty%
\let\@evenhead\@empty%
\def\@oddhead{\reset@font\hfil\thepage}%
}
% This is the heading used for list of figures and list of tables.
% The header actually generates both the header and the page number
% on the bottom of the page because \textheight may be incorrect on
% the last page of the list if there is a single entry that gets pushed
% to the next page.
\def\ps@capheadings{%
\let\@mkboth\@gobbletwo%
\let\@oddfoot\@empty%
\let\@evenfoot\@empty%
\let\@evenhead\@empty%
\def\@oddhead{%
\settoheight{\@tmpheighta}{\rightmark}%
\settoheight{\@tmpheightb}{\thepage}%
\shortstack{%
\rule{0in}{\@fullheadheight}\rule{\textwidth}{0in}\\%
\rightmark\\%
\rule{0in}{\@headtofootheight}%
\vspace{-\@tmpheighta}\vspace{-\@tmpheightb}\\%
\thepage}}%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This creates the chapter and appendix header text.
\def\@makechapterhead#1{{%
\renewcommand{\baselinestretch}{1.0}\bfseries%
\begin{center}
%\rule{0in}{0.5in}%
\doublespace
\MakeUppercase{\@chapapp}
\@ifundefined{@usesingappend}{\space\thechapter}{}\vspace{0ex}\\%
#1
%\vskip 2.0ex
\end{center}
}}
% Make table of contents entries for numbered chapter headers.
\renewcommand*\l@chapter[2]{%
\vskip 1.0ex \@plus\p@
{\@dottedtocline{0}{1.5em}{1.5em}{\bfseries\noindent#1}{#2}}%
}
% Make table of contents entries for numbered chapter headers.
\newcommand*\l@chapterapp[2]{%
\vskip 1.0ex \@plus\p@
{\@dottedtocline{0}{1.5em}{1.5em}{\noindent#1}{#2}}%
}
% Make table of contents entries for unnumbered chapter headers.
\newcommand*\l@chapterx[2]{%
\vskip 1.0ex \@plus\p@
{\@dottedtocline{0}{0em}{1.5em}{\bfseries\noindent#1}{#2}}%
}
% Redefined from report.cls to change left offset.
\renewcommand*\l@section{\@dottedtocline{1}{3.0em}{4.0em}}
\renewcommand*\l@subsection{\@dottedtocline{2}{5.3em}{4.9em}}
\renewcommand*\l@subsubsection{\@dottedtocline{3}{8.5em}{5.6em}}
% Undid 1.7 em indentation for first line in table of contents.
% From latex.ltx.
\def\@sect#1#2#3#4#5#6[#7]#8{%
\ifnum #2>\c@secnumdepth
\let\@svsec\@empty
\else
\refstepcounter{#1}%
\protected@edef\@svsec{\@seccntformat{#1}\relax}%
\fi
\@tempskipa #5\relax
\ifdim \@tempskipa>\z@
\begingroup
#6{%
\@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}\hspace{-1.7em}%
\fi
#7}%
\else
\def\@svsechd{%
#6{\hskip #3\relax
\@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}}
% It adds extra 1.7em of indentation, which is undone for the first
% line in \@caption.
% This is from report.cls.
\renewcommand*\l@figure{\@dottedtocline{1}{1.5em}{4.0em}}
\let\l@table\l@figure
% This has been modified so that the first line has -1.7em of negative
% space to allow multiple line captions to be indented on the runover
% lines.
% This is from latex.ltx.
\long\def\@caption#1[#2]#3{%
\par
\if@gotfirstappendix\else % dont want appendix figures and tables in list
\addcontentsline{\csname ext@#1\endcsname}{#1}%
{\protect\numberline{\csname the#1\endcsname}{\hspace{-1.7em}%
\ignorespaces #2}}%
\fi
\begingroup
\@parboxrestore
\if@minipage
\@setminipage
\fi
\normalsize
\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
\endgroup}
% This creates the headers for the unnumbered chapters (abstract,
% bibliography, etc.).
\def\@schapteroffset{0.0in}
\def\@makeschapterhead#1{{%
\renewcommand{\baselinestretch}{1.0}\bfseries%
\begin{center}
\rule{0in}{\@schapteroffset}%
#1
\vskip 2.0ex
\end{center}
}}
\def\cl@chapter{%
\setcounter{chaptercitecount}{0}%
\if@sequential%
\@elt{section}\@elt{footnote}%
\else%
\@elt{equation}\@elt{figure}\@elt{footnote}\@elt{section}\@elt{table}%
\fi}
% These commands define the format of the headers for section,
% subsection, and subsubsection commands.
\renewcommand\section{%
\@startsection {section}{1}{\z@}{2.0ex}{0.01ex}%
{\renewcommand{\baselinestretch}{1.0}\normalfont\normalsize\bfseries}}
\renewcommand\subsection{%
\@startsection {subsection}{2}{\z@}{2.0ex}{0.01ex}%
{\renewcommand{\baselinestretch}{1.0}\normalfont\normalsize\bfseries}}
\renewcommand\subsubsection{%
\@startsection {subsubsection}{3}{\z@}{2.0ex}{0.01ex}%
{\renewcommand{\baselinestretch}{1.0}\normalfont\normalsize\bfseries}}
% These commands generate the figure/table/equation name, and records
% if we have any figures or tables and need a list page for them.
\renewcommand\thefigure{%
\addtocounter{totalfigurecount}{1}%
\if@sequential\else\thechapter.\fi\@arabic\c@figure}
\renewcommand\thetable{%
\addtocounter{totaltablecount}{1}%
\if@sequential\else\thechapter.\fi\@arabic\c@table}
\renewcommand\theequation{%
\if@sequential\else\thechapter.\fi\@arabic\c@equation}
\if@proposal
\renewcommand\thesection{\@arabic\c@section}
\fi
% Set single spacing in figures, tables, etc. This is from latex.ltx.
\def \@floatboxreset {%
\singlespace
\reset@font
\normalsize
\@setminipage
}
% Set single spacing in footnotes.
\let\ele@footnotetext\@footnotetext
\def\@footnotetext#1{{\singlespace%
\ele@footnotetext{#1}}}
% Set single spacing in quote and quotation environment.
% These are from report.cls.
\renewenvironment{quotation}
{\list{}{\singlespace%
\listparindent 1.5em%
\itemindent \listparindent
\rightmargin \leftmargin
\parsep \z@ \@plus\p@}%
\item\relax}
{\endlist}
\renewenvironment{quote}
{\list{}{\singlespace%
\rightmargin\leftmargin}%
\item\relax}
{\endlist}
% Set single spacing in the verbatim environment.
% This is from latex.ltx.
\def\verbatim{\singlespace%
\@verbatim \frenchspacing\@vobeyspaces \@xverbatim}
% Change caption to have period instead of colon.
% This is from report.cls.
\long\def\@makecaption#1#2{%
\vskip\abovecaptionskip
\sbox\@tempboxa{#1. #2}%
\ifdim \wd\@tempboxa >\hsize
#1. #2\par
\else
\global \@minipagefalse
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
% Make first paragraph indented.
% this is from report.cls.
\renewcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
\thispagestyle{plain}%
\global\@topnum\z@
\@afterindenttrue
\secdef\@chapter\@schapter}
% This came from report.cls, and is used to exclude the appendix
% number in the table of contents if there is only one appendix.
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
\refstepcounter{chapter}%
\typeout{\@chapapp\space\thechapter.}%
\if@gotfirstappendix
\@ifundefined{@usesingappend}{
\addcontentsline{toc}{chapterapp}%
{\protect\numberline{\thechapter}#1}%
}{%
\addcontentsline{toc}{chapterapp}{#1}}%
\else
\addcontentsline{toc}{chapter}%
{\protect\numberline{\thechapter}#1}%
\fi
\else
\addcontentsline{toc}{chapter}{#1}%
\fi
\chaptermark{#1}%
\addtocontents{lof}{\protect\addvspace{10\p@}}%
\addtocontents{lot}{\protect\addvspace{10\p@}}%
\if@twocolumn
\@topnewpage[\@makechapterhead{#2}]%
\else
\@makechapterhead{#2}%
\@afterheading
\fi
\vspace{-2ex}} % ZSH - Needed to ensure double space throughout
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Create pages of the thesis.
% Create the library rights page.
\def\libraryrightspage{
\thispagestyle{empty}
\null\vfill
\begin{center}
{\bf Library Rights Statement}\\
\end{center}
In presenting the {\@worktype}, {\em \@title}, in partial fulfillment
of the requirements for an advanced degree at San Jose State University,
I agree that the Library shall make it freely available for
inspection. I further agree that permission for copying, as provided
for by the Copyright Law of the United States (Title 17, U.S.~Code),
of this {\@worktype} for scholarly purposes may be granted by the
Librarian. It is understood that any copying or publication of this
{\@worktype} for financial gain shall not be allowed without my written
permission.
I hereby
\if@libraryrights\else
{\bf do not}