Added \iffinal and bumped to v0.7
[drexel-thesis.git] / drexel-thesis.dtx
1 % \def\fileversion{0.7}
2 % \def\filedate{2010/03/14}
3 % \iffalse meta-comment
4 %<class>\def\fileversion{0.7}
5 %<class>\def\filedate{2010/03/14}
6 %
7 % Copyright (C) 2010  C.Y. Ip
8 %                     Christopher D. Cera
9 %                     Christopher S. Dahn
10 %                     Daniel J. Cross
11 %                     David T. McWherter
12 %                     Evan Sultanik
13 %                     Jeff Arahamson
14 %                     Mitchell Peabody
15 %                     R. Rojas, E
16 %                     Robert Bernecky
17 %                     T. Tsankov
18 %                     Vincent A. Cicirello
19 %                     W. Trevor King
20 % -------------------------------------------------------
21
22 % This file may be distributed and/or modified under the
23 % conditions of the LaTeX Project Public License, either version 1.3
24 % of this license or (at your option) any later version.
25 % The latest version of this license is in:
26 %
27 %    http://www.latex-project.org/lppl.txt
28 %
29 % and version 1.3 or later is part of all distributions of LaTeX 
30 % version 2003/12/01 or later.
31 %
32 % Docstrip formatting initially based on Scott Pakin's
33 % dtxtut/cskeleton.dtx
34 %   http://www.ctan.org/tex-archive/info/dtxtut/
35 %
36 % \fi
37 %
38 % \iffalse meta-comment
39 %<*driver>
40 \ProvidesFile{drexel-thesis.dtx}
41 %</driver>
42 %<class>\NeedsTeXFormat{LaTeX2e}
43 %<class>\ProvidesClass{drexel-thesis}
44 %<class> [\filedate\ \fileversion\ Drexel Thesis]
45 %
46 % Code for the .ini driver, see section "2.1 The driver file" of doc.dtx.
47 %<*driver>
48 \documentclass{ltxdoc}
49 \usepackage[colorlinks=true]{hyperref}
50 %</driver>
51 % Include some useful commands from |xkeyval|'s |<preamble>|.
52 %<*driver>
53 \usepackage{xcolor}
54 \usepackage{listings}
55 \lstnewenvironment{command}{%
56   \lstset{columns=flexible,frame=single,backgroundcolor=\color{blue!20},%
57     xleftmargin=\fboxsep,xrightmargin=\fboxsep,escapeinside=`',gobble=1}}{}
58 \lstnewenvironment{example}{%
59   \lstset{basicstyle=\footnotesize\ttfamily,columns=flexible,frame=single,%
60     backgroundcolor=\color{yellow!20},xleftmargin=\fboxsep,%
61     xrightmargin=\fboxsep,gobble=1}}{}
62 %</driver>
63 % Define a quick and dirty version of |xkeyval|'s |\DescribeOptions|.
64 %<*driver>
65 \newenvironment{option}[1]{\begin{macro}{#1}}
66                           {\end{macro}}
67 %</driver>
68 % Some commonly used abbreviations from |classes.dtx|.
69 %<*driver>
70 \newcommand*{\Lopt}[1]{\textsf {#1}}
71 \newcommand*{\file}[1]{\texttt {#1}}
72 \newcommand*{\Lcount}[1]{\textsl {\small#1}}
73 \newcommand*{\pstyle}[1]{\textsl {#1}}
74 %</driver>
75 %<*driver>
76 \makeatletter
77 \def\DescribeOption#1{\leavevmode\@bsphack
78               \marginpar{\raggedleft\PrintDescribeOption{#1}}%
79               \SpecialOptionIndex{#1}\@esphack\ignorespaces}
80 \def\PrintDescribeOption#1{\strut\emph{option}\\\MacroFont #1\ }
81 \def\SpecialOptionIndex#1{\@bsphack
82     \index{#1\actualchar{\protect\ttfamily#1}
83            (option)\encapchar usage}%
84     \index{options:\levelchar#1\actualchar{\protect\ttfamily#1}\encapchar
85            usage}\@esphack}
86 \def\DescribeOptions#1{\leavevmode\@bsphack
87   \marginpar{\raggedleft\strut\emph{options}%
88   \@for\@tempa:=#1\do{%
89     \\\strut\MacroFont\@tempa\SpecialOptionIndex\@tempa
90   }}\@esphack\ignorespaces}
91 \makeatother
92 %</driver>
93 %<*driver>
94 \EnableCrossrefs
95 \RecordChanges
96 \EnableCrossrefs         
97 \begin{document}
98   \DocInput{drexel-thesis.dtx}
99 \end{document}
100 %</driver>
101 % \fi
102 %
103 % \CheckSum{0}
104 %
105 % \CharacterTable
106 %  {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
107 %   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
108 %   Digits        \0\1\2\3\4\5\6\7\8\9
109 %   Exclamation   \!     Double quote  \"     Hash (number) \#
110 %   Dollar        \$     Percent       \%     Ampersand     \&
111 %   Acute accent  \'     Left paren    \(     Right paren   \)
112 %   Asterisk      \*     Plus          \+     Comma         \,
113 %   Minus         \-     Point         \.     Solidus       \/
114 %   Colon         \:     Semicolon     \;     Less than     \<
115 %   Equals        \=     Greater than  \>     Question mark \?
116 %   Commercial at \@     Left bracket  \[     Backslash     \\
117 %   Right bracket \]     Circumflex    \^     Underscore    \_
118 %   Grave accent  \`     Left brace    \{     Vertical bar  \|
119 %   Right brace   \}     Tilde         \~}
120 %
121 %
122 % \changes{0.1}{2006/01/18}{Rewrite by Daniel J.~Cross}
123 % \changes{0.2}{2010/01/09}{W.~Trevor King transitioned from thesis.cls
124 %   to drexel-thesis.dtx and did a good deal of reorganizing.}
125 % \changes{0.3}{2010/01/13}{W.~Trevor King merged drexelthesis.cls
126 %   developed in the Comp.~Sci.~Department by Jeff Abrahamson,
127 %   Evan Sultanik, C.Y.~Ip, Christopher S.~Dahn, Christopher D.~Cera,
128 %   Mitchell Peabody, David T.~McWherter, and Vincent A.~Cicirello.
129 %   Based on the University of Toronto Thesis \LaTeXe\ Class.  Also
130 %   greatly improved the documentation by incorperating bits of
131 %   the base/*.dtx files.}
132 % \changes{0.4}{2010/02/23}{W.~Trevor King repositioned hyperref
133 %   inclusion for proper hyperref overriding.  The previous
134 %   implementation couldn't handle $\backslash$label for
135 %   $\backslash$paragraph and some other section levels.  The page
136 %   number for the reference was correct, but the link went to the
137 %   label's parent chapter.}
138 % \changes{0.5}{2010/03/03}{W.~Trevor King use hypcap for better
139 %   caption hyperlink anchor placement.}
140 % \changes{0.6}{2010/03/11}{W.~Trevor King fixed
141 %   $\backslash$if\@ final handling.  Previous versions used
142 %   it more like a hypothetical $\backslash$if\@ finalspace.
143 %   Also adjusted theindex to use a listed\@ schapter.}
144 %
145 % \MakeShortVerb{\|}
146 % \newcommand{\pkg}[1]{\textsf{#1}}
147 % \newcommand{\cls}[1]{\textsf{#1}}
148 % ^^A\newcommand{\BibTeX}{{\scshape Bib}\TeX}
149
150 % \title{The \textsf{drexel-thesis} class\thanks{This document
151 %   corresponds to \textsf{drexel-thesis}~\fileversion, dated \filedate.}}
152 % \author{W.~Trevor King \\\texttt{wking@drexel.edu}
153 %         \and Daniel J.~Cross \and T.~Tsankov \and R.~Rojas.}
154 % \date{\filedate}
155 %
156 % \maketitle
157 %
158 %
159 % \section{Introduction}
160 %
161 % This package defines a \LaTeX\ thesis class for Drexel University
162 % conforming to the
163 % \href{http://www.library.drexel.edu/files/services_documents/thesismanual.pdf}
164 %   {Drexel University Thesis Manual version 2009/06/01}.
165 %
166 % \section{Usage}
167 %
168 % To write a thesis, you load the Drexel thesis definitions by loading
169 % the \pkg{drexel-thesis} class at the beginning of your
170 % \LaTeX\ document with the |\documentclass| command.  For example,
171 % \begin{example}
172 %   \documentclass{drexel-thesis}
173 % \end{example}
174 %
175 % \subsection{Options}
176 %
177 % \DescribeOptions{final,draft}
178 % The default option (selected if not options are passed) is
179 % \Lopt{final} mode, which has all the proper formatting and spacing
180 % for your final product. The other main option is \Lopt{draft} mode,
181 % which reduces all the spacing in the document, so might be helpful
182 % when printing out drafts (saves paper).
183 %
184 % \Lopt{final} mode corresponds to (with Thesis Manual chapter and
185 % verse) \\
186 % \begin{tabular}{r p{0.8\textwidth}}
187 %   \Lopt{oneside} & 1.5 Library Submission Information, Print
188 %     Version: ``All copies must be: \ldots Typed/printed on only one
189 %     side of the page (not double-sided).'' \\
190 %   \Lopt{finalspace} & Assorted single, double, and triple spacing
191 %   directives. \\
192 %   \Lopt{dottedtoc} & From the example on p17.
193 % \end{tabular}
194 %
195 % \Lopt{draft} mode corresponds to \\
196 % \begin{tabular}{r p{0.8\textwidth}}
197 %   \Lopt{twoside} & Save space. \\
198 %   \Lopt{draftspace} & Save space. \\
199 %   \Lopt{dottedtoc} & Might as well be consistent with \Lopt{final}. \\
200 %   \Lopt{mydraftwatermark} & It's good to have a timestamp. \\
201 % \end{tabular}
202 %
203 % \DescribeOption{subfig}
204 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/subfig/}{\pkg{subfig}}
205 % makes it easy to include and caption multi-part figures.  However,
206 % getting \pkg{subfig} to cooperate with \pkg{floatrow} and
207 % \pkg{tocloft} can be tricky.  If you want to use \pkg{subfig}, just
208 % pass the \Lopt{subfig} option to \cls{drexel-thesis}, and all the
209 % pesky details will be taken care of.  See Section
210 % \ref{sec:better-example} for an example.
211 %
212 % \DescribeOption{finalspace}
213 % Loosen spacing.
214 %
215 % \DescribeOption{draftspace}
216 % Tighten spacing.
217 %
218 % \DescribeOptions{dottedtoc,boldtoc,
219 %                  dottedpart,boldpart,
220 %                  dottedchapter,boldchapter}
221 % These options change how the relevant table of contents lines are
222 % printed.  \LaTeX\ defaults to bold but not dots.  The \Lopt{*toc}
223 % options set all of the types.  For example, \Lopt{boldtoc} is
224 % equivalent to \Lopt{boldchapter,boldpart}.
225 %
226 % \DescribeOption{indenttoc}
227 % The example table of contents in the Manual p17 does not indent
228 % section entries, etc., so neither does \cls{drexel-thesis}.  If you
229 % \emph{do} want pretty, indented TOCs, like the \LaTeX\ defaults pass
230 % \Lopt{indenttoc} to \cls{drexel-thesis}.
231 %
232 % \DescribeOption{draftwatermark}
233 % \Lopt{draftwatermark} adds ``DRAFT \meta{date}'' watermarks to each
234 % page.  A useful way to remember that the version you're looking at
235 % is not final.  Also helps reviewers tell you what version they're
236 % correcting.  Requires the \pkg{draftmark} package.
237 %
238 % \DescribeOption{mydraftwatermark}
239 % \Lopt{mydraftwatermark} is similar to \Lopt{draftwatermark} but
240 % depends on the possibly more common \pkg{xcolor}, \pkg{eso-pic},
241 % and \pkg{graphicx}.
242 %
243 % \DescribeOption{indentfirst}
244 % \Lopt{indentfirst} indents the first paragraph after sections etc.
245 %
246 %
247 % \subsubsection{Interesting \cls{book} options}
248
249 % \DescribeOption{oneside}
250 % Setup output for one-sided printing.
251 %
252 % \DescribeOption{twoside}
253 % Setup output for two-sided printing.
254 %
255 % \DescribeOption{leqno}
256 % \Lopt{leqno} places the numbering of formulae on the left hand side
257 % instead of the right.
258 %
259 % \DescribeOption{fleqn}
260 % \Lopt{fleqn} typesets displayed formulae left-aligned instead of
261 % centered.
262 %
263 %
264 % \subsection{Macros}
265 %
266 % \begin{command}
267 %   `\cs{author}\marg{name}'
268 % \end{command}
269 % \DescribeMacro{\author}
270 % Use this macro to set your full name to \meta{name}, including
271 % your middle initial or name.  For example
272 % \begin{example}
273 %   \name{Richard P. Feynman}
274 % \end{example}
275 % See the Manual 3.1 p8.
276 %
277 % \begin{command}
278 %   `\cs{title}\marg{title}'
279 % \end{command}
280 % \DescribeMacro{\title}
281 % Use this macro to set your thesis title to \meta{name}.  For example
282 % \begin{example}
283 %   \title{A New Approach to Quantum Theory}
284 % \end{example}
285 % See the Manual p16.
286 %
287 % \begin{command}
288 %   `\cs{advisor}\marg{name}'
289 % \end{command}
290 % \DescribeMacro{\advisor}
291 % Use this macro to set your advisor's name to \meta{name}.  For
292 % example
293 % \begin{example}
294 %   \advisor{John A. Wheeler, Ph.D.}
295 % \end{example}
296 % You can set multiple advisors, if appropriate, by calling |\advisor|
297 % multiple times.
298 % \begin{example}
299 %   \advisor{John A. Wheeler, Ph.D.}
300 %   \advisor{Advisor 2}
301 % \end{example}
302 % See the Manual 3.1 p8.
303 %
304 % \begin{command}
305 %   `\cs{defmonth}\marg{month}'
306 %   `\cs{defyear}\marg{year}'
307 % \end{command}
308 % \DescribeMacro{\defmonth}
309 % \DescribeMacro{\defyear}
310 % Use these macros to set the month with \meta{month} (spelled out)
311 % and year with \meta{year} (four digits) of your thesis defense.  For
312 % example
313 % \begin{example}
314 %   \defmonth{June}
315 %   \defyear{1942}
316 % \end{example}
317 % See the Manual 3.1 p8.
318 % The |def| in |\def*| avoids collisions with the plain \TeX\ 
319 % |\month| and |\year| (see the
320 % \href{http://www.tug.org/utilities/plain/cseq.html#month-rp}{month}
321 % and
322 % \href{http://www.tug.org/utilities/plain/cseq.html#year-rp}{year}
323 % entries in the HTML version of David Bausum's \emph{TeX Reference
324 % Manual}).
325 %
326 % \begin{command}
327 %   `\cs{degree}\marg{degree}'
328 % \end{command}
329 % \DescribeMacro{\degree}
330 % Set your target degree with \meta{degree}.  From the Manual 3.1 p8.
331 % \begin{quote}
332 %   Write out the name of the degree for which you are a candidate.
333 %   All Ph.D.\ candidates must use |Doctor of Philosophy|.  All
334 %   Master's degree candidates should use the precise degree name
335 %   (e.g., |Master of Science in Mechanical Engineering|).
336 % \end{quote}
337 % So, for a Ph.D candidate,
338 % \begin{example}
339 %   \degree{Doctor of Philosophy}
340 % \end{example}
341 %
342 % \begin{command}
343 %   `\cs{copyrighttext}\marg{text}'
344 % \end{command}
345 % \DescribeMacro{\copyrighttext}
346 % Use this macro to set the copyright text to \meta{text}.
347 % The default value is ``All Rights Reserved.''.
348 % \begin{example}
349 %   \copyrighttext{Released to the Public Domain.}
350 % \end{example}
351 % See the Manual 3.2 p9.
352 %
353 % \begin{command}
354 %   `\cs{copyrighttextCCBYSA}'
355 % \end{command}
356 % There are a number of predefined copyright messages for ease of use \\
357 % \begin{tabular}{l l}
358 %   |\copyrighttextCCBYSA| &
359 %     Creative Commons Attribution-ShareAlike License Version 3.0.\\
360 % \end{tabular}
361 %
362 % \begin{command}
363 %   `\cs{tableofcontents}'
364 % \end{command}
365 % \DescribeMacro{\tableofcontents}
366 % Write the table of contents (Manual 3.5 p9).  You can control the
367 % verbosity by setting |\tocdepth| according to the following table
368 % (\href{http://www.image.ufl.edu/help/latex/intext.shtml}{source}). \\
369 % \begin{tabular}{l l l}
370 %   Depth in document & Section Command & Depth for |\secnumdepth| Command \\
371 %   -1 & |\part| & 1 \\
372 %    0 & |\chapter| & 2 \\
373 %    1 & |\section| & 3 \\
374 %    2 & |\subsection| & 4 \\
375 %    3 & |\subsubsection| & 5 \\
376 %    4 & |\paragraph| & 6 \\
377 %    5 & |\subparagraph| & 7
378 % \end{tabular} \\
379 % For example, to expose everything down to and including the
380 % |\subsection| level, you would add
381 % \begin{example}
382 %   \setcounter{tocdepth}{2}
383 % \end{example}
384 % to your preamble (the section before |\begin{document}|, not the
385 % |preamble| environment discussed below).
386 %
387 % Note that the Manual 3.5 p9 requires ``List chapter titles and at
388 % least the first and second order subdivisions.'', which corresponds
389 % to a |\tocdepth| of at least 2.
390 %
391 % \begin{command}
392 %   `\cs{listoftables}'
393 % \end{command}
394 % \DescribeMacro{\listoftables}
395 % Write the List of Tables page (Manual 3.6 p10).
396 % Skip if you have no tables in your thesis.
397 %
398 % \begin{command}
399 %   `\cs{listoffigures}'
400 % \end{command}
401 % \DescribeMacro{\listoffigures}
402 % Write the List of Figures page (Manual 3.7 p10).
403 % Skip if you have no figures in your thesis.
404 %
405 % \begin{command}
406 %   `\cs{blanklines}\marg{num}'
407 % \end{command}
408 % \DescribeMacro{\blanklines}
409 % Insert \meta{num} blank lines.  For example
410 % \begin{example}
411 %   \blanklines{2}
412 % \end{example}
413 % The skipped lines are always \emph{single spaced} lines, regardless
414 % of the current line spacing in the environment calling this macro.
415 %
416 % \begin{command}
417 %   `\cs{iffinal}\marg{final-mode-action}\marg{draft-mode-action}'
418 % \end{command}
419 % \DescribeMacro{\iffinal}
420 % Include \Lopt{final}- or \Lopt{draft}-specific code.
421 % \begin{example}
422 %   We're in \iffinal{final}{draft} mode!
423 % \end{example}
424 %
425 %
426 % \subsection{Environments}
427 %
428 % \DescribeEnv{preamble}
429 % Generalize the |\frontmatter| for the thesis, setting up page
430 % numbering, including the title page, copyright page etc.  The
431 % |preamble| environment should contain the following elements
432 % (in order, see the Manual p8)
433 % \begin{itemize}
434 %   \item |dedication| environment (optional)
435 %   \item |acknowledgments| environment (optional)
436 %   \item |\tableofcontents|
437 %   \item |\listoftables|
438 %   \item |\listoffigures|
439 %   \item |abstract| environment
440 % \end{itemize}
441 % This will take care of everything from the title page (Manual 3.1),
442 % up through the blank page before the text (Manual 3.9).
443 %
444 % \DescribeEnv{dedications}
445 % Set the dedications text.
446 % Highlights from the Manual 3.3 p9:
447 % \begin{quote}
448 %   The |Dedications| page is optional.
449 % \end{quote}
450 %
451 % \DescribeEnv{acknowledgments}
452 % Set the acknowledgments text.
453 % Highlights from the Manual 3.4 p9:
454 % \begin{quote}
455 %   The |Acknowledgments| page is optional, but most theses do
456 %   include a brief statement of thanks or recognition of any special
457 %   assistance.
458 % \end{quote}
459 %
460 % \DescribeEnv{abstract}
461 % Set the thesis abstract text.  In the Thesis Manual, see section 3.8
462 % Abstract (p10) for details, p20 for an example.
463 %
464 % Highlights from the Manual:
465 % \begin{quote}
466 %   The abstract is a summary that allows readers to determine the
467 %   value of reading the full thesis.  It should include a statement
468 %   of the problem, an outline of procedures or methods, and a summary
469 %   of results and conclusions.
470 % \end{quote}
471 % \begin{itemize}
472 %   \item Word limits: 600 for a Master's thesis, 350 for a Ph.D.\ thesis.
473 % \end{itemize}
474 %
475 % \DescribeEnv{thesis}
476 % Set the thesis text.  In the Thesis Manual, see section 3.10 Thesis
477 % (p11) for details.
478 %
479 % Highlights from the Manual:
480 % \begin{quote}
481 %   Divide the text into its major parts/chapters/subsections.  No
482 %   fixed arrangement is necessary.  The major parts may contain such
483 %   subjects as introduction, general argument, description of
484 %   experimental procedures, research methods, discussion, summary,
485 %   conclusions, recommendations, and other pertinent topics that are
486 %   necessary for a complete understanding on the part of a
487 %   sophisticated or professional reader.
488 % \end{quote}
489 %
490 % \DescribeEnv{vita}
491 % Set the thesis vita text (Ph.D.\ only).  See the Manual 3.15 p12,
492 % ``Vita'', for details.
493 %
494 % Highlights from the Manual:
495 % \begin{quote}
496 %   The Vita is a biography of the student written in the third person
497 %   in either essay or outline form.  It should include the full name,
498 %   place and date of birth (optional), country of citizenship
499 %   (optional), institutions attended, degrees and honors received,
500 %   titles of publications, teaching and professional experience, and
501 %   other pertinent data.  The Vita must be one page or less.
502 % \end{quote}
503 %
504 %
505 % \subsection{Hints}
506 %
507 %
508 % \subsubsection{Package installation}
509 % \label{sec:dependencies}
510 %
511 % All the packages this class depends on must be installed somewhere
512 % in your texmf tree (they probably already are).  If not, you will
513 % recieve warning messages on compilation such as
514 % \begin{example}
515 %   ! LaTeX Error: File `missing-package.sty' not found.
516 % \end{example}
517 % You should then install the missing package(s) using your operating
518 % systems package manager, or grab the missing package from
519 % \href{http://www.ctan.org/}{CTAN}, and install them following TODO.
520 %
521 %
522 % \subsubsection{Tables and Figures}
523 %
524 % \pkg{drexel-thesis} loads
525 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
526 % to define the |\includegraphics| macro,
527 % \href{http://www.ctan.org/tex-archive/macros/latex/required/caption/}{\pkg{caption}}
528 % for pretty caption formatting,
529 % \href{http://www.ctan.org/tex-archive/macros/latex/required/floatrow/}{\pkg{floatrow}}
530 % for placing captions, and
531 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{hypcap}}
532 % for placing caption anchors.
533 %
534 % Simple float definitions will look like
535 % \begin{example}
536 %   \begin{table}
537 %      \caption{Some caption text}
538 %      \begin{tabular}{...}
539 %        ...
540 %      \end{tabular}
541 %   \end{table}
542 % \end{example}
543 % or
544 % \begin{example}
545 %   \begin{float}
546 %      \includegraphics{...}
547 %      \caption{Some caption text}
548 %   \end{float}
549 % \end{example}
550 % For more useful float information, see the examples in Section
551 % \ref{sec:better-example-part} and the
552 % \href{http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions}
553 %   {\LaTeX\ wikibook page}.
554 %
555 %
556 % \subsubsection{Citations}
557 %
558 % I highly recommend using \BibTeX\ and
559 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}{\pkg{natbib}}.
560 % See Section \ref{sec:better-example} for a simple example.
561 %
562 % Suggested options:\\
563 % \begin{tabular}{r p{0.8\textwidth}}
564 %   |super| & selects citations in superscript mode. \\
565 %   |sort&compress| & automatically sorts and compresses compound
566 %     citations (|\pcite{a,b,...}|).
567 % \end{tabular}
568 %
569 %
570 % \subsubsection{References}
571 %
572 % Easier cross referencing with
573 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/cleveref/}{\pkg{cleveref}}.
574 % Is a wonderful tool for easy, consistent crosslinking via |\cref|,
575 % |\Cref|, etc..  The manual is also very good.
576 % Note that if you use |\part|s in your document, you need to tell
577 % \pkg{cleveref} how to deal with them:
578 % \begin{example}
579 %   \usepackage{cleveref}
580 %   \crefname{part}{part}{parts}
581 % \end{example}
582 %
583 %
584 % \subsubsection{Hyperlinks}
585 %
586 % \cls{drexel-thesis} loads
587 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{\pkg{hyperref}}.
588 % with the options:\\
589 % \begin{tabular}{r p{0.8\textwidth}}
590 %   |colorlinks| & color the link letters instead of drawing colored boxes. \\
591 % \end{tabular}
592 %
593 % If running with a pdftex-based driver, |\author|, |\title|, and
594 % |\degree| automatically set |pdfauthor|, |pdftitle|, and
595 % |pdfsubject| respectively.  You can use the |\hypersetup| macro to
596 % set options overriding these defaults.
597 %
598 %
599 % \subsubsection{Developing large \LaTeX\ documents}
600 %
601 % A thesis may take a while to compile, especially if it contains
602 % lots of images, etc..  One way to save time, is to use |\includeonly|
603 % when including chapter \file{*.tex} files (see
604 % \href{http://en.wikibooks.org/wiki/TeX/includeonly}{the \TeX\ Wikibook}).
605 % Usage would be something like
606 % \begin{example}
607 % \documentclass{drexel-thesis}
608 % ...
609 % \includeonly{chapter2.tex,chapter3.tex}
610 % \begin{document}
611 % ...
612 % \begin{thesis}
613 % \include{chapter1.tex}
614 % \include{chapter2.tex}
615 % \include{chapter3.tex}
616 % \include{chapter4.tex}
617 % \end{thesis}
618 % ...
619 % \end{document}
620 % \end{example}
621 % which would only compile chapters two and three.  Don't confuse the
622 % similar commands |\include| and |\input|.  The more fundamental
623 % |\input| just inserts the file contents at that point, while
624 % |\include|
625 % \begin{itemize}
626 %   \item may only be used after |\begin{document}|
627 %   \item acts like |\clearpage \input{} \clearpage|
628 %   \item will not crash on nonexistent files
629 % \end{itemize}
630 %
631 %
632 % \StopEventually{\pagebreak\PrintChanges}
633 %
634 %
635 % \section{Implementation}
636 %    \begin{macrocode}
637 %<*class>
638 %    \end{macrocode}
639 %
640 % For simplicity, we'll derive everything from the standard \cls{book}
641 % class.
642 %
643 %
644 % \subsection{Option Processing}
645 %
646 % Include
647 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xkeyval/}{\pkg{xkeyval}}
648 % for easier option parsing.  If the package is not installed on your system,
649 % see Section \ref{sec:dependencies} for installation instructions.
650 %    \begin{macrocode}
651 \RequirePackage{xkeyval}
652 %    \end{macrocode}
653 %
654 % Define some booleans to store option states
655 %    \begin{macrocode}
656 \newif\if@mainmatter \@mainmattertrue
657 \newif\if@DUT@subfigopt
658 \newif\if@dottedchapter 
659 \newif\if@boldchapter
660 \newif\if@boldpart
661 \newif\if@dottedpart
662 \newif\if@indenttoc
663 \newif\if@draftwatermark
664 \newif\if@mydraftwatermark
665 \newif\if@indentfirst
666 \newif\if@final
667 %    \end{macrocode}
668 %
669 % \begin{macro}{\iffinal}
670 % Setup a user-friendly means for including \Lopt{final}- or
671 % \Lopt{draft}-specific code.
672 % \changes{0.7}{2010/03/14}{W.~Trevor King added macro.}
673 %    \begin{macrocode}
674 \newcommand\iffinal[2]{\if@final #1\else #2\fi}
675 %    \end{macrocode}
676 % \end{macro}
677 %
678 % \begin{option}{subfig}
679 % Set \Lopt{subfig} flag
680 %    \begin{macrocode}
681 \DeclareOptionX{subfig}{\@DUT@subfigopttrue}
682 %    \end{macrocode}
683 % \end{option}
684 %
685 % \begin{option}{finalspace}
686 %    \begin{macrocode}
687 \DeclareOptionX{finalspace}{
688   \setlength\overfullrule{0pt}
689   \def\@cont@sep{1} % content page separation (# blanklines between entries)
690   \def\@ssp{1} % single space
691   \def\@dsp{2} % double space
692   \def\@tsp{3} % triple space
693 }
694 %    \end{macrocode}
695 % \end{option}
696 % \begin{option}{draftspace}
697 %    \begin{macrocode}
698 \DeclareOptionX{draftspace}{
699   \setlength\overfullrule{5pt}
700   \def\@cont@sep{0} % content page separation (# blanklines between entries)
701   \def\@ssp{1} % single space
702   \def\@dsp{1} % double space
703   \def\@tsp{2} % triple space
704 %    \end{macrocode}
705 %  Don't force chapters onto right-hand pages.
706 %    \begin{macrocode}
707   \PassOptionsToClass{openany}{book}
708 }
709 %    \end{macrocode}
710 % \end{option}
711 %
712 % \begin{option}{dottedpart}
713 %    \begin{macrocode}
714 \DeclareOptionX{dottedpart}{\@dottedparttrue}
715 %    \end{macrocode}
716 % \end{option}
717 % \begin{option}{dottedchapter}
718 %    \begin{macrocode}
719 \DeclareOptionX{dottedchapter}{\@dottedchaptertrue}
720 %    \end{macrocode}1
721 % \end{option}
722 % \begin{option}{boldpart}
723 %    \begin{macrocode}
724 \DeclareOptionX{boldpart}{\@boldparttrue}
725 %    \end{macrocode}
726 % \end{option}
727 % \begin{option}{boldchapter}
728 %    \begin{macrocode}
729 \DeclareOptionX{boldchapter}{\@boldchaptertrue}
730 %    \end{macrocode}
731 % \end{option}
732 % \begin{option}{dottedtoc}
733 %    \begin{macrocode}
734 \DeclareOptionX{dottedtoc}{
735   \setkeys{drexel-thesis.cls}{dottedpart}
736   \setkeys{drexel-thesis.cls}{dottedchapter}
737 }
738 %    \end{macrocode}
739 % \end{option}
740 % \begin{option}{boldtoc}
741 %    \begin{macrocode}
742 \DeclareOptionX{boldtoc}{
743   \setkeys{drexel-thesis.cls}{boldpart}
744   \setkeys{drexel-thesis.cls}{boldchapter}
745 }
746 %    \end{macrocode}
747 % \end{option}
748 %
749 % \begin{option}{indenttoc}
750 % Set \Lopt{indenttoc} flag
751 %    \begin{macrocode}
752 \DeclareOptionX{indenttoc}{\@indenttoctrue}
753 %    \end{macrocode}
754 % \end{option}
755 %
756 % \begin{option}{draftwatermark}
757 % Set \Lopt{draftwatermark} flag
758 %    \begin{macrocode}
759 \DeclareOptionX{draftwatermark}{%
760   \@draftwatermarktrue
761   \@mydraftwatermarkfalse}
762 %    \end{macrocode}
763 % \end{option}
764 %
765 % \begin{option}{mydraftwatermark}
766 % Set \Lopt{mydraftwatermark} flag
767 %    \begin{macrocode}
768 \DeclareOptionX{mydraftwatermark}{%
769   \@mydraftwatermarktrue
770   \@draftwatermarkfalse}
771 %    \end{macrocode}
772 % \end{option}
773 %
774 % \begin{option}{indentfirst}
775 % Set \Lopt{indentfirst} flag
776 %    \begin{macrocode}
777 \DeclareOptionX{indentfirst}{\@indentfirsttrue}
778 %    \end{macrocode}
779 % \end{option}
780 %
781 % Define the book options that \Lopt{final} and \Lopt{draft} need to
782 % access.
783 % \begin{option}{oneside}
784 %    \begin{macrocode}
785 \DeclareOptionX{oneside}{\PassOptionsToClass{oneside}{book}}
786 %    \end{macrocode}
787 % \end{option}
788 %
789 % \begin{option}{twoside}
790 %    \begin{macrocode}
791 \DeclareOptionX{twoside}{\PassOptionsToClass{twoside}{book}}
792 %    \end{macrocode}
793 % \end{option}
794 %
795 % \begin{option}{final}
796 %    \begin{macrocode}
797 \DeclareOptionX{final}{
798   \@finaltrue
799   \setkeys{drexel-thesis.cls}{oneside}
800   \setkeys{drexel-thesis.cls}{finalspace}
801   \setkeys{drexel-thesis.cls}{dottedtoc}
802 }
803 %    \end{macrocode}
804 % \end{option}
805 %
806 % \begin{option}{draft}
807 %    \begin{macrocode}
808 \DeclareOptionX{draft}{
809   \@finalfalse
810   \setkeys{drexel-thesis.cls}{twoside}
811   \setkeys{drexel-thesis.cls}{draftspace}
812   \setkeys{drexel-thesis.cls}{dottedtoc}
813   \setkeys{drexel-thesis.cls}{mydraftwatermark}
814 }
815 %    \end{macrocode}
816 % \end{option}
817 %
818 % Use the default \cls{book} implementation for any remaining options
819 % including \Lopt{oneside}, \Lopt{twoside}, \Lopt{leqno}, \Lopt{fleqn},
820 % \ldots.
821 %    \begin{macrocode}
822 \DeclareOptionX*{\PassOptionsToClass{\CurrentOption}{book}}
823 %    \end{macrocode}
824 %
825 % Execute the default options
826 %    \begin{macrocode}
827 \ExecuteOptionsX{final}
828 %    \end{macrocode}
829 %
830 % Process options and load the book class
831 %    \begin{macrocode}
832 \ProcessOptionsX\relax
833 \LoadClass{book}
834 %    \end{macrocode}
835 %
836 %
837 % \subsection{Internal package includes}
838 %
839 %
840 % Include some other packages we'll need.  If the package is not
841 % installed on your system, see Section \ref{sec:dependencies} for
842 % installation instructions.
843 %
844 % For many packages, we want the same functionality for both
845 % \Lopt{final} and \Lopt{draft} modes.  We pass \Lopt{final} to most
846 % of those packages to override a possible \Lopt{draft} option passed
847 % to \pkg{drexel-thesis}.
848 %
849 %
850 % \subsubsection{\pkg{setspace}}
851 %
852 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/setspace/}{\pkg{setspace}}
853 % for double spacing.
854 %    \begin{macrocode}
855 \RequirePackage{setspace}
856 %    \end{macrocode}
857 %
858 %
859 % \subsubsection{\pkg{calc}}
860 %
861 % \href{http://www.ctan.org/tex-archive/macros/latex/required/tools/}{\pkg{calc}}
862 % for |\set@lines@length| macro (page
863 %   \pageref{sec:implement-line-spacing}).
864 %    \begin{macrocode}
865 \RequirePackage{calc}
866 %    \end{macrocode}
867 %
868 %
869 % \subsubsection{\pkg{graphicx}}
870 %
871 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
872 % for |\includegraphics|.  Not strictly necessary, but I can't imagine
873 % a thesis without figures.
874 %    \begin{macrocode}
875 \RequirePackage[final]{graphicx}
876 %    \end{macrocode}
877 %
878 % We include the graphicx package now so we can
879 % pass \Lopt{final}, because some later packages include it with no options,
880 % and a \Lopt{final} include after that produces errors like
881 % \begin{example}
882 %   l.104 \RequirePackage
883 %                        [final]{ifpdf}
884 %   The package graphicx has already been loaded with options:
885 %     []
886 %   There has now been an attempt to load it with options
887 %     [final]
888 % \end{example}
889 %
890 %
891 % \subsubsection{\pkg{draftmark}}
892 %
893 % The Comp.~Sci.\ class used
894 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftcopy/}{\pkg{draftcopy}}
895 % to add their watermarks, but as of the current 2002/02/25 v2.16, it
896 % uses postscript specials, and so doesn't work with pdf\LaTeX.
897 % Instead we use the recent (catalogued 2009/11/03)
898 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftmark/}{\pkg{draftmark}}
899 % which unfortunately has a number of apparently non-standard dependencies
900 % (\href{http://www.ctan.org/tex-archive/macros/latex/contrib/etextools/}{\pkg{etextools}},
901 %  \href{http://www.ctan.org/tex-archive/macros/latex/contrib/etoolbox/}{\pkg{etoolbox}},
902 %  \href{http://www.ctan.org/tex-archive/macros/latex/contrib/lastpage/}{\pkg{lastpage}},
903 %  \href{http://www.ctan.org/tex-archive/macros/latex/contrib/ltxnew/}{\pkg{ltxnew}},
904 %  \href{http://www.ctan.org/tex-archive/macros/latex/contrib/pagerange/}{\pkg{pagerange}},
905 %  \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xifthen/}{\pkg{xifthen}},
906 %  if only I had the space to install |texlive-latexextra| |:p|).
907 % The output is, however, very flexible, and it \emph{does} work with
908 % both \LaTeX\ and pdf\LaTeX.  If you don't like the default watermark,
909 % you can also adjust the particulars with |\draftmarksetup|.
910 %    \begin{macrocode}
911 \if@draftwatermark
912   \RequirePackage[draft,allpages,mark={DRAFT \today},
913                   fontsize=2cm,grayness=0.9]{draftmark}
914 \fi
915 %    \end{macrocode}
916 %
917 % Here is Evan's alternative implementation This will not look right
918 % as a DVI, but it'll look fine once rendered to either a PS or PDF.
919 %    \begin{macrocode}
920 \if@mydraftwatermark
921 %    \end{macrocode}
922 % Use \pkg{eso-pic} for |\AddToShipoutPicture|.
923 %    \begin{macrocode}
924   \RequirePackage{eso-pic}
925 %    \end{macrocode}
926 % Use \pkg{xcolor} for |\definecolor|.
927 %    \begin{macrocode}
928   \RequirePackage{xcolor}
929   \definecolor{watermark}{rgb}{0.9,0.9,0.9}
930 %    \end{macrocode}
931 % Set the font explicitly to avoid being effected by the last text on
932 % the page having some strange font.  |\sffamily| sets a sans serif
933 % font.
934 %    \begin{macrocode}
935   \newcommand{\watermarkfont}{%
936     \color{watermark}}%\fontfamily{phv}\selectfont\sffamily}
937   \newcommand{\watermark}{%
938     \rule{4.25in}{0pt}\raisebox{5.5in}{%
939       \makebox[0pt]{%
940 %    \end{macrocode}
941 % |\rotatebox| and |\resizebox| from \pkg{graphicx}.
942 %    \begin{macrocode}
943         \rotatebox[origin=c]{45}{%
944           \resizebox{!}{1.5in}{%
945             {\watermarkfont DRAFT}%
946     }}}}
947     \raisebox{4.2in}{%
948       \makebox[0pt]{%
949         \rotatebox[origin=c]{45}{%
950           \resizebox{!}{.6in}{%
951             {\watermarkfont \qquad\today}%
952     }}}}}
953   \AddToShipoutPicture{\watermark{}}
954 \fi
955 %    \end{macrocode}
956 %
957 %
958 % \subsubsection{\pkg{indentfirst}}
959 %
960 % Indent the first paragraph after sections etc.\ with
961 % \href{http://www.ctan.org/tex-archive/macros/latex/required/tools/}{\pkg{indentfirst}}.
962 %    \begin{macrocode}
963 \if@indentfirst
964   \RequirePackage{indentfirst}
965 \fi
966 %    \end{macrocode}
967 %
968 %
969 % \subsubsection{\pkg{geometry}}
970 %
971 % Setup page margins with
972 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/geometry/}{\pkg{geometry}}.
973 % From the Manual p5:
974 % \begin{itemize}
975 %   \item The left margin must be at least 1 1/2'' (1.5 inches)
976 %   throughout the document.
977 %   \item All other margins (top, bottom, and right) must be at least 1''.
978 % \end{itemize}
979 % And from the Manual 1.5 p4, Print Version:
980 % \begin{quote}
981 %   The paper size must be 8 1/2'' x 11''.
982 % \end{quote}
983 %    \begin{macrocode}
984 \RequirePackage[letterpaper,margin=1in,bindingoffset=0.5in]{geometry}
985 %    \end{macrocode}
986 % Note that we include the \pkg{geometry} package after loading \cls{book} to
987 % override the margin manipulation that takes place in \cls{book}.
988 %
989 %
990 % \subsubsection{\pkg{tocloft}}
991 %
992 % Typeset the table of contents, etc., with
993 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/tocloft/}{\pkg{tocloft}}.
994 %    \begin{macrocode}
995 \if@DUT@subfigopt
996   \RequirePackage[subfigure]{tocloft}
997 \else
998   \RequirePackage{tocloft}
999 \fi
1000 %    \end{macrocode}
1001 % The \Lopt{subfigure} option sets up \pkg{tocloft} for
1002 % \pkg{subfig}/\pkg{subfigure} compatibility. See the
1003 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/tocloft/tocloft.pdf}{%
1004 %   \pkg{tocloft} manual, Section 2.1}
1005 % for details.
1006 %
1007 % The configuration of \pkg{tocloft} takes place in Sections
1008 % \ref{sec:implement-toc}, \ref{sec:implement-lof}, and
1009 % \ref{sec:implement-lot}.
1010 %
1011 %
1012 % \subsubsection{\pkg{caption}}
1013 %
1014 % Get nice caption formatting with
1015 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/caption/}{\pkg{caption}}.
1016 % From the Manual p5:
1017 % \begin{itemize}
1018 %   \item The left margin must be at least 1 1/2'' (1.5 inches)
1019 %   throughout the document.
1020 %   \item All other margins (top, bottom, and right) must be at least 1''.
1021 % \end{itemize}
1022 %    \begin{macrocode}
1023 \RequirePackage[margin=10pt,labelfont=bf,labelsep=colon]{caption}
1024 %    \end{macrocode}
1025 % You can change these settings if you like using |\captionsetup|.
1026 %
1027 %
1028 % \subsubsection{\pkg{floatrow}}
1029 % \label{sec:floatrow}
1030 %
1031 % Enforce caption placement with
1032 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/floatrow/}{\pkg{floatrow}}.
1033 % From the Manual 2.3 p6, ``Tables and Figures'', 
1034 % \begin{quote}
1035 %   \begin{itemize}
1036 %     \item Place figure captions below figures.
1037 %     \item Place table captions above tables.
1038 %   \end{itemize}
1039 % \end{quote}
1040 %    \begin{macrocode}
1041 \RequirePackage{floatrow}
1042 \floatsetup[table]{style=plaintop}
1043 \floatsetup{captionskip=10pt}
1044 \floatsetup[table]{captionskip=10pt}
1045 %    \end{macrocode}
1046 % Use \pkg{fr-subfig} for \pkg{floatrow}/\pkg{subfig} compatibility.
1047 % See the \pkg{floatrow} documentation (Sec.~7.1, ``The \pkg{subfig}
1048 % package'') and \pkg{subfig} documentation (Sec.~4.3,
1049 % ``\pkg{FloatRow} Package'') for details.
1050 %    \begin{macrocode}
1051 \if@DUT@subfigopt
1052   \RequirePackage{fr-subfig}
1053 \fi
1054 %    \end{macrocode}
1055 % We set up the three-line surrounding spaces in Section
1056 % \ref{sec:implement-floats}.
1057 %
1058 % You can change these settings using |\floatsetup|, but you probably
1059 % won't need to.
1060 %
1061 %
1062 % \subsubsection{\pkg{subfig}}
1063 % \label{sec:subfig}
1064 %
1065 % Allow multi-part figures with
1066 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/subfig/}{\pkg{subfig}}.
1067 %    \begin{macrocode}
1068 \if@DUT@subfigopt
1069   \RequirePackage{subfig}
1070 \fi
1071 %    \end{macrocode}
1072 %
1073 %
1074 % \subsubsection{\pkg{fancyhdr}}
1075 % \label{sec:fancyhdr}
1076 %
1077 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/}{\pkg{fancyhdr}}
1078 % for correct page numbering and fancy headers.
1079 % From the Manual 2.3 p5, ``Pagination''
1080 % \begin{quote}
1081 %   Place page numbers in the upper right-hand corner of the page,
1082 %   3/4'' from the top.
1083 % \end{quote}
1084 %    \begin{macrocode}
1085 \RequirePackage{fancyhdr}
1086 %    \end{macrocode}
1087 % Setup the standard |fancy| format.
1088 %    \begin{macrocode}
1089 \pagestyle{fancy}
1090 \fancyhf{}
1091 %    \end{macrocode}
1092 % Turn off the header rule by setting its width to $0$.
1093 %    \begin{macrocode}
1094 \renewcommand{\headrulewidth}{0pt}
1095 %    \end{macrocode}
1096 % 0.4 pt is \pkg{fancyhdr}'s default |\headrulewidth|, so we'll
1097 % recycle the value.
1098 %    \begin{macrocode}
1099 \renewcommand{\footrulewidth}{0.4pt}
1100 %    \end{macrocode}
1101 % |\leftmark| is the higher level mark, see |\chaptermark| below.
1102 % |\rightmark| is the lower level mark, see |\sectionmark| below.
1103 % We put the lower level mark to the outside because it changes more
1104 % often.  Page numbers also go on the outside.
1105 %    \begin{macrocode}
1106 \fancyfoot[RE,LO]{\scshape\leftmark}
1107 \fancyfoot[LE,RO]{\scshape\rightmark}
1108 \fancyhead[LE,RO]{\thepage}
1109 %    \end{macrocode}
1110 % Override the |plain| format (for part pages, etc.).
1111 %    \begin{macrocode}
1112 \fancypagestyle{plain}{
1113   \fancyhf{}
1114   \renewcommand{\footrulewidth}{0pt}
1115   \fancyhead[LE,RO]{\thepage}
1116 }
1117 %    \end{macrocode}
1118 % Keep the |empty| format at its default.
1119 %    \begin{macrocode}
1120 \fancypagestyle{empty}{
1121   \fancyhf{}
1122   \renewcommand{\footrulewidth}{0pt}
1123 }
1124 %    \end{macrocode}
1125 %
1126 % Note that the Chapter / Section footer is not required.  You can
1127 % remove the footer text and rule entirely with.
1128 % \begin{example}
1129 %   \renewcommand{\footrulewidth}{0pt}
1130 %   \fancyfoot[RE,LO]{}
1131 %   \fancyfoot[LE,RO]{}
1132 % \end{example}
1133 %
1134 %
1135 % \subsubsection{\pkg{ifpdf}}
1136 %
1137 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{ifpdf}}
1138 % for detecting PDF drivers.  We use it to configure \pkg{hyperref} below.
1139 %    \begin{macrocode}
1140 \RequirePackage{ifpdf}
1141 %    \end{macrocode}
1142
1143 % \subsubsection{\pkg{hyperref}}
1144 % \label{sec:hyperref}
1145 %
1146 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{\pkg{hyperref}}
1147 % for hyperlinks.  Not strictly necessary, but I can't imagine a
1148 % thesis without it.  We actually include this later
1149 % (Section~\ref{sec:hyperref-inclusion}), because \pkg{hyperref}
1150 % sticks its fingers into \emph{everything} and we want it to use our
1151 % versions of some macros (e.g. |\@sect|) but not others
1152 % (e.g. |thebibliography|).
1153 %
1154 %
1155 % \subsubsection{\pkg{hypcap}}
1156 % \label{sec:hypcap}
1157 %
1158 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{hypcap}}
1159 % for placing caption hyperlink anchors.  Must be included after
1160 % \pkg{hypercap}, so the actual inclusion is in
1161 % Section~\ref{sec:hypcap-inclusion}).
1162 %
1163 %
1164 % \subsection{\LaTeX\ overrides and extensions}
1165 %
1166 % Here we change the behavior of a bunch of macros and environments
1167 % from \file{latex.ltx} (generated by \file{format.ins} in
1168 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{base}}).
1169 % We'll copy in their original notes along with their code, following
1170 % the relevant documentation an order given in \file{format.ins} and
1171 % the associated \file{*.dtx} files.
1172 %
1173 %
1174 % \subsubsection{\file{ltsect.dtx}}
1175 %
1176 % \begin{macro}{\title}
1177 % |\title| for use in |\maketitle|. If not given |\maketitle| will
1178 % produce a warning message (\file{ltsect.dtx}, L117).
1179 %
1180 % We extend |\title| to set \pkg{hyperref}'s |pdftitle|.
1181 % (\file{ltsect.dtx}, L117).
1182 %    \begin{macrocode}
1183 \let\DUT@title\title
1184 \renewcommand{\title}[1]{
1185   \DUT@title{#1}
1186   \ifpdf \hypersetup{pdftitle={\@title}} \fi
1187 }
1188 %    \end{macrocode}
1189 % \end{macro}
1190 %
1191 % \begin{macro}{\author}
1192 % |\author| for use in |\maketitle|.  If not given |\maketitle| will
1193 % produce a warning message (\file{ltsect.dtx}, L129).
1194 %
1195 % We extend |\author| to set \pkg{hyperref}'s |pdfauthor| if we're
1196 % writing a PDF to avoid using |\AtBeginDocument| or some such.
1197 % (\file{ltsect.dtx}, L129).
1198 %    \begin{macrocode}
1199 \let\DUT@author\author
1200 \renewcommand{\author}[1]{
1201   \DUT@author{#1}
1202   \ifpdf \hypersetup{pdfauthor={\@author}} \fi
1203 }
1204 %    \end{macrocode}
1205 % \end{macro}
1206 %
1207 % In a similar vein, we some additional meta-info macros.
1208 %
1209 %  \begin{macro}{\defmonth}
1210 %  \begin{macro}{\@defmonth}
1211 % |\defmonth| (defense month) for use in |\maketitle|.  If not given
1212 % |\maketitle| will produce an error message.
1213 %    \begin{macrocode}
1214 \def\defmonth#1{\gdef\def@month{#1}}
1215 \def\def@month{\@latex@error{No \noexpand\defmonth given}\@ehc}
1216 %    \end{macrocode}
1217 %  \end{macro}
1218 %  \end{macro}
1219 %
1220 %  \begin{macro}{\defyear}
1221 %  \begin{macro}{\@defyear}
1222 % |\defyear| (defense year) for use in |\maketitle|.  If not given
1223 % |\maketitle| will produce an error message.
1224 %    \begin{macrocode}
1225 \def\defyear#1{\gdef\def@year{#1}}
1226 \def\def@year{\@latex@error{No \noexpand\defyear given}\@ehc}
1227 %    \end{macrocode}
1228 %  \end{macro}
1229 %  \end{macro}
1230 %
1231 %  \begin{macro}{\degree}
1232 %  \begin{macro}{\@degree}
1233 % |\degree| for use in |\maketitle|.  If not given |\maketitle| will
1234 % produce an error message.
1235 %    \begin{macrocode}
1236 \def\degree#1{\gdef\@degree{#1}
1237   \ifpdf \hypersetup{pdfsubject={\@degree}} \fi}
1238 \def\@degree{\@latex@error{No \noexpand\degree given}\@ehc}
1239 %    \end{macrocode}
1240 %  \end{macro}
1241 %  \end{macro}
1242 %
1243 %  \begin{macro}{\copyrighttext}
1244 %  \begin{macro}{\@copyrighttext}
1245 % |\copyrighttext| for use in |\makecopyright|.  There are a number of
1246 % blurbs predefined in Section \ref{sec:implement-copyright}.
1247 %    \begin{macrocode}
1248 \def\copyrighttext#1{\gdef\@copyrighttext{#1}}
1249 \def\@copyrighttext{All Rights Reserved.}
1250 %    \end{macrocode}
1251 %  \end{macro}
1252 %  \end{macro}
1253 %
1254 %  \begin{macro}{\advisor}
1255 %  \begin{macro}{\@advisor}
1256 % |\advisor| for use in |\maketitle|.  If not given |\maketitle| will
1257 % produce an error message.  We get a bit fancier here to support
1258 % multiple advisors.
1259 %    \begin{macrocode}
1260 \newcounter{advisors}
1261 \setcounter{advisors}{0}
1262 \newcommand\advisor[1]{%
1263   \ifx
1264 %    \end{macrocode}
1265 % If |#1| is |\empty|, this call is a no-op.
1266 %    \begin{macrocode}
1267     \empty{#1}
1268   \else
1269 %    \end{macrocode}
1270 % Save the advisors to |\@advisor@a|, |\@advisor@b|, \ldots.
1271 % |\alph{|\Lcount{COUNTER}|}| (\file{ltcounts.dtx}, L319) prints the
1272 %   value of \Lcount{COUNTER} as a lowercase letter: $1 =$~a, $2 =$~
1273 %   b, etc.
1274 %    \begin{macrocode}
1275     \stepcounter{advisors}
1276     \expandafter\gdef\csname @advisor@\alph{advisors}\endcsname{#1}
1277   \fi}
1278 \newcommand\@advisor{%
1279   \ifnum\c@advisors=0%
1280     \@latex@error{No \noexpand\advisor given}\@ehc%
1281   \else%
1282 %    \end{macrocode}
1283 % Start a group so \Lcount{advisor@loop} is released afterwards to
1284 % save memory.
1285 %    \begin{macrocode}
1286     \begingroup%
1287       \newcounter{advisor@loop}%
1288       \setcounter{advisor@loop}{1}%
1289 %    \end{macrocode}
1290 % Print the first advisor.
1291 %    \begin{macrocode}
1292       \csname @advisor@\alph{advisor@loop}\endcsname\relax%
1293 %    \end{macrocode}
1294 % For any remaining advisors\ldots
1295 %    \begin{macrocode}
1296       \loop\ifnum\c@advisor@loop<\c@advisors%
1297         \stepcounter{advisor@loop}%
1298 %    \end{macrocode}
1299 % Print the connecting text.
1300 %    \begin{macrocode}
1301         \ifnum\c@advisor@loop=\c@advisors%
1302           \ifnum\c@advisors=2%
1303 %    \end{macrocode}
1304 % The next advisor if the last of two.
1305 %    \begin{macrocode}
1306             {\ and\ }%
1307           \else%
1308 %    \end{macrocode}
1309 % The next advisor if the last of many.
1310 %    \begin{macrocode}
1311             {, and\ }%
1312           \fi%
1313         \else%
1314 %    \end{macrocode}
1315 % The next advisor is not the last.
1316 %    \begin{macrocode}
1317           {,\ }%
1318         \fi%
1319 %    \end{macrocode}
1320 % Print the advisor's name.
1321 %    \begin{macrocode}
1322         \csname @advisor@\alph{advisor@loop}\endcsname\relax%
1323       \repeat%
1324     \endgroup%
1325   \fi}
1326 %    \end{macrocode}
1327 %  \end{macro}
1328 %  \end{macro}
1329 %
1330 % \paragraph{baselineskip}
1331 % \label{sec:implement-line-spacing}
1332 %
1333 % \begin{macro}{\DUT@baselineskip}
1334 % Since we'll be messing with the spacing, save the single-spaced
1335 % baseline.
1336 %   \changes{0.3}{2010/01/13}{Use $\backslash$setlength to store the
1337 %     value at the default font.  The previous version used
1338 %     $\backslash$let, which made $\backslash$DUT\@baselineskip a
1339 %     synonym for $\backslash$baselineskip that changed with font
1340 %     size.}
1341 %    \begin{macrocode}
1342 \newlength\DUT@baselineskip
1343 \setlength\DUT@baselineskip\baselineskip
1344 %    \end{macrocode}
1345 % \end{macro}
1346 %
1347 % \begin{command}
1348 %   `\cs{set@lines@length}\marg{length}\marg{N}'
1349 % \end{command}
1350 % \begin{macro}{\set@lines@length}
1351 % Many specifications in the Manual refer to ``\meta{N} blank lines''.
1352 % |\set@lines@length| allows you to set a length to a given number of
1353 % lines, protecting against external |spacing| environments.  It
1354 % requires \pkg{calc} for the multiplication.
1355 %    \begin{macrocode}
1356 \newcommand{\set@lines@length}[2]{%
1357   \setlength{#1}{\DUT@baselineskip * {#2}}}
1358 %    \end{macrocode}
1359 % \end{macro}
1360 %
1361 %
1362 % Fix |\@ssect| and |\@sect| from \file{latex.ltx} to give single
1363 % spaced headings.
1364 %
1365 % \begin{macro}{\@sect}
1366 % Pseudocode for the |\@sect| command
1367 % \begin{example}
1368 % \@sect{NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}[ARG1]{ARG2}
1369 %           ==
1370 %   BEGIN
1371 %    IF LEVEL > \c@secnumdepth
1372 %      THEN \@svsec :=L null
1373 %      ELSE \refstepcounter{NAME}
1374 %           \@svsec :=L BEGIN \@seccntformat{#1}\relax END
1375 %    FI
1376 %    IF AFTERSKIP > 0
1377 %      THEN \begingroup
1378 %              STYLE
1379 %              \@hangfrom{\hskip INDENT\@svsec}
1380 %              {\interlinepenalty 10000 ARG2\par}
1381 %           \endgroup
1382 %           \NAMEmark{ARG1}
1383 %           \addcontentsline{toc}{NAME}
1384 %              { IF  LEVEL > \c@secnumdepth
1385 %                  ELSE \protect\numberline{\theNAME}  FI
1386 %                ARG1 }
1387 %      ELSE \@svsechd == BEGIN  STYLE
1388 %                               \hskip INDENT\@svsec
1389 %                               ARG2
1390 %                               \NAMEmark{ARG1}
1391 %                               \addcontentsline{toc}{NAME}
1392 %                                  { IF  LEVEL > \c@secnumdepth
1393 %                                      ELSE 
1394 %                                        \protect\numberline{\theNAME}
1395 %                                      FI
1396 %                                    ARG1 }
1397 %                        END
1398 %    FI
1399 %    \@xsect{AFTERSKIP}
1400 % END
1401 % \end{example}
1402 % (\file{ltsect.dtx}, L295).
1403 %    \begin{macrocode}
1404 \def\@sect#1#2#3#4#5#6[#7]#8{%
1405   \ifnum #2>\c@secnumdepth
1406     \let\@svsec\@empty
1407   \else
1408     \refstepcounter{#1}%
1409     \protected@edef\@svsec{\@seccntformat{#1}\relax}%
1410   \fi
1411   \@tempskipa #5\relax
1412   \ifdim \@tempskipa>\z@
1413     \begingroup
1414 %    \end{macrocode}
1415 % Here we deviate from \file{ltsect.dtx} to ensure single spacing for
1416 % the section title.
1417 %    \begin{macrocode}
1418       \setstretch{\@ssp}%
1419       #6{%
1420         \@hangfrom{\hskip #3\relax\@svsec}%
1421           \interlinepenalty \@M #8\@@par}%
1422     \endgroup
1423     \csname #1mark\endcsname{#7}%
1424     \addcontentsline{toc}{#1}{%
1425       \ifnum #2>\c@secnumdepth \else
1426         \protect\numberline{\csname the#1\endcsname}%
1427       \fi
1428       #7}%
1429   \else
1430     \def\@svsechd{%
1431       #6{\hskip #3\relax
1432       \@svsec #8}%
1433       \csname #1mark\endcsname{#7}%
1434       \addcontentsline{toc}{#1}{%
1435         \ifnum #2>\c@secnumdepth \else
1436           \protect\numberline{\csname the#1\endcsname}%
1437         \fi
1438         #7}}%
1439   \fi
1440   \@xsect{#5}}
1441 %    \end{macrocode}
1442 % \end{macro}
1443 %
1444 % \begin{macro}{\@ssect}
1445 % Pseudocode for the |\@ssect| command
1446 % \begin{example}
1447 % \@ssect{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}{ARG} ==
1448 %   BEGIN
1449 %    IF AFTERSKIP > 0
1450 %      THEN \begingroup
1451 %             STYLE
1452 %             \@hangfrom{\hskip INDENT}{\interlinepenalty 10000 ARG\par}
1453 %           \endgroup
1454 %      ELSE \@svsechd == BEGIN STYLE
1455 %                              \hskip INDENT
1456 %                              ARG
1457 %                        END
1458 %    FI
1459 %    \@xsect{AFTERSKIP}
1460 %   END
1461 % \end{example}
1462 % (\file{ltsect.dtx}, L521).
1463 %    \begin{macrocode}
1464 \def\@ssect#1#2#3#4#5{%
1465   \@tempskipa #3\relax
1466   \ifdim \@tempskipa>\z@
1467     \begingroup
1468 %    \end{macrocode}
1469 % Here we deviate from \file{ltsect.dtx} to ensure single spacing for
1470 % the section title.
1471 %    \begin{macrocode}
1472       \setstretch{\@ssp}%
1473       #4{%
1474         \@hangfrom{\hskip #1}%
1475           \interlinepenalty \@M #5\@@par}%
1476     \endgroup
1477   \else
1478     \def\@svsechd{#4{\hskip #1\relax #5}}%
1479   \fi
1480   \@xsect{#3}}
1481 %    \end{macrocode}
1482 % \end{macro}
1483 %
1484 %
1485 % \subsubsection{\file{ltbibl.dtx}}
1486 %
1487 % \DescribeMacro{\bibliography}
1488 % \DescribeEnv{thebibliography}
1489 % A bibliography is created by the |thebibliography| environment, which
1490 % generates a title such as ``Bibliography'', and a list of entries.
1491 % The \BibTeX\ program will create a file containing such an
1492 % environment, which will be read in by the |\bibliography| command.
1493 % With \BibTeX, the following commands will be used.
1494 %
1495 % The document class must define the thebibliography environment.  This
1496 % environment has a single argument, which is the widest bibliography
1497 % label-- e.g., if the [Knuth67] is the widest entry, then this
1498 % argument will be Knuth67.  The |\thebibliography| command must begin
1499 % a list  environment, which the |\endthebibliography| command ends.
1500 %
1501 % \begin{macro}{\bibliography}
1502 % |\bibliography|\marg{file1,file2,\ldots,filen} : specifies
1503 %   the bibdata files.  Writes a |\bibdata| entry on the |.aux| file
1504 %   and tries to read in |mainfile.bbl|.
1505 %
1506 % We don't need to change it, but it explains why we need to override
1507 % |thebibliography| even when we don't use it directly.
1508 % (\file{ltbibl.dtx}, L284).
1509 %    \begin{macrocode}
1510 %\def\bibliography#1{%
1511 %  \if@filesw
1512 %    \immediate\write\@auxout{\string\bibdata{#1}}%
1513 %  \fi
1514 %  \@input@{\jobname.bbl}
1515 %}
1516 %    \end{macrocode}
1517 % \end{macro}
1518 %
1519 %
1520 % \subsubsection{\file{ltoutput.dtx}}
1521 %
1522 % \begin{macro}{\DUT@clearpage}
1523 % \begin{macro}{\DUT@cleardoublepage}
1524 % Versions of |\clear*page| that only work when |\if@final| is true
1525 % (\file{ltoutput.dtx}, L877 and L904).
1526 %    \begin{macrocode}
1527 \newcommand\DUT@clearpage{\if@final \clearpage \fi}
1528 \newcommand\DUT@cleardoublepage{\if@final \cleardoublepage \fi}
1529 %    \end{macrocode}
1530 % \end{macro}
1531 % \end{macro}
1532 %
1533 % \begin{macro}{\blankpage}
1534 % Add a useful extension to insert a blank page without numbering.
1535 % In draft mode, this macro is a no-op.
1536 %    \begin{macrocode}
1537 \newcommand\blankpage{%
1538   \if@final
1539     \DUT@clearpage
1540     \thispagestyle{empty}
1541     \hphantom{0}
1542     \DUT@clearpage
1543   \else\fi
1544 }
1545 %    \end{macrocode}
1546 % \end{macro}
1547 %
1548 %
1549 % \begin{command}
1550 %   `\cs{blanklines}\marg{N}'
1551 %   `\cs{blanklines*}\marg{N}'
1552 % \end{command}
1553 % \begin{macro}{\blanklines}
1554 % Insert \meta{N} blank lines.  The starred forms use |\vspace|, which
1555 % inserts space even at the start and end of pages.  The |p| forms
1556 % add a trailing |\par|.  \emph{I'm still trying to get this part working
1557 % cleanly\ldots}
1558 %    \begin{macrocode}
1559 \newlength\DUT@blanklines@length
1560 \newcommand{\@blanklines@setup}[1]{%
1561   \set@lines@length{\DUT@blanklines@length}{#1}%
1562   %\typeout{BLANKLINES -- #1}%
1563   %\showthe\DUT@blanklines@length
1564 }
1565 \newcommand{\blanklines}{\@ifstar\@sblanklines\@blanklines}
1566 \newcommand{\@blanklines}[1]{%
1567   \@blanklines@setup{#1}%
1568   \vspace{\DUT@blanklines@length}}
1569 \newcommand{\@sblanklines}[1]{%
1570   \@blanklines@setup{#1}%
1571   \vspace*{\DUT@blanklines@length}}
1572 \newcommand{\blanklinesp}{\@ifstar\@sblanklines\@blanklines}
1573 \newcommand{\@blanklinesp}[1]{%
1574   \@blanklines@setup{#1}%
1575   \vspace{\DUT@blanklines@length}\par}
1576 \newcommand{\@sblanklinesp}[1]{%
1577   \@blanklines@setup{#1}%
1578   \vspace*{\DUT@blanklines@length}\par}
1579 %    \end{macrocode}
1580 % \end{macro}
1581 %
1582 %
1583 % \subsection{\pkg{hyperref} inclusion}
1584 % \label{sec:hyperref-inclusion}
1585 %
1586 % This is the awkward \pkg{hyperref} inclusion.  See
1587 % Section~\ref{sec:hyperref} for an explanation of why we stash it
1588 % here.
1589 %    \begin{macrocode}
1590 \RequirePackage[final]{hyperref}
1591 %    \end{macrocode}
1592 % Nobody likes the default colored boxes.  Color the text itself.
1593 %    \begin{macrocode}
1594 \hypersetup{colorlinks}
1595 %    \end{macrocode}
1596 %
1597 % \subsubsection{\pkg{hypcap}}
1598 % \label{sec:hypcap-inclusion}
1599 %
1600 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{hypcap}}
1601 % for placing caption hyperlink anchors.  Not strictly necessary, but
1602 % we're using \pkg{hyperref}, and the poor link targets are annoying.
1603 %    \begin{macrocode}
1604 \RequirePackage[all]{hypcap}
1605 %    \end{macrocode}
1606 % \Lopt{all} redefines the figure and table environments to
1607 % place the anchor at the start of the float.
1608 %
1609 %
1610 % \subsection{\cls{book} overrides and extensions}
1611 %
1612 % Here we change the behavior of a bunch of macros and environments from
1613 % \cls{book} (generated by \file{classes.ins} from \file{classes.dtx}) in
1614 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{base}}).
1615 % We'll copy in their original notes along with their code, following
1616 % the relevant documentation an order given in \file{classes.dtx}.
1617 %
1618 %
1619 % \subsubsection{Floats on a text page}
1620 % \label{sec:implement-floats}
1621 %
1622 % \begin{macro}{\floatsep}
1623 % \begin{macro}{\textfloatsep}
1624 % When a floating object is placed on a page with text, these
1625 % parameters control the separation between the float and the other
1626 % objects on the page.
1627 %
1628 % |\floatsep| is the space between adjacent floats that are moved
1629 % to the top or bottom of the text page.
1630 %
1631 % |\textfloatsep| is the space between the main text and floats
1632 % at the top or bottom of the page.
1633 %
1634 % |\intextsep| is the space between in-text floats and the text.  We
1635 % don't bother overriding this one, because we've handled it with
1636 % \pkg{floatrow} in Section \ref{sec:floatrow}.
1637 %
1638 % From the Manual 2.3 p6, ``Tables and Figures''
1639 % \begin{quote}
1640 %   Insert at least 3 single-spaced lines of space above table
1641 %   captions and figures and below figure captions, tables, and other
1642 %   graphics.
1643 % \end{quote}
1644 % (\file{classes.dtx}, L1426)
1645 %    \begin{macrocode}
1646 \set@lines@length{\floatsep}{\@ssp}
1647 \set@lines@length{\textfloatsep}{\@tsp}
1648 %    \end{macrocode}
1649 % \end{macro}
1650 % \end{macro}
1651 %
1652 %
1653 % \subsubsection{The title}
1654 %
1655 % \begin{macro}{\maketitle}
1656 % Automate the creation of the title page.
1657 % From Manual 3.1 p8, ``Title Page'', and the example on p16.
1658 % \begin{itemize}
1659 %   \item This page is counted but not numbered (it counts as page i,
1660 %   but should not have a page number).  TODO: How is this implemented?
1661 % \end{itemize}
1662 % Our definition simplifies \cls{book}'s by ignoring footnotes.
1663 % (\file{classes.dtx}, L1796)
1664 %    \begin{macrocode}
1665 \renewcommand\maketitle{
1666   \begin{titlepage}%
1667 %    \end{macrocode}
1668 % Add some bookmarks if we're using pdf\LaTeX.  The |frontmatter|
1669 % bookmark is set at the \emph{part} level (-1) to hold all bookmarks
1670 % from the |preamble| environment, since those entries are all
1671 % chapters.
1672 %    \begin{macrocode}
1673     \ifpdf
1674       \pdfbookmark[-1]{Frontmatter}{Frontmatter}
1675       \pdfbookmark[0]{Title Page}{Title Page}
1676     \fi
1677 %    \end{macrocode}
1678 % Add some stretchy space to center the title vertically if we're not
1679 % in draft mode.
1680 %    \begin{macrocode}
1681     \if@final \vspace*{\fill} \fi
1682 %    \end{macrocode}
1683 % Here is the title text itself.
1684 %    \begin{macrocode}
1685     \begin{center}%
1686       {\setstretch{\@tsp} \bfseries \@title \par}%
1687 %    \end{macrocode}
1688 % We want two blank lines (triple spacing) between the title and the
1689 % remaining material, so add three but don't end the paragraph.
1690 %    \begin{macrocode}
1691       \blanklines{\@tsp}%
1692       \setstretch{\@dsp}%
1693       A Thesis\\
1694       Submitted to the Faculty\\
1695       of\\
1696       Drexel University\\
1697       by\\
1698       \@author\\
1699       in partial fulfillment of the\\
1700       requirements for the degree\\
1701       of\\
1702       \@degree\\
1703       \def@month\ \def@year
1704     \end{center}\par
1705 %    \end{macrocode}
1706 % Some more stretchy space for the bottom if we're not in draft mode.
1707 %    \begin{macrocode}
1708 %    \end{macrocode}
1709 % Add some stretchy space to center the title vertically if we're not
1710 % in draft mode.
1711 %    \begin{macrocode}
1712     \if@final \vspace*{\fill} \fi
1713   \end{titlepage}%
1714 %    \end{macrocode}
1715 % And that's it.  We reset the footnote counter for the rest of the
1716 % document and save space by freeing the memory associated with the
1717 % |\maketitle| and |\and| macros (by setting them equal to |\relax|).
1718 %    \begin{macrocode}
1719   \setcounter{footnote}{0}%
1720   \global\let\maketitle\relax
1721   \global\let\and\relax
1722 }
1723 %    \end{macrocode}
1724 % \end{macro}
1725 %
1726 %
1727 % \subsubsection{Copyright pages}
1728 % \label{sec:implement-copyright}
1729 %
1730 % \begin{macro}{\makecopyright}
1731 % The Manual allows for the selection of different copyrights, so we
1732 % define a base macro that generates a proper copyright page
1733 % containing |\@copyrighttext|, which the user can set with
1734 % |\copyrighttext|.
1735 % From Manual 3.2 p9, ``Copyright Page''.
1736 % \begin{itemize}
1737 %   \item Include a copyright page with the following information: a
1738 %   copyright notice, full legal name of author, and date of
1739 %   publication on file.
1740 %   \item This page is neither counted nor numbered.
1741 % \end{itemize}
1742 % In final mode, we start off on a new page and center the blurb.
1743 % In draft mode, we dive right into the text.
1744 %    \begin{macrocode}
1745 \newcommand\makecopyright{%
1746   \DUT@clearpage
1747 %    \end{macrocode}
1748 % If we're using pdf\LaTeX, add a bookmark.
1749 %    \begin{macrocode}
1750   \ifpdf \pdfbookmark[0]{Copyright Page}{Copyright Page} \fi
1751   \if@final \vspace*{\fill} \fi
1752   \begin{center}
1753     \copyright~Copyright \def@year\\
1754     \@author.  \@copyrighttext
1755   \end{center}
1756   \if@final \vspace*{\fill} \else \blanklinesp{2} \fi
1757 %    \end{macrocode}
1758 % Turn off page numbering for this page.
1759 %    \begin{macrocode}
1760   \thispagestyle{empty}
1761 }
1762 %    \end{macrocode}
1763 % \end{macro}
1764 %
1765 % \begin{macro}{\copyrighttextCCBYSA}
1766 % The Creative Commons Attribution-ShareAlike License.
1767 % \changes{0.4}{2010/02/23}{W.~Trevor King renamed from
1768 % $\backslash$copyrighttextCC, and made specific to Creative Commons
1769 % Attribution-ShareAlike Version 3.0.}
1770 %    \begin{macrocode}
1771 \newcommand\copyrighttextCCBYSA{
1772   \begin{quote}
1773     This work is licensed under the terms of the Creative Commons
1774     Attribution-ShareAlike license Version 3.0.  The license is
1775     available at \\
1776     \url{http://creativecommons.org/licenses/by-sa/3.0/}.
1777   \end{quote}
1778 }
1779 %    \end{macrocode}
1780 % \end{macro}
1781 %
1782 %
1783 % \subsubsection{Mark commands}
1784 %
1785 % Default initializations of |\*mark| commands.  These commands
1786 % are used in the definition of the page styles.
1787 %
1788 % \begin{macro}{\chaptermark}
1789 % Setup colon rather than period separated chapter marks.
1790 % (\file{classes.dtx}, L2053)
1791 %    \begin{macrocode}
1792 \renewcommand\chaptermark[1]{%
1793   \markboth {%
1794     \ifnum \c@secnumdepth >\m@ne
1795       \if@mainmatter
1796         \@chapapp\ \thechapter: \ %
1797       \fi
1798     \fi
1799     #1}{}}
1800 %    \end{macrocode}
1801 % \end{macro}
1802 %
1803 % \begin{macro}{\schaptermark}
1804 % Setup unnumbered chapter marks for \pkg{fancyhdr}.
1805 %    \begin{macrocode}
1806 \newcommand\schaptermark[1]{\markboth{#1}{}}
1807 %    \end{macrocode}
1808 % \end{macro}
1809 %
1810 % \begin{macro}{\sectionmark}
1811 % Setup space rather than period separated section marks.
1812 % (\file{classes.dtx}, L2054)
1813 %    \begin{macrocode}
1814 \renewcommand{\sectionmark}[1]{%
1815   \markright {%
1816     \ifnum \c@secnumdepth >\z@
1817       \thesection \ %
1818     \fi
1819     #1}}
1820 %    \end{macrocode}
1821 % \end{macro}
1822 %
1823 %
1824 % \subsubsection{Front Matter, Main Matter, and Back Matter}
1825 %
1826 % A book contains these three (logical) sections. The switch
1827 % |\@mainmatter| is true iff we are processing Main Matter.  When this
1828 % switch is false, the |\chapter| command does not print chapter
1829 % numbers.
1830 %
1831 % \begin{macro}{\mainmatter}
1832 % This command clears the page (in final mode), starts arabic page
1833 % numbering and turns on chapter numbering.  Since this restarts the
1834 % page numbering from 1, it should also ensure that a recto page is
1835 % used.
1836 %
1837 % We replace \cls{book}'s |\clear*page| calls with |\DUT@clearpage| calls.
1838 % (\file{classes.dtx}, L2211)
1839 %    \begin{macrocode}
1840 \renewcommand\mainmatter{%
1841   \DUT@cleardoublepage
1842   \@mainmattertrue
1843   \pagenumbering{arabic}}
1844 %    \end{macrocode}
1845 % \end{macro}
1846 %
1847 %
1848 % \subsubsection{Parts}
1849 %
1850 % \begin{macro}{\part}
1851 % The command to start a new part of our document.
1852 %
1853 % We start a new (righthand) page and use the \pstyle{plain}
1854 % pagestyle, replacing \cls{book}'s |\clear*page| calls with
1855 % |\DUT@clearpage| calls and dropping twopage code.
1856 % (\file{classes.dtx}, L2249)
1857 %    \begin{macrocode}
1858 \renewcommand\part{%
1859   \if@openright
1860     \DUT@cleardoublepage
1861   \else
1862     \DUT@clearpage
1863   \fi
1864   \thispagestyle{plain}%
1865   \@tempswafalse
1866 %    \end{macrocode}
1867 % Add some stretchy space for vertical centering if we're in final mode.
1868 %    \begin{macrocode}
1869   \if@final \null\vfil \fi
1870 %    \end{macrocode}
1871 % Here we use |\secdef| to indicate which commands to use to make
1872 % the actual heading.
1873 %    \begin{macrocode}
1874   \secdef\@part\@spart}
1875 %    \end{macrocode}
1876 % \end{macro}
1877 %
1878 % \begin{macro}{\@part}
1879 % This macro does the actual formatting of the title of the part.  We
1880 % replace \cls{book}'s |\Huge| with |\large|, and make use of
1881 % |\numberline| for consistent spacing.
1882 %
1883 % When \Lcount{secnumdepth} is larger than $-2$, we have a numbered
1884 % part, otherwise it is unnumbered.
1885 % (\file{classes.dtx}, L2310)
1886 %    \begin{macrocode}
1887 \def\@part[#1]#2{%
1888     \ifnum \c@secnumdepth >-2\relax
1889       \refstepcounter{part}%
1890       \addcontentsline{toc}{part}%
1891         {\protect\numberline{\thepart}#1}%
1892     \else
1893       \addcontentsline{toc}{part}{#1}%
1894     \fi
1895 %    \end{macrocode}
1896 % We empty the mark registers and center the title on the page.
1897 % Also we prevent breaking between lines and reset the font.
1898 %    \begin{macrocode}
1899     \markboth{}{}%
1900     {\centering
1901      \interlinepenalty \@M
1902      \normalfont
1903 %    \end{macrocode}
1904 % When this is a numbered part we have to print the number.
1905 %    \begin{macrocode}
1906      \ifnum \c@secnumdepth >-2\relax
1907        \large\bfseries \partname\nobreakspace\thepart
1908        \par
1909 %    \end{macrocode}
1910 % We leave some space before we print the title and leave the
1911 % finishing up to |\@endpart|.
1912 %    \begin{macrocode}
1913        \vskip 20\p@
1914      \fi
1915      \large \bfseries #2\par}%
1916     \@endpart}
1917 %    \end{macrocode}
1918 % \end{macro}
1919 %
1920 % \begin{macro}{\@spart}
1921 % This macro does the actual formatting of the title of the part
1922 % when the star form of the user command was used. In this case we
1923 % \emph{never} print a number. Otherwise the formatting is the
1924 % same.
1925 % (\file{classes.dtx}, L2402)
1926 %    \begin{macrocode}
1927 \def\@spart#1{%
1928     {\centering
1929      \interlinepenalty \@M
1930      \normalfont
1931      \large \bfseries #1\par}%
1932     \@endpart}
1933 %    \end{macrocode}
1934 % \end{macro}
1935 %
1936 % \begin{macro}{\@endpart}
1937 % This macro finishes the part page, for both |\@part| and |\@spart|.
1938 % We drop \cls{book}'s twoside handling.
1939 % If |\if@final| is true, we fill the current page.
1940 % (\file{classes.dtx}, L2435)
1941 %    \begin{macrocode}
1942 \def\@endpart{
1943   \if@final \vfil\newpage \fi
1944 %    \end{macrocode}
1945 % Then, when we are in twosided mode and the chapters are supposed to
1946 % be on the right hand sides, we produce a completely blank page.  We
1947 % don't need to check |\if@final| here, because \Lopt{draftspace} set
1948 % |\@openrighttrue|.
1949 %    \begin{macrocode}
1950   \if@twoside
1951     \if@openright
1952       \null
1953       \thispagestyle{empty}%
1954       \newpage
1955     \fi
1956   \fi}
1957 %    \end{macrocode}
1958 % \end{macro}
1959 %
1960 %
1961 % \subsubsection{Chapters}
1962 % \label{sec:implement-chapters}
1963 %
1964 % \begin{macro}{\chapter}
1965 % \cls{book} always starts a chapter on a new page, but we don't want
1966 % to do that if we're in draft mode.
1967 % (\file{classes.dtx}, L2472).
1968 %    \begin{macrocode}
1969 \renewcommand\chapter{%
1970   \if@openright\DUT@cleardoublepage\else\DUT@clearpage\fi
1971   \thispagestyle{plain}%
1972 %    \end{macrocode}
1973 % Then we prevent floats from appearing at the top of this page
1974 % because it looks weird to see a floating object above a chapter
1975 % title.
1976 %    \begin{macrocode}
1977   \global\@topnum\z@
1978 %    \end{macrocode}
1979 % Then we suppress the indentation of the first paragraph by
1980 % setting the switch |\@afterindent| to false. We use |\secdef|
1981 % to specify the macros to use for actually setting the chapter
1982 % title.
1983 %    \begin{macrocode}
1984   \@afterindentfalse
1985   \secdef\@chapter\@schapter}
1986 %    \end{macrocode}
1987 % \end{macro}
1988 %
1989 % \begin{macro}{\listed@schapter}
1990 % |\chapter| declares numbered chapters, which are listed in the table
1991 % of contents.
1992 % |\chapter*| declares unnumbered chapters, which are \emph{not}
1993 % listed in the TOC.
1994 % |\listed@schapter| declares an unnumbered chapter that \emph{is}
1995 % listed in the TOC.
1996 %    \begin{macrocode}
1997 \newcommand\listed@schapter[1]{%
1998   \if@openright\DUT@cleardoublepage\else\DUT@clearpage\fi
1999   \thispagestyle{plain}%
2000   \global\@topnum\z@
2001   \phantomsection
2002   \addcontentsline{toc}{chapter}{#1}
2003   \@afterindentfalse
2004   \@schapter{#1}}
2005 %    \end{macrocode}
2006 % \end{macro}
2007 %
2008 % \begin{macro}{\@chapter}
2009 % This macro is called when we have a numbered chapter. When
2010 % \Lcount{secnumdepth} is larger than $-1$ and |\@mainmatter| is true,
2011 % we display the chapter number.
2012 % We drop \cls{book}'s \Lopt{twocolumn} code. 
2013 % (\file{classes.dtx}, L2496).
2014 % \begin{macrocode}
2015 \def\@chapter[#1]#2{
2016 % \end{macrocode}
2017 % Inform the user that a new chapter is about to be typeset by writing
2018 % a message to the terminal.
2019 % \begin{macrocode}
2020   \typeout{\@chapapp\space\thechapter. #1}%
2021   \ifnum \c@secnumdepth >\m@ne
2022     \if@mainmatter
2023       \refstepcounter{chapter}%
2024       \addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}#1}%
2025     \else
2026       \addcontentsline{toc}{chapter}{#1}%
2027     \fi
2028   \else
2029     \addcontentsline{toc}{chapter}{#1}%
2030   \fi
2031 %    \end{macrocode}
2032 % After having written an entry to the table of contents we store
2033 % the (alternative) title of this chapter with |\chaptermark|.
2034 %    \begin{macrocode}
2035   \chaptermark{#1}%
2036 %    \end{macrocode}
2037 % For nicer lists of figures and tables, we could add some white space
2038 % to separate the chapters.  However, nice lists $\neq$~Manual
2039 % specifications.
2040 %    \begin{macrocode}
2041 %  \addtocontents{lof}{\protect\addvspace{10\p@}}%
2042 %  \addtocontents{lot}{\protect\addvspace{10\p@}}%
2043 %    \end{macrocode}
2044 % Then we call upon |\@makechapterhead| to format the actual chapter
2045 % title.  |\@afterheading| which takes care of suppressing the
2046 % indentation.
2047 %    \begin{macrocode}
2048   \@makechapterhead{#2}%
2049   \@afterheading}
2050 %    \end{macrocode}
2051 % \end{macro}
2052 %
2053 % \begin{macro}{\@makechapterhead}
2054 % The |\@chapter| macro uses |\@makechapterhead|\meta{text} to format
2055 % the heading of the chapter.
2056 % From the Manual 3.11 p11.
2057 % \begin{quote}
2058 %   Chapter headings must be bold and centered.
2059 %   The chapter number and title must be on the same line, separated
2060 %   by a colon or period, as shown in the example below:
2061 %   \begin{center}
2062 %     CHAPTER 1: INTRODUCTION
2063 %   \end{center}
2064 %   Headings must not be larger than 12 points.
2065 %   Headings must be single spaced.
2066 % \end{quote}
2067 % \cls{book} sets |\@chapapp| and |\thechapter| (e.g.\ ``Chapter 5'')
2068 % on a line above the chapter title, but that doesn't match the
2069 % Manual's specification.
2070 %
2071 % We begin by leaving some white space. The we open a group in which
2072 % we have a paragraph indent of 0pt, and in which we have the text set
2073 % ragged right. We also reset the font.
2074 % (\file{classes.dtx}, L2540).
2075 %    \begin{macrocode}
2076 \def\@makechapterhead#1{%
2077 %    \end{macro}
2078 % Adding even a \vspace*{0\p@} here seems to increase the vertical
2079 % space above the chapter heading by two lines.  I'm not sure why.
2080 % Workaround is to pass the ``value of blanklines you want minus two''
2081 % to |\blanklines*|.  HACK!
2082 %    \begin{macro}
2083   \blanklines*{-1}% HACK!
2084   {\parindent \z@ \raggedright \normalfont
2085 %    \end{macrocode}
2086 % Ensure single spacing.
2087 %    \begin{macrocode}
2088     \setstretch{\@ssp}%
2089 %    \end{macrocode}
2090 % Prevent a pagebreak from occuring in the middle of or after the title.
2091 %    \begin{macrocode}
2092     \interlinepenalty\@M
2093 %    \end{macrocode}
2094 % Check whether the number of the chapter has to be printed.
2095 %    \begin{macrocode}
2096     \ifnum \c@secnumdepth >\m@ne
2097 %    \end{macrocode}
2098 % Check whether there \emph{is} a number to be printed.
2099 %    \begin{macrocode}
2100       \if@mainmatter
2101 %    \end{macrocode}
2102 % Setup a ``Chapter \#: Title'' heading.
2103 %    \begin{macrocode}
2104         \center \large \bfseries \@chapapp{} \thechapter: #1\par\nobreak
2105       \else
2106 %    \end{macrocode}
2107 % Setup a ``Title'' heading.
2108 %    \begin{macrocode}
2109         \center \large \bfseries #1\par\nobreak
2110       \fi
2111     \else
2112       \center \large \bfseries #1\par\nobreak
2113     \fi
2114 %    \end{macrocode}
2115 % Put a little space before the chapter body.  We use four blank lines
2116 % to comply with the Manual 3.13 p12
2117 % \begin{quote}
2118 %   Begin the list of sources four spaces below the heading.
2119 % \end{quote}
2120 %    \begin{macrocode}
2121     \blanklines{4}
2122   }
2123 }
2124 %    \end{macrocode}
2125 % \end{macro}
2126 %
2127 % \begin{macro}{\@schapter}
2128 % This macro is called when we have an unnumbered chapter.  We drop
2129 % \file{classes.dtx}'s \Lopt{twocolumn} code and set marks for
2130 % \pkg{fancyhdr}.
2131 % (\file{classes.dtx}, L2582).
2132 %    \begin{macrocode}
2133 \def\@schapter#1{
2134 % \end{macrocode}
2135 % Inform the user that a new chapter is about to be typeset by writing
2136 % a message to the terminal.
2137 % \begin{macrocode}
2138   \typeout{\@chapapp\space #1}%
2139   \schaptermark{#1}%
2140   \@makeschapterhead{#1}%
2141   \@afterheading}
2142 %    \end{macrocode}
2143 % \end{macro}
2144 %
2145 % \begin{macro}{\@makeschapterhead}
2146 % The macro above uses |\@makeschapterhead|\meta{text} to format
2147 % the heading of the chapter. It is similar to |\@makechapterhead|
2148 % except that it never has to print a chapter number.
2149 % (\file{classes.dtx}, L2595).
2150 %    \begin{macrocode}
2151 \def\@makeschapterhead#1{%
2152   \blanklines*{-1}% HACK!
2153   {\parindent \z@ \raggedright \normalfont
2154     \setstretch{\@ssp}%
2155     \interlinepenalty\@M
2156     \center \large \bfseries  #1\par\nobreak
2157     \blanklines{4}%
2158   }
2159 }
2160 %    \end{macrocode}
2161 % \end{macro}
2162 %
2163 %
2164 % \subsubsection{Lower level headings}
2165 %
2166 % \begin{macro}{\section}
2167 % Setup section headings in |\large| rather than \cls{book}'s
2168 % |\Large|.
2169 % (\file{classes.dtx}, L2623).
2170 %    \begin{macrocode}
2171 \renewcommand\section{%
2172   \@startsection {section}{1}{\z@}%
2173     {-3.5ex \@plus -1ex \@minus -.2ex}%
2174     {2.3ex \@plus.2ex}%
2175     {\normalfont\large\bfseries}}
2176 %    \end{macrocode}
2177 % \end{macro}
2178 %
2179 %
2180 % \subsubsection{Defining new environments}
2181 %
2182 % We don't override any of \cls{book}'s environments, but this is
2183 % where \file{classes.dtx} defines its environments (L2996), so we'll put
2184 % ours here too.
2185 %
2186 % \begin{environment}{preamble}
2187 %    \begin{macrocode}
2188 \newenvironment{preamble}{%
2189   \cleardoublepage
2190   \@mainmatterfalse
2191   \pagenumbering{roman}
2192 %    \end{macrocode}
2193 % From Manual 3.1 p8, ``Title Page''.
2194 %    \begin{macrocode}
2195   \maketitle
2196 %    \end{macrocode}
2197 % From Manual 3.2 p9, ``Copyright Page''.
2198 %    \begin{macrocode}
2199   \makecopyright
2200 }{%
2201 %    \end{macrocode}
2202 % From the Manual 3.9, p11:
2203 % \begin{quote}
2204 %   Include a blank page (with no page number) before the first page
2205 %   of text.  The blank page is neither numbered nor counted.
2206 % \end{quote}
2207 %    \begin{macrocode}
2208   \blankpage
2209 }
2210 %    \end{macrocode}
2211 % \end{environment}
2212 %
2213 % \begin{environment}{dedications}
2214 % From the Manual 3.3 p9
2215 % \begin{itemize}
2216 %   \item The heading |Dedications| must appear at the top of the
2217 %   page.  The heading must be bold, centered, and without
2218 %   punctuation.
2219 %   \item This page is counted and numbered in lowercase Roman numerals.
2220 % \end{itemize}
2221 %    \begin{macrocode}
2222 \newenvironment{dedications}{%
2223   \DUT@clearpage
2224   \ifpdf
2225     \phantomsection
2226     \pdfbookmark[0]{\dedicationsname}{\dedicationsname}
2227   \fi
2228   \chapter*{\dedicationsname}
2229   \setstretch{\@dsp}%
2230 }{%
2231   \setstretch{\@ssp}%
2232 }
2233 %    \end{macrocode}
2234 % \end{environment}
2235 %
2236 % \begin{environment}{acknowledgments}
2237 % From the Manual 3.4 p9
2238 % \begin{itemize}
2239 %   \item The heading |Acknowledgments| must appear at the top of the
2240 %   page.  The heading must be bold, centered, and without
2241 %   punctuation.
2242 %   \item This page is counted and numbered in lowercase Roman numerals.
2243 % \end{itemize}
2244 %    \begin{macrocode}
2245 \newenvironment{acknowledgments}{%
2246   \DUT@clearpage
2247   \ifpdf
2248     \phantomsection
2249     \pdfbookmark[0]{\acknowledgmentsname}{\acknowledgmentsname}
2250   \fi
2251   \chapter*{\acknowledgmentsname}
2252   \setstretch{\@dsp}%
2253 }{%
2254   \setstretch{\@ssp}%
2255 }
2256 %    \end{macrocode}
2257 % \end{environment}
2258 %
2259 % \begin{environment}{abstract}
2260 %    \begin{macrocode}
2261 \newenvironment{abstract}{%
2262   \listed@schapter{\abstractname}%
2263 %    \end{macrocode}
2264 % Suck up some blank space to position the rest of the header right
2265 % under the chapter title.
2266 %    \begin{macrocode}
2267   \blanklines{-4}%
2268 %    \end{macrocode}
2269 % From the Manual 3.9 p10
2270 % \begin{quote}
2271 %   \begin{itemize}
2272 %     \item The following heading must be centered at the top of the page
2273 %       \begin{center}
2274 %         Abstract \\
2275 %         Full Title of Dissertation or Thesis \\
2276 %         Author's Name as it appears on the Dissertation or Thesis
2277 %       \end{center}
2278 %       In the example on p20, they list the advisor's name after the
2279 %       author, but that is not specified in the text on p10.
2280 %     \item The text begins four lines below this heading.
2281 %   \end{itemize}
2282 % \end{quote}
2283 % On p20
2284 % \begin{quote}
2285 %   \begin{itemize}
2286 %     \item These pages are numbered using lowercase Roman numerals.
2287 %     \item Note that the heading is single spaced, but the abstract
2288 %       is double spaced.
2289 %   \end{itemize}
2290 % \end{quote}
2291 %    \begin{macrocode}
2292     \begin{center}
2293       \setstretch{\@ssp}%
2294       \@title\\
2295       \@author\\
2296       \@advisor\\
2297     \end{center}
2298   \blanklines{4}%
2299   \setstretch{\@dsp}%
2300   \@nobreaktrue
2301   \@afterindentfalse
2302   \@afterheading
2303 }{%
2304   \setstretch{\@ssp}%
2305 }
2306 %    \end{macrocode}
2307 % \end{environment}
2308 %
2309 % \begin{environment}{thesis}
2310 % From the Manual 3.10 p11
2311 % \begin{itemize}
2312 %   \item The pages are counted and numbered in Arabic numerals.
2313 % \end{itemize}
2314 %    \begin{macrocode}
2315 \newenvironment{thesis}{%
2316   \mainmatter
2317   \setstretch{\@dsp}%
2318 }{%
2319   \setstretch{\@ssp}%
2320   \DUT@clearpage
2321   \ifpdf
2322     \phantomsection
2323     \pdfbookmark[-1]{Backmatter}{Backmatter}
2324   \fi
2325 }
2326 %    \end{macrocode}
2327 % \end{environment}
2328 %
2329 % \paragraph{Vita}
2330 % \label{sec:implement-vita}
2331
2332 % \begin{environment}{vita}
2333 % From the Manual 3.15 p13
2334 % \begin{itemize}
2335 %   \item The heading |Vita| must appear at the top of the page.  The
2336 %   heading must be bold, centered, and without punctuation.
2337 %   \item The Vita text should begin four spaces below the heading.
2338 %   \item List the Vita separately in the Table of Contents.
2339 %   \item The page is counted and numbered in Arabic numerals.
2340 % \end{itemize}
2341 %    \begin{macrocode}
2342 \newenvironment{vita}{%
2343   \listed@schapter{\vitaname}
2344   \setstretch{\@dsp}%
2345 }{%
2346   \setstretch{\@ssp}%
2347 }
2348 %    \end{macrocode}
2349 % \end{environment}
2350 %
2351 %
2352 % \subsubsection{Titlepage}
2353 %
2354 % \begin{environment}{titlepage}
2355 % In the normal environments, the titlepage environment does nothing
2356 % but start and end a page, and inhibit page numbers.  We inhibit the
2357 % paging in draft mode, since it seems silly to waste a whole page on
2358 % the title.  We also drop the \Lopt{twocolumn} code.
2359 % (\file{classes.dtx}, L3111)
2360 %    \begin{macrocode}
2361 \renewenvironment{titlepage}{\thispagestyle{empty}%
2362                              \setcounter{page}\z@}%
2363                             {\if@final \newpage \else \blanklinesp{2} \par \fi}
2364 %    \end{macrocode}
2365 % \end{environment}
2366 %
2367 %
2368 % \subsubsection{Appendix}
2369 % \label{sec:implement-appendix}
2370 %
2371 % \begin{macro}{\appendix}
2372 % The |\appendix| command is not really an environment, it is a
2373 % macro that makes some changes in the way things are done.
2374 %
2375 % In the article document class the |\appendix| command must do the
2376 % following:
2377 % \begin{itemize}
2378 %   \item reset the section and subsection counters to zero,
2379 %   \item redefine |\thesection| to produce alphabetic appendix
2380 %         numbers. This redefinition is done globally to ensure that it 
2381 %         survives even if |\appendix| is issued within an environment such
2382 %         as \texttt{multicols}.
2383 % \end{itemize}
2384 %
2385 % In addition to \cls{book}'s (or \pkg{hyperref}'s) activity, we
2386 % fiddle with the \pkg{tocloft} chapter settings add switch to global
2387 % double-spacing.
2388 % (\file{classes.dtx}, L3177)
2389 %    \begin{macrocode}
2390 \let\DUT@appendix\appendix
2391 \renewcommand\appendix{%
2392   \DUT@appendix%
2393 %    \end{macrocode}
2394 % Setup TOC entries like
2395 % \begin{center}
2396 %   Appendix A: Chapter Title
2397 % \end{center}
2398 % We don't need to worry about the |vita| environment (page
2399 % \pageref{sec:implement-vita}), because it is a |\listed@schapter|,
2400 % and therefore lacks a |\numberline| section in its \file{*.toc}
2401 % entry.
2402 %
2403 % We increase |numwidth| to 6.5em to make room for |Appendix~| before
2404 % the chapter number/letter, and add a colon after it.
2405 %
2406 % The |\protect| calls get the macros into \file{*.toc} unexpanded, so
2407 % they function correctly when \LaTeX\ parses \file{*.toc}.
2408 %    \begin{macrocode}
2409   \addtocontents{toc}{%
2410     \protect\cftsetindents{chapter}{0pt}{6.5em}
2411     \protect\renewcommand{\protect\cftchappresnum}{\protect\appendixname~}
2412     \protect\renewcommand{\protect\cftchapaftersnum}{:}}
2413 %    \end{macrocode}
2414 % We also turn on double spacing by default, since we're no longer
2415 % wrapped in the |thesis| environment.
2416 %    \begin{macrocode}
2417   \setstretch{\@dsp}%
2418 }
2419 %    \end{macrocode}
2420 % \end{macro}
2421 %
2422 %
2423 % \subsubsection{Table of Contents}
2424 % \label{sec:implement-toc}
2425 %
2426 % From Manual 3.5 p9, ``Table of Contents'', and the example on p17.
2427 % \begin{quote}
2428 %   \begin{itemize}
2429 %     \item Do not list any sections that precede the
2430 %     |Table of Contents| (e.g.\ |Dedications|, |Acknowledgments|).  Do
2431 %     not list the |Table of Contents| itself.
2432 %     \item These pages are counted and numbered in lowercase Roman numerals.
2433 %   \end{itemize}
2434 % \end{quote}
2435 %
2436 % \begin{macro}{\cfttoctitlefont}
2437 % Take advantange of \pkg{tocloft}'s TOC title code.
2438 % (\file{tocloft.dtx}, L1501)
2439 % \begin{example}
2440 %   \cfttoctitlefont\contentsname}{\cftaftertoctitle}
2441 % \end{example}
2442 % by setting it equal to something ending in |\chapter*|.  That way
2443 % \LaTeX parses the whole thing as
2444 % \begin{example}
2445 %   ...\chapter*\contentsname}{\cftaftertoctitle}
2446 % \end{example}
2447 % which will set up the TOC page correctly.
2448 %    \begin{macrocode}
2449 \renewcommand\cfttoctitlefont{%
2450 %    \end{macrocode}
2451 % Start a new page in \Lopt{final} mode
2452 %    \begin{macrocode}
2453   \DUT@clearpage
2454 %    \end{macrocode}
2455 % Add a bookmark if we're using pdf\LaTeX.
2456 %    \begin{macrocode}
2457   \ifpdf
2458     \phantomsection
2459     \pdfbookmark[0]{\contentsname}{\contentsname}
2460   \fi
2461 %    \end{macrocode}
2462 % |\chapter*| to gobble and format the next token (|\contentsname|).
2463 %    \begin{macrocode}
2464   \chapter*}
2465 %    \end{macrocode}
2466 % \end{macro}
2467 %
2468 % \begin{macro}{\aftertoctitleskip}
2469 % Don't add any extra space after the title (the chapter will take
2470 % care of that).
2471 %    \begin{macrocode}
2472 \setlength\cftaftertoctitleskip{0pt}
2473 %    \end{macrocode}
2474 % \end{macro}
2475 %
2476 % \begin{macro}{\l@cont@sep}
2477 % Define a length for TOC/LOF/LOT spacing.
2478 %    \begin{macrocode}
2479 \newlength\l@cont@sep
2480 \set@lines@length{\l@cont@sep}{\@cont@sep}
2481 %    \end{macrocode}
2482 % \end{macro}
2483 %
2484 % \begin{macro}{\@cont@font}
2485 % Define a font for high level (part, chapter) entries.
2486 %    \begin{macrocode}
2487 \newcommand{\@cont@font}{\normalsize\scshape}
2488 %    \end{macrocode}
2489 % \end{macro}
2490 %
2491 % \begin{macro}{\cftbeforepartskip}
2492 % \begin{macro}{\cftpartfont}
2493 % \begin{macro}{\cftpartleader}
2494 % \begin{macro}{\cftpartdotsep}
2495 % \begin{macro}{\cftpartpagefont}
2496 % Setup parts.  See the \pkg{tocloft} manual for a description of the
2497 % commands.
2498 %    \begin{macrocode}
2499 \setlength\cftbeforepartskip{\l@cont@sep}
2500 \cftsetindents{part}{0pt}{3em}
2501 \if@boldpart   \renewcommand{\cftpartfont}{\bfseries\@cont@font}
2502 \else          \renewcommand{\cftpartfont}{\@cont@font}
2503 \renewcommand{\cftpartleader}{\cftdotfill{\cftpartdotsep}}
2504 \if@dottedpart \renewcommand{\cftpartdotsep}{\cftdotsep}
2505 \else          \renewcommand{\cftpartdotsep}{\cftnodots} \fi
2506 \renewcommand{\cftpartpagefont}{\normalfont}
2507 %    \end{macrocode}
2508 % \end{macro}
2509 % \end{macro}
2510 % \end{macro}
2511 % \end{macro}
2512 % \end{macro}
2513 %
2514 % \begin{macro}{\cftbeforechapskip}
2515 % \begin{macro}{\cftchapaftersnum}
2516 % \begin{macro}{\cftchapfont}
2517 % \begin{macro}{\cftchapleader}
2518 % \begin{macro}{\cftchapdotsep}
2519 % \begin{macro}{\cftchappagefont}
2520 % Setup chapters and appendicies.  Some of these settings are adjusted
2521 % for appendicies in particular by |\appendix|
2522 % (Sec.~\ref{sec:implement-appendix}).
2523 %    \begin{macrocode}
2524 \setlength\cftbeforechapskip{\l@cont@sep}
2525 \cftsetindents{chapter}{0pt}{1.5em}
2526 \renewcommand{\cftchapaftersnum}{.}
2527 \if@boldchapter   \renewcommand{\cftchapfont}{\bfseries\@cont@font}
2528 \else             \renewcommand{\cftchapfont}{\@cont@font} \fi
2529 \renewcommand{\cftchapleader}{\cftdotfill{\cftchapdotsep}}
2530 \if@dottedchapter \renewcommand{\cftchapdotsep}{\cftdotsep}
2531 \else             \renewcommand{\cftchapdotsep}{\cftnodots} \fi
2532 \renewcommand{\cftchappagefont}{\normalfont}
2533 %    \end{macrocode}
2534 % \end{macro}
2535 % \end{macro}
2536 % \end{macro}
2537 % \end{macro}
2538 % \end{macro}
2539 % \end{macro}
2540 %
2541 % \begin{macro}{\cftbeforesecskip}
2542 % \begin{macro}{\cftsecfont}
2543 % \begin{macro}{\cftbeforesubsecskip}
2544 % \begin{macro}{\cftsubsecfont}
2545 % \begin{macro}{\cftbeforesubsubsecskip}
2546 % \begin{macro}{\cftsubsubsecfont}
2547 % Setup sections, subsections, etc.
2548 %    \begin{macrocode}
2549 %\cftsetindents{chap}{0pt}{1.5em}
2550 \setlength\cftbeforesecskip{\l@cont@sep}
2551 \cftsetindents{section}{0pt}{3em}
2552 \renewcommand{\cftsecfont}{\normalsize}
2553 \setlength\cftbeforesubsecskip{\l@cont@sep}
2554 \cftsetindents{subsection}{0pt}{4.5em}
2555 \renewcommand{\cftsubsecfont}{\cftsecfont}
2556 \setlength\cftbeforesubsubsecskip{\l@cont@sep}
2557 \cftsetindents{subsubsection}{0pt}{6em}
2558 \renewcommand{\cftsubsubsecfont}{\cftsecfont}
2559 %    \end{macrocode}
2560 % \end{macro}
2561 % \end{macro}
2562 % \end{macro}
2563 % \end{macro}
2564 % \end{macro}
2565 % \end{macro}
2566 %
2567 % The default indents above are all |0pt|.  If \Lopt{indenttoc} was
2568 % given, override this, restoring the \pkg{tocloft} defaults, see the
2569 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/tocloft/tocloft.pdf}{%
2570 %   \pkg{tocloft} manual, Table 1}.
2571 %    \begin{macrocode}
2572 \if@indenttoc
2573   \cftsetindents{chapter}{0pt}{1.5em}
2574   \cftsetindents{section}{1.5em}{2.3em}
2575   \cftsetindents{subsection}{3.8em}{3.2em}
2576   \cftsetindents{subsubsection}{7.0em}{4.1em}
2577 \fi
2578 %    \end{macrocode}
2579 %
2580 %
2581 % \subsubsection{List of figures}
2582 % \label{sec:implement-lof}
2583 %
2584 % From the Manual 3.7 p10
2585 % \begin{quote}
2586 %   \begin{itemize}
2587 %     \item The heading |List of Figures| must appear at the top of
2588 %       the first page.
2589 %     \item The heading must be bold, centered, and without
2590 %       punctuation.  List figure captions exactly as they appear
2591 %       below the figures in the text.
2592 %     \item Single space each entry, but double-space between entries.
2593 %     \item Separate figure captions from page numbers with
2594 %       right-justified tabs and dot leaders.
2595 %     \item Do not use periods to separate captions and page numbers.
2596 %     \item These pages are counted and numbered in lowercase Roman
2597 %     numerals.
2598 %   \end{itemize}
2599 % \end{quote}
2600 %
2601 % \begin{macro}{\cftloftitlefont}
2602 % Much like our |\cfttoctitlefont|, but the list of figures gets
2603 % listed in the TOC.
2604 %    \begin{macrocode}
2605 \renewcommand\cftloftitlefont{\listed@schapter}
2606 %    \end{macrocode}
2607 % \end{macro}
2608 %
2609 % \begin{macro}{\afterloftitleskip}
2610 % Don't add any extra space after the title (the chapter will take
2611 % care of that).  Actually we make a one-line correction so the first
2612 % line matches the first line in the TOC.  HACK!
2613 %    \begin{macrocode}
2614 \setlength\cftafterloftitleskip{-12pt}
2615 %    \end{macrocode}
2616 % \end{macro}
2617 %
2618 % \begin{macro}{\cftbeforefigskip}
2619 % \begin{macro}{\cftfigindent}
2620 % \begin{macro}{\cftfigfont}
2621 % Setup figure entries.
2622 %    \begin{macrocode}
2623 \setlength{\cftbeforefigskip}{\l@cont@sep}
2624 \setlength{\cftfigindent}{0pt}
2625 \renewcommand{\cftfigfont}{\normalsize\singlespace}
2626 %    \end{macrocode}
2627 % \end{macro}
2628 % \end{macro}
2629 % \end{macro}
2630 %
2631 %
2632 % \subsubsection{List of tables}
2633 % \label{sec:implement-lot}
2634 %
2635 % From the Manual 3.6 p10
2636 % \begin{quote}
2637 %   \begin{itemize}
2638 %     \item The heading |List of Tables| must appear at the top of the
2639 %       first page.
2640 %     \item The heading must be bold, centered, and without
2641 %       punctuation.
2642 %     \item List table captions exactly as they appear above the
2643 %       tables in the text.
2644 %     \item Single space each entry, but double-space between entries.
2645 %     \item Separate table captions from page numbers with
2646 %       right-justified tabs and dot leaders.
2647 %     \item Do not use periods to separate captions and page numbers.
2648 %       These pages are counted and numbered in lowercase Roman
2649 %       numerals.
2650 %   \end{itemize}
2651 % \end{quote}
2652 %
2653 % \begin{macro}{\cftlottitlefont}
2654 % Much like our |\cfttoctitlefont|, but the list of tables gets
2655 % listed in the TOC.
2656 %    \begin{macrocode}
2657 \renewcommand\cftlottitlefont{\listed@schapter}
2658 %    \end{macrocode}
2659 % \end{macro}
2660 %
2661 % \begin{macro}{\afterlottitleskip}
2662 % Don't add any extra space after the title (the chapter will take
2663 % care of that).  Actually we make a one-line correction so the first
2664 % line matches the first line in the TOC.  HACK!
2665 %    \begin{macrocode}
2666 \setlength\cftafterlottitleskip{-12pt}
2667 %    \end{macrocode}
2668 % \end{macro}
2669 %
2670 % \begin{macro}{\cftbeforetabskip}
2671 % \begin{macro}{\cfttabindent}
2672 % \begin{macro}{\cfttabfont}
2673 % Setup table entries.
2674 %    \begin{macrocode}
2675 \setlength{\cfttabindent}{0pt}
2676 \setlength{\cftbeforetabskip}{\l@cont@sep}
2677 \renewcommand{\cfttabfont}{\normalsize\singlespace}
2678 %    \end{macrocode}
2679 % \end{macro}
2680 % \end{macro}
2681 % \end{macro}
2682 %
2683 %
2684 % \subsubsection{Bibliography}
2685 %
2686 % \begin{environment}{thebibliography}
2687 % The |thebibliography| environment is a list environment.  To save the
2688 % use of an extra counter, it should use |enumiv| as the item
2689 % counter. 
2690 % Instead of using |\item|, items in the bibliography are produced by
2691 % the following commands:\\
2692 %   |\bibitem|\marg{name} : Produces a numbered entry cited as
2693 %   \meta{name}.\\
2694 %   |\bibitem|\oarg{label}\marg{name} : Produces an entry labeled by
2695 %   \meta{Label} and cited by \meta{name}.
2696 %
2697 % Override \cls{book}'s version, adding a line to the table of
2698 % contents.  We split out the section-creation code into
2699 % |\bib@heading| for \pkg{natbib} compatibility.
2700 % (\file{classes.dtx}, L4063).
2701 %    \begin{macrocode}
2702 \renewenvironment{thebibliography}[1]
2703      {\bib@heading%
2704       \list{\@biblabel{\@arabic\c@enumiv}}%
2705            {\settowidth\labelwidth{\@biblabel{#1}}%
2706             \leftmargin\labelwidth
2707             \advance\leftmargin\labelsep
2708             \@openbib@code
2709             \usecounter{enumiv}%
2710             \let\p@enumiv\@empty
2711             \renewcommand\theenumiv{\@arabic\c@enumiv}}%
2712 %    \end{macrocode}
2713 % Because it's hard to do line breaks in bibliographies.
2714 %    \begin{macrocode}
2715       \sloppy
2716 %    \end{macrocode}
2717 %    This is setting the normal (non-infinite) value of
2718 %    |\clubpenalty| for the whole of this environment,
2719 %    so we must reset its stored value also.  (Why is there a |%| after
2720 %    the second 4000 below?)
2721 %    \begin{macrocode}
2722       \clubpenalty4000
2723       \@clubpenalty \clubpenalty
2724       \widowpenalty4000%
2725 %    \end{macrocode}
2726 % Cause a `.' (period) not to produce an end-of-sentence space.
2727 %    \begin{macrocode}
2728       \sfcode`\.\@m}
2729 %    \end{macrocode}
2730 % Warn if an empty `thebibliography' environment is found.
2731 %    \begin{macrocode}
2732      {\def\@noitemerr
2733        {\@latex@warning{Empty `thebibliography' environment}}%
2734       \endlist}
2735 %    \end{macrocode}
2736 % \end{environment}
2737 %
2738 % \begin{macro}{\bib@heading}
2739 % \pkg{natbib} messes with |thebibliography|.  We setup |\bib@heading|
2740 % so we will still get our table of contents entry.
2741 %    \begin{macrocode}
2742 \newcommand{\bib@heading}{%
2743   \listed@schapter{\bibname}%
2744 }
2745 %    \end{macrocode}
2746 % \end{macro}
2747 %
2748 %
2749 % \subsubsection{Index}
2750 %
2751 % \begin{environment}{theindex}
2752 % The environment |theindex| can be used for indices. It makes an
2753 % index with two columns, with each entry a separate paragraph. At
2754 % the user level the commands |\item|, |\subitem| and |\subsubitem|
2755 % are used to produce index entries of various levels. When a new
2756 % letter of the alphabet is encountered an amount of |\indexspace|
2757 % white space can be added.
2758 %
2759 % Override \cls{book}'s version, adding a line to the table of
2760 % contents.  We split out the section-creation code into
2761 % |\bib@heading| for \pkg{natbib} compatibility.
2762 % (\file{classes.dtx}, L4107).
2763 %    \begin{macrocode}
2764 \renewenvironment{theindex}
2765                {\if@twocolumn
2766                   \@restonecolfalse
2767                 \else
2768                   \@restonecoltrue
2769                 \fi
2770 %    \end{macrocode}
2771 % Here we add our TOC entry, and setup two-columness by hand
2772 % to avoid the |\clearpage| in \LaTeX's default |\twocolumn|.
2773 %    \begin{macrocode}
2774   \listed@schapter{\indexname}
2775   \global\columnwidth\textwidth
2776   \global\advance\columnwidth-\columnsep
2777   \global\divide\columnwidth\tw@
2778   \global\hsize\columnwidth
2779   \global\linewidth\columnwidth
2780   \global\@twocolumntrue
2781   \global\@firstcolumntrue
2782   \col@number \tw@
2783 %    \end{macrocode}
2784 %    Parameter changes to |\columnseprule| and |\columnsep| have to be
2785 %    done after |\twocolumn| has acted. Otherwise they can affect the
2786 %    last page before the index.
2787 %    \begin{macrocode}
2788                 \parindent\z@
2789                 \parskip\z@ \@plus .3\p@\relax
2790                 \columnseprule \z@
2791                 \columnsep 35\p@
2792                 \let\item\@idxitem}
2793 %    \end{macrocode}
2794 %    When the document continues after the index and it was a one
2795 %    column document we have to switch back to one column after the
2796 %    index.
2797 %    \begin{macrocode}
2798                {\if@restonecol\onecolumn\else\DUT@clearpage\fi}
2799 %    \end{macrocode}
2800 % \end{environment}
2801 %
2802 %
2803 % \subsubsection{Words}
2804 % \label{sec:words}
2805 %
2806 % Set the official names of the various sections encountered.  Some of
2807 % these are not defined in \file{classes.dtx} but are close analogs of
2808 % those that are.
2809 %
2810 % \begin{macro}{\dedicationsname}
2811 % From the Manual 3.3 p9, ``The heading |Dedications| must appear at
2812 % the top of the page.''
2813 %    \begin{macrocode}
2814 \newcommand\dedicationsname{Dedications}
2815 %    \end{macrocode}
2816 % \end{macro}
2817 %
2818 % \begin{macro}{\acknowledgmentsname}
2819 % From the Manual 3.4 p9, ``The heading |Acknowledgments| must appear
2820 % at the top of the page.''
2821 %    \begin{macrocode}
2822 \newcommand\acknowledgmentsname{Acknowledgments}
2823 %    \end{macrocode}
2824 % \end{macro}
2825 %
2826 % \begin{macro}{\contentsname}
2827 % From the Manual 3.5 p9, ``The heading |Table of Contents| must
2828 % appear at the top of the page.''  (\file{classes.dtx}, L4331)
2829 %    \begin{macrocode}
2830 \renewcommand\contentsname{Table of Contents}
2831 %    \end{macrocode}
2832 % \end{macro}
2833 %
2834 % \begin{macro}{\listtablename}
2835 % From the Manual 3.6 p10, ``The heading |List of Tables| must appear
2836 % at the top of the page.''  (\file{classes.dtx}, L4333)
2837 %    \begin{macrocode}
2838 \renewcommand\listtablename{List of Tables}
2839 %    \end{macrocode}
2840 % \end{macro}
2841 %
2842 % \begin{macro}{\listfigurename}
2843 % From the Manual 3.7 p10, ``The heading |List of Figures| must appear
2844 % at the top of the page.''  (\file{classes.dtx}, L4332)
2845 %    \begin{macrocode}
2846 \renewcommand\listfigurename{List of Figures}
2847 %    \end{macrocode}
2848 % \end{macro}
2849 %
2850 % \begin{macro}{\abstractname}
2851 % From the Manual 3.8 p10, ``The following heading must be centered at
2852 % the top of the first page: |Abstract|\ldots.''
2853 % (\file{classes.dtx}, L4367)
2854 %    \begin{macrocode}
2855 \newcommand\abstractname{Abstract}
2856 %    \end{macrocode}
2857 % \end{macro}
2858 %
2859 % \begin{macro}{\bibname}
2860 % From the Manual 3.13 p12, ``The heading |Bibliography| (or
2861 % |List of References|) must appear at the top of first page.''
2862 % (\file{classes.dtx}, L4344)
2863 %    \begin{macrocode}
2864 \renewcommand\bibname{Bibliography}
2865 %    \end{macrocode}
2866 % \end{macro}
2867 %
2868 % \begin{macro}{\appendixname}
2869 % From the Manual 3.14 p12, ``Number the appendicies consecutively
2870 % either alphabetically or numerically (|Appendix A|, |Appendix B|\ldots
2871 % or |Appendix 1|, |Appendix 2|\ldots).''
2872 % (\file{classes.dtx}, L4366)
2873 %    \begin{macrocode}
2874 \renewcommand\appendixname{Appendix}
2875 %    \end{macrocode}
2876 % \end{macro}
2877 %
2878 % \begin{macro}{\vitaname}
2879 % From the Manual 3.15 p13, ``The heading |Vita| must appear at the
2880 % top of the page.''
2881 %    \begin{macrocode}
2882 \newcommand\vitaname{Vita}
2883 %    \end{macrocode}
2884 % \end{macro}
2885 %
2886 %
2887 % \subsection{Remaining details}
2888 %
2889 %
2890 % \subsubsection{Terminal blank page}
2891 %
2892 % Add a terminal blank page (when |\if@final| is true)
2893 % From the Manual 3.16 p13
2894 % \begin{quote}
2895 %   Include a blank page (with no page number) at the end of the
2896 %   thesis or dissertation.  The blank page is neither counted nor
2897 %   numbered.
2898 % \end{quote}
2899 %    \begin{macrocode}
2900 \AtEndDocument{\blankpage}
2901 %    \end{macrocode}
2902 %
2903 %
2904 %    \begin{macrocode}
2905 %</class>
2906 %    \end{macrocode}
2907 %
2908 %
2909 % \section{Examples}
2910 %
2911 %
2912 % \subsubsection{Template}
2913 %
2914 %    \begin{macrocode}
2915 %<*template>
2916 % See drexel-thesis.pdf for details.
2917 \documentclass{drexel-thesis}
2918
2919 %% Enter the appropriate information here
2920 \author{}    % Fullname
2921 \title{}     % Title Of Thesis
2922 \defmonth{}  % Name of the month of you defense
2923 \defyear{}   % Year you are defending
2924 \degree{}    % Your target degree, spelled out
2925 \advisor{}   % Advisor's full name, degree
2926 \copyrighttext{} % If not "All Rights Reserved."
2927
2928 %% unsrt style give references in order of citation
2929 \bibliographystyle{unsrt}
2930
2931 \begin{document}
2932 \begin{preamble}
2933
2934 \begin{dedications} % OPTIONAL
2935 %% Type dedications here
2936 \end{dedications}
2937
2938 \begin{acknowledgments} % OPTIONAL
2939 %% Type acknowledgments here
2940 \end{acknowledgments}
2941
2942 \tableofcontents
2943 \listoftables  % If you have tables
2944 \listoffigures % If you have figures
2945
2946 \begin{abstract}
2947 %% Type abstract here
2948 \end{abstract}
2949 \end{preamble}
2950
2951 \begin{thesis}
2952 %% Use include statements to include your main thesis code
2953 %% from seperate files.
2954 %%\include{part1}
2955 %%...
2956 \end{thesis}
2957
2958 \bibliography{references} % Include references.bib BibTeX
2959
2960 \appendix % If you have appendices
2961 %% include files with your appendicies (if any) here
2962 %%\include{appendixA}
2963 %%...
2964
2965 \begin{vita} % Ph.D. only.
2966 %%Vita text.
2967 \end{vita}
2968
2969 \end{document}
2970 %</template>
2971 %    \end{macrocode}
2972 %
2973 %
2974 % \subsection{A better example}
2975 % \label{sec:better-example}
2976 %
2977 % \subsubsection{Main}
2978 %
2979 %     \begin{macrocode}
2980 %<*example|example-draft>
2981 %% See drexel-thesis.pdf for details.
2982 %<example>\documentclass[subfig]{drexel-thesis}
2983 %<example-draft>\documentclass[draft,subfig]{drexel-thesis}
2984
2985 %% Enter the appropriate information here
2986 \author{Johny Henry}
2987 \title{Inadequacies of Steam-Driven Boring Machines}
2988 \defmonth{July}
2989 \defyear{1872}
2990 \degree{Doctor of Philosophy}
2991 \advisor{Collis Potter Huntington, R.R.D.}
2992 \advisor{Advisor 2, Ph.D.}
2993 \advisor{Advisor 3, Ph.D.}
2994 \copyrighttext{\copyrighttextCCBYSA}
2995
2996 \usepackage[super,sort&compress]{natbib} % fancy citation extensions
2997 \bibliographystyle{unsrtnat}
2998
2999 \usepackage{fancyvrb} % nicer verbatim handling
3000 \DefineShortVerb{\|}  % \verb+TEXT+  ->  |TEXT|
3001
3002 %     \end{macrocode}
3003 % Use
3004 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/blindtext/}{\pkg{blindtext}}
3005 % for dummy text creation.  \pkg{blindtext} requires
3006 % \href{}{\pkg{babel}}.
3007 %     \begin{macrocode}
3008 \usepackage[english]{babel} % English blindtext
3009 \usepackage{blindtext} % macros for producing dummy output
3010 %     \end{macrocode}
3011 % \pkg{babel} messes with some of our words (Section \ref{sec:words}), so
3012 % we have to reset them.  See the
3013 % \href{http://www.tex.ac.uk/cgi-bin/texfaq2html?label=latexwords}{\TeX\ FAQ}
3014 % for details.
3015 %     \begin{macrocode}
3016 \addto\captionsenglish{%
3017   \renewcommand\dedicationsname{Dedications}%
3018   \renewcommand\acknowledgmentsname{Acknowledgments}%
3019   \renewcommand\contentsname{Table of Contents}%
3020   \renewcommand\listtablename{List of Tables}%
3021   \renewcommand\listfigurename{List of Figures}%
3022   \renewcommand\abstractname{Abstract}%
3023   \renewcommand\bibname{Bibliography}%
3024   \renewcommand\appendixname{Appendix}%
3025   \renewcommand\vitaname{Vita}%
3026 }
3027
3028 \begin{document}
3029 \begin{preamble}
3030
3031 \begin{dedications}
3032 We're in \iffinal{final}{draft} mode!
3033
3034 \Blindtext[3]
3035 \end{dedications}
3036
3037 \begin{acknowledgments}
3038 \Blindtext[3]
3039 \end{acknowledgments}
3040
3041 \tableofcontents
3042 \listoftables
3043 \listoffigures
3044
3045 \begin{abstract}
3046 \Blindtext[3]
3047 \end{abstract}
3048 \end{preamble}
3049
3050 \begin{thesis}
3051 \include{example-1}
3052 \end{thesis}
3053
3054 \bibliography{example-ref}
3055
3056 \appendix
3057 \include{example-a}
3058
3059 \begin{vita}
3060 \Blindtext[3]
3061 \end{vita}
3062
3063 \end{document}
3064 %</example|example-draft>
3065 %    \end{macrocode}
3066 %
3067 %
3068 % \subsubsection{Part}
3069 % \label{section:better-example-part}
3070 %
3071 %     \begin{macrocode}
3072 %<*example-part>
3073 \part{A Part Heading}
3074 \chapter{A Chapter Heading}
3075 \section{A Section Heading}
3076 The following sectioning commands are available:
3077 \begin{quote}
3078  part \\
3079  chapter \\
3080  section \\
3081  subsection \\ 
3082  subsubsection \\ 
3083  paragraph \\ 
3084  subparagraph 
3085 \end{quote}
3086
3087 \subsection{natbib}
3088 You can cite your references with |natbib|'s |\citet| and |\citep|
3089 macros.  See
3090 \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}
3091 {the natbib manual} for details.
3092
3093 Here we have a text citation \citet{rief97} followed by a
3094 parenthetical citation\citep{rief97}.
3095
3096 \subsubsection{Tables and Figures}
3097 \Blindtext[2]
3098 \begin{table}
3099   \begin{center}
3100   \begin{tabular}{r@{.}l r@{.}l r@{.}l}
3101     \multicolumn{2}{c}{Time (s)} &
3102       \multicolumn{2}{c}{John Henry (m)} &
3103       \multicolumn{2}{c}{Steam drill (m)} \\
3104     0&0 & 0&0 & 0&0 \\
3105     10&0 & 4&3 & 3&75 \\
3106     30&0 & 11&9 & 10&1 \\
3107     \ldots
3108   \end{tabular}
3109   \caption{A table float.} % low caption allowed with floatrow
3110 %% Note the strange |r@{.}l| notation in the |\tabular| column
3111 %% definition.  This allows for numbers aligned at the decimal point
3112 %% (see \href{http://www.stat.unipg.it/tex-man/ltx-68.html}{here}).
3113 %%
3114 %% |\multicolumn{num_cols}{alignment}{contents}| allows the headings
3115 %% to span the pre- and post-decimal columns.
3116   \end{center}
3117 \end{table}
3118 \Blindtext[2]
3119 \begin{figure}
3120   \caption{A figure float. \blindtext} % high caption allowed with floatrow
3121   \begin{center}
3122     \includegraphics[width=0.4\textwidth]{drexel-logo}
3123   \end{center}
3124 \end{figure}
3125 \Blindtext[3]
3126 \begin{figure}
3127   \begin{center}
3128     \subfloat[][]{%
3129       \includegraphics[width=0.2\textwidth]{drexel-logo}%
3130       \label{fig:sub-a}}
3131     \subfloat[][]{%
3132       \includegraphics[width=0.2\textwidth]{drexel-logo}%
3133       \label{fig:sub-b}}
3134     \caption{(a) One subfig float. (b) Another subfig float.%
3135       \label{fig:both}}
3136   \end{center}
3137 \end{figure}
3138 You can reference the subfig floats individually (\ref{fig:sub-a}) or
3139 together (\ref{fig:both}).
3140
3141 \Blindtext[3]
3142
3143 \part{Another Part}
3144 \chapter{Another Chapter}
3145 \Blindtext[5]
3146 \chapter{A Long Title Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla
3147 Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla}
3148 \Blindtext[5]
3149 %</example-part>
3150 %    \end{macrocode}
3151 %
3152 %
3153 % \subsubsection{\BibTeX}
3154 %
3155 % What goes into the \BibTeX\ file |example-ref.bib|?
3156 % For more information, check out this 
3157 % \href{http://cmtw.harvard.edu/Documentation/TeX/Bibtex/Example.html}{basic tutorial}.
3158 % If you want to get deeper, take a look at
3159 % \href{http://www.ctan.org/tex-archive/info/bibtex/tamethebeast/}{Tame the BeaST}.
3160 % Other resources:
3161 % \href{http://www.andy-roberts.net/misc/latex/latextutorial3.html}{how the process works},
3162 %   \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node6.html}{entry types},
3163 %   \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node7.html}{fields},
3164 %   \href{http://en.wikipedia.org/wiki/BibTeX}{entries and fields},
3165 %   \href{http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html}{assorted style examples}, and
3166 %   \href{http://liinwww.ira.uka.de/bibliography/Bib.Format.html}{assorted \BibTeX tools}.
3167 %
3168 % Here is an example \BibTeX\ file to get you started.  We define
3169 % strings for the publishers, journals, and authors to avoid
3170 % duplication, minimize the risk of typos, etc.
3171 %
3172 %    \begin{macrocode}
3173 %<*example-bibtex-refs>
3174 %% Publishers
3175 @String{APS = "American Physical Society"}
3176
3177 %% Journals
3178 @String{SCI = "Science"}
3179
3180 %% Authors
3181 @String{MRief = "Rief, Matthias"}
3182 @String{MGautel = "Gautel, Mathias"}
3183 @String{FOesterhelt = "Oesterhelt, Filipp"}
3184 @String{JFernandez = "Fernandez, Julio M."}
3185 @String{HGaub = "Gaub, Hermann E."}
3186
3187 %% Articles
3188 @Article{rief97,
3189   author = MRief #" and "# MGautel #" and "# FOesterhelt #" and "#
3190            JFernandez #" and "# HGaub,
3191   title = "Reversible Unfolding of Individual Titin Immunoglobulin
3192            Domains by {AFM}",
3193   journal = SCI,
3194   volume =  276,
3195   number =  5315,
3196   pages =   "1109--1112",
3197   year =    1997,
3198   doi =     "10.1126/science.276.5315.1109",
3199   URL =     "http://www.sciencemag.org/cgi/content/abstract/276/5315/1109",
3200   eprint =  "http://www.sciencemag.org/cgi/reprint/276/5315/1109.pdf",
3201   mynote = "Seminal paper for force spectroscopy on Titin. Cited by
3202            Dietz '04 (ref 9) as an example of how unfolding large
3203            proteins is easily interpreted (vs.\ confusing unfolding in
3204            bulk), but Titin is a rather simple example of that, because
3205            of its globular-chain structure.",
3206 }
3207 %% ...
3208 %</example-bibtex-refs>
3209 %    \end{macrocode}
3210 %
3211 %
3212 % \subsubsection{Appendix}
3213 %
3214 %    \begin{macrocode}
3215 %<*example-appendix>
3216 \chapter{Some Appendix Heading}
3217 \Blindtext[5]
3218 \chapter{Another Appendix Heading}
3219 \Blindtext[5]
3220 %</example-appendix>
3221 %    \end{macrocode}
3222 %
3223 %
3224 % \section{Known bugs and issues}
3225 %
3226 %
3227 % \subsection{Hacks}
3228 %
3229 % \begin{itemize}
3230 %   \item |\vspace*{0\p@}| space between page top and chapter
3231 %     headings (|\@makechapterhead| and |\@makeschapterhead|,
3232 %     Sec.~\ref{sec:implement-chapters}).
3233 %   \item Extra space under LOT and LOF titles compared to TOC.
3234 %     (Secs.~\ref{sec:implement-lof} and \ref{sec:implement-lot}).
3235 % \end{itemize}
3236 %
3237 %
3238 % \subsection{Bugs}
3239 %
3240 % \begin{itemize}
3241 %   \item Different space between chapter heading and section heading,
3242 %     vs.\ chapter heading and text.  Compare \emph{A Chapter Heading}
3243 %     and \emph{Another Chapter} in \file{example.pdf}.  This is a
3244 %     problem (although with opposite order) in the \cls{book} class
3245 %     itself.  For example, compile
3246 %     \begin{example}
3247 %\documentclass{book}
3248 %\begin{document}
3249 %\chapter{Chapter with text}
3250 %Bla bla bla.
3251 %\chapter{Chapter with section}
3252 %\section{Section}
3253 %Bla bla bla.
3254 %\end{document}
3255 %     \end{example}
3256 %   \item Footer overlap if chapter/section names are particularly long.
3257 %     See \emph{Section in long-titled chapter} in \file{example.pdf}.
3258 %     Workaround: turn off sections in the footer:
3259 %     \begin{example}
3260 %       \fancyfoot[RE,LO]{\scshape\leftmark}
3261 %       \fancyfoot[LE,RO]{}
3262 %     \end{example}
3263 %     For more header or footer manipulation ideas, see Section \ref{sec:fancyhdr}.
3264 % \end{itemize}
3265 %
3266 %
3267 % \Finale
3268 \endinput