This repository has been archived by the owner on Feb 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtcdthesis.sty
957 lines (886 loc) Β· 31.4 KB
/
tcdthesis.sty
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% File updated by Zachary Diebold, May 2017
%%%
%%% File: utthesis2.sty, version 2.0ame, February 2003
%%%
%%% Based on: utthesis.sty, version 2.0, January 1995
%%% =============================================
%%% Copyright (c) 1995 by Dinesh Das. All rights reserved.
%%%
%%% Modified by Bert Kay in November 1996.
%%% My comments contain the string ``BKay''.
%%%
%%% Modified by James A. Bednar in March 1999.
%%% My comments contain the string ``JAB''.
%%%
%%% Extended by James A. Bednar in February 2002, based on
%%% portions of utdiss2-02.sty released on 29 November 2001
%%% by Craig McCluskey (mccluskey@mail.utexas.edu).
%%% His comments contain the string ``cwm''.
%%%
%%% Modified by Ayman M. El-Khashab in February 2003, to fix
%%% problems caused by old latex code (particularly of the doublespace
%%% package) as well as problems with pdf bookmarks in the abstract,
%%% TOC, list of figures/tables.
%%% My comments contain the string ``AME''
%%%
%%% Modified by Ross Brennan in March 2005, to be suitable for use
%%% in TCD. Based on modificatoiins made to a the udthesis.sty template
%%% file by Jesus Bisbal in May 2002
%%%
%%% This file is free and can be modified or distributed as long as
%%% you meet the following conditions:
%%%
%%% (1) This copyright notice is kept intact on all modified copies.
%%% (2) If you modify this file, you MUST NOT use the original file name.
%%%
%%% This file defines macros used for preparing theses for
%%% The University of Texas at Austin. It has been tested with LaTeX2e.
%%% I do NOT guarantee that it will meet all requirements of the
%%% Graduate School; however, if you find that something violates the
%%% specifications, please send me email at <ddas@cs.utexas.edu> and
%%% I will try to fix it.
%%%
%%% Usage:
%%% ======
%%%
%%% To use this file with LaTeX2e, make sure your TEXINPUTS environment
%%% variable contains the directory in which this file is located.
%%% Include this file as a package in the preamble:
%%%
%%% \documentclass[...]{report}
%%% \usepackage{utthesis}
%%%
%%% On non-UNIX systems, there might be different environment variables
%%% that might need to be set. I know nothing about such machines,
%%% however; consult your local guru for details.
%%%
%%% A template for a thesis is provided in the file "utthesis.doc", available
%%% from the same place where you obtained this file.
%%%
%%% Command Names:
%%% ==============
%%%
%%% ALL command names used in this file that are used to format the
%%% thesis begin with "thesis" (e.g., \thesisauthor). All of these
%%% commands can be changed by the user using \renewcommand, e.g.,
%%%
%%% \renewcommand{\thesisauthor}{First M. Last}
%%%
%%% after loading the package in LaTeX2e.
%%%
%%% The following is a list of all thesis-related variables used together
%%% with their default values:
%%%
%%% \thesisauthor %% Name of the author; defaults to "Ima Student".
%%% \thesismonth %% Month of graduation; defaults to "May".
%%% \thesisyear %% Year of graduation; defaults to "1994".
%%% \thesistitle %% Full title of dissertation; defaults to "Title".
%%% \thesistitletypesize
%%% %% Typesize used to typeset \thesistitle; defaults
%%% %% to \Large.
%%% \thesisauthorpreviousdegrees
%%% %% Previous degrees of author; defaults to "Degree"
%%% \thesissupervisor%% Name of thesis supervisor; defaults to "Supervisor"
%%% \thesisauthoraddress
%%% %% Permanent address of author; defaults to "USA"
%%% \thesisapprovedby%% Approval of dissertation committee; defaults to
%%% %% "Approved by".
%%% \thesisapprovedbytypesize
%%% %% Typesize used to typeset \thesisapprovedby; defaults
%%% %% to \large.
%%% \thesiscopyrightholder
%%% %% Name of copyright holder; defaults to \thesisauthor.
%%% \thesistypist %% Name of thesis typist; defaults to "the author".
%%% \thesistype %% Type of thesis; defaults to "Dissertation".
%%% \thesistypetypesize
%%% %% Typesize used to typeset \thesistype; defaults to
%%% %% \large.
%%% \thesisdegree %% Degree for which thesis is submitted; defaults to
%%% %% "Doctor of Philosophy".
%%% \thesisdegreetypesize
%%% %% Typesize used to typeset \thesisdegree; defaults to
%%% %% \large.
%%% \thesisdegreeabbreviation
%%% %% Abbreviation of \thesisdegree; defaults to "Ph.D.".
%%% \thesiscommitteesize
%%% %% Number of members in thesis committee; defaults to 5.
%%% \thesiscommittee %% Name of thesis committee; defaults to
%%% %% "Dissertation Committee:".
%%% \thesiscommitteetypesize
%%% %% Typesize used to typeset \thesiscommittee; defaults
%%% %% to \large.
%%% \thesisvitahead %% Title of the vita page; defaults to "Vita".
%%% \thesisvitaheadtypesize
%%% %% Typesize used to typeset \thesisvitahead; unused.
%%% \thesisacknowledgmenthead
%%% %% Title of the acknowledgments page; defaults to
%%% %% "Acknowledgments".
%%% \thesisacknowledgmentheadtypesize
%%% %% Typesize used to typeset \thesisacknowledgmenthead;
%%% %% unused.
%%% \thesisacknowledgmentsigname
%%% %% Signature on the acknowledgments page; defaults to
%%% %% \thesisauthor.
%%% \thesisacknowledgmentsignametypesize
%%% %% Typesize used to typeset \thesisacknowledgmentsigname;
%%% %% defaults to \large.
%%% \thesisacknowledgmentsigplace
%%% %% Address used on the acknowledgments page; defaults
%%% %% to "The University of Texas at Austin \\ \thesismonth
%%% %% \thesisyear".
%%% \thesisstudent %% Name of author with previous degrees; defaults to
%%% %% "\thesisauthor, \thesisauthorpreviousdegrees".
%%% \thesisstudenttypesize
%%% %% Typesize used to typeset \thesisstudent; defaults
%%% %% to \large.
%%% \thesisdedication%% Person or thing dedicated to; defaults to
%%% %% "To myself". :-)
%%%
%%% Most of the default values will satisfy the Graduate School's
%%% requirements; however, at a minimum, the user SHOULD redefine the
%%% following commands:
%%%
%%% \thesisauthor
%%% \thesismonth
%%% \thesisyear
%%% \thesistitle
%%% \thesisauthorpreviousdegrees
%%% \thesissupervisor
%%% \thesisauthoraddress
%%%
%%% In addition to the above variables, the following commands are
%%% provided to generate the optional sections of the thesis:
%%%
%%% \thesiscopyrightpage
%%% %% Generates the copyright page.
%%% \thesistitlepage %% Generates the title page.
%%% \thesissignaturepage
%%% %% Generates the signature page.
%%% \thesisdedicationpage
%%% %% Generates the dedication page.
%%%
%%% There are also a few environments to generate paragraph-like text:
%%%
%%% thesisacknowledgments
%%% %% Text of acknowledgments.
%%% thesissummary %% Text of summary.
%%% thesisabstract %% Text of abstract.
%%% thesisauthorvita %% Text of author's vita.
%%%
%%% Bells and Whistles:
%%% ===================
%%%
%%% The following commands are provided purely for playing around with.
%%% They should be used in the document preamble (before \begin{document}).
%%%
%%% \thesisdraft %% Prints a timestamp at the top of each page. This
%%% %% must be invoked in the document preamble (before
%%% %% \begin{document}).
%%% \leftchapter, \centerchapter, \rightchapter
%%% %% These commands generate left-justified, centered,
%%% %% and right-justified chapter headings, respectively.
%%% \singlespace, \oneandhalfspace, \doublespace
%%% %% These define the line spacing to single-space,
%%% %% one-and-one-half space, and double-space
%%% %% respectively. Note that the minimum spacing
%%% %% required by the Graduate School is \oneandhalfspace,
%%% %% but \singlespace is useful, e.g., when using
%%% %% \thesisdraft.
%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% JAB/AME
\typeout{****************************************************************}
\typeout{** TCD Thesis Style File, version 2.0, March 2005 }
\typeout{** Written by Dinesh Das }
\typeout{** Dept. of Computer Sciences }
\typeout{** The University of Texas at Austin }
\typeout{** Modified by Bert Kay, James A. Bednar, and Ayman El-Khashab }
\typeout{** Modified by Ross Brennan for use in Trinity College Dublin }
\typeout{****************************************************************}
%%%
%%% Set up page layout parameters.
%%%
\setlength\paperheight{297mm}
\setlength\paperwidth{210mm}
%\setlength{\textheight}{235mm} %{8in}- 1/4" BKay
\setlength{\oddsidemargin}{10mm} %{0.5in} + 1/8" BKay
\setlength{\evensidemargin}{10mm} %{0.5in} BKay
\setlength{\textwidth}{155mm}
%\setlength{\topmargin}{0.62in} %{0.5in}+1/8" BKay
%\setlength{\headheight}{0in}
%\setlength{\headsep}{0in}
%\setlength{\parindent}{12mm}
%%%
%%% Set up default values.
%%%
\newcommand{\@universityname}{University of Dublin, Trinity College}
\newcommand{\@publicationno}{Publication No.\ \line(1,0){40} \\[10mm]}
\newcommand{\thesisauthor}{Ima Student}
\newcommand{\thesismonth}{May}
\newcommand{\thesisyear}{1994}
\newcommand{\thesistitle}{Title}
\newcommand{\thesistitletypesize}{\Large}
\newcommand{\thesisauthorpreviousdegrees}{, Degree}
\newcommand{\thesissupervisor}{Supervisor}
\newcommand{\thesiscosupervisor}{}
\newcommand{\thesiscommitteemembera}{}
\newcommand{\thesiscommitteememberb}{}
\newcommand{\thesiscommitteememberc}{}
\newcommand{\thesiscommitteememberd}{}
\newcommand{\thesiscommitteemembere}{}
\newcommand{\thesiscommitteememberf}{}
\newcommand{\thesiscommitteememberg}{}
\newcommand{\thesiscommitteememberh}{}
\newcommand{\thesiscommitteememberi}{}
\newcommand{\thesisauthoraddress}{Ireland}
\newcommand{\thesisapprovedby}{Approved by}
\newcommand{\thesisapprovedbytypesize}{\large}
\newcommand{\thesiscopyrightholder}{\thesisauthor}
\newcommand{\thesistypist}{the author}
\newcommand{\thesistype}{Dissertation}
\newcommand{\thesistypetypesize}{\large}
\newcommand{\thesistypesize}{\large}
\newcommand{\thesisdegree}{Doctor of Philosophy}
\newcommand{\thesisdegreetypesize}{\large}
\newcommand{\thesisdegreeabbreviation}{Ph.D.}
\newcommand{\thesiscommitteesize}{5}
\newcommand{\thesiscommittee}{Dissertation Committee:}
\newcommand{\thesiscommitteetypesize}{\large}
\newcommand{\thesisvitahead}{Vita}
\newcommand{\thesisvitaheadtypesize}{\Large}
\newcommand{\thesissummaryhead}{Summary}
\newcommand{\thesisacknowledgmenthead}{Acknowledgements}
\newcommand{\thesisacknowledgmentheadtypesize}{\Large}
\newcommand{\thesisacknowledgmentsigname}{\thesisauthor}
\newcommand{\thesisacknowledgmentsignametypesize}{\large}
\newcommand{\thesisacknowledgmentsigplace}%
{{\slshape
\renewcommand{\arraystretch}{1.0}
\begin{tabular}{l}
\@universityname \\
\thesismonth\ \thesisyear
\end{tabular}}}
\newcommand{\thesisstudent}{\thesisauthor\thesisauthorpreviousdegrees}
\newcommand{\thesisstudenttypesize}{\large}
\newcommand{\thesisdedication}{To myself}
%%%
%%% Command for masters theses. \phdthesis is provided for symmetry.
%%%
\newcommand{\mastersthesis}{
\renewcommand{\thesistype}{Dissertation}
\renewcommand{\@publicationno}{}
\renewcommand{\thesisdegree}{Master in Computer Science}
\renewcommand{\thesisdegreeabbreviation}{M.Sc.}
\renewcommand{\thesiscommitteesize}{2}
\renewcommand{\thesiscommittee}{Supervising Committee:}}
\newcommand{\phdthesis}{}
%%%
%%% Set up other commands.
%%%
\newcommand{\@emptycommand}{} %% JAB Used when testing if a command is defined but empty
\newcommand{\@defaultbaselinestretch}{1.5}
\newcommand{\@base}[1]{\renewcommand{\baselinestretch}{#1}}
%%% AME: Changed to use setspace environments
\newcommand{\singlespace}{\singlespacing}
\newcommand{\oneandhalfspace}{\onehalfspacing}
\newcommand{\doublespace}{\doublespacing}
\newcommand{\@thesistitle}{\textbf{\thesistitletypesize \thesistitle}}
\newcommand{\@thesisapprovedby}%
{\textbf{\thesisapprovedbytypesize \thesisapprovedby}}
\newcommand{\@thesistype}{\textbf{\thesistypetypesize \thesistype}}
\newcommand{\@thesisdegree}{\textbf{\thesisdegreetypesize \thesisdegree}}
\newcommand{\@thesisdegreeabbreviation}{\thesisdegreeabbreviation}
\newcommand{\@thesiscommittee}%
{\textbf{\thesiscommitteetypesize \thesiscommittee}}
\newcommand{\@thesisvitahead}{\thesisvitahead}
\newcommand{\@thesissummaryhead}%
{\thesissummaryhead}
\newcommand{\@thesisacknowledgmenthead}%
{\thesisacknowledgmenthead}
\newcommand{\@thesisacknowledgmentsigname}%
{\textsc{\thesisacknowledgmentsignametypesize \thesisacknowledgmentsigname}}
\newcommand{\@thesisacknowledgmentsigplace}{\thesisacknowledgmentsigplace}
\newcommand{\@thesisstudent}{\textbf{\thesisstudenttypesize \thesisstudent}}
%%%
%%% Indent the first paragraph after a sectioning command.
%%%
%%% \let\@afterindentfalse\@afterindenttrue
%%% \@afterindenttrue
%%%
%%% Set up default page numbering and line spacing.
%%%
\newcommand{\@textpagenumbering}{arabic}
\newcommand{\@preamblepagenumbering}{roman}
\newcommand{\@textpagestyle}{fancy}
\newcommand{\@preamblepagestyle}{plain}
\pagenumbering{\@preamblepagenumbering}
\@base{\@defaultbaselinestretch}
\newcommand{\@chaptertype}{\chaptername}
\newcommand{\@appendix}{0}
%%%
%%% Command to generate copyright page.
%%%
\newcommand{\thesiscopyrightpage}{
\thispagestyle{empty}
\strut \vfill
\begin{center}
\begin{spacing}{2}
Copyright \\ by \\ \thesiscopyrightholder \\ \thesisyear
\end{spacing}
\end{center}
\vfill \strut
\newpage}
%%%
%%% Command to generate permissions page.
%%%
%\def\signature#1#2#3
%{\parbox[b]{1in}{\smash{#1}\vskip12pt}
% \hfill \parbox[t]{3in}{\shortstack{\vrule width 3in height 0.4pt\\\small#2} \vskip20pt
% \centering#3}}
%\def\sigskip{\vskip0.15in plus 0.2in minus 0.1in}
\newcommand{\thesisdeclarationpage}{{
\addcontentsline{toc}{chapter}{Declaration of Authorship}
\begin{spacing}{2}
\begin{center}
\section*{Declaration of Authorship}
\end{center}
\vspace{26mm}
I, \thesisauthor, declare that the following dissertation, except where otherwise stated,
is entirely my own work; that it has not previously been submitted as an exercise for a degree,
either in Trinity College Dublin, or in any other University;
and that the library may lend or copy it or any part thereof on request.
\vspace{26mm}
\thesissigline{\thesisauthor}
\hspace{50mm}
{\today} \\
\end{spacing}
\newpage}}
%%%
%%% Command to generate title page.
%%%
\newcommand{\thesistitlepage}{
\thispagestyle{empty}
\begin{spacing}{2}
\begin{center}
% Commented-out by JAB 08Mar99 -- didn't leave any room for two-line title
%\strut \vfill % Added BKay 17Oct96 -- title was too high on the page
\@thesistitle \\[8mm]
by \\[4mm]
\@thesisstudent \\
\vspace{20mm}
\textbf{\thesistypetypesize \thesistype} \\
Presented to the \\
\@universityname \\
in fulfilment \\
of the requirements \\
for the Degree of \\[4mm]
\textbf{\thesisdegreetypesize \thesisdegree} \\
\vspace{30mm}
\textbf{\Large \@universityname} \\[4mm]
Supervisor: \thesissupervisor \\
\thesismonth \ \thesisyear
\end{center}
\end{spacing}
\newpage
\clearpage
\pagenumbering{\@preamblepagenumbering}}
%%%
%%% Command to generate old-style signature page, which as
%%% of 2/2002 still seems to be used in Master's thesis.
%%%
\newcommand{\thesissignaturepage}{
\thispagestyle{empty}
\begin{spacing}{2}
\strut \vfill
\begin{center}
\@thesistitle
\end{center}
\vspace{50mm}
\mbox{} \hfill \begin{minipage}{67mm}
\begin{spacing}{1}
\@thesisapprovedby\hfill\mbox{} \\
\@thesiscommittee \\[15mm]
\end{spacing}
\setlength{\unitlength}{1mm}
\begin{picture}(67,70)(0,0)
\multiput(0,70)(0,-10)
{\thesiscommitteesize}{\line(1,0){67}}
\end{picture}
\end{minipage}
\vfill \strut
\end{spacing}
\newpage}
%%%
%%% Generates a signature line with the given name
%%% Adapted from 26 Aug 2001 cwm by JAB
%%%
\newcommand{\thesissigline}[1]{%
\leftline{\hbox to 2.5in{}\hrulefill}
\endgraf
\vspace*{-18pt}
\leftline{\hbox to 2.53in{}{#1}}}
%%%
%%% Generates signature lines for the committee
%%% Adapted from 26 Aug 2001 cwm by JAB
%%% Accepts up to two supervisors and eight other members
%%%
\newcommand{\thesiscertificationsignaturelines}{
\ifx\thesissupervisor\@emptycommand\relax\else
\thesissigline{\thesissupervisor, Supervisor}
\fi
\ifx\thesiscosupervisor\@emptycommand\relax\else
\thesissigline{\thesiscosupervisor, Supervisor}
\fi
\ifx\thesiscommitteemembera\@emptycommand\relax\else
\thesissigline{\thesiscommitteemembera}
\fi
\ifx\thesiscommitteememberb\@emptycommand\relax\else
\thesissigline{\thesiscommitteememberb}
\fi
\ifx\thesiscommitteememberc\@emptycommand\relax\else
\thesissigline{\thesiscommitteememberc}
\fi
\ifx\thesiscommitteememberd\@emptycommand\relax\else
\thesissigline{\thesiscommitteememberd}
\fi
\ifx\thesiscommitteemembere\@emptycommand\relax\else
\thesissigline{\thesiscommitteemembere}
\fi
\ifx\thesiscommitteememberf\@emptycommand\relax\else
\thesissigline{\thesiscommitteememberf}
\fi
\ifx\thesiscommitteememberg\@emptycommand\relax\else
\thesissigline{\thesiscommitteememberg}
\fi
\ifx\thesiscommitteememberh\@emptycommand\relax\else
\thesissigline{\thesiscommitteememberh}
\fi
\ifx\thesiscommitteememberi\@emptycommand\relax\else
\thesissigline{\thesiscommitteememberi}
\fi
}
%%%
%%% Committee Certification Page
%%%
%%% Adapted from 26 Aug 2001 cwm by JAB
%%%
\newlength{\@tmplength}
\newcommand{\thesiscertificationpage}{
\thispagestyle{empty}
\centerline{The Dissertation Committee for \thesisauthor}
\centerline{certifies that this is the approved version of the following dissertation:}
\vspace*{75pt}
\setlength\@tmplength\baselineskip
\baselineskip=16.5pt plus .5pt minus .2 pt
\baselineskip=28.5pt plus .5pt minus .2 pt
\begin{center}
\large\bf\@thesistitle
\end{center}
\vspace*{55pt}
\leftline{\hbox to 2.5in{}Committee:\hfill}
%\bigskip\medskip\smallskip
\bigskip
\thesiscertificationsignaturelines
\setlength\baselineskip\@tmplength
\clearpage}
%%%
%%% Environment to generate summary page.
%%%
\newenvironment{thesissummary}
{%\doublespace\small\normalsize
\chapter*{\@thesissummaryhead
\@mkboth{\uppercase{\@thesissummaryhead}}
{\uppercase{\@thesissummaryhead}}}
\addcontentsline{toc}{chapter}{\@thesissummaryhead}
\begin{spacing}{\@defaultbaselinestretch}}
{\end{spacing} \newpage}
%%%
%%% Environment to generate abstract page.
%%%
\newenvironment{thesisabstract}
{\chapter*{}
\thispagestyle{empty}
\addcontentsline{toc}{chapter}{Abstract}
\vspace*{0mm}
\begin{center}
\setlength{\unitlength}{1mm}
\begin{spacing}{2}
\@thesistitle \\[10mm]
\end{spacing}
\begin{spacing}{\@defaultbaselinestretch}
\@publicationno
\thesisauthor, \thesisdegree \\
\@universityname, \thesisyear \\[10mm]
\end{spacing}
Supervisor: \thesissupervisor \\
\end{center}
\vspace{5mm}
\begin{spacing}{1} \noindent}
{\end{spacing} \newpage}
%%%
%%% Command to generate dedication page.
%%%
\newcommand{\thesisdedicationpage}{
\thispagestyle{empty}
\strut \vfill
\begin{spacing}{\@defaultbaselinestretch}
\begin{center}
\thesisdedication
\end{center}
\end{spacing}
\vfill \strut
\newpage}
%%%
%%% Environment to generate acknowledgments page.
%%%
\newenvironment{thesisacknowledgments}
{%\doublespace\small\normalsize
\chapter*{\@thesisacknowledgmenthead
\@mkboth{\uppercase{\@thesisacknowledgmenthead}}
{\uppercase{\@thesisacknowledgmenthead}}}
\addcontentsline{toc}{chapter}{\@thesisacknowledgmenthead}
\begin{spacing}{\@defaultbaselinestretch}}
{\end{spacing} \par \vspace{20mm}
\raggedleft \@thesisacknowledgmentsigname \\[10mm]
\raggedright \@thesisacknowledgmentsigplace \newpage}
%%%
%%% Environment to generate vita page.
%%%
\newenvironment{thesisauthorvita}
{\clearpage
\chapter*{\@thesisvitahead
\@mkboth{\uppercase{\@thesisvitahead}}
{\uppercase{\@thesisvitahead}}}
\addcontentsline{toc}{chapter}{\@thesisvitahead}
\begin{spacing}{\@defaultbaselinestretch}}
{\end{spacing} \par \vspace{18mm} %{20mm}
\noindent Permanent Address:
\begin{minipage}[t]{90mm}
\thesisauthoraddress
\end{minipage}
\par \vspace{13mm} %{15mm}
\noindent This \lowercase\expandafter{\thesistype} was
typeset with \LaTeXe\footnote{\LaTeXe{} is an extension of \LaTeX.
\LaTeX{} is a collection of macros for \TeX. \TeX{} is a
trademark of the American Mathematical Society. The macros used in
formatting this \lowercase\expandafter{\thesistype} were written
by Dinesh Das, Department of Computer Sciences, The University
%% AME: added other acks
of Texas at Austin, and extended by Bert Kay, James A. Bednar, and Ayman El-Khashab.
} by \thesistypist.}
\newcommand{\@chapteralignment}{\centering}
\renewcommand{\chapter}{\clearpage
\ifnum\@appendix=1
\renewcommand{\@chaptertype}{\appendixname}
\else
\renewcommand{\@chaptertype}{}
\fi
\thispagestyle{plain}%
\global\@topnum\z@
\@afterindentfalse
\secdef\@chapter\@schapter
}
\renewcommand\appendix{\par
\setcounter{chapter}{0}%
\setcounter{section}{0}%
\renewcommand{\@chapapp}{\appendixname}%
\renewcommand{\thechapter}{\Alph{chapter}}
\renewcommand{\@appendix}{1}}
%%%
%%% Define chapter heading placement commands.
%%%
\newcommand{\leftchapter}{
\renewcommand{\@chapteralignment}{\raggedright}}
\newcommand{\centerchapter}{
\renewcommand{\@chapteralignment}{\centering}}
\newcommand{\rightchapter}{
\renewcommand{\@chapteralignment}{\raggedleft}}
%%%
%%% Command from report.cls, (c) LaTeX3 Project.
%%%
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
\refstepcounter{chapter}%
\typeout{\@chapapp\space\thechapter.}%
\addcontentsline{toc}{chapter}%
{\@chaptertype{} \protect\numberline{\thechapter}#1}%
\else
\addcontentsline{toc}{chapter}{\@chaptertype{} #1}
\fi
\ifnum\value{chapter}=1
\ifnum\@appendix=0
\pagestyle{\@textpagestyle}
\pagenumbering{\@textpagenumbering}
\fi
\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
}
%%%
%%% Command from report.cls, (c) LaTeX3 Project.
%%%
\def\@makechapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \@chapteralignment \reset@font
\ifnum \c@secnumdepth >\m@ne
\LARGE\bfseries \@chapapp{} \thechapter
\par
\vskip 20\p@
\fi
\Huge \bfseries #1\par
\nobreak
\vskip 40\p@
}}
\def\@makeschapterhead#1{%
\vspace*{30\p@}%
{\parindent \z@ \@chapteralignment
\reset@font
\Huge \bfseries #1\par
\nobreak
\vskip 40\p@
}}
%%%
%%% Command from report.cls, (c) LaTeX3 Project.
%%%
%%% I uncommented this because the version of this environment in
%%% /lusr/tex/texmf/tex/latex2e/report.cls doesn't have the /addtocontentsline
%%% call. This ends up failing to add a Bibliography entry to the Table
%%% of contents. I duplicated the report.cls version and added the
%%% /addtocontentsline myself since the commented-out version in this
%%% file didn't seem to work BKay 17Oct96.
\renewenvironment{thebibliography}[1]
{\chapter*{\bibname
\@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}%
\addcontentsline{toc}{chapter}{\bibname}
\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}
%%%
%%% Command from report.cls, (c) LaTeX3 Project.
%%%
\renewcommand\listoftables{%
\clearpage %%% AME
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\listtablename
\@mkboth{\uppercase{\listtablename}}{\uppercase{\listtablename}}}%
\addcontentsline{toc}{chapter}{\listtablename}
\@starttoc{lot}%
\if@restonecol\twocolumn\fi
}
\renewcommand\listoffigures{%
\clearpage %%% AME
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\listfigurename
\@mkboth{\uppercase{\listfigurename}}%
{\uppercase{\listfigurename}}}%
\addcontentsline{toc}{chapter}{\listfigurename}
\@starttoc{lof}%
\if@restonecol\twocolumn\fi
}
\renewcommand\tableofcontents{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\contentsname
\@mkboth{\uppercase{\contentsname}}{\uppercase{\contentsname}}}%
\@starttoc{toc}%
\if@restonecol\twocolumn\fi
}
%%%
%%% Command to print draft version of the thesis.
%%%
\newcommand{\thesisdraft}{
\setlength{\topmargin}{0in}
\setlength{\headheight}{0.2in}
\setlength{\headsep}{0.25in}
\renewcommand{\@textpagestyle}{myheadings}
\def\ps@myheadings{%
\let\@oddfoot\@empty\let\@evenfoot\@empty
\def\@oddhead{\textsl{Draft of \timestamp}\hfil\thepage}%
\let\@mkboth\@gobbletwo
\let\chaptermark\@gobble
\let\sectionmark\@gobble}
}
%%%
%%% Code to compute current timestamp. Some parts by Martin Minow.
%%%
\newcount\hour \newcount\minute
\hour=\time \divide \hour by 60
\minute=\time
\loop \ifnum \minute > 59 \advance \minute by -60 \repeat
\def\thesistime{\ifnum \hour<13 \number\hour:%
\ifnum \minute<10 0\fi
\number\minute
\ifnum \hour<12 \ am\else \ pm\fi
\else \advance \hour by -12 \number\hour:%
\ifnum \minute<10 0\fi
\number\minute \ pm\fi}
\def\thesisdate{\ifcase\month\or
January\or February\or March\or April\or May\or June\or
July\or August\or September\or October\or November\or December\fi
\space\number\day, \number\year}
\newcount\dow
\newcount\leap
\newcount\x
\newcount\y
%leap = year + (month - 14)/12
\leap=\month \advance\leap by -14 \divide\leap by 12
\advance\leap by \year
%dow = (13 * (month + 10 - (month + 10)/13*12) - 1)/5
\dow=\month \advance\dow by 10
\y=\dow \divide\y by 13 \multiply\y by 12
\advance\dow by -\y \multiply\dow by 13 \advance\dow by -1 \divide\dow by 5
%dow += day + 77 + 5 * (leap % 100)/4
\advance\dow by \day \advance\dow by 77
\x=\leap \y=\x \divide\y by 100 \multiply\y by 100 \advance\x by -\y
\multiply\x by 5 \divide\x by 4 \advance\dow by \x
%dow += leap / 400
\x=\leap \divide\x by 400 \advance\dow by \x
%dow -= leap / 100 * 2;
%dow = (dow % 7)
\x=\leap \divide\x by 100 \multiply\x by 2 \advance\dow by -\x
\x=\dow \divide\x by 7 \multiply\x by 7 \advance\dow by -\x
\def\thesisdayofweek{\ifcase\dow
Sunday\or Monday\or Tuesday\or
Wednesday\or Thursday\or Friday\or Saturday\fi}
\def\timestamp{\thesistime, \thesisdayofweek, \thesisdate}
%%%
%%% Spacing commands
%%%
%%% Most from setspace.sty by Geoffrey Tobin
%%%
%%%
\newcommand{\setstretch}[1]{% %%% AME setup to use setspace macros
\def\baselinestretch{#1}%
\@currsize
}
\newcommand{\SetSinglespace}[1]{%
\def\setspace@singlespace{#1}%
}
\SetSinglespace{1}
\newcommand{\singlespacing}{%
\setstretch {\setspace@singlespace}% normally 1
\vskip \baselineskip % Correction for coming into singlespace
}
\newcommand{\onehalfspacing}{%
\setstretch{1.25}% default
\ifcase \@ptsize \relax % 10pt
\setstretch {1.25}%
\or % 11pt
\setstretch {1.213}%
\or % 12pt
\setstretch {1.241}%
\fi
}
\newcommand{\doublespacing}{%
\setstretch {1.667}% default
\ifcase \@ptsize \relax % 10pt
\setstretch {1.667}%
\or % 11pt
\setstretch {1.618}%
\or % 12pt
\setstretch {1.655}%
\fi
}
%%%
%%% AME: This is to correct spacing after the tabular env.
%%% according to the maintainers of setspace
%%%
\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}
%%%
%%% Adjust the spacing for floats (reset to single space)
%%%
\let\latex@xfloat=\@xfloat
\def\@xfloat #1[#2]{%
\latex@xfloat #1[#2]%
\def\baselinestretch{\setspace@singlespace}%
\normalsize
}
%%%
%%% Footnotes, AME, did not bring over minipage footnotes
%%%
\long\def\@footnotetext#1{%
\insert\footins{%
\def\baselinestretch {\setspace@singlespace}%
\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}}
%%%
%%% AME Fix the spacing around display math
%%%
\newcommand{\displayskipstretch}{\baselinestretch}
\newcommand{\setdisplayskipstretch}[1]{\renewcommand{\displayskipstretch}{#1}}
\everydisplay\expandafter{%
\the\everydisplay
\abovedisplayskip \displayskipstretch\abovedisplayskip
\belowdisplayskip \displayskipstretch\belowdisplayskip
\abovedisplayshortskip \displayskipstretch\abovedisplayshortskip
\belowdisplayshortskip \displayskipstretch\belowdisplayshortskip
}
%%%
%%% AME Modified to use the setspace style commands
%%%
\newcommand{\restore@spacing}{%
\par
\vskip \parskip
\vskip \baselineskip
\endgroup
\vskip -\parskip
\vskip -\baselineskip
}
\newenvironment{spacing}[1]{%
\par
\begingroup
\setstretch {#1}%
}{
\restore@spacing
}