-
Notifications
You must be signed in to change notification settings - Fork 3
/
drexel-thesis.dtx
4291 lines (4245 loc) · 150 KB
/
drexel-thesis.dtx
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
% \def\fileversion{0.15}
% \def\filedate{2013/05/21}
% \iffalse meta-comment
%<*driver>
\ProvidesFile{drexel-thesis.dtx}
\documentclass{ltxdoc}
%</driver>
%<*class|driver>
\def\fileversion{0.15}
\def\filedate{2013/05/21}
%</class|driver>
%
% Copyright (C) 2010-2015 C.Y. Ip
% Christopher D. Cera
% Christopher S. Dahn
% Daniel J. Cross
% David T. McWherter
% Evan Sultanik
% Jeff Arahamson
% Mitchell Peabody
% R. Rojas, E
% Raymond Canzanese
% Robert Bernecky
% T. Tsankov
% Vincent A. Cicirello
% W. Trevor King
% -------------------------------------------------------
%
% This file 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 2003/12/01 or later.
%
% Docstrip formatting initially based on Scott Pakin's
% dtxtut/cskeleton.dtx
% http://www.ctan.org/tex-archive/info/dtxtut/
%
% \fi
%
% \iffalse meta-comment
%<class>\NeedsTeXFormat{LaTeX2e}
%<class>\ProvidesClass{drexel-thesis}
%<class> [\filedate\ \fileversion\ Drexel Thesis]
%
% Code for the .ini driver, see \S 2.1 ``The driver file'' of doc.dtx.
%<*driver>
\usepackage[colorlinks=true,]{hyperref}
\hypersetup{pdfauthor={W. Trevor King et al.}}
\hypersetup{pdftitle={drexel-thesis \fileversion\ documentation}}
%</driver>
% Include some useful commands from |xkeyval|'s |<preamble>|.
%<*driver>
\usepackage{xcolor}
\usepackage{listings}
\lstnewenvironment{command}{%
\lstset{columns=flexible,frame=single,backgroundcolor=\color{blue!20},%
xleftmargin=\fboxsep,xrightmargin=\fboxsep,escapeinside=`',gobble=1}}{}
\lstnewenvironment{example}{%
\lstset{basicstyle=\footnotesize\ttfamily,columns=flexible,frame=single,%
backgroundcolor=\color{yellow!20},xleftmargin=\fboxsep,%
xrightmargin=\fboxsep,gobble=1}}{}
%</driver>
% Define a quick and dirty version of |xkeyval|'s |\DescribeOptions|.
%<*driver>
\newenvironment{option}[1]{\begin{macro}{#1}}
{\end{macro}}
%</driver>
% Some commonly used abbreviations from |classes.dtx|.
%<*driver>
\newcommand*{\Lopt}[1]{\textsf {#1}}
\newcommand*{\file}[1]{\texttt {#1}}
\newcommand*{\Lcount}[1]{\textsl {\small#1}}
\newcommand*{\pstyle}[1]{\textsl {#1}}
%</driver>
% Provide easy access to the @ character. Note that this, like the
% short-verbatim markers ||, does not work in |\changes| sections
% because of the way they are cached to the glossary file. If you
% find a way to make them work there, let me know :).
%<*driver>
\newcommand*{\textat}{\makeatletter @ \makeatother}
%</driver>
%<*driver>
\makeatletter
\def\DescribeOption#1{\leavevmode\@bsphack
\marginpar{\raggedleft\PrintDescribeOption{#1}}%
\SpecialOptionIndex{#1}\@esphack\ignorespaces}
\def\PrintDescribeOption#1{\strut\emph{option}\\\MacroFont #1\ }
\def\SpecialOptionIndex#1{\@bsphack
\index{#1\actualchar{\protect\ttfamily#1}
(option)\encapchar usage}%
\index{options:\levelchar#1\actualchar{\protect\ttfamily#1}\encapchar
usage}\@esphack}
\def\DescribeOptions#1{\leavevmode\@bsphack
\marginpar{\raggedleft\strut\emph{options}%
\@for\@tempa:=#1\do{%
\\\strut\MacroFont\@tempa\SpecialOptionIndex\@tempa
}}\@esphack\ignorespaces}
\makeatother
%</driver>
%<*driver>
\EnableCrossrefs
\RecordChanges
\EnableCrossrefs
\begin{document}
\DocInput{drexel-thesis.dtx}
\end{document}
%</driver>
% \fi
%
% \CheckSum{0}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
% Digits \0\1\2\3\4\5\6\7\8\9
% Exclamation \! Double quote \" Hash (number) \#
% Dollar \$ Percent \% Ampersand \&
% Acute accent \' Left paren \( Right paren \)
% Asterisk \* Plus \+ Comma \,
% Minus \- Point \. Solidus \/
% Colon \: Semicolon \; Less than \<
% Equals \= Greater than \> Question mark \?
% Commercial at \@ Left bracket \[ Backslash \\
% Right bracket \] Circumflex \^ Underscore \_
% Grave accent \` Left brace \{ Vertical bar \|
% Right brace \} Tilde \~}
%
%
% \changes{0.1}{2006/01/18}{Rewrite by Daniel J.~Cross}
% \changes{0.2}{2010/01/09}{W.~Trevor King transitioned from thesis.cls
% to drexel-thesis.dtx and did a good deal of reorganizing.}
% \changes{0.3}{2010/01/13}{W.~Trevor King merged drexelthesis.cls
% developed in the Comp.~Sci.~Department by Jeff Abrahamson,
% Evan Sultanik, C.Y.~Ip, Christopher S.~Dahn, Christopher D.~Cera,
% Mitchell Peabody, David T.~McWherter, and Vincent A.~Cicirello.
% Based on the University of Toronto Thesis \LaTeXe\ Class. Also
% greatly improved the documentation by incorperating bits of
% the base/*.dtx files.}
% \changes{0.4}{2010/02/23}{W.~Trevor King repositioned hyperref
% inclusion for proper hyperref overriding. The previous
% implementation couldn't handle \cs{label} for \cs{paragraph} and
% some other section levels. The page number for the reference was
% correct, but the link went to the label's parent chapter.}
% \changes{0.5}{2010/03/03}{W.~Trevor King use hypcap for better
% caption hyperlink anchor placement.}
% \changes{0.6}{2010/03/11}{W.~Trevor King fixed \cs{if@final}
% handling. Previous versions used it more like a hypothetical
% \cs{if@finalspace}. Also adjusted theindex to use a
% \cs{listed@schapter}.}
% \changes{0.10}{2010/05/21}{W.~Trevor King added \cs{DUT*}
% aliases for all public macros and environments and renamed
% \cs{defmonth} and \cs{defyear} to \cs{DUTmonth} and \cs{DUTyear}
% for consistency with the new aliases.}
% \changes{0.13}{2010/07/28}{W.~Trevor King cleaned up TOC/LOT/LOF code.}
% \changes{0.14}{2010/09/21}{Evan Sultanik added the
% \texttt{approvalform} option for including a \LaTeX\ version of
% the T-1 thesis form.}
% \changes{0.15}{2011/04/22}{W.~Trevor King added the
% \texttt{nodraftwatermark} option for clearing previous watermark
% options.}
% \changes{0.15}{2011/04/23}{W.~Trevor King added the
% \texttt{pagebreak} and \texttt{nopagebreak} options for
% controlling page breaking independently of \texttt{final} and
% \texttt{draft}.}
%
% \MakeShortVerb{\|}
% \newcommand{\pkg}[1]{\textsf{#1}}
% \newcommand{\cls}[1]{\textsf{#1}}
%
% \title{The \textsf{drexel-thesis} class\thanks{This document
% corresponds to \textsf{drexel-thesis}~\fileversion, dated \filedate.}}
% \author{W.~Trevor King \\\texttt{[email protected]}
% \and Daniel J.~Cross \and T.~Tsankov \and R.~Rojas. \and Evan A.~Sultanik}
% \date{\filedate}
%
% \maketitle
%
%
% \section{Introduction}
%
% This package defines a \LaTeX\ thesis class for Drexel University
% conforming to the
% \href{http://www.library.drexel.edu/files/services_documents/thesismanual.pdf}
% {Drexel University Thesis Manual version 2009/06/01}.
%
% \section{Usage}
%
% To write a thesis, you load the Drexel thesis definitions by loading
% the \pkg{drexel-thesis} class at the beginning of your
% \LaTeX\ document with the |\documentclass| command. For example,
% \begin{example}
% \documentclass{drexel-thesis}
% \end{example}
%
% For \href{http://www.lyx.org/}{LyX} users, we include a LyX template
% (\file{drexel-thesis.layout}, originally by John K. Parejko) so that
% the previews generated in LyX are similar to those generated by the
% actual \cls{drexel-thesis} class.
%
%
% \subsection{Options}
%
% \DescribeOptions{final,draft}
% The default option (selected if not options are passed) is
% \Lopt{final} mode, which has all the proper formatting and spacing
% for your final product. The other main option is \Lopt{draft} mode,
% which reduces all the spacing in the document, so might be helpful
% when printing out drafts (saves paper).
%
% \Lopt{final} mode corresponds to (with Thesis Manual chapter and
% verse) \\
% \begin{tabular}{r p{0.8\textwidth}}
% \Lopt{oneside} & 1.5 Library Submission Information, Print
% Version: ``All copies must be: \ldots Typed/printed on only one
% side of the page (not double-sided).'' \\
% \Lopt{finalspace} & Assorted single, double, and triple spacing
% directives. \\
% \Lopt{pagebreak} & Conform to thesis pagebreak rules. \\
% \Lopt{dottedtoc} & From the example on p17. \\
% \Lopt{nodraftwatermark} & Clear any earlier watermark options.
% \end{tabular}
%
% \Lopt{draft} mode corresponds to \\
% \begin{tabular}{r p{0.8\textwidth}}
% \Lopt{twoside} & Save space. \\
% \Lopt{draftspace} & Save space. \\
% \Lopt{nopagebreak} & Save space. \\
% \Lopt{dottedtoc} & Might as well be consistent with \Lopt{final}. \\
% \Lopt{xdraftwatermark} & It's good to have a timestamp.
% \end{tabular}
%
% \DescribeOption{subfig}
% \href{http://www.ctan.org/tex-archive/macros/latex/contrib/subfig/}{\pkg{subfig}}
% makes it easy to include and caption multi-part figures. However,
% getting \pkg{subfig} to cooperate with \pkg{floatrow} and
% \pkg{tocloft} can be tricky. If you want to use \pkg{subfig}, just
% pass the \Lopt{subfig} option to \cls{drexel-thesis}, and all the
% pesky details will be taken care of. See \S
% \ref{sec:better-example} for an example.
%
% \DescribeOption{finalspace}
% Loosen spacing.
%
% \DescribeOption{draftspace}
% Tighten spacing.
%
% \DescribeOption{pagebreak}
% Break pages between chapters and chapter-like blocks.
%
% \DescribeOption{nopagebreak}
% Don't break pages between chapters and chapter-like blocks (saves paper).
%
% \DescribeOptions{dottedtoc,boldtoc,
% dottedpart,boldpart,
% dottedchapter,boldchapter}
% These options change how the relevant table of contents lines are
% printed. \LaTeX\ defaults to bold but not dots. The \Lopt{*toc}
% options set all of the types. For example, \Lopt{boldtoc} is
% equivalent to \Lopt{boldchapter,boldpart}.
%
% \DescribeOption{indenttoc}
% The example table of contents in the Manual p17 does not indent
% section entries, etc., so neither does \cls{drexel-thesis}. If you
% \emph{do} want pretty, indented TOCs, like the \LaTeX\ defaults pass
% \Lopt{indenttoc} to \cls{drexel-thesis}.
%
% \DescribeOption{blackref}
% \Lopt{blackref} colors all \pkg{hyperref} links black, so they won't
% stand out in your printed document.
%
% \DescribeOption{draftwatermark}
% \Lopt{draftwatermark} adds ``DRAFT \meta{date}'' watermarks to each
% page. A useful way to remember that the version you're looking at
% is not final. Also helps reviewers tell you what version they're
% correcting. Requires the \pkg{draftmark} package, which allows you
% to override the default watermark style if it is not to your liking
% (\S~\ref{sec:draftmark}).
%
% \DescribeOption{xdraftwatermark}
% \Lopt{xdraftwatermark} is also similar to \Lopt{draftwatermark} but
% depends on the possibly more common \pkg{xcolor}, \pkg{eso-pic}, and
% \pkg{graphicx}.
%
% \DescribeOption{nodraftwatermark}
% \Lopt{nodraftwatermark} clears any earlier watermark options. For
% example
% \begin{example}
% \documentclass[draft,nodraftwatermark]{drexel-thesis}
% \end{example}
% will format your thesis in \Lopt{draft} mode but without a watermark.
% On the other hand,
% \begin{example}
% \documentclass[draftmark,final]{drexel-thesis}
% \end{example}
% will also format your thesis without a watermark, because
% \Lopt{final} sets \Lopt{nodraftwatermark} internally.
%
% \DescribeOption{indentfirst}
% \Lopt{indentfirst} indents the first paragraph after sections etc.
%
% \DescribeOption{approvalform}
% \Lopt{approvalform} includes a copy of the
% \href{http://www.drexel.edu/graduatestudies/forms/Thesis_Approval_Form.pdf}{%
% T-1} approval form as the first page of your thesis/dissertation.
% This form is bound to the front of every thesis/dissertation by the
% library. The version that is generated by this option is typeset in
% \LaTeX\ with the same margins, fonts, etc.~as the rest of
% your document. The title of your dissertation and your name are
% automatically entered.
%
% \DescribeOption{daring}
% \Lopt{daring} breaks the official thesis rules in pursuit of a nicer
% layout.
%
%
% \subsubsection{Interesting \cls{book} options}
%
% \DescribeOption{oneside}
% Setup output for one-sided printing.
%
% \DescribeOption{twoside}
% Setup output for two-sided printing.
%
% \DescribeOption{leqno}
% \Lopt{leqno} places the numbering of formulae on the left hand side
% instead of the right.
%
% \DescribeOption{fleqn}
% \Lopt{fleqn} typesets displayed formulae left-aligned instead of
% centered.
%
%
% \subsection{Macros}
%
% To help deal with name collisions, all \cls{drexel-thesis} macros
% have ``secret'' aliases. For example, |\author| can also be used as
% |\DUTauthor|. This is useful if one of your packages clobbers a
% \cls{drexel-thesis} macro, but you still want to use the original.
% \begin{example}
% \documentclass{drexel-thesis}
% \renewcommand{\author}[1]{I'm forgetting about your author! Muahahaha!}
% \DUTauthor{Your Name Here}
% ...
% \end{example}
%
% \begin{command}
% `\cs{author}\marg{name}'
% \end{command}
% \DescribeMacro{\author}
% \DescribeMacro{\DUTauthor}
% Use this macro to set your full name to \meta{name}, including
% your middle initial or name. For example
% \begin{example}
% \name{Richard P. Feynman}
% \end{example}
% See the Manual \S 3.1 p8.
%
% \begin{command}
% `\cs{title}\marg{title}'
% \end{command}
% \DescribeMacro{\title}
% \DescribeMacro{\DUTtitle}
% Use this macro to set your thesis title to \meta{name}. For example
% \begin{example}
% \title{A New Approach to Quantum Theory}
% \end{example}
% See the Manual p16.
%
% \begin{command}
% `\cs{advisor}\marg{name}'
% \end{command}
% \DescribeMacro{\advisor}
% \DescribeMacro{\DUTadvisor}
% Use this macro to set your advisor's name to \meta{name}. For
% example
% \begin{example}
% \advisor{John A. Wheeler, Ph.D.}
% \end{example}
% You can set multiple advisors, if appropriate, by calling |\advisor|
% multiple times.
% \begin{example}
% \advisor{John A. Wheeler, Ph.D.}
% \advisor{Advisor 2}
% \end{example}
% See the Manual \S 3.1 p8.
%
% \begin{command}
% `\cs{DUTmonth}\marg{month}'
% `\cs{DUTyear}\marg{year}'
% \end{command}
% \DescribeMacro{\DUTmonth}
% \DescribeMacro{\DUTyear}
% Use these macros to set the month with \meta{month} (spelled out)
% and year with \meta{year} (four digits) of your thesis defense. For
% example
% \begin{example}
% \DUTmonth{June}
% \DUTyear{1942}
% \end{example}
% See the Manual \S 3.1 p8.
% There are no non-|DUT| versions of these commands to avoid
% collisions with the plain \TeX\ |\month| and |\year| (see the
% \href{http://www.tug.org/utilities/plain/cseq.html#month-rp}{month}
% and
% \href{http://www.tug.org/utilities/plain/cseq.html#year-rp}{year}
% entries in the HTML version of David Bausum's \emph{TeX Reference
% Manual}).
%
% \begin{command}
% `\cs{degree}\marg{degree}'
% \end{command}
% \DescribeMacro{\degree}
% \DescribeMacro{\DUTdegree}
% Set your target degree with \meta{degree}. From the Manual \S 3.1
% p8.
% \begin{quote}
% Write out the name of the degree for which you are a candidate.
% All Ph.D.\ candidates must use |Doctor of Philosophy|. All
% Master's degree candidates should use the precise degree name
% (e.g., |Master of Science in Mechanical Engineering|).
% \end{quote}
% So, for a Ph.D candidate,
% \begin{example}
% \degree{Doctor of Philosophy}
% \end{example}
%
% \begin{command}
% `\cs{copyrighttext}\marg{text}'
% \end{command}
% \DescribeMacro{\copyrighttext}
% \DescribeMacro{\DUTcopyrighttext}
% Use this macro to set the copyright text to \meta{text}.
% The default value is ``All Rights Reserved.''.
% \begin{example}
% \copyrighttext{Released to the Public Domain.}
% \end{example}
% See the Manual \S 3.2 p9.
%
% \begin{command}
% `\cs{copyrighttextCCBYSA}'
% \end{command}
% \DescribeMacro{\copyrighttextCCBYSA}
% \DescribeMacro{\DUTcopyrighttextCCBYSA}
% There are a number of predefined copyright messages for ease of use \\
% \begin{tabular}{l l}
% |\copyrighttextCCBYSA| &
% Creative Commons Attribution-ShareAlike License Version 3.0.\\
% \end{tabular}
%
% \begin{command}
% `\cs{tableofcontents}'
% \end{command}
% \DescribeMacro{\tableofcontents}
% \DescribeMacro{\DUTtableofcontents}
% Write the table of contents (Manual \S 3.5 p9). You can control the
% verbosity by setting |\tocdepth| according to the following table
% (\href{http://www.image.ufl.edu/help/latex/intext.shtml}{source}). \\
% \begin{tabular}{l l l}
% Depth in document & Section Command & Depth for |\secnumdepth| Command \\
% -1 & |\part| & 1 \\
% 0 & |\chapter| & 2 \\
% 1 & |\section| & 3 \\
% 2 & |\subsection| & 4 \\
% 3 & |\subsubsection| & 5 \\
% 4 & |\paragraph| & 6 \\
% 5 & |\subparagraph| & 7
% \end{tabular} \\
% For example, to expose everything down to and including the
% |\subsection| level, you would add
% \begin{example}
% \setcounter{tocdepth}{2}
% \end{example}
% to your preamble (the section before |\begin{document}|, not the
% |preamble| environment discussed below).
%
% Note that the Manual \S 3.5 p9 requires ``List chapter titles and at
% least the first and second order subdivisions.'', which corresponds
% to a |\tocdepth| of at least 2.
%
% \begin{command}
% `\cs{listoftables}'
% \end{command}
% \DescribeMacro{\listoftables}
% \DescribeMacro{\DUTlistoftables}
% Write the List of Tables page (Manual \S 3.6 p10).
% Skip if you have no tables in your thesis.
%
% \begin{command}
% `\cs{listoffigures}'
% \end{command}
% \DescribeMacro{\listoffigures}
% \DescribeMacro{\DUTlistoffigures}
% Write the List of Figures page (Manual \S 3.7 p10).
% Skip if you have no figures in your thesis.
%
% \begin{command}
% `\cs{blanklines}\marg{num}'
% \end{command}
% \DescribeMacro{\blanklines}
% \DescribeMacro{\DUTblanklines}
% Insert \meta{num} blank lines. For example
% \begin{example}
% \blanklines{2}
% \end{example}
% The skipped lines are always \emph{single spaced} lines, regardless
% of the current line spacing in the environment calling this macro.
%
% \begin{command}
% `\cs{iffinal}\marg{final-mode-action}\marg{draft-mode-action}'
% \end{command}
% \DescribeMacro{\iffinal}
% \DescribeMacro{\DUTiffinal}
% Include \Lopt{final}- or \Lopt{draft}-specific code.
% \begin{example}
% We're in \iffinal{final}{draft} mode!
% \end{example}
%
% \begin{command}
% `\cs{ifdraftwatermark}\marg{draftwatermark-mode-action}\marg{other-action}'
% \end{command}
% \DescribeMacro{\ifdraftwatermark}
% \DescribeMacro{\DUTifdraftwatermark}
% Include \Lopt{draftwatermark}-specific code (e.g. |\draftmarksetup|,
% \S~\ref{sec:draftmark})..
% \begin{example}
% We \ifdraftwatermark{are}{aren't} in draftwatermark mode!
% \end{example}
%
% \begin{command}
% `\cs{ifdaring}\marg{daring-action}\marg{wimpy-action}'
% \end{command}
% \DescribeMacro{\ifdaring}
% \DescribeMacro{\DUTifdaring}
% Include \Lopt{daring}-specific code, with wimpy fallbacks.
% \begin{example}
% \ifdaring{\singlespacing Muahahahaha!}{mumble mumble}.
% \end{example}
%
% \begin{command}
% `\cs{drexellogobw}'
% \end{command}
% \DescribeMacro{\drexellogobw}
% Draws a black-and-white official vector Drexel logo. The image is
% exactly 1~inch wide and 1.016~inches tall. This is accomplished
% using the \pkg{tikz} package (\S~\ref{sec:tikz}). You can enclose
% this command in a |\scalebox| to alter its size.
%
%
% \subsection{Environments}
%
% To help deal with name collisions, all \cls{drexel-thesis}
% environments have ``secret'' aliases. For example, |preamble| can
% also be used as |DUTpreamble|. This is useful if one of your
% packages clobbers a \cls{drexel-thesis} environment, but you still
% want to use the original.
% \begin{example}
% \documentclass{drexel-thesis}
% \renewenvironment{preamble}{%
% What preamble?\begingroup\color{white}}{\endgroup}
% \begin{document}
% \begin{DUTpreamble}
% Thwarted again, evil one!
% ...
% \end{example}
%
%
% \DescribeEnv{preamble}
% \DescribeEnv{DUTpreamble}
% Generalize the |\frontmatter| for the thesis, setting up page
% numbering, including the title page, copyright page etc. The
% |preamble| environment should contain the following elements
% (in order, see the Manual p8)
% \begin{itemize}
% \item |dedication| environment (optional)
% \item |acknowledgments| environment (optional)
% \item |\tableofcontents|
% \item |\listoftables|
% \item |\listoffigures|
% \item |abstract| environment
% \end{itemize}
% This will take care of everything from the title page (Manual \S 3.1),
% up through the blank page before the text (Manual \S 3.9).
%
% \DescribeEnv{dedications}
% \DescribeEnv{DUTdedications}
% Set the dedications text.
% Highlights from the Manual \S 3.3 p9:
% \begin{quote}
% The |Dedications| page is optional.
% \end{quote}
%
% \DescribeEnv{acknowledgments}
% \DescribeEnv{DUTacknowledgments}
% Set the acknowledgments text.
% Highlights from the Manual \S 3.4 p9:
% \begin{quote}
% The |Acknowledgments| page is optional, but most theses do
% include a brief statement of thanks or recognition of any special
% assistance.
% \end{quote}
%
% \DescribeEnv{abstract}
% \DescribeEnv{DUTabstract}
% Set the thesis abstract text. In the Thesis Manual, see \S 3.8
% Abstract (p10) for details, p20 for an example.
%
% Highlights from the Manual:
% \begin{quote}
% The abstract is a summary that allows readers to determine the
% value of reading the full thesis. It should include a statement
% of the problem, an outline of procedures or methods, and a summary
% of results and conclusions.
% \end{quote}
% \begin{itemize}
% \item Word limits: 600 for a Master's thesis, 350 for a Ph.D.\ thesis.
% \end{itemize}
%
% \DescribeEnv{thesis}
% \DescribeEnv{DUTthesis}
% Set the thesis text. In the Thesis Manual, see \S 3.10 Thesis (p11)
% for details.
%
% Highlights from the Manual:
% \begin{quote}
% Divide the text into its major parts/chapters/subsections. No
% fixed arrangement is necessary. The major parts may contain such
% subjects as introduction, general argument, description of
% experimental procedures, research methods, discussion, summary,
% conclusions, recommendations, and other pertinent topics that are
% necessary for a complete understanding on the part of a
% sophisticated or professional reader.
% \end{quote}
%
% \DescribeEnv{vita}
% \DescribeEnv{DUTvita}
% Set the thesis vita text (Ph.D.\ only). See the Manual \S 3.15 p12,
% ``Vita'', for details.
%
% Highlights from the Manual:
% \begin{quote}
% The Vita is a biography of the student written in the third person
% in either essay or outline form. It should include the full name,
% place and date of birth (optional), country of citizenship
% (optional), institutions attended, degrees and honors received,
% titles of publications, teaching and professional experience, and
% other pertinent data. The Vita must be one page or less.
% \end{quote}
%
%
% \subsection{Hints}
%
%
% \subsubsection{Package installation}
% \label{sec:dependencies}
%
% All the packages this class depends on must be installed somewhere
% in your texmf tree (they probably already are). If not, you will
% recieve warning messages on compilation such as
% \begin{example}
% ! LaTeX Error: File `missing-package.sty' not found.
% \end{example}
% You should then install the missing package(s) using your operating
% systems package manager, or grab the missing package from
% \href{http://www.ctan.org/}{CTAN}, and install them following TODO.
%
%
% \subsubsection{Tables and Figures}
%
% \pkg{drexel-thesis} loads
% \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
% to define the |\includegraphics| macro,
% \href{http://www.ctan.org/tex-archive/macros/latex/required/caption/}{\pkg{caption}}
% for pretty caption formatting,
% \href{http://www.ctan.org/tex-archive/macros/latex/required/floatrow/}{\pkg{floatrow}}
% for placing captions, and
% \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{hypcap}}
% for placing caption anchors.
%
% Simple float definitions will look like
% \begin{example}
% \begin{table}
% \caption{Some caption text}
% \begin{tabular}{...}
% ...
% \end{tabular}
% \end{table}
% \end{example}
% or
% \begin{example}
% \begin{float}
% \includegraphics{...}
% \caption{Some caption text}
% \end{float}
% \end{example}
% For more useful float information, see the examples in \S
% \ref{sec:better-example-part} and the
% \href{http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions}
% {\LaTeX\ wikibook page}.
%
%
% \subsubsection{Citations}
%
% I highly recommend using \BibTeX\ and
% \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}{\pkg{natbib}}.
% See \S \ref{sec:better-example} for a simple example.
%
% Suggested options:\\
% \begin{tabular}{r p{0.8\textwidth}}
% |super| & selects citations in superscript mode. \\
% |sort&compress| & automatically sorts and compresses compound
% citations (|\pcite{a,b,...}|).
% \end{tabular}
%
%
% \subsubsection{References}
%
% Easier cross referencing with
% \href{http://www.ctan.org/tex-archive/macros/latex/contrib/cleveref/}{\pkg{cleveref}}.
% Is a wonderful tool for easy, consistent crosslinking via |\cref|,
% |\Cref|, etc.. The manual is also very good.
% Note that if you use |\part|s in your document, you need to tell
% \pkg{cleveref} how to deal with them:
% \begin{example}
% \usepackage{cleveref}
% \crefname{part}{part}{parts}
% \end{example}
%
%
% \subsubsection{Hyperlinks}
%
% \cls{drexel-thesis} loads
% \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{%
% \pkg{hyperref}}.
% with the options:\\
% \begin{tabular}{r p{0.8\textwidth}}
% |colorlinks| & color the link letters instead of drawing colored boxes. \\
% \end{tabular}
%
% The default \pkg{hyperref} colors can be a bit jarring. Feel free
% to use \Lopt{blackref} or override them yourself:
% \begin{example}
% \usepackage{xcolor}
% \definecolor{dark-gray}{gray}{0.3}
% \hypersetup{citecolor=dark-gray}
% \end{example}
% See
% \href{http://mirror.ctan.org/macros/latex/contrib/hyperref/doc/manual.pdf}{%
% the hyperref manual} (\S 3.4 Extension options)
% for a list of |*color| options.
%
% If running with a pdftex-based driver, |\author|, |\title|, and
% |\degree| automatically set |pdfauthor|, |pdftitle|, and
% |pdfsubject| respectively. You can use the |\hypersetup| macro to
% set options overriding these defaults.
%
%
% \subsubsection{Developing large \LaTeX\ documents}
%
% A thesis may take a while to compile, especially if it contains
% lots of images, etc.. One way to save time, is to use |\includeonly|
% when including chapter \file{*.tex} files (see
% \href{http://en.wikibooks.org/wiki/TeX/includeonly}{the \TeX\ Wikibook}).
% Usage would be something like
% \begin{example}
% \documentclass{drexel-thesis}
% ...
% \includeonly{chapter2.tex,chapter3.tex}
% \begin{document}
% ...
% \begin{thesis}
% \include{chapter1.tex}
% \include{chapter2.tex}
% \include{chapter3.tex}
% \include{chapter4.tex}
% \end{thesis}
% ...
% \end{document}
% \end{example}
% which would only compile chapters two and three. Don't confuse the
% similar commands |\include| and |\input|. The more fundamental
% |\input| just inserts the file contents at that point, while
% |\include|
% \begin{itemize}
% \item may only be used after |\begin{document}|
% \item acts like |\clearpage \input{} \clearpage|
% \item will not crash on nonexistent files
% \end{itemize}
%
%
% \StopEventually{\pagebreak\PrintChanges}
%
%
% \subsubsection{Passing options to packages used by \textsf{drexel-thesis}}
%
%
% \cls{drexel-thesis} uses a number of \LaTeX\ packages internally to
% format your thesis. Sometimes you also want to use these packages
% directly, but \cls{drexel-thesis} is not passing them the option(s)
% you need. The way to deal with these issues is
% \href{http://www.tex.ac.uk/cgi-bin/texfaq2html?label=optionclash}{%
% \cs{PassOptionsToPackage}}.
% \begin{command}
% `\cs{PassOptionsToPackage}\marg{option,...}\marg{package}'
% \end{command}
% For example, if you need to pass \Lopt{table} to \pkg{xcolor}, use:
% \begin{example}
% \PassOptionToPackage{table}{xcolor}
% \documentclass{drexel-thesis}
% \end{example}
% Note that you need to call \cs{PassOptionsToPackage} before the
% target package is imported via \cs{documentclass}.
%
%
% \section{Implementation}
% \begin{macrocode}
%<*class>
% \end{macrocode}
%
% For simplicity, we'll derive everything from the standard \cls{book}
% class.
%
%
% \subsection{Option Processing}
%
% Include
% \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xkeyval/}{\pkg{xkeyval}}
% for easier option parsing. If the package is not installed on your system,
% see \S \ref{sec:dependencies} for installation instructions.
% \begin{macrocode}
\RequirePackage{xkeyval}
% \end{macrocode}
%
% Define some booleans to store option states
% \begin{macrocode}
\newif\if@mainmatter \@mainmattertrue
\newif\if@DUT@subfigopt
\newif\if@DUT@pagebreak
\newif\if@dottedchapter
\newif\if@boldchapter
\newif\if@boldpart
\newif\if@dottedpart
\newif\if@indenttoc
\newif\if@blackref
\newif\if@draftwatermark
\newif\if@xdraftwatermark
\newif\if@indentfirst
\newif\if@final
\newif\if@daring
\newif\if@approvalform
% \end{macrocode}
%
% \begin{macro}{\iffinal}
% \begin{macro}{\DUTiffinal}
% Setup a user-friendly means for including \Lopt{final}- or
% \Lopt{draft}-specific code.
% \changes{0.7}{2010/03/14}{W.~Trevor King added iffinal macro.}
% \changes{0.15}{2011/04/22}{W.~Trevor King added DUTiffinal macro.}
% \begin{macrocode}
\newcommand\iffinal[2]{\if@final #1\else #2\fi}
\let\DUTiffinal\iffinal
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\ifdraftwatermark}
% \begin{macro}{\DUTifdraftwatermark}
% Setup a user-friendly means for including
% \Lopt{draftwatermark}-specific code (e.g. |\draftmarksetup|,
% \S~\ref{sec:draftmark}).
% \changes{0.15}{2011/04/22}{W.~Trevor King added ifdraftwatermark macro.}
% \changes{0.15}{2011/04/22}{W.~Trevor King added DUTifdraftwatermark macro.}
% \begin{macrocode}
\newcommand\ifdraftwatermark[2]{\if@draftwatermark #1\else #2\fi}
\let\DUTifdraftwatermark\ifdraftwatermark
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\ifdaring}
% \begin{macro}{\DUTifdaring}
% Setup a user-friendly means for including \Lopt{daring}-specific
% code.
% \changes{0.11}{2010/06/04}{W.~Trevor King added ifdaring macro.}
% \changes{0.15}{2011/04/22}{W.~Trevor King added DUTifdaring macro.}
% \begin{macrocode}
\newcommand\ifdaring[2]{\if@daring #1\else #2\fi}
\let\DUTifdaring\ifdaring
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\DUT@makeapprovalform}
% Typesets the T-1 thesis/dissertation approval form.
% \changes{0.14}{2010/09/21}{Evan Sultanik added macro.}
% \begin{macrocode}
\newcommand\DUT@makeapprovalform{
\thispagestyle{empty}
\begingroup
\newlength{\tempskipa}
\newlength{\tempskipb}
% \end{macrocode}
% Don't indent paragraphs on this page.
% \begin{macrocode}
\parindent \z@
% \end{macrocode}
% Setup $\mbox{tempskipa} = \mbox{logo width} + \mbox{4pt}$ and
% $\mbox{tempskipb} = \mbox{textwidth} - \mbox{tempskipa} -
% \mbox{4pt}$. The first |pt| ensures the logo will fit in the left
% column; the second provides some buffer space between the minipages.
% \begin{macrocode}
\settowidth{\tempskipa}{\drexellogobw}
\addtolength{\tempskipa}{1em}
\setlength{\tempskipb}{\textwidth}
\addtolength{\tempskipb}{-\tempskipa}
\addtolength{\tempskipb}{-1em}
% \end{macrocode}
% Add the logo and form title in columns. Each column is in a minipage.
% \begin{macrocode}
\begin{minipage}[c]{\tempskipa}
% \end{macrocode}
% |\raisebox| drops the logo so that the image is centered on the baseline.
% \begin{macrocode}
\raisebox{-0.5\height}{\drexellogobw}
\end{minipage}
\hfill
\begin{minipage}[c]{\tempskipb}
% \end{macrocode}
% Unlike |\newline| or |\\|, |\linebreak| justifies the current line
% before requesting a newline.
% \begin{macrocode}
\textbf{\Huge Office of Graduate Studies} \linebreak
\vskip 0.1\baselineskip
% \end{macrocode}
% The original form lacks the spaces around the slash (|/|), but
% \LaTeX's font and kerning make the second line more compact in our
% version. Allowing stretchy spaces around the slash helps the second
% line look more balanced.
% \begin{macrocode}
\textbf{\LARGE Dissertation / Thesis Approval Form} \linebreak
\end{minipage}
\vskip 2\baselineskip
This form is for use by all doctoral and master's students with a
dissertation/thesis requirement. Please print clearly as the
library will bind a copy of this form with each copy of the
dissertation/thesis. All doctoral dissertations must conform to
university format requirements, which is the responsibility of the
student and supervising professor. Students should obtain a copy of
the Thesis Manual located on the library website.
\vspace*{\fill}
% \end{macrocode}
% Setup $\mbox{tempskipb} = \mbox{left column width}$ and
% $\mbox{tempskipa} = \mbox{textwidth} - \mbox{tempskipb} -
% \mbox{4em}$. The |4em| provides some buffer space between the
% columns.
% \begin{macrocode}
\settowidth{\tempskipb}{Dissertation/Thesis Title:}
\setlength{\tempskipa}{\textwidth}
\addtolength{\tempskipa}{-\tempskipb}
\addtolength{\tempskipa}{-4em}
% \end{macrocode}
% Double space the student-contolled section to allow plenty of space
% for hand-written entries.
% \begin{macrocode}
\begin{spacing}{2}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} l p{\tempskipa}}
\textbf{Dissertation/Thesis Title:} & \@DUT@title \\
\textbf{Author:} & \@DUT@author
\end{tabular*}
\vspace*{\fill}
\begin{center}
\textbf{This dissertation/thesis is hereby accepted and approved.}
\end{center}
\vspace*{\fill}
\textbf{Signatures:} \\
Examining Committee \\
% \end{macrocode}
% The left most column is left blank and the stretchy space between
% columns indents the middle column. I think this looks bad, but
% that's how Drexel's version of the T-1 form looks.
% \begin{macrocode}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} p{0pt} l p{\tempskipa}}
& Chair & \hrulefill \\
& Members & \hrulefill \\
& & \hrulefill \\
& & \hrulefill \\
& & \hrulefill \\
& & \hrulefill \\
& Academic Advisor & \hrulefill \\