-
Notifications
You must be signed in to change notification settings - Fork 0
/
thesis.cls
782 lines (705 loc) · 27.3 KB
/
thesis.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
%%
%% This is file `thesis.cls', for use at Rensselaer Polytechnic Institute.
%% It is based on the standard LaTeX report class.
%% Originally written by Harriet Borton (ITS), April 1996.
%% Modified April 11, 1996; minor revisions February, 2001.
%% Modified Oct 5, 2006; better compatibility with hyperref package.
%% Modified Dec 17 2007; change title page for MS degree as requested by OGS.
%% Modified Jan 28 2008; provide abstract title page for MS, incorporate 3-advisers.
%% Modified Jan 6 2009; small change to title page to avoid warning w/hyperref pkg
%%
%% On RCS, template files for preparing a thesis are in the directory
%% /dept/arc/docs/latex-thesis/
%%
%% This file is part of the LaTeX2e system.
%% ----------------------------------------
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{thesis}[2009/01/06 Rensselaer Polytechnic Institute]
% Note that the setspace package is built in (code included near the end of
% this file) to provide "line-and-a half spacing" (1.4 by default) and also
% the singlespace environment.
% RPI option chap:
\newif\ifchap % true for chap option
\chapfalse % false by default
\DeclareOption{chap}{\chaptrue} % option to print "Chapter" at each new chapter
\newcommand\docsize{} % to allow 10pt or 11pt to be specified as option
\DeclareOption{10pt}{\renewcommand\docsize{10pt}}
\DeclareOption{11pt}{\renewcommand\docsize{11pt}}
\DeclareOption{12pt}{\renewcommand\docsize{12pt}}
% Prepare to load the standard report class (12pt):
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
\ExecuteOptions{12pt} % define 12pt as the default doc size
\ProcessOptions
\LoadClass[\docsize]{report} % load report.cls
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The following sections are revisions or additions to report.cls
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% FOOTNOTES: make them continuously numbered throughout document
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% define command that can undo having footnotes reset with each chapter:
% (taken from removefr.sty by Donald Arseneau)
\def\@removefromreset#1#2{\let\@tempb\@elt
\expandafter\let\expandafter\@tempa\csname c@#1\endcsname
\def\@elt##1{\expandafter\ifx\csname c@##1\endcsname\@tempa\else
\noexpand\@elt{##1}\fi}%
\expandafter\edef\csname cl@#2\endcsname{\csname cl@#2\endcsname}%
\let\@elt\@tempb}
% use the command \@removefromreset to undo the \@addtoreset in report.cls:
\@removefromreset{footnote}{chapter}
%
% define command to allow people to reset footnote counter at will:
\def\resetfootnote{\setcounter{footnote}{0}} % definition to reset footnote
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PAGE LAYOUT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% SIDE MARGINS:
\if@twoside % Values for two-sided printing:
\oddsidemargin .55in % Left margin on odd-numbered pages.
\evensidemargin .05in % Left margin on even-numbered pages.
\marginparwidth 40pt % Width of marginal notes.
\else % Values for one-sided printing:
\oddsidemargin 0.55in % Note that \oddsidemargin = \evensidemargin
\evensidemargin 0.55in
\marginparwidth 40pt
\fi
\marginparsep 10pt % Horizontal space between outer margin and
% marginal note
\textwidth 5.9in % width of text
% VERTICAL SPACING:
% Top of page:
\topmargin -.5in % distance from top of page to running head
\headheight 14pt % Height of box containing running head.
\headsep .4in % Space between running head and text.
\textheight 8.8in % space for text
\footskip 30pt % Distance from baseline of box containing foot
% to baseline of last line of text.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% SECTION HEADINGS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand\chaptersize{\large}
\newcommand\sectionsize{\large}
\newcommand\subsectionsize{\normalsize}
\newcommand\subsubsectionsize{\normalsize}
\newcounter{firstchapter}
\setcounter{firstchapter}{0}
\setcounter{secnumdepth}{3} % Number subsubsections in the chapters
\setcounter{tocdepth}{3} % Put subsubsections in the table of contents
% Print "CHAPTER" if chap option is specified:
\ifchap
\renewcommand\@chapapp{\chaptername}
\else
\renewcommand\@chapapp{}
\fi
\def\specialhead#1{% GENERAL HEADING WITHOUT A NUMBER (for abstract, etc.)
\ifx\phantomsection\undefined
\else
\clearpage\phantomsection
\fi
\addcontentsline{toc}{chapter}{#1}
\chapter*{\centering #1 \@mkboth{#1}{#1}}}
\def\@chapter[#1]#2{\ifnum\c@firstchapter=0 % start of rpi added stuff
\if@twoside\cleardoublepage\suppressfloats[t]\fi
\pagenumbering{arabic}
\setcounter{firstchapter}{1}
\fi
\renewcommand{\thepage}{\arabic{page}}
\thispagestyle{plain}
\pagestyle{myheadings} % end of rpi added stuff
\ifnum \c@secnumdepth >\m@ne
\refstepcounter{chapter}%
\typeout{\@chapapp\space\thechapter.}%
\addcontentsline{toc}{chapter}%
{\protect\numberline{\thechapter.}#1}%
\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}
\def\@makechapterhead#1{%
\vspace*{0\p@}%
{\parindent \z@ \raggedright \centering \normalfont \chaptersize
\ifnum \c@secnumdepth >\m@ne
\ifchap
\bfseries \@chapapp{} \thechapter % print "Chapter" and number
\vskip -3pt %\par\nobreak (original)
\else
\bfseries \thechapter.
\fi
\fi
\interlinepenalty\@M
\bfseries #1\par\nobreak
\vskip 15\p@
}}
\def\@makeschapterhead#1{% heading for chapter* command (no numbering)
\vspace*{0\p@}%
{\parindent \z@ \raggedright \centering
\normalfont \chaptersize
\interlinepenalty\@M
\bfseries #1\par\nobreak
\vskip 15\p@
}}
\renewcommand\section{\@startsection {section}{1}{\z@}%
{3.5ex \@plus 1ex \@minus .2ex}%
{.5ex \@plus .3ex}%{1.4ex \@plus.2ex}%
{\normalfont\sectionsize\bfseries}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
{3.25ex\@plus 1ex \@minus .2ex}%
{.3ex \@plus .2ex}%{1.2ex \@plus .2ex}%
{\normalfont\subsectionsize\bfseries}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
{3.25ex\@plus 1ex \@minus .2ex}%
{.2ex \@plus .1ex}%{1ex \@plus .2ex}%
{\normalfont\subsubsectionsize\bfseries}}
% \paragraph and \subparagraph headings unchanged from report.cls.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% APPENDIX
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand\appendix{\par
\setcounter{chapter}{0}%
\setcounter{section}{0}%
\chaptrue
\renewcommand\@chapapp{\appendixname}%
\renewcommand\thechapter{\@Alph\c@chapter}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% FIGURES and TABLES
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%control float placement:
%
\setcounter{topnumber}{2}
\renewcommand\topfraction{.8}
\setcounter{bottomnumber}{2}
\renewcommand\bottomfraction{.8}
\setcounter{totalnumber}{4}
\renewcommand\textfraction{.2}
\renewcommand\floatpagefraction{.8}
\setcounter{dbltopnumber}{2}
\renewcommand\dbltopfraction{.8}
\renewcommand\dblfloatpagefraction{.8}
\long\def\@makecaption#1#2{%
\vskip\abovecaptionskip
\sbox\@tempboxa{\bfseries#1:~~#2}% Make caption bold
\ifdim \wd\@tempboxa >\hsize
{\bfseries #1:~~#2}\par% Make caption bold
\else
\global \@minipagefalse
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% TABLE of CONTENTS, LIST OF TABLES, LIST OF FIGURES
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand\tableofcontents{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\contentsname
\@mkboth{%
\MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
\vskip -1em \begin{singlespace} % singlespacing
\@starttoc{toc}%
\if@restonecol\twocolumn\fi
\end{singlespace}
}
\renewcommand*\l@chapter{\pagebreak[3]\vskip 10pt plus 1pt minus 1pt
\@dottedtocline{0}{0em}{1.4em}}
\renewcommand*\l@section{\vskip 6pt plus 1pt minus 1pt
\@dottedtocline{1}{1.5em}{2.3em}}
\renewcommand*\l@subsection{\ifnum\c@tocdepth>1\vskip 4pt minus 1pt \fi
\@dottedtocline{2}{3.8em}{3.2em}}
\renewcommand*\l@subsubsection{\ifnum\c@tocdepth>2 \vskip 3pt minus 1pt \fi
\@dottedtocline{3}{7.0em}{4.1em}}
% The following removed because it's not consistent with entries from longtable
%% modify the definition below (taken from latex.ltx) to include
%% "Table" and "Figure" in entries for lot and lof:
%\long\def\@caption#1[#2]#3{%\baselineskip 14.5 pt
% \addcontentsline{\csname ext@#1\endcsname}{#1}%
% {\protect\numberline{\csname fnum@#1\endcsname}{\ignorespaces #2}}%
% \begingroup
% \@parboxrestore
% \normalsize
% \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
% \endgroup}
\renewcommand\listoffigures{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\ifx\phantomsection\undefined
\else
\clearpage\phantomsection
\fi
\chapter*{\centering\listfigurename % center it
\@mkboth{\MakeUppercase\listfigurename}%
{\MakeUppercase\listfigurename}}%
\addcontentsline{toc}{chapter}{\listfigurename} % add lof to toc
\vskip -1em \begin{singlespace} % singlespacing
\@starttoc{lof}%
\if@restonecol\twocolumn\fi
\end{singlespace}
}
\renewcommand\listoftables{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\ifx\phantomsection\undefined
\else
\clearpage\phantomsection
\fi
\chapter*{\centering\listtablename % center it
\@mkboth{\MakeUppercase\listtablename}%
{\MakeUppercase\listtablename}}%
\addcontentsline{toc}{chapter}{\listtablename} % add lot to toc
\vskip -1em \begin{singlespace} % singlespacing
\@starttoc{lot}%
\if@restonecol\twocolumn\fi
\end{singlespace}
}
%remove following at same time as remove code to put "Figure" in LOF
%\renewcommand*\l@figure{\vskip 10pt plus 1pt minus 1pt
% \@dottedtocline{1}{0em}{5.8em}}
\renewcommand*\l@figure{\vskip 10pt plus 1pt minus 1pt
\@dottedtocline{1}{0em}{2.8em}}
\let\l@table\l@figure
\let\rpicaption\caption
\let\lrpicaption\caption
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% CITATION AND BIBLIOGRAPHY COMMANDS
%% -- copied from IEEEtran.cls 2015/08/26 version V1.8b
%%
%% V1.6 no longer supports the older, nonstandard \shortcite and \citename setup stuff
%
%
% Modify Latex2e \@citex to separate citations with "], ["
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\@citex[#1]#2{%
\let\@citea\@empty
\@cite{\@for\@citeb:=#2\do
{\@citea\def\@citea{], [}%
\edef\@citeb{\expandafter\@firstofone\@citeb\@empty}%
\if@filesw\immediate\write\@auxout{\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}}
% V1.6 we create hooks for the optional use of Donald Arseneau's
% cite.sty package. cite.sty is "smart" and will notice that the
% following format controls are already defined and will not
% redefine them. The result will be the proper sorting of the
% citation numbers and auto detection of 3 or more entry "ranges" -
% all in IEEE style: [1], [2], [5]--[7], [12]
% This also allows for an optional note, i.e., \cite[mynote]{..}.
% If the \cite with note has more than one reference, the note will
% be applied to the last of the listed references. It is generally
% desired that if a note is given, only one reference is listed in
% that \cite.
% Thanks to Mr. Arseneau for providing the required format arguments
% to produce the IEEE style.
\def\citepunct{], [}
\def\citedash{]--[}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% BIBLIOGRAPHY
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% RPI def: for use in making an unnumbered bibliography with hanging indents
%\def\bibentry{\vskip10pt\par\noindent\hangindent=40pt\frenchspacing}
% report definition modified for no automatic heading and use ragged right
\newcommand{\bibalign}{\raggedright}
\renewenvironment{thebibliography}[1]
{\bibalign\frenchspacing
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy\clubpenalty4000\widowpenalty4000%
\sfcode`\.=\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% FOR RPI TITLEPAGE, ABSTR. TITLEPAGE & COPYRIGHT PAGE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\thesistitle#1{\gdef\@thesistitle{#1}}
\def\author#1{\gdef\@author{#1}}
\def\degree#1{\gdef\@degree{#1}}
\def\department#1{\gdef\@department{#1}}
\newcount\numcomm \numcomm=1
\def\signaturelines#1{\numcomm=#1}
\def\thadviser#1{\gdef\@thadviser{#1}}
\def\projadviser#1{\gdef\@projadviser{#1}} \projadviser{*}
\def\cothadviser#1{\gdef\@cothadviser{#1}} \cothadviser{*}
\def\coprojadviser#1{\gdef\@coprojadviser{#1}} \coprojadviser{*}
\def\cocothadviser#1{\gdef\@cocothadviser{#1}} \cocothadviser{*}
\def\cocoprojadviser#1{\gdef\@cocoprojadviser{#1}} \cocoprojadviser{*}
\def\doctype{\if \@projadviser *Thesis \else Project \fi}
\def\adviser{\if \@projadviser *\@thadviser \else \@projadviser\fi}
\def\coadviser{\if \@coprojadviser *\@cothadviser\else \@coprojadviser\fi}
\def\cocoadviser{\if \@cocoprojadviser *\@cocothadviser\else \@cocoprojadviser\fi}
\def\memberone#1{\gdef\@memberone{#1}}
\def\membertwo#1{\gdef\@membertwo{#1}}
\def\memberthree#1{\gdef\@memberthree{#1}}
\def\memberfour#1{\gdef\@memberfour{#1}}
\def\memberfive#1{\gdef\@memberfive{#1}}
\def\membersix#1{\gdef\@membersix{#1}}
\def\copyrightyear#1{\gdef\@copyrightyear{#1}} \copyrightyear{\the\year}
\def\submitdate#1{\gdef\@submitdate{#1}}
\newcount\numcount
\def\sigblock{
\ifnum\numcomm < 4 % master's thesis or project
\vskip .8in plus 24pt minus 24pt
\leftline{Approved: \hfil}\vskip 48pt plus 2pt minus 10pt
\hrule width 2.6in\hfil \vskip -6pt
\leftline{\adviser, \doctype Adviser\hfil}
\if \coadviser * % no co-adviser
\else \vskip 36pt plus 6pt minus 2pt \hrule width 2.6in\hfil \vskip -6pt
\leftline{\coadviser, \doctype Adviser\hfil}
\fi
\if \cocoadviser * % no coco-adviser
\else \vskip 36pt plus 6pt minus 2pt \hrule width 2.6in\hfil \vskip -6pt
\leftline{\cocoadviser, \doctype Adviser\hfil}
\fi
\vskip 6pt
\else % PhD thesis
\numcount=\numcomm
\leftline{Approved by the\hfil}
\leftline{Examining Committee:\hfil}
\vskip 28pt \vfil
\hrule width 2.8in \hfil \vskip -3pt
\leftline{\adviser, \doctype Adviser\hfil}
\advance \numcount by -1
\if \coadviser * \else % there's a co-adviser
\vskip 19pt\vfil\hrule width 2.8in\hfil\vskip -3pt
\leftline{\coadviser, \doctype Adviser\hfil}
\advance \numcount by -1
\fi
\vskip 19pt\vfil\hrule width 2.8in\hfil\vskip -3pt
\leftline{\@memberone, Member\hfil}
\advance \numcount by -1
\vskip 19pt\vfil\hrule width 2.8in\hfil\vskip -3pt
\leftline{\@membertwo, Member\hfil}
\advance \numcount by -1 \ifnum\numcount > 0
\vskip 19pt\vfil\hrule width 2.8in\hfil\vskip -3pt
\leftline{\@memberthree, Member\hfil} \fi
\advance \numcount by -1 \ifnum\numcount > 0
\vskip 19pt\vfil\hrule width 2.8in\hfil\vskip -3pt
\leftline{\@memberfour, Member\hfil} \fi
\advance \numcount by -1 \ifnum\numcount > 0
\vskip 19pt\vfil\hrule width 2.8in\hfil\vskip -3pt
\leftline{\@memberfive, Member\hfil} \fi
\advance \numcount by -1 \ifnum\numcount > 0
\vskip 19pt\vfil\hrule width 2.8in\hfil\vskip -3pt
\leftline{\@membersix, Member\hfil} \fi
\fi}
\def\sigblockabs{%
\ifnum\numcomm < 4 % master's thesis or project
\vskip 1.8in plus 24pt minus 24pt
\leftline{Approved: \hfil}\vskip 24pt plus 2pt minus 10pt
\leftline{\adviser, \doctype Adviser\hfil}
\if \coadviser * % no co-adviser
\else \vskip 8pt plus 6pt minus 2pt
\leftline{\coadviser, \doctype Adviser\hfil}
\fi
\if \cocoadviser * % no coco-adviser
\else \vskip 8pt plus 6pt minus 2pt
\leftline{\cocoadviser, \doctype Adviser\hfil}
\fi
% \vglue 24pt
\else % PhD thesis
\numcount=\numcomm
\leftline{Examining Committee: \hfil}
\begin{quote}
\adviser, \doctype Adviser\\[4pt] \advance \numcount by -1
\if \coadviser * \else
\coadviser, \doctype Adviser\\[4pt] \advance\numcount by -1
\fi
\@memberone, Member\\[4pt] \advance \numcount by -1
\ifnum\numcount > 0
\@membertwo, Member\\[4pt] \advance \numcount by -1 \fi
\ifnum\numcount > 0
\@memberthree, Member\\[4pt] \advance \numcount by -1 \fi
\ifnum\numcount > 0
\@memberfour, Member\\[4pt] \advance \numcount by -1 \fi
\ifnum\numcount > 0
\@memberfive, Member\\[4pt]\advance \numcount by -1 \fi
\ifnum\numcount > 0
\@membersix, Member\\[4pt] \advance \numcount by -1\fi
\end{quote}
\fi
}
\def\titlepage{%
\pagenumbering{roman}
\thispagestyle{empty}
\ifnum\numcomm<4 \vglue .5in\vfil \fi % masters
\ifnum\numcomm>5 \hbox{ } \vspace{-24pt}\fi % make more space on page
\begin{singlespace}
\begin{center}
\parindent=0pt
{\large\uppercase\expandafter{\@thesistitle}}\\ [12pt]
By \\ [12pt]
\@author\\ [12pt]
A \doctype Submitted to the Graduate\\ [8pt]
Faculty of Rensselaer Polytechnic Institute\\ [8pt]
in Partial Fulfillment of the\\ [8pt]
Requirements for the Degree of\\ [8pt]
\uppercase\expandafter{\@degree}\\ [8pt]
Major Subject:~~\uppercase\expandafter{\@department}\\
\ifnum\numcomm < 7 \vskip 32pt \else \vskip 24pt \fi
\sigblock
\ifnum \numcomm < 7 \vskip 32pt \else \vskip 24pt \fi
Rensselaer Polytechnic Institute\\
Troy, New York\\ [14pt]
\ifnum\numcomm>6 \vskip -8pt \fi
\@submitdate
\end{center}
\end{singlespace}
\newpage
\pagestyle{plain}
% \pagenumbering{roman}
% \setcounter{page}{2}
}
\def\abstitlepage{%
\if@twoside\thispagestyle{empty}\cleardoublepage\fi
\pagenumbering{roman}
\thispagestyle{empty}
\ifnum\numcomm<4 \vglue .5in \fi % masters
\begin{singlespace}
\begin{center}
\parindent=0pt
\vglue 24pt plus 24pt minus 12pt
{\large\uppercase\expandafter{\@thesistitle}}\\ [11pt]
By \\ [11pt]
\@author\\ [11pt]
An Abstract of a Thesis Submitted to the Graduate Faculty\\ [7pt]
of Rensselaer Polytechnic Institute\\ [7pt]
in Partial Fulfillment of the\\ [7pt]
Requirements for the Degree of\\ [7pt]
\uppercase\expandafter{\@degree}\\ [7pt]
Major Subject:~~\uppercase\expandafter{\@department}\\ [7pt]
The original of the complete thesis is on file\\
in the Rensselaer Polytechnic Institute Library\\
\vfill
\sigblockabs
\vskip 36pt plus 2pt minus 12pt
Rensselaer Polytechnic Institute\\
Troy, New York\\ [12pt]
\@submitdate
\end{center}
\end{singlespace}
\newpage
\pagestyle{plain}
% \pagenumbering{roman}
% \setcounter{page}{2}
}
\def\copyrightpage{
\hbox{ }
\vfill
\begin{center}
\copyright\ Copyright \@copyrightyear \\
by \\
\@author \\
All Rights Reserved \\ [12pt]
\end{center}
\clearpage}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The CODE FROM SETSPACE.STY:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\setspace@size{%
\ifx \@currsize \normalsize
\@normalsize
\else
\@currsize
\fi
}
\def\doublespacing{%
\ifcase \@ptsize \relax % 10pt
\def \baselinestretch {1.667}%
\or % 11pt
\def \baselinestretch {1.618}%
\or % 12pt
\def \baselinestretch {1.655}%
\fi
\setspace@size
}
\def\onehalfspacing{%
\ifcase \@ptsize \relax % 10pt
\def \baselinestretch {1.25}%
\or % 11pt
\def \baselinestretch {1.213}%
\or % 12pt
\def \baselinestretch {1.241}%
\fi
\setspace@size
}
\def\singlespacing{%
\def \baselinestretch {1}%
\setspace@size
\vskip \baselineskip % Correction for coming into singlespace
}
\def\setstretch#1{%
\renewcommand{\baselinestretch}{#1}}
%---Stretch the baseline BEFORE calculating the strut size. This improves
% spacing below tabular environments etc., probably...
% Comments are welcomed.
\def\@setsize#1#2#3#4{%
% Modified 1993.04.07--GDG per KPC
\@nomath#1%
\let\@currsize#1%
\baselineskip #2%
\baselineskip \baselinestretch\baselineskip
\parskip \baselinestretch\parskip
\setbox\strutbox \hbox{%
\vrule height.7\baselineskip depth.3\baselineskip width\z@}%
\skip\footins \baselinestretch\skip\footins
\normalbaselineskip\baselineskip#3#4}
%---Increase the space between last line of text and footnote rule.
%\skip\footins 20pt plus4pt minus4pt
%---Reset baselinestretch within floats and footnotes.
% GT: This is where the conflict with the combination of the color
% package and the figure environment used to occur.
\let\latex@xfloat=\@xfloat
\def\@xfloat #1[#2]{%
\latex@xfloat #1[#2]%
\def \baselinestretch {1}\@normalsize %% GT: need \@normalsize?
\normalsize
}
\long\def\@footnotetext#1{%
\insert\footins{%
\def\baselinestretch {1}%
\reset@font\footnotesize
\interlinepenalty\interfootnotelinepenalty
\splittopskip\footnotesep
\splitmaxdepth \dp\strutbox \floatingpenalty \@MM
\hsize\columnwidth
\@parboxrestore
\protected@edef\@currentlabel{%
\csname p@footnote\endcsname\@thefnmark}%
\color@begingroup
\@makefntext{%
\rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
\color@endgroup}}
\long\def\@mpfootnotetext#1{%
\global\setbox\@mpfootins\vbox{%
\unvbox \@mpfootins
\def\baselinestretch {1}%
\reset@font\footnotesize
\hsize\columnwidth
\@parboxrestore
\protected@edef\@currentlabel{%
\csname p@mpfootnote\endcsname\@thefnmark}%
\color@begingroup
\@makefntext{%
\rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
\color@endgroup}}
% A single spaced quote (say) is done by surrounding singlespace with quote.
%
\def\singlespace{%
\vskip \baselineskip
\def\baselinestretch {1}%
\setspace@size
\vskip -\baselineskip
}
\def\endsinglespace{\par}
% spacing, doublespace and onehalfspace all are meant to INCREASE the
% spacing (i.e. calling onehalfspace from within doublespace will not
% produce a graceful transition between spacings)
%
% Next two definitions fixed for consistency with TeX 3.x
\def\spacing#1{%
\par
\begingroup % moved from \endspacing by PGBR 29-1-91
\def\baselinestretch {#1}%
\setspace@size
}
\def\endspacing{%
\par
\vskip \parskip
\vskip \baselineskip
\endgroup
\vskip -\parskip
\vskip -\baselineskip
}
% one and a half spacing is 1.5 x pt size
\def\onehalfspace{%
\ifcase \@ptsize \relax % 10pt
\spacing{1.25}%
\or % 11pt
\spacing{1.213}%
\or % 12pt
\spacing{1.241}%
\fi
}
\let\endonehalfspace=\endspacing
% double spacing is 2 x pt size
\def\doublespace{%
\ifcase \@ptsize \relax % 10pt
\spacing{1.667}%
\or % 11pt
\spacing{1.618}%
\or % 12pt
\spacing{1.655}%
\fi
}
\let\enddoublespace=\endspacing
% GT: EMSH chose to omit display math part that follows.
% She wrote (see above) that the "altered spacing before and after displayed
% equations ... just looked too much".
%
% Fix up spacing before and after displayed math
% (arraystretch seems to do a fine job for inside LaTeX displayed math,
% since array and eqnarray seem to be affected as expected).
% Changing \baselinestretch and doing a font change also works if done here,
% but then you have to change @setsize to remove the call to @nomath)
%
\everydisplay\expandafter{%
\the\everydisplay
\abovedisplayskip \baselinestretch\abovedisplayskip
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \baselinestretch\abovedisplayshortskip
\belowdisplayshortskip \baselinestretch\belowdisplayshortskip
}
%%%%%%%%%%%%%%%%%%%%%% End of setspace.sty %%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% SOME INITIALIZATIONS:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% make the following names uppercase:
\renewcommand\contentsname{CONTENTS}
\renewcommand\listfigurename{LIST OF FIGURES}
\renewcommand\listtablename{LIST OF TABLES}
\renewcommand\bibname{BIBLIOGRAPHY}
\renewcommand\indexname{INDEX}
\renewcommand\partname{PART}
\renewcommand\chaptername{CHAPTER}
\renewcommand\appendixname{APPENDIX}
\renewcommand\abstractname{ABSTRACT}
\renewcommand\chaptersize{\large}
\renewcommand\sectionsize{\large}
\renewcommand\subsectionsize{\normalsize}
\renewcommand\subsubsectionsize{\normalsize}
\raggedbottom
\setstretch{1.4} % at 11 or 12pt this is line-and-a-half spacing
\parindent .4in % Width of paragraph indentation
\markboth{}{} % Do not include chapter titles in headers;
\pagestyle{myheadings} % include just page numbers in upper right
%\renewcommand{\bibalign}{\raggedright} % bibliography is ragged right
% for fully justified bibliography:
\renewcommand{\bibalign}{}
\endinput
%%
%% End of file `thesis.cls'.