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