Merge branch 'master' of ssh://einstein/~/public_html/code/git/drexel-thesis
[drexel-thesis.git] / drexel-thesis.dtx
1 % \def\fileversion{0.14}
2 % \def\filedate{2010/09/21}
3 % \iffalse meta-comment
4 %<*driver>
5 \ProvidesFile{drexel-thesis.dtx}
6 \documentclass{ltxdoc}
7 %</driver>
8 %<*class|driver>
9 \def\fileversion{0.14}
10 \def\filedate{2010/09/21}
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 % \changes{0.13}{2010/07/28}{W.~Trevor King cleaned up TOC/LOT/LOF code.}
161 % \changes{0.14}{2010/09/21}{Evan Sultanik added the
162 %   \texttt{approvalform} option for including a \LaTeX\ version of
163 %   the T-1 thesis form.}
164 %
165 % \MakeShortVerb{\|}
166 % \newcommand{\pkg}[1]{\textsf{#1}}
167 % \newcommand{\cls}[1]{\textsf{#1}}
168 % ^^A\newcommand{\BibTeX}{{\scshape Bib}\TeX}
169
170 % \title{The \textsf{drexel-thesis} class\thanks{This document
171 %   corresponds to \textsf{drexel-thesis}~\fileversion, dated \filedate.}}
172 % \author{W.~Trevor King \\\texttt{wking@drexel.edu}
173 %         \and Daniel J.~Cross \and T.~Tsankov \and R.~Rojas. \and Evan A.~Sultanik}
174 % \date{\filedate}
175 %
176 % \maketitle
177 %
178 %
179 % \section{Introduction}
180 %
181 % This package defines a \LaTeX\ thesis class for Drexel University
182 % conforming to the
183 % \href{http://www.library.drexel.edu/files/services_documents/thesismanual.pdf}
184 %   {Drexel University Thesis Manual version 2009/06/01}.
185 %
186 % \section{Usage}
187 %
188 % To write a thesis, you load the Drexel thesis definitions by loading
189 % the \pkg{drexel-thesis} class at the beginning of your
190 % \LaTeX\ document with the |\documentclass| command.  For example,
191 % \begin{example}
192 %   \documentclass{drexel-thesis}
193 % \end{example}
194 %
195 % For \href{http://www.lyx.org/}{LyX} users, we include a LyX template
196 % (\file{drexel-thesis.layout}, originally by John K. Parejko) so that
197 % the previews generated in LyX are similar to those generated by the
198 % actual \cls{drexel-thesis} class.
199 %
200 %
201 % \subsection{Options}
202 %
203 % \DescribeOptions{final,draft}
204 % The default option (selected if not options are passed) is
205 % \Lopt{final} mode, which has all the proper formatting and spacing
206 % for your final product. The other main option is \Lopt{draft} mode,
207 % which reduces all the spacing in the document, so might be helpful
208 % when printing out drafts (saves paper).
209 %
210 % \Lopt{final} mode corresponds to (with Thesis Manual chapter and
211 % verse) \\
212 % \begin{tabular}{r p{0.8\textwidth}}
213 %   \Lopt{oneside} & 1.5 Library Submission Information, Print
214 %     Version: ``All copies must be: \ldots Typed/printed on only one
215 %     side of the page (not double-sided).'' \\
216 %   \Lopt{finalspace} & Assorted single, double, and triple spacing
217 %   directives. \\
218 %   \Lopt{dottedtoc} & From the example on p17.
219 % \end{tabular}
220 %
221 % \Lopt{draft} mode corresponds to \\
222 % \begin{tabular}{r p{0.8\textwidth}}
223 %   \Lopt{twoside} & Save space. \\
224 %   \Lopt{draftspace} & Save space. \\
225 %   \Lopt{dottedtoc} & Might as well be consistent with \Lopt{final}. \\
226 %   \Lopt{mydraftwatermark} & It's good to have a timestamp. \\
227 % \end{tabular}
228 %
229 % \DescribeOption{subfig}
230 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/subfig/}{\pkg{subfig}}
231 % makes it easy to include and caption multi-part figures.  However,
232 % getting \pkg{subfig} to cooperate with \pkg{floatrow} and
233 % \pkg{tocloft} can be tricky.  If you want to use \pkg{subfig}, just
234 % pass the \Lopt{subfig} option to \cls{drexel-thesis}, and all the
235 % pesky details will be taken care of.  See \S
236 % \ref{sec:better-example} for an example.
237 %
238 % \DescribeOption{finalspace}
239 % Loosen spacing.
240 %
241 % \DescribeOption{draftspace}
242 % Tighten spacing.
243 %
244 % \DescribeOptions{dottedtoc,boldtoc,
245 %                  dottedpart,boldpart,
246 %                  dottedchapter,boldchapter}
247 % These options change how the relevant table of contents lines are
248 % printed.  \LaTeX\ defaults to bold but not dots.  The \Lopt{*toc}
249 % options set all of the types.  For example, \Lopt{boldtoc} is
250 % equivalent to \Lopt{boldchapter,boldpart}.
251 %
252 % \DescribeOption{indenttoc}
253 % The example table of contents in the Manual p17 does not indent
254 % section entries, etc., so neither does \cls{drexel-thesis}.  If you
255 % \emph{do} want pretty, indented TOCs, like the \LaTeX\ defaults pass
256 % \Lopt{indenttoc} to \cls{drexel-thesis}.
257 %
258 % \DescribeOption{blackref}
259 % \Lopt{blackref} colors all \pkg{hyperref} links black, so they won't
260 % stand out in your printed document.
261 %
262 % \DescribeOption{draftwatermark}
263 % \Lopt{draftwatermark} adds ``DRAFT \meta{date}'' watermarks to each
264 % page.  A useful way to remember that the version you're looking at
265 % is not final.  Also helps reviewers tell you what version they're
266 % correcting.  Requires the \pkg{draftmark} package.
267 %
268 % \DescribeOption{mydraftwatermark}
269 % \Lopt{mydraftwatermark} is similar to \Lopt{draftwatermark} but
270 % depends on the possibly more common \pkg{xcolor}, \pkg{eso-pic},
271 % and \pkg{graphicx}.
272 %
273 % \DescribeOption{indentfirst}
274 % \Lopt{indentfirst} indents the first paragraph after sections etc.
275 %
276 % \DescribeOption{approvalform}
277 % \Lopt{approvalform} includes a copy of the
278 % \href{http://www.drexel.edu/graduatestudies/forms/Thesis_Approval_Form.pdf}{%
279 %   T-1} approval form as the first page of your thesis/dissertation.
280 % This form is bound to the front of every thesis/dissertation by the
281 % library.  The version that is generated by this option is typeset in
282 % \LaTeX\ with the same margins, fonts, etc.~as the rest of
283 % your document.  The title of your dissertation and your name are
284 % automatically entered.
285 %
286 %
287 % \subsubsection{Interesting \cls{book} options}
288
289 % \DescribeOption{oneside}
290 % Setup output for one-sided printing.
291 %
292 % \DescribeOption{twoside}
293 % Setup output for two-sided printing.
294 %
295 % \DescribeOption{leqno}
296 % \Lopt{leqno} places the numbering of formulae on the left hand side
297 % instead of the right.
298 %
299 % \DescribeOption{fleqn}
300 % \Lopt{fleqn} typesets displayed formulae left-aligned instead of
301 % centered.
302 %
303 % \DescribeOption{daring}
304 % \Lopt{daring} breaks the official thesis rules in pursuit of a nicer
305 % layout.
306 %
307 %
308 % \subsection{Macros}
309 %
310 % To help deal with name collisions, all \cls{drexel-thesis} macros
311 % have ``secret'' aliases.  For example, |\author| can also be used as
312 % |\DUTauthor|.  This is useful if one of your packages clobbers a
313 % \cls{drexel-thesis} macro, but you still want to use the original.
314 % \begin{example}
315 %   \documentclass{drexel-thesis}
316 %   \renewcommand{\author}[1]{I'm forgetting about your author! Muahahaha!}
317 %   \DUTauthor{Your Name Here}
318 %   ...
319 % \end{example}
320 %
321 % \begin{command}
322 %   `\cs{author}\marg{name}'
323 % \end{command}
324 % \DescribeMacro{\author}
325 % \DescribeMacro{\DUTauthor}
326 % Use this macro to set your full name to \meta{name}, including
327 % your middle initial or name.  For example
328 % \begin{example}
329 %   \name{Richard P. Feynman}
330 % \end{example}
331 % See the Manual \S 3.1 p8.
332 %
333 % \begin{command}
334 %   `\cs{title}\marg{title}'
335 % \end{command}
336 % \DescribeMacro{\title}
337 % \DescribeMacro{\DUTtitle}
338 % Use this macro to set your thesis title to \meta{name}.  For example
339 % \begin{example}
340 %   \title{A New Approach to Quantum Theory}
341 % \end{example}
342 % See the Manual p16.
343 %
344 % \begin{command}
345 %   `\cs{advisor}\marg{name}'
346 % \end{command}
347 % \DescribeMacro{\advisor}
348 % \DescribeMacro{\DUTadvisor}
349 % Use this macro to set your advisor's name to \meta{name}.  For
350 % example
351 % \begin{example}
352 %   \advisor{John A. Wheeler, Ph.D.}
353 % \end{example}
354 % You can set multiple advisors, if appropriate, by calling |\advisor|
355 % multiple times.
356 % \begin{example}
357 %   \advisor{John A. Wheeler, Ph.D.}
358 %   \advisor{Advisor 2}
359 % \end{example}
360 % See the Manual \S 3.1 p8.
361 %
362 % \begin{command}
363 %   `\cs{DUTmonth}\marg{month}'
364 %   `\cs{DUTyear}\marg{year}'
365 % \end{command}
366 % \DescribeMacro{\DUTmonth}
367 % \DescribeMacro{\DUTyear}
368 % Use these macros to set the month with \meta{month} (spelled out)
369 % and year with \meta{year} (four digits) of your thesis defense.  For
370 % example
371 % \begin{example}
372 %   \DUTmonth{June}
373 %   \DUTyear{1942}
374 % \end{example}
375 % See the Manual \S 3.1 p8.
376 % There are no non-|DUT| versions of these commands to avoid
377 % collisions with the plain \TeX\ |\month| and |\year| (see the
378 % \href{http://www.tug.org/utilities/plain/cseq.html#month-rp}{month}
379 % and
380 % \href{http://www.tug.org/utilities/plain/cseq.html#year-rp}{year}
381 % entries in the HTML version of David Bausum's \emph{TeX Reference
382 % Manual}).
383 %
384 % \begin{command}
385 %   `\cs{degree}\marg{degree}'
386 % \end{command}
387 % \DescribeMacro{\degree}
388 % \DescribeMacro{\DUTdegree}
389 % Set your target degree with \meta{degree}.  From the Manual \S 3.1
390 % p8.
391 % \begin{quote}
392 %   Write out the name of the degree for which you are a candidate.
393 %   All Ph.D.\ candidates must use |Doctor of Philosophy|.  All
394 %   Master's degree candidates should use the precise degree name
395 %   (e.g., |Master of Science in Mechanical Engineering|).
396 % \end{quote}
397 % So, for a Ph.D candidate,
398 % \begin{example}
399 %   \degree{Doctor of Philosophy}
400 % \end{example}
401 %
402 % \begin{command}
403 %   `\cs{copyrighttext}\marg{text}'
404 % \end{command}
405 % \DescribeMacro{\copyrighttext}
406 % \DescribeMacro{\DUTcopyrighttext}
407 % Use this macro to set the copyright text to \meta{text}.
408 % The default value is ``All Rights Reserved.''.
409 % \begin{example}
410 %   \copyrighttext{Released to the Public Domain.}
411 % \end{example}
412 % See the Manual \S 3.2 p9.
413 %
414 % \begin{command}
415 %   `\cs{copyrighttextCCBYSA}'
416 % \end{command}
417 % \DescribeMacro{\copyrighttextCCBYSA}
418 % \DescribeMacro{\DUTcopyrighttextCCBYSA}
419 % There are a number of predefined copyright messages for ease of use \\
420 % \begin{tabular}{l l}
421 %   |\copyrighttextCCBYSA| &
422 %     Creative Commons Attribution-ShareAlike License Version 3.0.\\
423 % \end{tabular}
424 %
425 % \begin{command}
426 %   `\cs{tableofcontents}'
427 % \end{command}
428 % \DescribeMacro{\tableofcontents}
429 % \DescribeMacro{\DUTtableofcontents}
430 % Write the table of contents (Manual \S 3.5 p9).  You can control the
431 % verbosity by setting |\tocdepth| according to the following table
432 % (\href{http://www.image.ufl.edu/help/latex/intext.shtml}{source}). \\
433 % \begin{tabular}{l l l}
434 %   Depth in document & Section Command & Depth for |\secnumdepth| Command \\
435 %   -1 & |\part| & 1 \\
436 %    0 & |\chapter| & 2 \\
437 %    1 & |\section| & 3 \\
438 %    2 & |\subsection| & 4 \\
439 %    3 & |\subsubsection| & 5 \\
440 %    4 & |\paragraph| & 6 \\
441 %    5 & |\subparagraph| & 7
442 % \end{tabular} \\
443 % For example, to expose everything down to and including the
444 % |\subsection| level, you would add
445 % \begin{example}
446 %   \setcounter{tocdepth}{2}
447 % \end{example}
448 % to your preamble (the section before |\begin{document}|, not the
449 % |preamble| environment discussed below).
450 %
451 % Note that the Manual \S 3.5 p9 requires ``List chapter titles and at
452 % least the first and second order subdivisions.'', which corresponds
453 % to a |\tocdepth| of at least 2.
454 %
455 % \begin{command}
456 %   `\cs{listoftables}'
457 % \end{command}
458 % \DescribeMacro{\listoftables}
459 % \DescribeMacro{\DUTlistoftables}
460 % Write the List of Tables page (Manual \S 3.6 p10).
461 % Skip if you have no tables in your thesis.
462 %
463 % \begin{command}
464 %   `\cs{listoffigures}'
465 % \end{command}
466 % \DescribeMacro{\listoffigures}
467 % \DescribeMacro{\DUTlistoffigures}
468 % Write the List of Figures page (Manual \S 3.7 p10).
469 % Skip if you have no figures in your thesis.
470 %
471 % \begin{command}
472 %   `\cs{blanklines}\marg{num}'
473 % \end{command}
474 % \DescribeMacro{\blanklines}
475 % \DescribeMacro{\DUTblanklines}
476 % Insert \meta{num} blank lines.  For example
477 % \begin{example}
478 %   \blanklines{2}
479 % \end{example}
480 % The skipped lines are always \emph{single spaced} lines, regardless
481 % of the current line spacing in the environment calling this macro.
482 %
483 % \begin{command}
484 %   `\cs{iffinal}\marg{final-mode-action}\marg{draft-mode-action}'
485 % \end{command}
486 % \DescribeMacro{\iffinal}
487 % \DescribeMacro{\DUTiffinal}
488 % Include \Lopt{final}- or \Lopt{draft}-specific code.
489 % \begin{example}
490 %   We're in \iffinal{final}{draft} mode!
491 % \end{example}
492 %
493 % \begin{command}
494 %   `\cs{ifdaring}\marg{daring-action}\marg{wimpy-action}'
495 % \end{command}
496 % \DescribeMacro{\ifdaring}
497 % \DescribeMacro{\DUTifdaring}
498 % Include \Lopt{daring}-specific code, with wimpy fallbacks.
499 % \begin{example}
500 %   \ifdaring{\singlespacing Muahahahaha!}{mumble mumble}.
501 % \end{example}
502 %
503 % \begin{command}
504 %   `\cs{drexellogobw}'
505 % \end{command}
506 % \DescribeMacro{\drexellogobw}
507 % Draws a black-and-white official vector Drexel logo.  The image is
508 % exactly 1~inch wide and 1.016~inches tall.  This is accomplished
509 % using the \pkg{tikz} package (\S~\ref{sec:tikz}).  You can enclose
510 % this command in a |\scalebox| to alter its size.
511 %
512 %
513 % \subsection{Environments}
514 %
515 % To help deal with name collisions, all \cls{drexel-thesis}
516 % environments have ``secret'' aliases.  For example, |preamble| can
517 % also be used as |DUTpreamble|.  This is useful if one of your
518 % packages clobbers a \cls{drexel-thesis} environment, but you still
519 % want to use the original.
520 % \begin{example}
521 %   \documentclass{drexel-thesis}
522 %   \renewenvironment{preamble}{%
523 %     What preamble?\begingroup\color{white}}{\endgroup}
524 %   \begin{document}
525 %   \begin{DUTpreamble}
526 %   Thwarted again, evil one!
527 %   ...
528 % \end{example}
529 %
530 %
531 % \DescribeEnv{preamble}
532 % \DescribeEnv{DUTpreamble}
533 % Generalize the |\frontmatter| for the thesis, setting up page
534 % numbering, including the title page, copyright page etc.  The
535 % |preamble| environment should contain the following elements
536 % (in order, see the Manual p8)
537 % \begin{itemize}
538 %   \item |dedication| environment (optional)
539 %   \item |acknowledgments| environment (optional)
540 %   \item |\tableofcontents|
541 %   \item |\listoftables|
542 %   \item |\listoffigures|
543 %   \item |abstract| environment
544 % \end{itemize}
545 % This will take care of everything from the title page (Manual \S 3.1),
546 % up through the blank page before the text (Manual \S 3.9).
547 %
548 % \DescribeEnv{dedications}
549 % \DescribeEnv{DUTdedications}
550 % Set the dedications text.
551 % Highlights from the Manual \S 3.3 p9:
552 % \begin{quote}
553 %   The |Dedications| page is optional.
554 % \end{quote}
555 %
556 % \DescribeEnv{acknowledgments}
557 % \DescribeEnv{DUTacknowledgments}
558 % Set the acknowledgments text.
559 % Highlights from the Manual \S 3.4 p9:
560 % \begin{quote}
561 %   The |Acknowledgments| page is optional, but most theses do
562 %   include a brief statement of thanks or recognition of any special
563 %   assistance.
564 % \end{quote}
565 %
566 % \DescribeEnv{abstract}
567 % \DescribeEnv{DUTabstract}
568 % Set the thesis abstract text.  In the Thesis Manual, see \S 3.8
569 % Abstract (p10) for details, p20 for an example.
570 %
571 % Highlights from the Manual:
572 % \begin{quote}
573 %   The abstract is a summary that allows readers to determine the
574 %   value of reading the full thesis.  It should include a statement
575 %   of the problem, an outline of procedures or methods, and a summary
576 %   of results and conclusions.
577 % \end{quote}
578 % \begin{itemize}
579 %   \item Word limits: 600 for a Master's thesis, 350 for a Ph.D.\ thesis.
580 % \end{itemize}
581 %
582 % \DescribeEnv{thesis}
583 % \DescribeEnv{DUTthesis}
584 % Set the thesis text.  In the Thesis Manual, see \S 3.10 Thesis (p11)
585 % for details.
586 %
587 % Highlights from the Manual:
588 % \begin{quote}
589 %   Divide the text into its major parts/chapters/subsections.  No
590 %   fixed arrangement is necessary.  The major parts may contain such
591 %   subjects as introduction, general argument, description of
592 %   experimental procedures, research methods, discussion, summary,
593 %   conclusions, recommendations, and other pertinent topics that are
594 %   necessary for a complete understanding on the part of a
595 %   sophisticated or professional reader.
596 % \end{quote}
597 %
598 % \DescribeEnv{vita}
599 % \DescribeEnv{DUTvita}
600 % Set the thesis vita text (Ph.D.\ only).  See the Manual \S 3.15 p12,
601 % ``Vita'', for details.
602 %
603 % Highlights from the Manual:
604 % \begin{quote}
605 %   The Vita is a biography of the student written in the third person
606 %   in either essay or outline form.  It should include the full name,
607 %   place and date of birth (optional), country of citizenship
608 %   (optional), institutions attended, degrees and honors received,
609 %   titles of publications, teaching and professional experience, and
610 %   other pertinent data.  The Vita must be one page or less.
611 % \end{quote}
612 %
613 %
614 % \subsection{Hints}
615 %
616 %
617 % \subsubsection{Package installation}
618 % \label{sec:dependencies}
619 %
620 % All the packages this class depends on must be installed somewhere
621 % in your texmf tree (they probably already are).  If not, you will
622 % recieve warning messages on compilation such as
623 % \begin{example}
624 %   ! LaTeX Error: File `missing-package.sty' not found.
625 % \end{example}
626 % You should then install the missing package(s) using your operating
627 % systems package manager, or grab the missing package from
628 % \href{http://www.ctan.org/}{CTAN}, and install them following TODO.
629 %
630 %
631 % \subsubsection{Tables and Figures}
632 %
633 % \pkg{drexel-thesis} loads
634 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
635 % to define the |\includegraphics| macro,
636 % \href{http://www.ctan.org/tex-archive/macros/latex/required/caption/}{\pkg{caption}}
637 % for pretty caption formatting,
638 % \href{http://www.ctan.org/tex-archive/macros/latex/required/floatrow/}{\pkg{floatrow}}
639 % for placing captions, and
640 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{hypcap}}
641 % for placing caption anchors.
642 %
643 % Simple float definitions will look like
644 % \begin{example}
645 %   \begin{table}
646 %      \caption{Some caption text}
647 %      \begin{tabular}{...}
648 %        ...
649 %      \end{tabular}
650 %   \end{table}
651 % \end{example}
652 % or
653 % \begin{example}
654 %   \begin{float}
655 %      \includegraphics{...}
656 %      \caption{Some caption text}
657 %   \end{float}
658 % \end{example}
659 % For more useful float information, see the examples in \S
660 % \ref{sec:better-example-part} and the
661 % \href{http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions}
662 %   {\LaTeX\ wikibook page}.
663 %
664 %
665 % \subsubsection{Citations}
666 %
667 % I highly recommend using \BibTeX\ and
668 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}{\pkg{natbib}}.
669 % See \S \ref{sec:better-example} for a simple example.
670 %
671 % Suggested options:\\
672 % \begin{tabular}{r p{0.8\textwidth}}
673 %   |super| & selects citations in superscript mode. \\
674 %   |sort&compress| & automatically sorts and compresses compound
675 %     citations (|\pcite{a,b,...}|).
676 % \end{tabular}
677 %
678 %
679 % \subsubsection{References}
680 %
681 % Easier cross referencing with
682 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/cleveref/}{\pkg{cleveref}}.
683 % Is a wonderful tool for easy, consistent crosslinking via |\cref|,
684 % |\Cref|, etc..  The manual is also very good.
685 % Note that if you use |\part|s in your document, you need to tell
686 % \pkg{cleveref} how to deal with them:
687 % \begin{example}
688 %   \usepackage{cleveref}
689 %   \crefname{part}{part}{parts}
690 % \end{example}
691 %
692 %
693 % \subsubsection{Hyperlinks}
694 %
695 % \cls{drexel-thesis} loads
696 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{%
697 %   \pkg{hyperref}}.
698 % with the options:\\
699 % \begin{tabular}{r p{0.8\textwidth}}
700 %   |colorlinks| & color the link letters instead of drawing colored boxes. \\
701 % \end{tabular}
702 %
703 % The default \pkg{hyperref} colors can be a bit jarring.  Feel free
704 % to use \Lopt{blackref} or override them yourself:
705 % \begin{example}
706 %   \usepackage{xcolor}
707 %   \definecolor{dark-gray}{gray}{0.3}
708 %   \hypersetup{citecolor=dark-gray}
709 % \end{example}
710 % See
711 % \href{http://mirror.ctan.org/macros/latex/contrib/hyperref/doc/manual.pdf}{%
712 %   the hyperref manual} (\S 3.4 Extension options)
713 % for a list of |*color| options.
714 %
715 % If running with a pdftex-based driver, |\author|, |\title|, and
716 % |\degree| automatically set |pdfauthor|, |pdftitle|, and
717 % |pdfsubject| respectively.  You can use the |\hypersetup| macro to
718 % set options overriding these defaults.
719 %
720 %
721 % \subsubsection{Developing large \LaTeX\ documents}
722 %
723 % A thesis may take a while to compile, especially if it contains
724 % lots of images, etc..  One way to save time, is to use |\includeonly|
725 % when including chapter \file{*.tex} files (see
726 % \href{http://en.wikibooks.org/wiki/TeX/includeonly}{the \TeX\ Wikibook}).
727 % Usage would be something like
728 % \begin{example}
729 % \documentclass{drexel-thesis}
730 % ...
731 % \includeonly{chapter2.tex,chapter3.tex}
732 % \begin{document}
733 % ...
734 % \begin{thesis}
735 % \include{chapter1.tex}
736 % \include{chapter2.tex}
737 % \include{chapter3.tex}
738 % \include{chapter4.tex}
739 % \end{thesis}
740 % ...
741 % \end{document}
742 % \end{example}
743 % which would only compile chapters two and three.  Don't confuse the
744 % similar commands |\include| and |\input|.  The more fundamental
745 % |\input| just inserts the file contents at that point, while
746 % |\include|
747 % \begin{itemize}
748 %   \item may only be used after |\begin{document}|
749 %   \item acts like |\clearpage \input{} \clearpage|
750 %   \item will not crash on nonexistent files
751 % \end{itemize}
752 %
753 %
754 % \StopEventually{\pagebreak\PrintChanges}
755 %
756 %
757 % \section{Implementation}
758 %    \begin{macrocode}
759 %<*class>
760 %    \end{macrocode}
761 %
762 % For simplicity, we'll derive everything from the standard \cls{book}
763 % class.
764 %
765 %
766 % \subsection{Option Processing}
767 %
768 % Include
769 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xkeyval/}{\pkg{xkeyval}}
770 % for easier option parsing.  If the package is not installed on your system,
771 % see \S \ref{sec:dependencies} for installation instructions.
772 %    \begin{macrocode}
773 \RequirePackage{xkeyval}
774 %    \end{macrocode}
775 %
776 % Define some booleans to store option states
777 %    \begin{macrocode}
778 \newif\if@mainmatter \@mainmattertrue
779 \newif\if@DUT@subfigopt
780 \newif\if@dottedchapter 
781 \newif\if@boldchapter
782 \newif\if@boldpart
783 \newif\if@dottedpart
784 \newif\if@indenttoc
785 \newif\if@blackref
786 \newif\if@draftwatermark
787 \newif\if@mydraftwatermark
788 \newif\if@indentfirst
789 \newif\if@final
790 \newif\if@daring
791 \newif\if@approvalform
792 %    \end{macrocode}
793 %
794 % \begin{macro}{\iffinal}
795 % Setup a user-friendly means for including \Lopt{final}- or
796 % \Lopt{draft}-specific code.
797 % \changes{0.7}{2010/03/14}{W.~Trevor King added macro.}
798 %    \begin{macrocode}
799 \newcommand\iffinal[2]{\if@final #1\else #2\fi}
800 %    \end{macrocode}
801 % \end{macro}
802 %
803 % \begin{macro}{\ifdaring}
804 % Setup a user-friendly means for including \Lopt{daring}-specific
805 % code.
806 % \changes{0.11}{2010/06/04}{W.~Trevor King added macro.}
807 %    \begin{macrocode}
808 \newcommand\ifdaring[2]{\if@daring #1\else #2\fi}
809 %    \end{macrocode}
810 % \end{macro}
811 %
812 % \begin{macro}{\DUT@makeapprovalform}
813 % Typesets the T-1 thesis/dissertation approval form.
814 % \changes{0.14}{2010/09/21}{Evan Sultanik added macro.}
815 %    \begin{macrocode}
816 \newcommand\DUT@makeapprovalform{
817   \thispagestyle{empty}
818   \begingroup
819   \newlength{\tempskipa}
820   \newlength{\tempskipb}
821 %    \end{macrocode}
822 % Don't indent paragraphs on this page.
823 %    \begin{macrocode}
824   \parindent \z@
825 %    \end{macrocode}
826 % Setup $\mbox{tempskipa} = \mbox{logo width} + \mbox{4pt}$ and
827 % $\mbox{tempskipb} = \mbox{textwidth} - \mbox{tempskipa} -
828 % \mbox{4pt}$.  The first |pt| ensures the logo will fit in the left
829 % column; the second provides some buffer space between the minipages.
830 %    \begin{macrocode}
831   \settowidth{\tempskipa}{\drexellogobw}
832   \addtolength{\tempskipa}{1em}
833   \setlength{\tempskipb}{\textwidth}
834   \addtolength{\tempskipb}{-\tempskipa}
835   \addtolength{\tempskipb}{-1em}
836 %    \end{macrocode}
837 % Add the logo and form title in columns.  Each column is in a minipage.
838 %    \begin{macrocode}
839   \begin{minipage}[c]{\tempskipa}
840 %    \end{macrocode}
841 % |\raisebox| drops the logo so that the image is centered on the baseline.
842 %    \begin{macrocode}
843     \raisebox{-0.5\height}{\drexellogobw}
844   \end{minipage}
845   \hfill
846   \begin{minipage}[c]{\tempskipb}
847 %    \end{macrocode}
848 % Unlike |\newline| or |\\|, |\linebreak| justifies the current line
849 % before requesting a newline.
850 %    \begin{macrocode}
851     \textbf{\Huge Office of Graduate Studies} \linebreak
852     \vskip 0.1\baselineskip
853 %    \end{macrocode}
854 % The original form lacks the spaces around the slash (|/|), but
855 % \LaTeX's font and kerning make the second line more compact in our
856 % version.  Allowing stretchy spaces around the slash helps the second
857 % line look more balanced.
858 %    \begin{macrocode}
859     \textbf{\LARGE Dissertation / Thesis Approval Form} \linebreak
860   \end{minipage}
861
862   \vskip 2\baselineskip
863
864   This form is for use by all doctoral and master's students with a
865   dissertation/thesis requirement.  Please print clearly as the
866   library will bind a copy of this form with each copy of the
867   dissertation/thesis.  All doctoral dissertations must conform to
868   university format requirements, which is the responsibility of the
869   student and supervising professor.  Students should obtain a copy of
870   the Thesis Manual located on the library website.
871
872   \vspace*{\fill}
873 %    \end{macrocode}
874 % Setup $\mbox{tempskipb} = \mbox{left column width}$ and
875 % $\mbox{tempskipa} = \mbox{textwidth} - \mbox{tempskipb} -
876 % \mbox{4em}$.  The |4em| provides some buffer space between the
877 % columns.
878 %    \begin{macrocode}
879   \settowidth{\tempskipb}{Dissertation/Thesis Title:}
880   \setlength{\tempskipa}{\textwidth}
881   \addtolength{\tempskipa}{-\tempskipb}
882   \addtolength{\tempskipa}{-4em}
883 %    \end{macrocode}
884 % Double space the student-contolled section to allow plenty of space
885 % for hand-written entries.
886 %    \begin{macrocode}
887   \begin{spacing}{2}
888     \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} l p{\tempskipa}}
889       \textbf{Dissertation/Thesis Title:} & \@DUT@title \\
890       \textbf{Author:} & \@DUT@author
891     \end{tabular*}
892
893     \vspace*{\fill}
894
895     \begin{center}
896       \textbf{This dissertation/thesis is hereby accepted and approved.}
897     \end{center}
898
899     \vspace*{\fill}
900
901     \textbf{Signatures:} \\
902     Examining Committee \\
903 %    \end{macrocode}
904 % The left most column is left blank and the stretchy space between
905 % columns indents the middle column.  I think this looks bad, but
906 % that's how Drexel's version of the T-1 form looks.
907 %    \begin{macrocode}
908     \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} p{0pt} l p{\tempskipa}}
909       & Chair            & \hrulefill \\
910       & Members          & \hrulefill \\
911       &                  & \hrulefill \\
912       &                  & \hrulefill \\
913       &                  & \hrulefill \\
914       &                  & \hrulefill \\
915       & Academic Advisor & \hrulefill \\
916       & Department Head  & \hrulefill
917     \end{tabular*}
918
919     \vspace*{\fill}
920   \end{spacing}
921
922   \begin{center}\scriptsize
923     Office of Graduate Studies
924     $\bullet$ 3141 Chestnut St.
925     $\bullet$ Randell Hall 240
926     $\bullet$ Philadelphia, PA 19104 \\
927     \textbf{Tel.}: 215-895-0366
928     $\bullet$ \textbf{Fax}: 215-895-0495
929     $\bullet$ \textbf{Email}:
930       \href{mailto:graduate@drexel.edu}{graduate@drexel.edu}
931     $\bullet$ \textbf{Web}:
932       \href{http://www.drexel.edu/provost/graduatestudies/}{%
933                    www.drexel.edu/provost/graduatestudies}
934   \end{center}
935   \endgroup
936   \pagebreak
937 }
938 %    \end{macrocode}
939 % \end{macro}
940 %
941 % \begin{macro}{\drexellogobw}
942 % Draws a vector art official black-and-white Drexel logo.  The image
943 % is exactly 1~inch wide and 1.016~inches tall.
944 % \changes{0.14}{2010/09/21}{Evan Sultanik added macro.}
945 %    \begin{macrocode}
946 \newcommand\drexellogobw{
947   \begin{tikzpicture}[y=0.8pt, x=0.8pt,yscale=-1, inner sep=0pt, outer sep=0pt]
948   \begin{scope}[cm={{1.25,0.0,0.0,-1.25,(-332.5,550.73629)}},]
949     \path[fill=black,nonzero rule] (266.0000,367.4100) -- (338.0000,367.4100) --
950       (338.0000,440.5890) -- (266.0000,440.5890) -- (266.0000,367.4100) -- cycle;
951     \path[fill=white,nonzero rule] (269.3171,377.0107) -- (334.8469,377.0107) --
952       (334.8469,438.7106) -- (269.3171,438.7106) -- (269.3171,377.0107) -- cycle;
953     \path[fill=black,nonzero rule] (330.2168,398.2540) .. controls
954       (328.9195,397.9603) and (327.1082,397.5687) .. (326.0555,397.4220) --
955       (326.0555,396.7855) .. controls (327.6468,396.6388) and (327.6956,396.6388) ..
956       (327.6956,395.1942) -- (327.6956,383.2000) .. controls (327.6956,381.8537) and
957       (327.5489,381.7070) .. (326.0313,381.5600) -- (326.0313,380.8747) --
958       (331.9060,380.8747) -- (331.9060,381.5600) .. controls (330.3147,381.7070) and
959       (330.2168,381.8537) .. (330.2168,383.2000) -- (330.2168,398.2540) --
960       cycle(319.4750,387.8511) .. controls (319.6711,389.6870) and
961       (320.6989,390.8372) .. (321.7273,390.8372) .. controls (322.8042,390.8372) and
962       (323.5629,389.5642) .. (323.5629,388.5852) .. controls (323.5629,388.0466) and
963       (323.4650,387.8999) .. (323.1225,387.8999) -- (319.4750,387.8511) --
964       cycle(325.6436,383.5183) .. controls (324.6889,382.7839) and
965       (323.9057,382.4902) .. (323.0734,382.4902) .. controls (321.2375,382.4902) and
966       (319.3037,383.7632) .. (319.3528,386.8472) .. controls (322.0207,386.9454) and
967       (325.1787,387.1900) .. (325.5215,387.2391) .. controls (325.9865,387.3367) and
968       (326.0352,387.3858) .. (326.0352,388.2915) .. controls (326.0352,390.0540) and
969       (324.4443,391.7920) .. (322.3881,391.7920) .. controls (319.1570,391.7920) and
970       (316.8805,388.7813) .. (316.9296,385.7212) .. controls (316.9784,382.8575) and
971       (318.8630,380.5809) .. (322.0698,380.5809) .. controls (322.7551,380.5809) and
972       (324.5910,381.0704) .. (325.9865,383.1021) -- (325.6436,383.5183) --
973       cycle(312.6069,391.4983) -- (312.6069,390.8130) -- (313.2434,390.7393) ..
974       controls (313.7084,390.6659) and (313.5859,390.3968) .. (313.2188,389.7848) ..
975       controls (312.8518,389.1729) and (312.4111,388.5118) .. (311.9216,387.8265) --
976       (310.5019,389.9561) .. controls (310.1836,390.4210) and (310.2327,390.6659) ..
977       (310.6485,390.7147) -- (311.2851,390.8129) -- (311.2851,391.4982) --
978       (305.8754,391.4982) -- (305.8754,390.8129) .. controls (307.1972,390.6659) and
979       (307.3684,390.5680) .. (308.1762,389.3195) -- (310.4527,385.7948) .. controls
980       (309.6938,384.7667) and (308.9839,383.8365) .. (308.4211,383.1021) .. controls
981       (307.3930,381.7803) and (307.0259,381.7557) .. (305.6304,381.5599) --
982       (305.6304,380.8746) -- (310.2327,380.8746) -- (310.2327,381.5599) --
983       (309.5225,381.6824) .. controls (309.1309,381.7557) and (309.0576,381.9027) ..
984       (309.4492,382.5635) .. controls (309.9142,383.3470) and (310.4528,384.1547) ..
985       (310.9914,384.9379) -- (312.5824,382.5147) .. controls (312.9006,382.0252) and
986       (312.8761,381.7069) .. (312.4353,381.6581) -- (311.7258,381.5599) --
987       (311.7258,380.8746) -- (317.5271,380.8746) -- (317.5271,381.5599) .. controls
988       (316.2053,381.7069) and (315.8867,381.8048) .. (314.9323,383.2491) --
989       (312.4599,386.9942) .. controls (313.3168,388.1693) and (314.0021,389.0259) ..
990       (314.2715,389.3683) .. controls (315.2997,390.6168) and (315.5934,390.6659) ..
991       (317.1355,390.8129) -- (317.1355,391.4982) -- (312.6069,391.4982) --
992       cycle(299.3927,387.8511) .. controls (299.5885,389.6870) and
993       (300.6166,390.8372) .. (301.6447,390.8372) .. controls (302.7220,390.8372) and
994       (303.4806,389.5642) .. (303.4806,388.5852) .. controls (303.4806,388.0466) and
995       (303.3827,387.8999) .. (303.0402,387.8999) -- (299.3927,387.8511) --
996       cycle(305.5614,383.5183) .. controls (304.6066,382.7839) and
997       (303.8234,382.4902) .. (302.9911,382.4902) .. controls (301.1552,382.4902) and
998       (299.2215,383.7632) .. (299.2706,386.8472) .. controls (301.9384,386.9454) and
999       (305.0961,387.1900) .. (305.4389,387.2391) .. controls (305.9039,387.3367) and
1000       (305.9530,387.3858) .. (305.9530,388.2915) .. controls (305.9530,390.0540) and
1001       (304.3617,391.7920) .. (302.3058,391.7920) .. controls (299.0745,391.7920) and
1002       (296.7982,388.7813) .. (296.8470,385.7212) .. controls (296.8961,382.8575) and
1003       (298.7808,380.5809) .. (301.9876,380.5809) .. controls (302.6729,380.5809) and
1004       (304.5087,381.0704) .. (305.9039,383.1021) -- (305.5614,383.5183) --
1005       cycle(292.7087,391.8408) .. controls (291.4360,391.4492) and
1006       (289.8205,391.1067) .. (288.6211,390.9109) -- (288.6211,390.3477) .. controls
1007       (290.1387,390.2007) and (290.1875,390.1519) .. (290.1875,388.6585) --
1008       (290.1875,383.2000) .. controls (290.1875,381.8537) and (290.0408,381.7070) ..
1009       (288.5965,381.5600) -- (288.5965,380.8747) -- (294.6428,380.8747) --
1010       (294.6428,381.5600) .. controls (292.8557,381.7070) and (292.7087,381.8537) ..
1011       (292.7087,383.2000) -- (292.7087,388.1448) .. controls (293.2476,389.2217) and
1012       (293.8105,389.5154) .. (294.2266,389.5154) .. controls (294.6182,389.5154) and
1013       (295.0098,389.3196) .. (295.3526,388.9771) .. controls (295.4993,388.8301) and
1014       (295.7930,388.7813) .. (296.0625,388.8789) .. controls (296.6253,389.0993) and
1015       (297.0660,389.8091) .. (297.0660,390.4211) .. controls (297.0660,391.1067) and
1016       (296.4298,391.8408) .. (295.5484,391.8408) .. controls (294.3487,391.8408) and
1017       (293.3697,390.2986) .. (292.7823,389.3684) -- (292.7086,389.3684) --
1018       (292.7086,391.8408) -- cycle(276.3892,394.4356) .. controls
1019       (276.3892,395.0721) and (276.3892,395.5125) .. (276.5362,395.6350) .. controls
1020       (276.6829,395.7574) and (277.3194,395.8553) .. (278.1272,395.8553) .. controls
1021       (282.0438,395.8553) and (284.6874,394.0440) .. (284.6874,388.8055) .. controls
1022       (284.6874,384.7422) and (282.5821,381.8782) .. (278.5188,381.8782) .. controls
1023       (276.6341,381.8782) and (276.3892,382.3435) .. (276.3892,384.5952) --
1024       (276.3892,394.4356) -- cycle(271.6405,396.7855) -- (271.6405,396.0999) ..
1025       controls (273.4518,395.9532) and (273.6476,395.7574) .. (273.6476,393.1138) --
1026       (273.6476,384.5464) .. controls (273.6476,381.9028) and (273.4518,381.7070) ..
1027       (271.4447,381.5599) -- (271.4447,380.8746) -- (277.4419,380.8746) .. controls
1028       (283.1695,380.8746) and (287.8206,383.5183) .. (287.8206,389.5399) .. controls
1029       (287.8206,391.6941) and (286.8903,393.5054) .. (285.7643,394.6314) .. controls
1030       (284.1488,396.1981) and (281.6522,396.7855) .. (278.9104,396.7855) --
1031       (271.6405,396.7855);
1032     \path[fill=white,nonzero rule] (277.1649,373.9784) -- (277.1649,371.3099) ..
1033       controls (277.1649,370.4792) and (277.1239,369.7235) .. (276.0893,369.7235) ..
1034       controls (275.0546,369.7235) and (275.0137,370.4792) .. (275.0137,371.3099) --
1035       (275.0137,373.9784) -- (273.9584,373.9784) -- (273.9584,370.9013) .. controls
1036       (273.9584,369.5942) and (274.8978,368.9613) .. (276.0893,368.9613) .. controls
1037       (277.2808,368.9613) and (278.2201,369.5942) .. (278.2201,370.9013) --
1038       (278.2201,373.9784) -- (277.1649,373.9784);
1039     \path[fill=white,nonzero rule] (285.3943,369.0631) -- (285.3943,373.9784) --
1040       (284.4072,373.9784) -- (284.4072,370.1253) -- (284.3933,370.1119) --
1041       (282.5215,373.9785) -- (280.9557,373.9785) -- (280.9557,369.0632) --
1042       (281.9429,369.0632) -- (281.9429,373.1344) -- (281.9563,373.1482) --
1043       (283.8966,369.0632) -- (285.3943,369.0632);
1044     \path[fill=white,nonzero rule] (287.9938,369.0631) -- (289.0489,369.0631) --
1045       (289.0489,373.9783) -- (287.9938,373.9783) -- (287.9938,369.0631) -- cycle;
1046     \path[fill=white,nonzero rule] (293.1186,369.0631) -- (294.2692,369.0631) --
1047       (296.0802,373.9784) -- (295.0383,373.9784) -- (293.7518,370.1047) --
1048       (293.7380,370.1047) -- (292.4581,373.9784) -- (291.3076,373.9784) --
1049       (293.1186,369.0631);
1050     \path[fill=white,nonzero rule] (298.3125,369.0631) -- (301.6824,369.0631) --
1051       (301.6824,369.8804) -- (299.3678,369.8804) -- (299.3678,371.1940) --
1052       (301.4647,371.1940) -- (301.4647,372.0109) -- (299.3678,372.0109) --
1053       (299.3678,373.1615) -- (301.6078,373.1615) -- (301.6078,373.9784) --
1054       (298.3125,373.9784) -- (298.3125,369.0631);
1055     \path[fill=white,nonzero rule] (305.3086,373.1615) -- (306.1936,373.1615) ..
1056       controls (306.6566,373.1545) and (306.9291,372.9710) .. (306.9291,372.5352) ..
1057       controls (306.9291,372.0997) and (306.6566,371.8682) .. (306.1936,371.8613) --
1058       (305.3086,371.8613) -- (305.3086,373.1615) -- cycle(305.3086,371.0444) --
1059       (306.4251,371.0444) .. controls (306.7722,371.0306) and (306.8403,370.6564) ..
1060       (306.8675,370.3840) .. controls (306.9153,369.9413) and (306.9631,369.4989) ..
1061       (307.0515,369.0631) -- (308.2158,369.0631) .. controls (308.0181,369.3356) and
1062       (307.9771,369.9141) .. (307.9297,370.2275) .. controls (307.8413,370.9082) and
1063       (307.8413,371.4052) .. (307.0309,371.4936) -- (307.0309,371.5074) .. controls
1064       (307.6369,371.6368) and (308.0521,372.0588) .. (308.0521,372.6986) .. controls
1065       (308.0521,373.6995) and (307.1877,373.9719) .. (306.3436,373.9785) --
1066       (304.2533,373.9785) -- (304.2533,369.0632) -- (305.3086,369.0632) --
1067       (305.3086,371.0444);
1068     \path[fill=white,nonzero rule] (314.2601,372.5761) .. controls
1069       (314.2601,373.5633) and (313.5181,374.0806) .. (312.5650,374.0806) .. controls
1070       (311.5572,374.0806) and (310.5225,373.5836) .. (310.5225,372.4605) .. controls
1071       (310.5225,371.5889) and (311.4619,371.2759) .. (312.1495,371.1056) .. controls
1072       (312.5719,370.9969) and (313.2729,370.9560) .. (313.2729,370.3771) .. controls
1073       (313.2729,369.8529) and (312.7146,369.7235) .. (312.2926,369.7235) .. controls
1074       (311.7412,369.7235) and (311.4282,370.0912) .. (311.4691,370.6358) --
1075       (310.3932,370.6358) .. controls (310.3592,369.3968) and (311.1558,368.9613) ..
1076       (312.2792,368.9613) .. controls (313.3341,368.9613) and (314.3963,369.3834) ..
1077       (314.3963,370.6017) .. controls (314.3963,371.5889) and (313.2935,371.8001) ..
1078       (312.5447,371.9906) .. controls (312.1227,372.0928) and (311.6459,372.1540) ..
1079       (311.6459,372.6851) .. controls (311.6459,373.1140) and (312.0408,373.3184) ..
1080       (312.4288,373.3184) .. controls (312.9393,373.3184) and (313.2048,373.0731) ..
1081       (313.2457,372.5761) -- (314.2601,372.5761);
1082     \path[fill=white,nonzero rule] (316.8870,369.0631) -- (317.9422,369.0631) --
1083       (317.9422,373.9783) -- (316.8870,373.9783) -- (316.8870,369.0631) -- cycle;
1084     \path[fill=white,nonzero rule] (320.2146,373.1615) -- (321.6782,373.1615) --
1085       (321.6782,369.0631) -- (322.7335,369.0631) -- (322.7335,373.1615) --
1086       (324.1971,373.1615) -- (324.1971,373.9784) -- (320.2146,373.9784) --
1087       (320.2146,373.1615);
1088     \path[fill=white,nonzero rule] (327.7961,369.0631) -- (328.8511,369.0631) --
1089       (328.8511,370.6701) -- (330.5056,373.9784) -- (329.4231,373.9784) --
1090       (328.3881,371.7251) -- (327.3741,373.9784) -- (326.1417,373.9784) --
1091       (327.7961,370.6701) -- (327.7961,369.0631);
1092     \path[fill=black,nonzero rule] (317.2675,431.5469) .. controls
1093       (316.1860,431.3992) and (315.2214,430.7506) .. (314.6366,429.7477) .. controls
1094       (314.1108,428.7739) and (313.9058,427.3581) .. (314.6661,426.4142) .. controls
1095       (315.0459,425.9718) and (315.5138,425.6179) .. (316.0986,425.5884) .. controls
1096       (317.6768,425.7655) and (318.7000,427.4174) .. (320.2199,427.8005) .. controls
1097       (321.2140,428.1250) and (322.0325,427.5647) .. (322.7342,427.0042) .. controls
1098       (323.2604,426.6797) and (323.9912,426.7681) .. (324.4882,427.0926) .. controls
1099       (322.8511,425.7652) and (321.7401,423.7889) .. (321.5650,421.6357) .. controls
1100       (321.3308,422.6386) and (320.7169,423.7299) .. (319.7232,424.0839) .. controls
1101       (318.6126,424.4971) and (317.6480,423.8183) .. (316.8877,423.0810) .. controls
1102       (316.1864,422.3436) and (315.8940,421.3997) .. (315.5138,420.5146) .. controls
1103       (316.0400,420.9868) and (316.6834,421.6063) .. (317.4725,421.7536) .. controls
1104       (318.4665,422.0486) and (319.4020,421.7241) .. (320.1911,421.1344) .. controls
1105       (320.4540,420.8689) and (320.7759,420.6328) .. (320.8927,420.2199) .. controls
1106       (319.8990,419.5415) and (319.5772,418.3909) .. (319.6358,417.1814) .. controls
1107       (319.3142,418.1254) and (318.9636,419.2760) .. (317.8818,419.6889) .. controls
1108       (317.1801,419.9839) and (316.3032,419.8955) .. (315.7479,419.3054) .. controls
1109       (315.2800,418.8038) and (315.2509,418.0075) .. (315.3678,417.3291) .. controls
1110       (315.8062,415.4120) and (317.5602,414.2909) .. (319.2265,413.7304) .. controls
1111       (320.9514,413.1109) and (322.5299,411.5180) .. (322.7345,409.6304) .. controls
1112       (322.9978,409.6893) and (323.4362,409.8956) .. (323.6700,409.6006) .. controls
1113       (323.9329,410.4856) and (324.3422,411.6362) .. (325.3945,411.9309) .. controls
1114       (326.1545,412.2262) and (326.9439,411.9309) .. (327.5287,411.4001) .. controls
1115       (328.1426,410.7217) and (328.4350,409.8366) .. (328.2595,408.8927) .. controls
1116       (328.1717,408.5093) and (327.9962,408.1553) .. (327.7625,407.8308) .. controls
1117       (327.8502,408.2732) and (327.9088,408.9814) .. (327.6164,409.3943) .. controls
1118       (327.3823,409.7188) and (327.0316,409.9548) .. (326.6515,409.9548) .. controls
1119       (326.3594,409.9843) and (326.1548,409.8075) .. (326.0084,409.5714) .. controls
1120       (325.6869,408.1258) and (327.4995,407.7424) .. (327.5578,406.3856) .. controls
1121       (327.5873,405.6482) and (327.2949,404.9695) .. (326.6518,404.6453) .. controls
1122       (325.9505,404.3503) and (325.1902,404.6155) .. (324.6932,405.1466) .. controls
1123       (324.4303,405.3824) and (324.2256,405.6777) .. (324.1087,405.9724) .. controls
1124       (324.6346,405.7072) and (325.5995,405.4416) .. (326.1548,405.9433) .. controls
1125       (326.4180,406.1790) and (326.5346,406.4740) .. (326.5346,406.8280) .. controls
1126       (326.5932,407.3591) and (326.1839,407.8014) .. (325.8333,408.0964) .. controls
1127       (325.5114,408.3325) and (325.1607,408.4798) .. (324.7515,408.5388) .. controls
1128       (324.9856,408.0669) and (324.9564,407.4180) .. (324.6346,407.0051) .. controls
1129       (324.1087,406.2677) and (323.1733,406.3264) .. (322.3547,406.4151) .. controls
1130       (321.4779,404.2030) and (319.0516,403.0230) .. (316.8884,402.4330) --
1131       (315.3098,402.3151) .. controls (316.3039,401.6956) and (317.3562,401.2234) ..
1132       (318.4086,400.7222) .. controls (318.9639,401.7251) and (319.7530,402.8458) ..
1133       (320.9517,403.0819) .. controls (321.8285,403.1998) and (322.6471,402.9048) ..
1134       (323.1441,402.1969) .. controls (323.5534,401.4595) and (323.8163,400.4566) ..
1135       (323.4657,399.6011) -- (323.0855,398.8932) .. controls (323.2610,399.5421) and
1136       (323.0563,400.3682) .. (322.5011,400.8695) .. controls (322.2087,401.1056) and
1137       (321.8285,401.2234) .. (321.4484,401.1645) .. controls (321.0977,401.1056) and
1138       (320.7471,400.8695) .. (320.6302,400.5156) .. controls (320.2500,398.7753) and
1139       (322.8226,398.7458) .. (322.5302,396.9761) .. controls (322.4719,396.5039) and
1140       (322.2673,396.1205) .. (321.8580,395.7961) .. controls (321.2444,395.2948) and
1141       (320.1331,395.2358) .. (319.4026,395.6192) .. controls (318.9348,395.7961) and
1142       (318.5255,396.1795) .. (318.1457,396.5039) .. controls (317.5609,396.1795) and
1143       (316.6546,396.1503) .. (316.1284,396.6221) .. controls (315.3393,397.2711) and
1144       (315.1930,398.2147) .. (314.9592,399.1292) .. controls (311.7435,400.3977) and
1145       (308.7325,402.2561) .. (306.2186,404.9698) .. controls (304.4354,406.8872) and
1146       (303.6460,409.5125) .. (304.0553,412.1968) .. controls (304.4646,414.6744) and
1147       (304.2305,417.5357) .. (302.0966,419.0108) .. controls (301.1026,419.5415) and
1148       (299.8161,419.8071) .. (298.7055,419.3647) .. controls (297.5945,418.8929) and
1149       (296.8346,417.6539) .. (296.8054,416.4150) .. controls (296.8640,414.2026) and
1150       (298.0919,412.3444) .. (299.0860,410.4565) .. controls (300.0214,408.2146) and
1151       (299.6121,405.4122) .. (297.8581,403.7607) .. controls (296.4842,402.0793) and
1152       (294.5259,401.5780) .. (293.0057,400.1914) .. controls (292.8010,399.9848) and
1153       (292.7136,399.6606) .. (292.8305,399.3951) .. controls (293.3275,398.7462) and
1154       (294.2921,398.7462) .. (295.1107,398.8051) .. controls (296.8644,399.1296) and
1155       (298.1796,400.4570) .. (299.8459,400.9288) .. controls (300.8986,401.0764) and
1156       (301.9215,400.7225) .. (302.4771,399.8080) .. controls (302.6817,399.4246) and
1157       (302.8569,398.9230) .. (302.7109,398.4511) .. controls (302.5648,397.9790) and
1158       (302.2138,397.5367) .. (301.8046,397.3300) .. controls (301.5416,397.2122) and
1159       (301.1615,397.2416) .. (300.8691,397.2711) .. controls (301.2201,397.3893) and
1160       (301.6585,397.6546) .. (301.7754,398.1264) .. controls (301.8631,398.5101) and
1161       (301.7463,398.9230) .. (301.4830,399.2180) .. controls (301.1615,399.5130) and
1162       (300.8108,399.6607) .. (300.3724,399.6607) .. controls (300.6353,399.3359) and
1163       (300.8691,398.8935) .. (300.8108,398.3919) .. controls (300.6939,397.6251) and
1164       (300.1678,396.8877) .. (299.4075,396.6811) .. controls (299.0277,396.5633) and
1165       (298.6475,396.7106) .. (298.3260,396.9172) .. controls (298.0339,397.1533) and
1166       (297.9167,397.4188) .. (297.7707,397.7138) .. controls (297.9753,397.5072) and
1167       (298.2383,397.3599) .. (298.5306,397.3893) .. controls (298.9399,397.4482) and
1168       (299.2323,397.6840) .. (299.3783,398.0678) .. controls (299.4661,398.3330) and
1169       (299.4661,398.6873) .. (299.3197,398.9230) .. controls (299.1446,399.1885) and
1170       (298.8522,399.3657) .. (298.5015,399.2769) .. controls (297.3906,398.9230) and
1171       (297.1568,397.3599) .. (296.0167,397.0056) .. controls (294.5551,396.8877) and
1172       (293.0057,397.0649) .. (291.4858,396.9761) -- (286.8671,396.8582) .. controls
1173       (286.6042,396.9466) and (286.2824,397.0056) .. (286.1655,397.3009) .. controls
1174       (285.6393,398.1856) and (286.9549,399.1885) .. (285.8439,399.8673) .. controls
1175       (283.0376,401.7843) and (279.9097,403.7017) .. (278.0679,406.8283) .. controls
1176       (276.4017,409.6307) and (274.9692,413.8490) .. (277.0735,416.9166) .. controls
1177       (278.1845,418.5095) and (280.0263,419.4535) .. (282.0432,419.0995) .. controls
1178       (283.6508,418.8929) and (284.9956,417.5656) .. (285.4049,416.0316) --
1179       (285.4927,415.5005) .. controls (284.8787,416.5921) and (283.8850,417.6834) ..
1180       (282.6277,418.0963) .. controls (282.7449,417.7718) and (282.6863,417.3000) ..
1181       (282.6280,416.9461) .. controls (282.3942,417.4771) and (281.7509,417.9490) ..
1182       (281.1664,418.1556) .. controls (281.4293,417.6834) and (281.7220,417.1229) ..
1183       (281.6340,416.5037) .. controls (281.2247,416.9755) and (280.6111,417.4474) ..
1184       (279.9386,417.2705) .. controls (280.4647,416.8282) and (280.9326,416.3560) ..
1185       (281.1373,415.6776) .. controls (280.6697,415.9726) and (279.9680,416.2676) ..
1186       (279.3246,416.0021) .. controls (279.8803,415.6482) and (280.8743,415.3531) ..
1187       (280.8743,414.4386) .. controls (280.5819,414.6453) and (280.1727,414.7337) ..
1188       (279.8217,414.6453) -- (279.3832,414.4386) .. controls (279.8217,414.2618) and
1189       (280.4356,414.1145) .. (280.7571,413.6424) -- (281.0204,413.1705) .. controls
1190       (280.4064,413.2294) and (279.7634,413.1407) .. (279.3246,412.6689) .. controls
1191       (279.9972,412.5510) and (280.6988,412.4626) .. (281.1373,411.8432) .. controls
1192       (280.5525,411.6955) and (279.9386,411.3710) .. (279.7339,410.7221) .. controls
1193       (280.2896,411.0171) and (281.1373,411.0171) .. (281.6634,410.5747) .. controls
1194       (281.0204,410.2208) and (280.3478,409.5423) .. (280.5233,408.6868) .. controls
1195       (281.0790,409.1291) and (281.8681,409.5129) .. (282.6283,409.1586) .. controls
1196       (281.8098,408.8047) and (281.2836,407.9789) .. (281.2541,407.1528) --
1197       (281.2836,406.9171) .. controls (281.8681,407.5955) and (282.6284,408.0378) ..
1198       (283.5344,407.8610) .. controls (282.7453,407.4773) and (282.3943,406.6810) ..
1199       (282.4820,405.7959) .. controls (282.6284,405.8846) and (282.7453,406.0910) ..
1200       (282.9208,406.2092) .. controls (283.4761,406.5631) and (284.0314,406.9171) ..
1201       (284.6745,406.9465) .. controls (284.2360,406.3565) and (283.6221,405.5893) ..
1202       (283.8854,404.7341) .. controls (284.2946,405.5013) and (285.0546,406.3270) ..
1203       (285.9314,406.4154) .. controls (285.4930,405.8254) and (285.3470,405.0881) ..
1204       (285.3470,404.3212) .. controls (285.9609,405.1765) and (286.8669,406.1794) ..
1205       (287.8901,406.5631) .. controls (287.5391,405.9141) and (287.2176,404.8225) ..
1206       (287.5977,404.0262) .. controls (287.8901,404.9997) and (288.5040,406.0026) ..
1207       (289.2348,406.6512) .. controls (289.0885,405.8254) and (289.3517,405.0586) ..
1208       (289.9948,404.4980) -- (290.0534,404.5569) .. controls (290.0239,405.6191) and
1209       (290.4332,406.5333) .. (290.9594,407.3299) .. controls (290.8425,406.6220) and
1210       (291.2517,405.9730) .. (291.8657,405.6188) -- (292.1289,405.5009) .. controls
1211       (291.8365,406.2386) and (291.6319,407.0938) .. (291.7779,408.0083) .. controls
1212       (292.3041,407.4478) and (293.0644,406.7693) .. (293.9117,406.8872) .. controls
1213       (292.6551,408.0083) and (291.3978,409.2473) .. (290.8716,410.8104) .. controls
1214       (291.3686,410.2797) and (292.1577,409.9254) .. (293.0054,409.9847) .. controls
1215       (291.4272,411.1054) and (289.9948,413.0523) .. (289.8484,415.0876) .. controls
1216       (290.1994,414.2618) and (290.9885,413.6125) .. (291.8071,413.3178) .. controls
1217       (290.6961,414.9697) and (289.5269,416.8868) .. (290.1405,419.1286) .. controls
1218       (290.2868,418.0668) and (290.9008,416.8868) .. (292.0117,416.5626) .. controls
1219       (291.3978,417.7129) and (290.5792,418.8929) .. (290.7544,420.3676) .. controls
1220       (290.8127,421.2821) and (291.1051,422.1671) .. (291.6312,422.9045) .. controls
1221       (291.2514,422.0784) and (291.1928,420.7808) .. (291.9528,420.0137) --
1222       (292.0114,419.9548) .. controls (291.7776,422.2556) and (292.6544,424.5269) ..
1223       (294.6422,425.5888) -- (295.4022,426.0016) .. controls (294.7883,425.2050) and
1224       (294.3793,424.3498) .. (294.3793,423.3171) .. controls (295.2558,425.2050) and
1225       (297.0976,427.0635) .. (299.4364,426.9456) .. controls (299.7870,426.9751) and
1226       (300.1086,426.9158) .. (300.4301,426.8569) .. controls (299.4655,426.4146) and
1227       (298.2668,425.6769) .. (298.1499,424.4677) .. controls (299.7284,425.9129) and
1228       (301.9503,426.7096) .. (304.1133,425.9129) .. controls (304.6103,425.7063) and
1229       (305.1656,425.4411) .. (305.4872,425.0279) .. controls (304.7272,425.4411) and
1230       (303.8504,425.1166) .. (303.2070,424.7034) .. controls (302.9149,424.4972) and
1231       (302.5056,424.2021) .. (302.3888,423.8482) .. controls (303.8795,424.4088) and
1232       (306.1597,424.7922) .. (307.3289,423.2877) -- (308.0598,422.1374) .. controls
1233       (307.2707,422.6685) and (306.3352,423.1108) .. (305.3120,422.9046) .. controls
1234       (305.1365,422.8453) and (304.9610,422.7569) .. (304.7858,422.6092) .. controls
1235       (306.4226,422.5503) and (308.0306,421.7537) .. (308.7028,420.2200) --
1236       (308.9075,419.3055) .. controls (308.4982,420.1021) and (307.6505,420.8984) ..
1237       (306.6859,420.9279) .. controls (307.2412,420.3382) and (308.0892,419.7482) ..
1238       (308.3521,418.9221) .. controls (308.9078,417.6831) and (309.0538,416.1789) ..
1239       (310.3985,415.4121) .. controls (310.9247,415.1466) and (311.4800,414.9694) ..
1240       (312.0648,414.8810) .. controls (310.0479,415.7068) and (309.3171,418.1258) ..
1241       (309.1707,420.2495) .. controls (309.6677,419.6303) and (310.3108,419.0694) ..
1242       (311.0125,418.7748) .. controls (310.6615,419.2171) and (310.3108,419.5121) ..
1243       (309.9307,419.9839) .. controls (308.7614,421.4001) and (308.0598,423.2582) ..
1244       (308.4982,425.1461) .. controls (308.8197,426.3553) and (309.6383,427.3582) ..
1245       (310.4274,428.3611) .. controls (309.7846,427.1224) and (309.6674,425.3233) ..
1246       (310.4569,424.1137) .. controls (310.8367,423.5237) and (311.3632,423.0221) ..
1247       (311.8893,422.6387) .. controls (310.8661,423.9955) and (310.3982,426.0013) ..
1248       (311.0122,427.7419) .. controls (311.8890,430.1312) and (314.3444,431.3993) ..
1249       (316.7123,431.5764) -- (317.2676,431.5469);
1250     \path[fill=white,nonzero rule] (314.4906,424.9100) .. controls
1251       (314.8707,424.6150) and (315.4260,424.4378) .. (315.9231,424.6444) .. controls
1252       (316.0109,424.6739) and (316.0986,424.7328) .. (316.2155,424.7623) .. controls
1253       (315.7770,424.2905) and (315.3091,423.3171) .. (314.4906,423.5237) .. controls
1254       (313.7892,424.0544) and (314.0522,425.1461) .. (313.9936,425.9424) .. controls
1255       (314.0231,425.5295) and (314.1982,425.2050) .. (314.4906,424.9100);
1256     \path[fill=white,nonzero rule] (312.1524,410.9578) .. controls
1257       (312.7372,411.0167) and (313.2634,411.4001) .. (313.5849,411.8723) .. controls
1258       (313.9356,410.8101) and (314.4621,409.1880) .. (313.5849,408.1851) .. controls
1259       (313.3220,407.9196) and (313.0005,407.8014) .. (312.6203,407.8014) .. controls
1260       (311.1587,407.8901) and (310.5157,409.4238) .. (310.1060,410.6627) .. controls
1261       (309.8140,411.5183) and (309.8140,412.4623) .. (309.6968,413.4062) .. controls
1262       (310.1355,412.3735) and (310.8663,410.9283) .. (312.1524,410.9578);
1263     \path[fill=white,nonzero rule] (320.8934,398.4803) .. controls
1264       (321.1563,398.2147) and (321.3023,397.9200) .. (321.2440,397.5363) .. controls
1265       (321.2440,397.2122) and (320.9517,396.8874) .. (320.6887,396.7695) .. controls
1266       (320.0748,396.5039) and (319.3440,396.7106) .. (318.8178,397.0056) .. controls
1267       (319.3145,397.5068) and (319.6072,398.0969) .. (319.6947,398.7458) .. controls
1268       (320.1331,398.8047) and (320.5424,398.7163) .. (320.8934,398.4803);
1269     \path[fill=white,nonzero rule] (322.0034,426.5913) .. controls
1270       (322.0616,426.2668) and (321.8865,426.0013) .. (321.6232,425.8834) .. controls
1271       (321.1848,425.7652) and (320.6000,425.7652) .. (320.2785,426.1195) .. controls
1272       (320.1324,426.3258) and (320.0447,426.6208) .. (320.2199,426.8274) .. controls
1273       (320.6586,427.3581) and (321.6818,427.2403) .. (322.0034,426.5913);
1274     \path[fill=white,nonzero rule] (317.0930,398.3624) .. controls
1275       (317.0639,398.0968) and (316.8592,397.8611) .. (316.5963,397.8018) .. controls
1276       (316.2453,397.7723) and (316.1575,398.0968) .. (316.0701,398.3624) --
1277       (316.0406,398.7753) -- (317.0929,398.3624);
1278     \path[fill=white,nonzero rule] (323.3484,407.8309) .. controls
1279       (323.3193,407.3590) and (322.9977,407.1524) .. (322.5885,407.0051) .. controls
1280       (322.7345,407.4474) and (322.7640,407.9785) .. (322.7057,408.4504) .. controls
1281       (322.9686,408.3325) and (323.2315,408.1259) .. (323.3484,407.8309);
1282   \end{scope}
1283   \end{tikzpicture}
1284 }
1285 %    \end{macrocode}
1286 % \end{macro}
1287 %
1288 % \begin{option}{subfig}
1289 % Set \Lopt{subfig} flag
1290 %    \begin{macrocode}
1291 \DeclareOptionX{subfig}{\@DUT@subfigopttrue}
1292 %    \end{macrocode}
1293 % \end{option}
1294 %
1295 % \begin{option}{finalspace}
1296 %    \begin{macrocode}
1297 \DeclareOptionX{finalspace}{
1298   \setlength\overfullrule{0pt}
1299   \def\@DUT@toc@sep{1} % content page separation (# blanklines between entries)
1300   \def\@ssp{1} % single space
1301   \def\@dsp{2} % double space
1302   \def\@tsp{3} % triple space
1303 }
1304 %    \end{macrocode}
1305 % \end{option}
1306 % \begin{option}{draftspace}
1307 %    \begin{macrocode}
1308 \DeclareOptionX{draftspace}{
1309   \setlength\overfullrule{5pt}
1310   \def\DUT@toc@sep{0} % content page separation (# blanklines between entries)
1311   \def\@ssp{1} % single space
1312   \def\@dsp{1} % double space
1313   \def\@tsp{2} % triple space
1314 %    \end{macrocode}
1315 %  Don't force chapters onto right-hand pages.
1316 %    \begin{macrocode}
1317   \PassOptionsToClass{openany}{book}
1318 }
1319 %    \end{macrocode}
1320 % \end{option}
1321 %
1322 % \begin{option}{dottedpart}
1323 %    \begin{macrocode}
1324 \DeclareOptionX{dottedpart}{\@dottedparttrue}
1325 %    \end{macrocode}
1326 % \end{option}
1327 % \begin{option}{dottedchapter}
1328 %    \begin{macrocode}
1329 \DeclareOptionX{dottedchapter}{\@dottedchaptertrue}
1330 %    \end{macrocode}1
1331 % \end{option}
1332 % \begin{option}{boldpart}
1333 %    \begin{macrocode}
1334 \DeclareOptionX{boldpart}{\@boldparttrue}
1335 %    \end{macrocode}
1336 % \end{option}
1337 % \begin{option}{boldchapter}
1338 %    \begin{macrocode}
1339 \DeclareOptionX{boldchapter}{\@boldchaptertrue}
1340 %    \end{macrocode}
1341 % \end{option}
1342 % \begin{option}{dottedtoc}
1343 %    \begin{macrocode}
1344 \DeclareOptionX{dottedtoc}{
1345   \setkeys{drexel-thesis.cls}{dottedpart}
1346   \setkeys{drexel-thesis.cls}{dottedchapter}
1347 }
1348 %    \end{macrocode}
1349 % \end{option}
1350 % \begin{option}{boldtoc}
1351 %    \begin{macrocode}
1352 \DeclareOptionX{boldtoc}{
1353   \setkeys{drexel-thesis.cls}{boldpart}
1354   \setkeys{drexel-thesis.cls}{boldchapter}
1355 }
1356 %    \end{macrocode}
1357 % \end{option}
1358 %
1359 % \begin{option}{indenttoc}
1360 % Set \Lopt{indenttoc} flag
1361 %    \begin{macrocode}
1362 \DeclareOptionX{indenttoc}{\@indenttoctrue}
1363 %    \end{macrocode}
1364 % \end{option}
1365 %
1366 % \begin{option}{blackref}
1367 % Set \Lopt{blackref} flag
1368 % \changes{0.13}{2010/06/17}{W.~Trevor King added blackref option.}
1369 %    \begin{macrocode}
1370 \DeclareOptionX{blackref}{\@blackreftrue}
1371 %    \end{macrocode}
1372 % \end{option}
1373 %
1374 % \begin{option}{draftwatermark}
1375 % Set \Lopt{draftwatermark} flag
1376 %    \begin{macrocode}
1377 \DeclareOptionX{draftwatermark}{%
1378   \@draftwatermarktrue
1379   \@mydraftwatermarkfalse}
1380 %    \end{macrocode}
1381 % \end{option}
1382 %
1383 % \begin{option}{mydraftwatermark}
1384 % Set \Lopt{mydraftwatermark} flag
1385 %    \begin{macrocode}
1386 \DeclareOptionX{mydraftwatermark}{%
1387   \@mydraftwatermarktrue
1388   \@draftwatermarkfalse}
1389 %    \end{macrocode}
1390 % \end{option}
1391 %
1392 % \begin{option}{indentfirst}
1393 % Set \Lopt{indentfirst} flag
1394 %    \begin{macrocode}
1395 \DeclareOptionX{indentfirst}{\@indentfirsttrue}
1396 %    \end{macrocode}
1397 % \end{option}
1398 %
1399 % Define the book options that \Lopt{final} and \Lopt{draft} need to
1400 % access.
1401 % \begin{option}{oneside}
1402 %    \begin{macrocode}
1403 \DeclareOptionX{oneside}{\PassOptionsToClass{oneside}{book}}
1404 %    \end{macrocode}
1405 % \end{option}
1406 %
1407 % \begin{option}{twoside}
1408 %    \begin{macrocode}
1409 \DeclareOptionX{twoside}{\PassOptionsToClass{twoside}{book}}
1410 %    \end{macrocode}
1411 % \end{option}
1412 %
1413 % \begin{option}{final}
1414 %    \begin{macrocode}
1415 \DeclareOptionX{final}{
1416   \@finaltrue
1417   \setkeys{drexel-thesis.cls}{oneside}
1418   \setkeys{drexel-thesis.cls}{finalspace}
1419   \setkeys{drexel-thesis.cls}{dottedtoc}
1420 }
1421 %    \end{macrocode}
1422 % \end{option}
1423 %
1424 % \begin{option}{draft}
1425 %    \begin{macrocode}
1426 \DeclareOptionX{draft}{
1427   \@finalfalse
1428   \setkeys{drexel-thesis.cls}{twoside}
1429   \setkeys{drexel-thesis.cls}{draftspace}
1430   \setkeys{drexel-thesis.cls}{dottedtoc}
1431   \setkeys{drexel-thesis.cls}{mydraftwatermark}
1432 }
1433 %    \end{macrocode}
1434 % \end{option}
1435 %
1436 % \begin{option}{daring}
1437 %    \begin{macrocode}
1438 \DeclareOptionX{daring}{
1439   \@daringtrue
1440 }
1441 %    \end{macrocode}
1442 % \end{option}
1443 %
1444 % \begin{option}{approvalform}
1445 %    \begin{macrocode}
1446 \DeclareOptionX{approvalform}{
1447   \@approvalformtrue
1448 }
1449 %    \end{macrocode}
1450 % \end{option}
1451 %
1452 % Use the default \cls{book} implementation for any remaining options
1453 % including \Lopt{oneside}, \Lopt{twoside}, \Lopt{leqno}, \Lopt{fleqn},
1454 % \ldots.
1455 %    \begin{macrocode}
1456 \DeclareOptionX*{\PassOptionsToClass{\CurrentOption}{book}}
1457 %    \end{macrocode}
1458 %
1459 % Execute the default options
1460 %    \begin{macrocode}
1461 \ExecuteOptionsX{final}
1462 %    \end{macrocode}
1463 %
1464 % Process options and load the book class
1465 %    \begin{macrocode}
1466 \ProcessOptionsX\relax
1467 \LoadClass{book}
1468 %    \end{macrocode}
1469 %
1470 %
1471 % \subsection{Internal package includes}
1472 %
1473 %
1474 % Include some other packages we'll need.  If the package is not
1475 % installed on your system, see \S \ref{sec:dependencies} for
1476 % installation instructions.
1477 %
1478 % For many packages, we want the same functionality for both
1479 % \Lopt{final} and \Lopt{draft} modes.  We pass \Lopt{final} to most
1480 % of those packages to override a possible \Lopt{draft} option passed
1481 % to \pkg{drexel-thesis}.
1482 %
1483 %
1484 % \subsubsection{\pkg{setspace}}
1485 %
1486 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/setspace/}{\pkg{setspace}}
1487 % for double spacing.
1488 %    \begin{macrocode}
1489 \RequirePackage{setspace}
1490 %    \end{macrocode}
1491 %
1492 %
1493 % \subsubsection{\pkg{calc}}
1494 %
1495 % \href{http://www.ctan.org/tex-archive/macros/latex/required/tools/}{\pkg{calc}}
1496 % for |\set@lines@length| macro (page
1497 %   \pageref{sec:implement-line-spacing}).
1498 %    \begin{macrocode}
1499 \RequirePackage{calc}
1500 %    \end{macrocode}
1501 %
1502 %
1503 % \subsubsection{\pkg{graphicx}}
1504 %
1505 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
1506 % for |\includegraphics|.  Not strictly necessary, but I can't imagine
1507 % a thesis without figures.
1508 %    \begin{macrocode}
1509 \RequirePackage[final]{graphicx}
1510 %    \end{macrocode}
1511 %
1512 % We include the graphicx package now so we can
1513 % pass \Lopt{final}, because some later packages include it with no options,
1514 % and a \Lopt{final} include after that produces errors like
1515 % \begin{example}
1516 %   l.104 \RequirePackage
1517 %                        [final]{ifpdf}
1518 %   The package graphicx has already been loaded with options:
1519 %     []
1520 %   There has now been an attempt to load it with options
1521 %     [final]
1522 % \end{example}
1523 %
1524 %
1525 % \subsubsection{\pkg{draftmark}}
1526 %
1527 % The Comp.~Sci.\ class used
1528 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftcopy/}{\pkg{draftcopy}}
1529 % to add their watermarks, but as of the current 2002/02/25 v2.16, it
1530 % uses postscript specials, and so doesn't work with pdf\LaTeX.
1531 % Instead we use the recent (catalogued 2009/11/03)
1532 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftmark/}{\pkg{draftmark}}
1533 % which unfortunately has a number of apparently non-standard dependencies
1534 % (\href{http://www.ctan.org/tex-archive/macros/latex/contrib/etextools/}{\pkg{etextools}},
1535 %  \href{http://www.ctan.org/tex-archive/macros/latex/contrib/etoolbox/}{\pkg{etoolbox}},
1536 %  \href{http://www.ctan.org/tex-archive/macros/latex/contrib/lastpage/}{\pkg{lastpage}},
1537 %  \href{http://www.ctan.org/tex-archive/macros/latex/contrib/ltxnew/}{\pkg{ltxnew}},
1538 %  \href{http://www.ctan.org/tex-archive/macros/latex/contrib/pagerange/}{\pkg{pagerange}},
1539 %  \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xifthen/}{\pkg{xifthen}},
1540 %  if only I had the space to install |texlive-latexextra| |:p|).
1541 % The output is, however, very flexible, and it \emph{does} work with
1542 % both \LaTeX\ and pdf\LaTeX.  If you don't like the default watermark,
1543 % you can also adjust the particulars with |\draftmarksetup|.
1544 %    \begin{macrocode}
1545 \if@draftwatermark
1546   \RequirePackage[draft,allpages,mark={DRAFT \today},
1547                   fontsize=2cm,grayness=0.9]{draftmark}
1548 \fi
1549 %    \end{macrocode}
1550 %
1551 % Here is Evan's alternative implementation This will not look right
1552 % as a DVI, but it'll look fine once rendered to either a PS or PDF.
1553 %    \begin{macrocode}
1554 \if@mydraftwatermark
1555 %    \end{macrocode}
1556 % Use \pkg{eso-pic} for |\AddToShipoutPicture|.
1557 %    \begin{macrocode}
1558   \RequirePackage{eso-pic}
1559 %    \end{macrocode}
1560 % Use \pkg{xcolor} for |\definecolor|.
1561 %    \begin{macrocode}
1562   \RequirePackage{xcolor}
1563   \definecolor{watermark}{rgb}{0.9,0.9,0.9}
1564 %    \end{macrocode}
1565 % Set the font explicitly to avoid being effected by the last text on
1566 % the page having some strange font.  |\sffamily| sets a sans serif
1567 % font.
1568 %    \begin{macrocode}
1569   \newcommand{\watermarkfont}{%
1570     \color{watermark}}%\fontfamily{phv}\selectfont\sffamily}
1571   \newcommand{\watermark}{%
1572     \rule{4.25in}{0pt}\raisebox{5.5in}{%
1573       \makebox[0pt]{%
1574 %    \end{macrocode}
1575 % |\rotatebox| and |\resizebox| from \pkg{graphicx}.
1576 %    \begin{macrocode}
1577         \rotatebox[origin=c]{45}{%
1578           \resizebox{!}{1.5in}{%
1579             {\watermarkfont DRAFT}%
1580     }}}}
1581     \raisebox{4.2in}{%
1582       \makebox[0pt]{%
1583         \rotatebox[origin=c]{45}{%
1584           \resizebox{!}{.6in}{%
1585             {\watermarkfont \qquad\today}%
1586     }}}}}
1587   \AddToShipoutPicture{\watermark{}}
1588 \fi
1589 %    \end{macrocode}
1590 %
1591 %
1592 % \subsubsection{\pkg{indentfirst}}
1593 %
1594 % Indent the first paragraph after sections etc.\ with
1595 % \href{http://www.ctan.org/tex-archive/macros/latex/required/tools/}{\pkg{indentfirst}}.
1596 %    \begin{macrocode}
1597 \if@indentfirst
1598   \RequirePackage{indentfirst}
1599 \fi
1600 %    \end{macrocode}
1601 %
1602 %
1603 % \subsubsection{\pkg{geometry}}
1604 %
1605 % Setup page margins with
1606 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/geometry/}{\pkg{geometry}}.
1607 % From the Manual p5:
1608 % \begin{itemize}
1609 %   \item The left margin must be at least 1 1/2'' (1.5 inches)
1610 %   throughout the document.
1611 %   \item All other margins (top, bottom, and right) must be at least 1''.
1612 % \end{itemize}
1613 % And from the Manual \S 1.5 p4, Print Version:
1614 % \begin{quote}
1615 %   The paper size must be 8 1/2'' x 11''.
1616 % \end{quote}
1617 %    \begin{macrocode}
1618 \RequirePackage[letterpaper,margin=1in,bindingoffset=0.5in]{geometry}
1619 %    \end{macrocode}
1620 % Note that we include the \pkg{geometry} package after loading \cls{book} to
1621 % override the margin manipulation that takes place in \cls{book}.
1622 %
1623 %
1624 % \subsubsection{\pkg{tocloft}}
1625 %
1626 % Typeset the table of contents, etc., with
1627 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/tocloft/}{\pkg{tocloft}}.
1628 %    \begin{macrocode}
1629 \if@DUT@subfigopt
1630   \RequirePackage[subfigure]{tocloft}
1631 \else
1632   \RequirePackage{tocloft}
1633 \fi
1634 %    \end{macrocode}
1635 % The \Lopt{subfigure} option sets up \pkg{tocloft} for
1636 % \pkg{subfig}/\pkg{subfigure} compatibility. See the
1637 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/tocloft/tocloft.pdf}{%
1638 %   \pkg{tocloft} manual \S 2.1}
1639 % for details.
1640 %
1641 % The configuration of \pkg{tocloft} takes place in \S
1642 % \ref{sec:implement-toc}, \S \ref{sec:implement-lof}, and \S
1643 % \ref{sec:implement-lot}.
1644 %
1645 %
1646 % \subsubsection{\pkg{caption}}
1647 %
1648 % Get nice caption formatting with
1649 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/caption/}{\pkg{caption}}.
1650 % From the Manual p5:
1651 % \begin{itemize}
1652 %   \item The left margin must be at least 1 1/2'' (1.5 inches)
1653 %   throughout the document.
1654 %   \item All other margins (top, bottom, and right) must be at least 1''.
1655 % \end{itemize}
1656 %    \begin{macrocode}
1657 \RequirePackage[margin=10pt,labelfont=bf,labelsep=colon]{caption}
1658 %    \end{macrocode}
1659 % You can change these settings if you like using |\captionsetup|.
1660 %
1661 %
1662 % \subsubsection{\pkg{floatrow}}
1663 % \label{sec:floatrow}
1664 %
1665 % Enforce caption placement with
1666 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/floatrow/}{\pkg{floatrow}}.
1667 % From the Manual \S 2.3 p6, ``Tables and Figures'', 
1668 % \begin{quote}
1669 %   \begin{itemize}
1670 %     \item Place figure captions below figures.
1671 %     \item Place table captions above tables.
1672 %   \end{itemize}
1673 % \end{quote}
1674 %    \begin{macrocode}
1675 \RequirePackage{floatrow}
1676 \floatsetup[table]{style=plaintop}
1677 \floatsetup{captionskip=10pt}
1678 \floatsetup[table]{captionskip=10pt}
1679 %    \end{macrocode}
1680 % Use \pkg{fr-subfig} for \pkg{floatrow}/\pkg{subfig} compatibility.
1681 % See the \pkg{floatrow} documentation (Sec.~7.1, ``The \pkg{subfig}
1682 % package'') and \pkg{subfig} documentation (Sec.~4.3,
1683 % ``\pkg{FloatRow} Package'') for details.
1684 %    \begin{macrocode}
1685 \if@DUT@subfigopt
1686   \RequirePackage{fr-subfig}
1687 \fi
1688 %    \end{macrocode}
1689 % We set up the three-line surrounding spaces in \S
1690 % \ref{sec:implement-floats}.
1691 %
1692 % You can change these settings using |\floatsetup|, but you probably
1693 % won't need to.
1694 %
1695 %
1696 % \subsubsection{\pkg{subfig}}
1697 % \label{sec:subfig}
1698 %
1699 % Allow multi-part figures with
1700 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/subfig/}{\pkg{subfig}}.
1701 %    \begin{macrocode}
1702 \if@DUT@subfigopt
1703   \RequirePackage{subfig}
1704 \fi
1705 %    \end{macrocode}
1706 %
1707 %
1708 % \subsubsection{\pkg{fancyhdr}}
1709 % \label{sec:fancyhdr}
1710 %
1711 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/}{\pkg{fancyhdr}}
1712 % for correct page numbering and fancy headers.
1713 % From the Manual \S 2.3 p5, ``Pagination''
1714 % \begin{quote}
1715 %   Place page numbers in the upper right-hand corner of the page,
1716 %   3/4'' from the top.
1717 % \end{quote}
1718 %    \begin{macrocode}
1719 \RequirePackage{fancyhdr}
1720 %    \end{macrocode}
1721 % Setup the standard |fancy| format.
1722 %    \begin{macrocode}
1723 \pagestyle{fancy}
1724 \fancyhf{}
1725 %    \end{macrocode}
1726 % Turn off the header rule by setting its width to $0$.
1727 %    \begin{macrocode}
1728 \renewcommand{\headrulewidth}{0pt}
1729 %    \end{macrocode}
1730 % 0.4 pt is \pkg{fancyhdr}'s default |\headrulewidth|, so we'll
1731 % recycle the value.
1732 %    \begin{macrocode}
1733 \renewcommand{\footrulewidth}{0.4pt}
1734 %    \end{macrocode}
1735 % |\leftmark| is the higher level mark, see |\chaptermark| below.
1736 % |\rightmark| is the lower level mark, see |\sectionmark| below.
1737 % We put the lower level mark to the outside because it changes more
1738 % often.  Page numbers also go on the outside.
1739 %    \begin{macrocode}
1740 \fancyfoot[RE,LO]{\scshape\leftmark}
1741 \fancyfoot[LE,RO]{\scshape\rightmark}
1742 \fancyhead[LE,RO]{\thepage}
1743 %    \end{macrocode}
1744 % Override the |plain| format (for part pages, etc.).
1745 %    \begin{macrocode}
1746 \fancypagestyle{plain}{
1747   \fancyhf{}
1748   \renewcommand{\footrulewidth}{0pt}
1749   \fancyhead[LE,RO]{\thepage}
1750 }
1751 %    \end{macrocode}
1752 % Keep the |empty| format at its default.
1753 %    \begin{macrocode}
1754 \fancypagestyle{empty}{
1755   \fancyhf{}
1756   \renewcommand{\footrulewidth}{0pt}
1757 }
1758 %    \end{macrocode}
1759 %
1760 % Note that the chapter/section footer is not required.  You can
1761 % remove the footer text and rule entirely with.
1762 % \begin{example}
1763 %   \renewcommand{\footrulewidth}{0pt}
1764 %   \fancyfoot[RE,LO]{}
1765 %   \fancyfoot[LE,RO]{}
1766 % \end{example}
1767 %
1768 %
1769 % \subsubsection{\pkg{ifpdf}}
1770 %
1771 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{ifpdf}}
1772 % for detecting PDF drivers.  We use it to configure \pkg{hyperref} below.
1773 %    \begin{macrocode}
1774 \RequirePackage{ifpdf}
1775 %    \end{macrocode}
1776
1777 % \subsubsection{\pkg{hyperref}}
1778 % \label{sec:hyperref}
1779 %
1780 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{\pkg{hyperref}}
1781 % for hyperlinks.  Not strictly necessary, but I can't imagine a
1782 % thesis without it.  We actually include this later (\S
1783 % \ref{sec:hyperref-inclusion}), because \pkg{hyperref} sticks its
1784 % fingers into \emph{everything} and we want it to use our versions of
1785 % some macros (e.g., |\@sect|) but not others (e.g., |thebibliography|).
1786 %
1787 %
1788 % \subsubsection{\pkg{hypcap}}
1789 % \label{sec:hypcap}
1790 %
1791 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{hypcap}}
1792 % for placing caption hyperlink anchors.  Must be included after
1793 % \pkg{hypercap}, so the actual inclusion is in \S
1794 % \ref{sec:hypcap-inclusion}).
1795 %
1796 %
1797 % \subsubsection{\pkg{tikz}}
1798 % \label{sec:tikz}
1799 %
1800 % \href{http://sourceforge.net/projects/pgf/}{\pkg{tikz}}
1801 % for vector drawing natively in \TeX.  This package is currently only
1802 % required for the \Lopt{approvalform} option (it is used in drawing
1803 % the Drexel logo on the approval form).
1804 %    \begin{macrocode}
1805 \if@approvalform\RequirePackage{tikz}\fi
1806 %    \end{macrocode}
1807 %
1808 %
1809 % \subsection{\LaTeX\ overrides and extensions}
1810 %
1811 % Here we change the behavior of a bunch of macros and environments
1812 % from \file{latex.ltx} (generated by \file{format.ins} in
1813 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{base}}).
1814 % We'll copy in their original notes along with their code, following
1815 % the relevant documentation an order given in \file{format.ins} and
1816 % the associated \file{*.dtx} files.
1817 %
1818 %
1819 % \subsubsection{\file{ltsect.dtx}}
1820 %
1821 % \begin{macro}{\title}
1822 % \begin{macro}{\DUTtitle}
1823 % \begin{macro}{\@DUT@title}
1824 % |\title| for use in |\maketitle|. If not given |\maketitle| will
1825 % produce a warning message (\file{ltsect.dtx}, L117).
1826 %
1827 % We extend |\title| to set \pkg{hyperref}'s |pdftitle|.
1828 % (\file{ltsect.dtx}, L117).
1829 %    \begin{macrocode}
1830 \renewcommand{\title}[1]{
1831   \gdef\@DUT@title{#1}
1832   \ifpdf \hypersetup{pdftitle={\@DUT@title}} \fi
1833 }
1834 \let\DUTtitle\title
1835 \def\@DUT@title{\@latex@error{No \noexpand\title given}\@ehc}
1836 %    \end{macrocode}
1837 % \end{macro}
1838 % \end{macro}
1839 % \end{macro}
1840 %
1841 % \begin{macro}{\author}
1842 % \begin{macro}{\DUTauthor}
1843 % \begin{macro}{\@DUT@author}
1844 % |\author| for use in |\maketitle|.  If not given |\maketitle| will
1845 % produce a warning message (\file{ltsect.dtx}, L129).
1846 %
1847 % We extend |\author| to set \pkg{hyperref}'s |pdfauthor| if we're
1848 % writing a PDF to avoid using |\AtBeginDocument| or some such.
1849 % (\file{ltsect.dtx}, L129).
1850 %    \begin{macrocode}
1851 \renewcommand{\author}[1]{
1852   \gdef\@DUT@author{#1}
1853   \ifpdf \hypersetup{pdfauthor={\protect\@DUT@author}} \fi
1854 }
1855 \let\DUTauthor\author
1856 \def\@DUT@author{\@latex@error{No \noexpand\author given}\@ehc}
1857 %    \end{macrocode}
1858 % \end{macro}
1859 % \end{macro}
1860 % \end{macro}
1861 %
1862 % In a similar vein, we some additional meta-info macros.
1863 %
1864 %  \begin{macro}{\DUTmonth}
1865 %  \begin{macro}{\@DUT@month}
1866 % |\DUTmonth| (defense month) for use in |\maketitle|.  If not given
1867 % |\maketitle| will produce an error message.
1868 %    \begin{macrocode}
1869 \def\DUTmonth#1{\gdef\@DUT@month{#1}}
1870 \def\@DUT@month{\@latex@error{No \noexpand\DUTmonth given}\@ehc}
1871 %    \end{macrocode}
1872 %  \end{macro}
1873 %  \end{macro}
1874 %
1875 %  \begin{macro}{\DUTyear}
1876 %  \begin{macro}{\@DUT@year}
1877 % |\DUTyear| (defense year) for use in |\maketitle|.  If not given
1878 % |\maketitle| will produce an error message.
1879 %    \begin{macrocode}
1880 \def\DUTyear#1{\gdef\@DUT@year{#1}}
1881 \def\@DUT@year{\@latex@error{No \noexpand\DUTyear given}\@ehc}
1882 %    \end{macrocode}
1883 %  \end{macro}
1884 %  \end{macro}
1885 %
1886 %  \begin{macro}{\degree}
1887 %  \begin{macro}{\DUTdegree}
1888 %  \begin{macro}{\@DUT@degree}
1889 % |\degree| for use in |\maketitle|.  If not given |\maketitle| will
1890 % produce an error message.
1891 %    \begin{macrocode}
1892 \def\degree#1{\gdef\@DUT@degree{#1}
1893   \ifpdf \hypersetup{pdfsubject={\@DUT@degree}} \fi}
1894 \let\DUTdegree\degree
1895 \def\@DUT@degree{\@latex@error{No \noexpand\degree given}\@ehc}
1896 %    \end{macrocode}
1897 %  \end{macro}
1898 %  \end{macro}
1899 %  \end{macro}
1900 %
1901 %  \begin{macro}{\copyrighttext}
1902 %  \begin{macro}{\DUTcopyrighttext}
1903 %  \begin{macro}{\@copyrighttext}
1904 % |\copyrighttext| for use in |\@DUT@makecopyright|.  There are a
1905 % number of blurbs predefined in \S \ref{sec:implement-copyright}.
1906 %    \begin{macrocode}
1907 \def\copyrighttext#1{\gdef\@DUT@copyrighttext{#1}}
1908 \let\DUTcopyrighttext\copyrighttext
1909 \def\@DUT@copyrighttext{All Rights Reserved.}
1910 %    \end{macrocode}
1911 %  \end{macro}
1912 %  \end{macro}
1913 %  \end{macro}
1914 %
1915 %  \begin{macro}{\advisor}
1916 %  \begin{macro}{\DUTadvisor}
1917 %  \begin{macro}{\@DUT@advisor}
1918 % |\advisor| stores advisor names, and |\@DUT@advisor| prints them out
1919 % nicely for the |abstract| environment.  If no advisors are given
1920 % |\@DUT@advisor| will produce an error message.  We get a bit fancier
1921 % here to support multiple advisors.
1922 %    \begin{macrocode}
1923 \newcounter{@DUT@advisors}
1924 \setcounter{@DUT@advisors}{0}
1925 %    \end{macrocode}
1926 % Store a new advisor name.
1927 %    \begin{macrocode}
1928 \newcommand\advisor[1]{%
1929   \ifx
1930 %    \end{macrocode}
1931 % If |#1| is |\empty|, this call is a no-op.
1932 %    \begin{macrocode}
1933     \empty{#1}
1934   \else
1935 %    \end{macrocode}
1936 % Save the advisors to |\@DUT@advisor@a|, |\@DUT@advisor@b|, \ldots.
1937 % |\alph{|\Lcount{COUNTER}|}| (\file{ltcounts.dtx}, L319) prints the
1938 %   value of \Lcount{COUNTER} as a lowercase letter: $1 =$~a, $2 =$~
1939 %   b, etc.
1940 %    \begin{macrocode}
1941     \stepcounter{@DUT@advisors}
1942     \expandafter\gdef\csname @DUT@advisor@\alph{@DUT@advisors}\endcsname{#1}
1943   \fi}
1944 %    \end{macrocode}
1945 % Format and print a list of advisor names.
1946 %    \begin{macrocode}
1947 \newcommand\@DUT@advisor{%
1948   \ifnum\c@@DUT@advisors=0%
1949     \@latex@error{No \noexpand\advisor given}\@ehc%
1950   \else%
1951 %    \end{macrocode}
1952 % Start a group so the scratch counter \Lcount{count\textat} is restored
1953 % afterwards\footnote{See the discussion in
1954 %   \href{http://www.ctan.org/tex-archive/macros/latex/contrib/localloc/}{%
1955 %     \pkg{localloc}}
1956 %   for some points on counter allocation.}.
1957 %    \begin{macrocode}
1958     \begingroup%
1959 %    \end{macrocode}
1960 % Because \Lcount{count\textat} is a \TeX\ counter register not
1961 % wrapped by \LaTeX's counter sugar, we don't use \LaTeX's
1962 % |\setcounter| to set \Lcount{count\textat} to one.
1963 %    \begin{macrocode}
1964       \count@\@ne
1965 %    \end{macrocode}
1966 % Print the first advisor, using \TeX's |\@alph| macro instead of
1967 % \LaTeX's |\alph|.
1968 %    \begin{macrocode}
1969 %    \begin{macrocode}
1970       \csname @DUT@advisor@\@alph\count@\endcsname\relax%
1971 %    \end{macrocode}
1972 % For any remaining advisors\ldots
1973 %    \begin{macrocode}
1974       \loop\ifnum\count@<\c@@DUT@advisors%
1975 %    \end{macrocode}
1976 % Advance \Lcount{count\textat} using \TeX's |\advance| macro instead
1977 % of \LaTeX's |\stepcounter|.
1978 %    \begin{macrocode}
1979         \advance\count@\@ne
1980 %    \end{macrocode}
1981 % Print the connecting text.
1982 %    \begin{macrocode}
1983         \ifnum\count@=\c@@DUT@advisors%
1984           \ifnum\c@@DUT@advisors=2%
1985 %    \end{macrocode}
1986 % The next advisor if the last of two.
1987 %    \begin{macrocode}
1988             {\ and\ }%
1989           \else%
1990 %    \end{macrocode}
1991 % The next advisor if the last of many.
1992 %    \begin{macrocode}
1993             {, and\ }%
1994           \fi%
1995         \else%
1996 %    \end{macrocode}
1997 % The next advisor is not the last.
1998 %    \begin{macrocode}
1999           {,\ }%
2000         \fi%
2001 %    \end{macrocode}
2002 % Print the advisor's name.
2003 %    \begin{macrocode}
2004         \csname @DUT@advisor@\@alph\count@\endcsname\relax%
2005       \repeat%
2006     \endgroup%
2007   \fi}
2008 %    \end{macrocode}
2009 %  \end{macro}
2010 %  \end{macro}
2011 %  \end{macro}
2012 %
2013 % \paragraph{baselineskip}
2014 % \label{sec:implement-line-spacing}
2015 %
2016 % \begin{macro}{\@DUT@baselineskip}
2017 % Since we'll be messing with the spacing, save the single-spaced
2018 % baseline.
2019 %   \changes{0.3}{2010/01/13}{Use $\backslash$setlength to store the
2020 %     value at the default font.  The previous version used
2021 %     $\backslash$let, which made $\backslash$DUT\@baselineskip a
2022 %     synonym for $\backslash$baselineskip that changed with font
2023 %     size.}
2024 %    \begin{macrocode}
2025 \newlength\@DUT@baselineskip
2026 \setlength\@DUT@baselineskip\baselineskip
2027 %    \end{macrocode}
2028 % \end{macro}
2029 %
2030 % \begin{command}
2031 %   `\cs{set@lines@length}\marg{length}\marg{N}'
2032 % \end{command}
2033 % \begin{macro}{\set@lines@length}
2034 % Many specifications in the Manual refer to ``\meta{N} blank lines''.
2035 % |\set@lines@length| allows you to set a length to a given number of
2036 % lines, protecting against external |spacing| environments.  It
2037 % requires \pkg{calc} for the multiplication.
2038 %    \begin{macrocode}
2039 \newcommand{\set@lines@length}[2]{%
2040   \setlength{#1}{\@DUT@baselineskip * {#2}}}
2041 %    \end{macrocode}
2042 % \end{macro}
2043 %
2044 %
2045 % Fix |\@ssect| and |\@sect| from \file{latex.ltx} to give single
2046 % spaced headings.
2047 %
2048 % \begin{macro}{\@sect}
2049 % Pseudocode for the |\@sect| command
2050 % \begin{example}
2051 % \@sect{NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}[ARG1]{ARG2}
2052 %           ==
2053 %   BEGIN
2054 %    IF LEVEL > \c@secnumdepth
2055 %      THEN \@svsec :=L null
2056 %      ELSE \refstepcounter{NAME}
2057 %           \@svsec :=L BEGIN \@seccntformat{#1}\relax END
2058 %    FI
2059 %    IF AFTERSKIP > 0
2060 %      THEN \begingroup
2061 %              STYLE
2062 %              \@hangfrom{\hskip INDENT\@svsec}
2063 %              {\interlinepenalty 10000 ARG2\par}
2064 %           \endgroup
2065 %           \NAMEmark{ARG1}
2066 %           \addcontentsline{toc}{NAME}
2067 %              { IF  LEVEL > \c@secnumdepth
2068 %                  ELSE \protect\numberline{\theNAME}  FI
2069 %                ARG1 }
2070 %      ELSE \@svsechd == BEGIN  STYLE
2071 %                               \hskip INDENT\@svsec
2072 %                               ARG2
2073 %                               \NAMEmark{ARG1}
2074 %                               \addcontentsline{toc}{NAME}
2075 %                                  { IF  LEVEL > \c@secnumdepth
2076 %                                      ELSE 
2077 %                                        \protect\numberline{\theNAME}
2078 %                                      FI
2079 %                                    ARG1 }
2080 %                        END
2081 %    FI
2082 %    \@xsect{AFTERSKIP}
2083 % END
2084 % \end{example}
2085 % (\file{ltsect.dtx}, L295).
2086 %    \begin{macrocode}
2087 \def\@sect#1#2#3#4#5#6[#7]#8{%
2088   \ifnum #2>\c@secnumdepth
2089     \let\@svsec\@empty
2090   \else
2091     \refstepcounter{#1}%
2092     \protected@edef\@svsec{\@seccntformat{#1}\relax}%
2093   \fi
2094   \@tempskipa #5\relax
2095   \ifdim \@tempskipa>\z@
2096     \begingroup
2097 %    \end{macrocode}
2098 % Here we deviate from \file{ltsect.dtx} to ensure single spacing for
2099 % the section title.
2100 %    \begin{macrocode}
2101       \setstretch{\@ssp}%
2102       #6{%
2103         \@hangfrom{\hskip #3\relax\@svsec}%
2104           \interlinepenalty \@M #8\@@par}%
2105     \endgroup
2106     \csname #1mark\endcsname{#7}%
2107     \addcontentsline{toc}{#1}{%
2108       \ifnum #2>\c@secnumdepth \else
2109         \protect\numberline{\csname the#1\endcsname}%
2110       \fi
2111       #7}%
2112   \else
2113     \def\@svsechd{%
2114       #6{\hskip #3\relax
2115       \@svsec #8}%
2116       \csname #1mark\endcsname{#7}%
2117       \addcontentsline{toc}{#1}{%
2118         \ifnum #2>\c@secnumdepth \else
2119           \protect\numberline{\csname the#1\endcsname}%
2120         \fi
2121         #7}}%
2122   \fi
2123   \@xsect{#5}}
2124 %    \end{macrocode}
2125 % \end{macro}
2126 %
2127 % \begin{macro}{\@ssect}
2128 % Pseudocode for the |\@ssect| command
2129 % \begin{example}
2130 % \@ssect{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}{ARG} ==
2131 %   BEGIN
2132 %    IF AFTERSKIP > 0
2133 %      THEN \begingroup
2134 %             STYLE
2135 %             \@hangfrom{\hskip INDENT}{\interlinepenalty 10000 ARG\par}
2136 %           \endgroup
2137 %      ELSE \@svsechd == BEGIN STYLE
2138 %                              \hskip INDENT
2139 %                              ARG
2140 %                        END
2141 %    FI
2142 %    \@xsect{AFTERSKIP}
2143 %   END
2144 % \end{example}
2145 % (\file{ltsect.dtx}, L521).
2146 %    \begin{macrocode}
2147 \def\@ssect#1#2#3#4#5{%
2148   \@tempskipa #3\relax
2149   \ifdim \@tempskipa>\z@
2150     \begingroup
2151 %    \end{macrocode}
2152 % Here we deviate from \file{ltsect.dtx} to ensure single spacing for
2153 % the section title.
2154 %    \begin{macrocode}
2155       \setstretch{\@ssp}%
2156       #4{%
2157         \@hangfrom{\hskip #1}%
2158           \interlinepenalty \@M #5\@@par}%
2159     \endgroup
2160   \else
2161     \def\@svsechd{#4{\hskip #1\relax #5}}%
2162   \fi
2163   \@xsect{#3}}
2164 %    \end{macrocode}
2165 % \end{macro}
2166 %
2167 %
2168 % \subsubsection{\file{ltbibl.dtx}}
2169 %
2170 % \DescribeMacro{\bibliography}
2171 % \DescribeEnv{thebibliography}
2172 % A bibliography is created by the |thebibliography| environment, which
2173 % generates a title such as ``Bibliography'', and a list of entries.
2174 % The \BibTeX\ program will create a file containing such an
2175 % environment, which will be read in by the |\bibliography| command.
2176 % With \BibTeX, the following commands will be used.
2177 %
2178 % The document class must define the thebibliography environment.  This
2179 % environment has a single argument, which is the widest bibliography
2180 % label-- e.g., if the [Knuth67] is the widest entry, then this
2181 % argument will be Knuth67.  The |\thebibliography| command must begin
2182 % a list  environment, which the |\endthebibliography| command ends.
2183 %
2184 % \begin{macro}{\bibliography}
2185 % |\bibliography|\marg{file1,file2,\ldots,filen} : specifies
2186 %   the bibdata files.  Writes a |\bibdata| entry on the |.aux| file
2187 %   and tries to read in |mainfile.bbl|.
2188 %
2189 % We don't need to change it, but it explains why we need to override
2190 % |thebibliography| even when we don't use it directly.
2191 % (\file{ltbibl.dtx}, L284).
2192 %    \begin{macrocode}
2193 %\def\bibliography#1{%
2194 %  \if@filesw
2195 %    \immediate\write\@auxout{\string\bibdata{#1}}%
2196 %  \fi
2197 %  \@input@{\jobname.bbl}
2198 %}
2199 %    \end{macrocode}
2200 % \end{macro}
2201 %
2202 %
2203 % \subsubsection{\file{ltoutput.dtx}}
2204 %
2205 % \begin{macro}{\@DUT@clearpage}
2206 % \begin{macro}{\@DUT@cleardoublepage}
2207 % Versions of |\clear*page| that only work when |\if@final| is true
2208 % (\file{ltoutput.dtx}, L877 and L904).
2209 %    \begin{macrocode}
2210 \newcommand\@DUT@clearpage{\if@final \clearpage \fi}
2211 \newcommand\@DUT@cleardoublepage{\if@final \cleardoublepage \fi}
2212 %    \end{macrocode}
2213 % \end{macro}
2214 % \end{macro}
2215 %
2216 % \begin{macro}{\@DUT@blankpage}
2217 % Add a useful extension to insert a blank page without numbering.
2218 % In draft mode, this macro is a no-op.
2219 %    \begin{macrocode}
2220 \newcommand\@DUT@blankpage{%
2221   \if@final
2222     \@DUT@clearpage
2223     \thispagestyle{empty}
2224     \hphantom{0}
2225     \@DUT@clearpage
2226   \else\fi
2227 }
2228 %    \end{macrocode}
2229 % \end{macro}
2230 %
2231 %
2232 % \begin{command}
2233 %   `\cs{blanklines}\marg{N}'
2234 %   `\cs{blanklines*}\marg{N}'
2235 % \end{command}
2236 % \begin{macro}{\blanklines}
2237 % Insert \meta{N} blank lines.  The starred forms use |\vspace|, which
2238 % inserts space even at the start and end of pages.  The |p| forms
2239 % add a trailing |\par|.  \emph{I'm still trying to get this part working
2240 % cleanly\ldots}
2241 %    \begin{macrocode}
2242 \newlength\@DUT@blanklines@length
2243 \newcommand{\@blanklines@setup}[1]{%
2244   \set@lines@length{\@DUT@blanklines@length}{#1}%
2245   %\typeout{BLANKLINES -- #1}%
2246   %\showthe\@DUT@blanklines@length
2247 }
2248 \newcommand{\blanklines}{\@ifstar\@sblanklines\@blanklines}
2249 \newcommand{\@blanklines}[1]{%
2250   \@blanklines@setup{#1}%
2251   \vspace{\@DUT@blanklines@length}}
2252 \newcommand{\@sblanklines}[1]{%
2253   \@blanklines@setup{#1}%
2254   \vspace*{\@DUT@blanklines@length}}
2255 \newcommand{\blanklinesp}{\@ifstar\@sblanklines\@blanklines}
2256 \newcommand{\@blanklinesp}[1]{%
2257   \@blanklines@setup{#1}%
2258   \vspace{\@DUT@blanklines@length}\par}
2259 \newcommand{\@sblanklinesp}[1]{%
2260   \@blanklines@setup{#1}%
2261   \vspace*{\@DUT@blanklines@length}\par}
2262 %    \end{macrocode}
2263 % \end{macro}
2264 %
2265 %
2266 % \subsection{\pkg{hyperref} inclusion}
2267 % \label{sec:hyperref-inclusion}
2268 %
2269 % This is the awkward \pkg{hyperref} inclusion.  See \S
2270 % \ref{sec:hyperref} for an explanation of why we stash it here.
2271 %    \begin{macrocode}
2272 \RequirePackage[final]{hyperref}
2273 %    \end{macrocode}
2274 % Nobody likes the default colored boxes.  Color the text itself.
2275 %    \begin{macrocode}
2276 \hypersetup{colorlinks}
2277 %    \end{macrocode}
2278 % If \Lopt{blackref} is set, set all \pkg{hyperref} colors to black.
2279 %    \begin{macrocode}
2280 \if@blackref
2281   \hypersetup{linkcolor=black}
2282   \hypersetup{anchorcolor=black}
2283   \hypersetup{citecolor=black}
2284   \hypersetup{filecolor=black}
2285   \hypersetup{menucolor=black}
2286   \hypersetup{runcolor=black}
2287   \hypersetup{urlcolor=black}
2288 \fi
2289 %    \end{macrocode}
2290 %
2291 % \subsubsection{\pkg{hypcap}}
2292 % \label{sec:hypcap-inclusion}
2293 %
2294 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{hypcap}}
2295 % for placing caption hyperlink anchors.  Not strictly necessary, but
2296 % we're using \pkg{hyperref}, and the poor link targets are annoying.
2297 %    \begin{macrocode}
2298 \RequirePackage[all]{hypcap}
2299 %    \end{macrocode}
2300 % \Lopt{all} redefines the figure and table environments to
2301 % place the anchor at the start of the float.
2302 %
2303 %
2304 % \subsection{\cls{book} overrides and extensions}
2305 %
2306 % Here we change the behavior of a bunch of macros and environments from
2307 % \cls{book} (generated by \file{classes.ins} from \file{classes.dtx}) in
2308 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{base}}).
2309 % We'll copy in their original notes along with their code, following
2310 % the relevant documentation an order given in \file{classes.dtx}.
2311 %
2312 %
2313 % \subsubsection{Floats on a text page}
2314 % \label{sec:implement-floats}
2315 %
2316 % \begin{macro}{\floatsep}
2317 % \begin{macro}{\textfloatsep}
2318 % When a floating object is placed on a page with text, these
2319 % parameters control the separation between the float and the other
2320 % objects on the page.
2321 %
2322 % |\floatsep| is the space between adjacent floats that are moved
2323 % to the top or bottom of the text page.
2324 %
2325 % |\textfloatsep| is the space between the main text and floats
2326 % at the top or bottom of the page.
2327 %
2328 % |\intextsep| is the space between in-text floats and the text.  We
2329 % don't bother overriding this one, because we've handled it with
2330 % \pkg{floatrow} in \S \ref{sec:floatrow}.
2331 %
2332 % From the Manual \S 2.3 p6, ``Tables and Figures''
2333 % \begin{quote}
2334 %   Insert at least 3 single-spaced lines of space above table
2335 %   captions and figures and below figure captions, tables, and other
2336 %   graphics.
2337 % \end{quote}
2338 % (\file{classes.dtx}, L1426)
2339 %    \begin{macrocode}
2340 \set@lines@length{\floatsep}{\@ssp}
2341 \set@lines@length{\textfloatsep}{\@tsp}
2342 %    \end{macrocode}
2343 % \end{macro}
2344 % \end{macro}
2345 %
2346 %
2347 % \subsubsection{The title}
2348 %
2349 % \begin{macro}{\maketitle}
2350 % Automate the creation of the title page.
2351 % From Manual \S 3.1 p8, ``Title Page'', and the example on p16.
2352 % \begin{itemize}
2353 %   \item This page is counted but not numbered (it counts as page i,
2354 %   but should not have a page number).  TODO: How is this implemented?
2355 % \end{itemize}
2356 % Our definition simplifies \cls{book}'s by ignoring footnotes.
2357 % (\file{classes.dtx}, L1796)
2358 %    \begin{macrocode}
2359 \newcommand\@DUT@maketitle{
2360   \begin{@DUT@titlepage}%
2361 %    \end{macrocode}
2362 % Add some bookmarks if we're using pdf\LaTeX.  The |frontmatter|
2363 % bookmark is set at the \emph{part} level (-1) to hold all bookmarks
2364 % from the |preamble| environment, since those entries are all
2365 % chapters.
2366 % \changes{0.8}{2010/05/20}{W.~Trevor King replaced Frontmatter with
2367 %   Front Matter and Titlepage with Title Page for consistency with
2368 %   \LaTeX's book class.}
2369 %    \begin{macrocode}
2370     \ifpdf
2371       \pdfbookmark[-1]{Front Matter}{Front Matter}
2372       \pdfbookmark[0]{Title Page}{Title Page}
2373     \fi
2374 %    \end{macrocode}
2375 % Add some stretchy space to center the title vertically if we're not
2376 % in draft mode.
2377 %    \begin{macrocode}
2378     \if@final \vspace*{\fill} \fi
2379 %    \end{macrocode}
2380 % Here is the title text itself.
2381 %    \begin{macrocode}
2382     \begin{center}%
2383       {\setstretch{\@tsp} \bfseries \@DUT@title \par}%
2384 %    \end{macrocode}
2385 % We want two blank lines (triple spacing) between the title and the
2386 % remaining material, so add three but don't end the paragraph.
2387 %    \begin{macrocode}
2388       \blanklines{\@tsp}%
2389       \setstretch{\@dsp}%
2390       A Thesis\\
2391       Submitted to the Faculty\\
2392       of\\
2393       Drexel University\\
2394       by\\
2395       \@DUT@author\\
2396       in partial fulfillment of the\\
2397       requirements for the degree\\
2398       of\\
2399       \@DUT@degree\\
2400       \@DUT@month\ \@DUT@year
2401     \end{center}\par
2402 %    \end{macrocode}
2403 % Some more stretchy space for the bottom if we're not in draft mode.
2404 %    \begin{macrocode}
2405 %    \end{macrocode}
2406 % Add some stretchy space to center the title vertically if we're not
2407 % in draft mode.
2408 %    \begin{macrocode}
2409     \if@final \vspace*{\fill} \fi
2410   \end{@DUT@titlepage}%
2411 %    \end{macrocode}
2412 % And that's it.  We reset the footnote counter for the rest of the
2413 % document and save space by freeing the memory associated with the
2414 % |\maketitle| and |\and| macros (by setting them equal to |\relax|).
2415 %    \begin{macrocode}
2416   \setcounter{footnote}{0}%
2417   \global\let\maketitle\relax
2418   \global\let\and\relax
2419 }
2420 %    \end{macrocode}
2421 % \end{macro}
2422 %
2423 %
2424 % \subsubsection{Copyright pages}
2425 % \label{sec:implement-copyright}
2426 %
2427 % \begin{macro}{\@DUT@makecopyright}
2428 % The Manual allows for the selection of different copyrights, so we
2429 % define a base macro that generates a proper copyright page
2430 % containing |\@copyrighttext|, which the user can set with
2431 % |\copyrighttext|.
2432 % From Manual \S 3.2 p9, ``Copyright Page''.
2433 % \begin{itemize}
2434 %   \item Include a copyright page with the following information: a
2435 %   copyright notice, full legal name of author, and date of
2436 %   publication on file.
2437 %   \item This page is neither counted nor numbered.
2438 % \end{itemize}
2439 % In final mode, we start off on a new page and center the blurb.
2440 % In draft mode, we dive right into the text.
2441 %    \begin{macrocode}
2442 \newcommand\@DUT@makecopyright{%
2443   \@DUT@clearpage
2444 %    \end{macrocode}
2445 % If we're using pdf\LaTeX, add a bookmark.
2446 %    \begin{macrocode}
2447   \ifpdf \pdfbookmark[0]{Copyright Page}{Copyright Page} \fi
2448   \if@final \vspace*{\fill} \fi
2449   \begin{center}
2450     \copyright~Copyright \@DUT@year\\
2451     \@DUT@author.  \@DUT@copyrighttext
2452   \end{center}
2453   \if@final \vspace*{\fill} \else \blanklinesp{2} \fi
2454 %    \end{macrocode}
2455 % Turn off page numbering for this page.
2456 %    \begin{macrocode}
2457   \thispagestyle{empty}
2458 }
2459 %    \end{macrocode}
2460 % \end{macro}
2461 %
2462 % \begin{macro}{\copyrighttextCCBYSA}
2463 % \begin{macro}{\DUTcopyrighttextCCBYSA}
2464 % The Creative Commons Attribution-ShareAlike License.
2465 % \changes{0.4}{2010/02/23}{W.~Trevor King renamed from
2466 % $\backslash$copyrighttextCC, and made specific to Creative Commons
2467 % Attribution-ShareAlike Version 3.0.}
2468 %    \begin{macrocode}
2469 \newcommand\copyrighttextCCBYSA{
2470   \begin{quote}
2471     This work is licensed under the terms of the Creative Commons
2472     Attribution-ShareAlike license Version 3.0.  The license is
2473     available at \\
2474     \url{http://creativecommons.org/licenses/by-sa/3.0/}.
2475   \end{quote}
2476 }
2477 \let\DUTcopyrighttextCCBYSA\copyrighttextCCBYSA
2478 %    \end{macrocode}
2479 % \end{macro}
2480 % \end{macro}
2481 %
2482 %
2483 % \subsubsection{Mark commands}
2484 %
2485 % Default initializations of |\*mark| commands.  These commands
2486 % are used in the definition of the page styles.
2487 %
2488 % \begin{macro}{\chaptermark}
2489 % Setup colon rather than period separated chapter marks.
2490 % (\file{classes.dtx}, L2053)
2491 %    \begin{macrocode}
2492 \renewcommand\chaptermark[1]{%
2493   \markboth {%
2494     \ifnum \c@secnumdepth >\m@ne
2495       \if@mainmatter
2496         \@chapapp\ \thechapter: \ %
2497       \fi
2498     \fi
2499     #1}{}}
2500 %    \end{macrocode}
2501 % \end{macro}
2502 %
2503 % \begin{macro}{\schaptermark}
2504 % Setup unnumbered chapter marks for \pkg{fancyhdr}.
2505 %    \begin{macrocode}
2506 \newcommand\schaptermark[1]{\markboth{#1}{}}
2507 %    \end{macrocode}
2508 % \end{macro}
2509 %
2510 % \begin{macro}{\sectionmark}
2511 % Setup space rather than period separated section marks.
2512 % (\file{classes.dtx}, L2054)
2513 %    \begin{macrocode}
2514 \renewcommand{\sectionmark}[1]{%
2515   \markright {%
2516     \ifnum \c@secnumdepth >\z@
2517       \thesection \ %
2518     \fi
2519     #1}}
2520 %    \end{macrocode}
2521 % \end{macro}
2522 %
2523 %
2524 % \subsubsection{Front Matter, Main Matter, and Back Matter}
2525 %
2526 % A book contains these three (logical) sections. The switch
2527 % |\@mainmatter| is true if and only if we are processing main
2528 % matter\footnote{%
2529 %   \href{http://en.wikipedia.org/wiki/Book_design}{Wikipedia}
2530 %   suggests \emph{body matter} for the main content, but
2531 %   \href{http://mirror.ctan.org/macros/latex/base/classes.dtx}{\LaTeX's
2532 %   \cls{book}} uses \emph{Main Matter}.  We're a \LaTeX\ class, so
2533 %   we'll stick with ``main matter'' for consistency.
2534 % }.  When this switch is false, the
2535 % |\chapter| command does not print chapter numbers.
2536 %
2537 % \begin{macro}{\mainmatter}
2538 % This command clears the page (in final mode), starts arabic page
2539 % numbering and turns on chapter numbering.  Since this restarts the
2540 % page numbering from 1, it should also ensure that a recto page is
2541 % used.
2542 %
2543 % We replace \cls{book}'s |\clear*page| calls with |\@DUT@clearpage| calls.
2544 % (\file{classes.dtx}, L2211)
2545 %    \begin{macrocode}
2546 \renewcommand\mainmatter{%
2547   \@DUT@cleardoublepage
2548   \@mainmattertrue
2549   \pagenumbering{arabic}}
2550 %    \end{macrocode}
2551 % \end{macro}
2552 %
2553 %
2554 % \subsubsection{Parts}
2555 %
2556 % \begin{macro}{\part}
2557 % The command to start a new part of our document.
2558 %
2559 % We start a new (righthand) page and use the \pstyle{plain}
2560 % pagestyle, replacing \cls{book}'s |\clear*page| calls with
2561 % |\@DUT@clearpage| calls and dropping twopage code.
2562 % (\file{classes.dtx}, L2249)
2563 %    \begin{macrocode}
2564 \renewcommand\part{%
2565   \if@openright
2566     \@DUT@cleardoublepage
2567   \else
2568     \@DUT@clearpage
2569   \fi
2570   \thispagestyle{plain}%
2571   \@tempswafalse
2572 %    \end{macrocode}
2573 % Add some stretchy space for vertical centering if we're in final mode.
2574 %    \begin{macrocode}
2575   \if@final \null\vfil \fi
2576 %    \end{macrocode}
2577 % Here we use |\secdef| to indicate which commands to use to make
2578 % the actual heading.
2579 %    \begin{macrocode}
2580   \secdef\@part\@spart}
2581 %    \end{macrocode}
2582 % \end{macro}
2583 %
2584 % \begin{macro}{\@part}
2585 % This macro does the actual formatting of the title of the part.  We
2586 % replace \cls{book}'s |\Huge| with |\large|, and make use of
2587 % |\numberline| for consistent spacing.
2588 %
2589 % When \Lcount{secnumdepth} is larger than $-2$, we have a numbered
2590 % part, otherwise it is unnumbered.
2591 % (\file{classes.dtx}, L2310)
2592 %    \begin{macrocode}
2593 \def\@part[#1]#2{%
2594     \ifnum \c@secnumdepth >-2\relax
2595       \refstepcounter{part}%
2596       \addcontentsline{toc}{part}%
2597         {\protect\numberline{\thepart}#1}%
2598     \else
2599       \addcontentsline{toc}{part}{#1}%
2600     \fi
2601 %    \end{macrocode}
2602 % We empty the mark registers and center the title on the page.
2603 % Also we prevent breaking between lines and reset the font.
2604 %    \begin{macrocode}
2605     \markboth{}{}%
2606     {\centering
2607      \interlinepenalty \@M
2608      \normalfont
2609 %    \end{macrocode}
2610 % When this is a numbered part we have to print the number.
2611 %    \begin{macrocode}
2612      \ifnum \c@secnumdepth >-2\relax
2613        \large\bfseries \partname\nobreakspace\thepart
2614        \par
2615 %    \end{macrocode}
2616 % We leave some space before we print the title and leave the
2617 % finishing up to |\@endpart|.
2618 %    \begin{macrocode}
2619        \vskip 20\p@
2620      \fi
2621      \large \bfseries #2\par}%
2622     \@endpart}
2623 %    \end{macrocode}
2624 % \end{macro}
2625 %
2626 % \begin{macro}{\@spart}
2627 % This macro does the actual formatting of the title of the part
2628 % when the star form of the user command was used. In this case we
2629 % \emph{never} print a number. Otherwise the formatting is the
2630 % same.
2631 % (\file{classes.dtx}, L2402)
2632 %    \begin{macrocode}
2633 \def\@spart#1{%
2634     {\centering
2635      \interlinepenalty \@M
2636      \normalfont
2637      \large \bfseries #1\par}%
2638     \@endpart}
2639 %    \end{macrocode}
2640 % \end{macro}
2641 %
2642 % \begin{macro}{\@endpart}
2643 % This macro finishes the part page, for both |\@part| and |\@spart|.
2644 % We drop \cls{book}'s twoside handling.
2645 % If |\if@final| is true, we fill the current page.
2646 % (\file{classes.dtx}, L2435)
2647 %    \begin{macrocode}
2648 \def\@endpart{
2649   \if@final \vfil\newpage \fi
2650 %    \end{macrocode}
2651 % Then, when we are in twosided mode and the chapters are supposed to
2652 % be on the right hand sides, we produce a completely blank page.  We
2653 % don't need to check |\if@final| here, because \Lopt{draftspace} set
2654 % |\@openrighttrue|.
2655 %    \begin{macrocode}
2656   \if@twoside
2657     \if@openright
2658       \null
2659       \thispagestyle{empty}%
2660       \newpage
2661     \fi
2662   \fi}
2663 %    \end{macrocode}
2664 % \end{macro}
2665 %
2666 %
2667 % \subsubsection{Chapters}
2668 % \label{sec:implement-chapters}
2669 %
2670 % \begin{macro}{\chapter}
2671 % \cls{book} always starts a chapter on a new page, but we don't want
2672 % to do that if we're in draft mode.
2673 % (\file{classes.dtx}, L2472).
2674 %    \begin{macrocode}
2675 \renewcommand\chapter{%
2676   \if@openright\@DUT@cleardoublepage\else\@DUT@clearpage\fi
2677   \thispagestyle{plain}%
2678 %    \end{macrocode}
2679 % Then we prevent floats from appearing at the top of this page
2680 % because it looks weird to see a floating object above a chapter
2681 % title.
2682 %    \begin{macrocode}
2683   \global\@topnum\z@
2684 %    \end{macrocode}
2685 % Then we suppress the indentation of the first paragraph by
2686 % setting the switch |\@afterindent| to false. We use |\secdef|
2687 % to specify the macros to use for actually setting the chapter
2688 % title.
2689 %    \begin{macrocode}
2690   \@afterindentfalse
2691   \secdef\@chapter\@schapter}
2692 %    \end{macrocode}
2693 % \end{macro}
2694 %
2695 % \begin{macro}{\listed@schapter}
2696 % |\chapter| declares numbered chapters, which are listed in the table
2697 % of contents.
2698 % |\chapter*| declares unnumbered chapters, which are \emph{not}
2699 % listed in the TOC.
2700 % |\listed@schapter| declares an unnumbered chapter that \emph{is}
2701 % listed in the TOC.
2702 %    \begin{macrocode}
2703 \newcommand\listed@schapter[1]{%
2704   \if@openright\@DUT@cleardoublepage\else\@DUT@clearpage\fi
2705   \thispagestyle{plain}%
2706   \global\@topnum\z@
2707   \phantomsection
2708   \addcontentsline{toc}{chapter}{#1}
2709   \@afterindentfalse
2710   \@schapter{#1}}
2711 %    \end{macrocode}
2712 % \end{macro}
2713 %
2714 % \begin{macro}{\@chapter}
2715 % This macro is called when we have a numbered chapter. When
2716 % \Lcount{secnumdepth} is larger than $-1$ and |\@mainmatter| is true,
2717 % we display the chapter number.
2718 % We drop \cls{book}'s \Lopt{twocolumn} code. 
2719 % (\file{classes.dtx}, L2496).
2720 %    \begin{macrocode}
2721 \def\@chapter[#1]#2{
2722 %    \end{macrocode}
2723 % Inform the user that a new chapter is about to be typeset by writing
2724 % a message to the terminal.
2725 % \changes{0.9}{2010/05/21}{W.~Trevor King disabled the label macro
2726 % for typeout.}
2727 % Some users place |\label| in their chapter argument:
2728 % \begin{example}
2729 %   \chapter{Bla bla\label{x}}
2730 % \end{example}
2731 % rather than after (as recommended by
2732 % \href{http://en.wikibooks.org/wiki/LaTeX/Labels_and_Cross-referencing#Sections}%
2733 %   {the \LaTeX\ Wikibook} and
2734 % \href{http://www.ctan.org/tex-archive/info/lshort/english/lshort.pdf}%
2735 %   {The Not So Short Introduction to \LaTeXe\ (\S 2.8, p36)}):
2736 % \begin{example}
2737 %   \chapter{Bla bla}
2738 %   \label{x}
2739 % \end{example}
2740 % The embedded |\label| chokes |\typeout| so we temporarily redefine
2741 % |\label| to just gobble its contents.  |\@DUT@label| stores the
2742 % original definition.
2743 %    \begin{macrocode}
2744   \let\@DUT@label=\label%
2745   \renewcommand{\label}[1]{}%
2746   \typeout{\@chapapp\space\thechapter. #1}%
2747 %    \end{macrocode}
2748 % Restore |\label| to its previous glory.
2749 %    \begin{macrocode}
2750   \let\label=\@DUT@label%
2751 %    \end{macrocode}
2752 % Now we can get on with the real work.
2753 %    \begin{macrocode}
2754   \ifnum \c@secnumdepth >\m@ne
2755     \if@mainmatter
2756       \refstepcounter{chapter}%
2757       \addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}#1}%
2758     \else
2759       \addcontentsline{toc}{chapter}{#1}%
2760     \fi
2761   \else
2762     \addcontentsline{toc}{chapter}{#1}%
2763   \fi
2764 %    \end{macrocode}
2765 % After having written an entry to the table of contents we store
2766 % the (alternative) title of this chapter with |\chaptermark|.
2767 %    \begin{macrocode}
2768   \chaptermark{#1}%
2769 %    \end{macrocode}
2770 % For nicer lists of figures and tables, we could add some white space
2771 % to separate the chapters.  However, nice lists $\neq$~Manual
2772 % specifications.
2773 %    \begin{macrocode}
2774 %  \addtocontents{lof}{\protect\addvspace{10\p@}}%
2775 %  \addtocontents{lot}{\protect\addvspace{10\p@}}%
2776 %    \end{macrocode}
2777 % Then we call upon |\@makechapterhead| to format the actual chapter
2778 % title.  |\@afterheading| which takes care of suppressing the
2779 % indentation.
2780 %    \begin{macrocode}
2781   \@makechapterhead{#2}%
2782   \@afterheading}
2783 %    \end{macrocode}
2784 % \end{macro}
2785 %
2786 % \begin{macro}{\@makechapterhead}
2787 % The |\@chapter| macro uses |\@makechapterhead|\meta{text} to format
2788 % the heading of the chapter.
2789 % From the Manual \S 3.11 p11.
2790 % \begin{quote}
2791 %   Chapter headings must be bold and centered.
2792 %   The chapter number and title must be on the same line, separated
2793 %   by a colon or period, as shown in the example below:
2794 %   \begin{center}
2795 %     CHAPTER 1: INTRODUCTION
2796 %   \end{center}
2797 %   Headings must not be larger than 12 points.
2798 %   Headings must be single spaced.
2799 % \end{quote}
2800 % \cls{book} sets |\@chapapp| and |\thechapter| (e.g., ``Chapter 5'')
2801 % on a line above the chapter title, but that doesn't match the
2802 % Manual's specification.
2803 %
2804 % We begin by leaving some white space. The we open a group in which
2805 % we have a paragraph indent of 0pt, and in which we have the text set
2806 % ragged right. We also reset the font.
2807 % (\file{classes.dtx}, L2540).
2808 %    \begin{macrocode}
2809 \def\@makechapterhead#1{%
2810 %    \end{macro}
2811 % Adding even a \vspace*{0\p@} here seems to increase the vertical
2812 % space above the chapter heading by two lines.  I'm not sure why.
2813 % Workaround is to pass the ``value of blanklines you want minus two''
2814 % to |\blanklines*|.  HACK!
2815 %    \begin{macro}
2816   \blanklines*{-1}% HACK!
2817   {\parindent \z@ \raggedright \normalfont
2818 %    \end{macrocode}
2819 % Ensure single spacing.
2820 %    \begin{macrocode}
2821     \setstretch{\@ssp}%
2822 %    \end{macrocode}
2823 % Prevent a pagebreak from occuring in the middle of or after the title.
2824 %    \begin{macrocode}
2825     \interlinepenalty\@M
2826 %    \end{macrocode}
2827 % Check whether the number of the chapter has to be printed.
2828 %    \begin{macrocode}
2829     \ifnum \c@secnumdepth >\m@ne
2830 %    \end{macrocode}
2831 % Check whether there \emph{is} a number to be printed.
2832 %    \begin{macrocode}
2833       \if@mainmatter
2834 %    \end{macrocode}
2835 % Setup a ``Chapter \#: Title'' heading.
2836 %    \begin{macrocode}
2837         \center \large \bfseries \@chapapp{} \thechapter: #1\par\nobreak
2838       \else
2839 %    \end{macrocode}
2840 % Setup a ``Title'' heading.
2841 %    \begin{macrocode}
2842         \center \large \bfseries #1\par\nobreak
2843       \fi
2844     \else
2845       \center \large \bfseries #1\par\nobreak
2846     \fi
2847 %    \end{macrocode}
2848 % Put a little space before the chapter body.  We use four blank lines
2849 % to comply with the Manual \S 3.13 p12
2850 % \begin{quote}
2851 %   Begin the list of sources four spaces below the heading.
2852 % \end{quote}
2853 %    \begin{macrocode}
2854     \blanklines{4}
2855   }
2856 }
2857 %    \end{macrocode}
2858 % \end{macro}
2859 %
2860 % \begin{macro}{\@schapter}
2861 % This macro is called when we have an unnumbered chapter.  We drop
2862 % \file{classes.dtx}'s \Lopt{twocolumn} code and set marks for
2863 % \pkg{fancyhdr}.
2864 % (\file{classes.dtx}, L2582).
2865 %    \begin{macrocode}
2866 \def\@schapter#1{
2867 %    \end{macrocode}
2868 % Inform the user that a new chapter is about to be typeset by writing
2869 % a message to the terminal.
2870 %    \begin{macrocode}
2871   \typeout{\@chapapp\space #1}%
2872   \schaptermark{#1}%
2873   \@makeschapterhead{#1}%
2874   \@afterheading}
2875 %    \end{macrocode}
2876 % \end{macro}
2877 %
2878 % \begin{macro}{\@makeschapterhead}
2879 % The macro above uses |\@makeschapterhead|\meta{text} to format
2880 % the heading of the chapter. It is similar to |\@makechapterhead|
2881 % except that it never has to print a chapter number.
2882 % (\file{classes.dtx}, L2595).
2883 %    \begin{macrocode}
2884 \def\@makeschapterhead#1{%
2885   \blanklines*{-1}% HACK!
2886   {\parindent \z@ \raggedright \normalfont
2887     \setstretch{\@ssp}%
2888     \interlinepenalty\@M
2889     \center \large \bfseries  #1\par\nobreak
2890     \blanklines{4}%
2891   }
2892 }
2893 %    \end{macrocode}
2894 % \end{macro}
2895 %
2896 %
2897 % \subsubsection{Lower level headings}
2898 %
2899 % \begin{macro}{\section}
2900 % Setup section headings in |\large| rather than \cls{book}'s
2901 % |\Large|.
2902 % (\file{classes.dtx}, L2623).
2903 %    \begin{macrocode}
2904 \renewcommand\section{%
2905   \@startsection {section}{1}{\z@}%
2906     {-3.5ex \@plus -1ex \@minus -.2ex}%
2907     {2.3ex \@plus.2ex}%
2908     {\normalfont\large\bfseries}}
2909 %    \end{macrocode}
2910 % \end{macro}
2911 %
2912 %
2913 % \subsubsection{Defining new environments}
2914 %
2915 % We don't override any of \cls{book}'s environments, but this is
2916 % where \file{classes.dtx} defines its environments (L2996), so we'll put
2917 % ours here too.
2918 %
2919 % \begin{environment}{preamble}
2920 % \begin{environment}{DUTpreamble}
2921 %    \begin{macrocode}
2922 \newenvironment{preamble}{%
2923   \cleardoublepage
2924   \@mainmatterfalse
2925   \pagenumbering{roman}
2926   \if@approvalform
2927     \ifpdf
2928       \pdfbookmark[-1]{Approval Form}{Approval Form}
2929     \fi
2930     \DUT@makeapprovalform
2931   \fi
2932 %    \end{macrocode}
2933 % From Manual \S 3.1 p8, ``Title Page''.
2934 %    \begin{macrocode}
2935   \@DUT@maketitle
2936 %    \end{macrocode}
2937 % From Manual \S 3.2 p9, ``Copyright Page''.
2938 %    \begin{macrocode}
2939   \@DUT@makecopyright
2940 }{%
2941 %    \end{macrocode}
2942 % From the Manual \S 3.9, p11:
2943 % \begin{quote}
2944 %   Include a blank page (with no page number) before the first page
2945 %   of text.  The blank page is neither numbered nor counted.
2946 % \end{quote}
2947 %    \begin{macrocode}
2948   \@DUT@blankpage
2949 }
2950 %    \end{macrocode}
2951 % \LaTeX's |\newenvironment| and company work by defining |\X| and
2952 % |\endX| for the environment |X|.  We can alias the preamble
2953 % environment by saving these macros.
2954 %    \begin{macrocode}
2955 \let\DUTpreamble\preamble
2956 \let\endDUTpreamble\endpreamble
2957 %    \end{macrocode}
2958 % \end{environment}
2959 % \end{environment}
2960 %
2961 % \begin{environment}{dedications}
2962 % \begin{environment}{DUTdedications}
2963 % From the Manual \S 3.3 p9
2964 % \begin{itemize}
2965 %   \item The heading |Dedications| must appear at the top of the
2966 %   page.  The heading must be bold, centered, and without
2967 %   punctuation.
2968 %   \item This page is counted and numbered in lowercase Roman numerals.
2969 % \end{itemize}
2970 % \changes{0.12}{2010/06/17}{W.~Trevor King added $\backslash$par to
2971 %   detach the single space $\backslash$setstretch from the from the
2972 %   final paragraph.}
2973 %    \begin{macrocode}
2974 \newenvironment{dedications}{%
2975   \@DUT@clearpage
2976   \ifpdf
2977     \phantomsection
2978     \pdfbookmark[0]{\DUTdedicationsname}{\DUTdedicationsname}
2979   \fi
2980   \chapter*{\DUTdedicationsname}
2981   \setstretch{\@dsp}%
2982 }{%
2983   \par\setstretch{\@ssp}%
2984 }
2985 \let\DUTdedications\dedications
2986 \let\endDUTdedications\enddedications
2987 %    \end{macrocode}
2988 % \end{environment}
2989 % \end{environment}
2990 %
2991 % \begin{environment}{acknowledgments}
2992 % \begin{environment}{DUTacknowledgments}
2993 % From the Manual \S 3.4 p9
2994 % \begin{itemize}
2995 %   \item The heading |Acknowledgments| must appear at the top of the
2996 %   page.  The heading must be bold, centered, and without
2997 %   punctuation.
2998 %   \item This page is counted and numbered in lowercase Roman numerals.
2999 % \end{itemize}
3000 % \changes{0.12}{2010/06/17}{W.~Trevor King added $\backslash$par to
3001 %   detach the single space $\backslash$setstretch from the from the
3002 %   final paragraph.}
3003 %    \begin{macrocode}
3004 \newenvironment{acknowledgments}{%
3005   \@DUT@clearpage
3006   \ifpdf
3007     \phantomsection
3008     \pdfbookmark[0]{\DUTacknowledgmentsname}{\DUTacknowledgmentsname}
3009   \fi
3010   \chapter*{\acknowledgmentsname}
3011   \setstretch{\@dsp}%
3012 }{%
3013   \par\setstretch{\@ssp}%
3014 }
3015 %    \end{macrocode}
3016 \let\DUTacknowledgments\acknowledgments
3017 \let\endDUTacknowledgments\endacknowledgments
3018 % \end{environment}
3019 % \end{environment}
3020 %
3021 % \begin{environment}{abstract}
3022 % \begin{environment}{DUTabstract}
3023 %    \begin{macrocode}
3024 \newenvironment{abstract}{%
3025   \listed@schapter{\abstractname}%
3026 %    \end{macrocode}
3027 % Suck up some blank space to position the rest of the header right
3028 % under the chapter title.
3029 %    \begin{macrocode}
3030   \blanklines{-4}%
3031 %    \end{macrocode}
3032 % From the Manual \S 3.9 p10
3033 % \begin{quote}
3034 %   \begin{itemize}
3035 %     \item The following heading must be centered at the top of the page
3036 %       \begin{center}
3037 %         Abstract \\
3038 %         Full Title of Dissertation or Thesis \\
3039 %         Author's Name as it appears on the Dissertation or Thesis
3040 %       \end{center}
3041 %       In the example on p20, they list the advisor's name after the
3042 %       author, but that is not specified in the text on p10.
3043 %     \item The text begins four lines below this heading.
3044 %   \end{itemize}
3045 % \end{quote}
3046 % On p20
3047 % \begin{quote}
3048 %   \begin{itemize}
3049 %     \item These pages are numbered using lowercase Roman numerals.
3050 %     \item Note that the heading is single spaced, but the abstract
3051 %       is double spaced.
3052 %   \end{itemize}
3053 % \end{quote}
3054 % \changes{0.12}{2010/06/17}{W.~Trevor King added $\backslash$par to
3055 %   detach the single space $\backslash$setstretch from the from the
3056 %   final paragraph.}
3057 %    \begin{macrocode}
3058     \begin{center}
3059       \setstretch{\@ssp}%
3060       \@DUT@title\\
3061       \@DUT@author\\
3062 %    \end{macrocode}
3063 % If you're feeling daring, break the rules and add ``Advisor(s):'' to
3064 % set off your list of advisor names.
3065 % \changes{0.11}{2010/06/04}{W.~Trevor King added ``Advisor(s):'' for
3066 % daring users.}
3067 %    \begin{macrocode}
3068       \ifdaring{%
3069         \ifnum\c@@DUT@advisors=\@ne%
3070         Advisor:
3071         \else%
3072         Advisors:
3073         \fi}{}
3074       \@DUT@advisor\\
3075     \end{center}
3076   \blanklines{4}%
3077   \setstretch{\@dsp}%
3078   \@nobreaktrue
3079   \@afterindentfalse
3080   \@afterheading
3081 }{%
3082   \par\setstretch{\@ssp}%
3083 }
3084 \let\DUTabstract\abstract
3085 \let\endDUTabstract\endabstract
3086 %    \end{macrocode}
3087 % \end{environment}
3088 % \end{environment}
3089 %
3090 % \begin{environment}{thesis}
3091 % \begin{environment}{DUTthesis}
3092 % From the Manual \S 3.10 p11
3093 % \begin{itemize}
3094 %   \item The pages are counted and numbered in Arabic numerals.
3095 % \end{itemize}
3096 % \changes{0.8}{2010/05/20}{W.~Trevor King replaced Backmatter with
3097 %   Back Matter for consistency with \LaTeX's book class.}
3098 %    \begin{macrocode}
3099 \newenvironment{thesis}{%
3100   \mainmatter
3101   \setstretch{\@dsp}%
3102 }{%
3103   \setstretch{\@ssp}%
3104   \@DUT@clearpage
3105   \ifpdf
3106     \phantomsection
3107     \pdfbookmark[-1]{Back Matter}{Back Matter}
3108   \fi
3109 }
3110 \let\DUTthesis\thesis
3111 \let\endDUTthesis\endthesis
3112 %    \end{macrocode}
3113 % \end{environment}
3114 % \end{environment}
3115 %
3116 % \paragraph{Vita}
3117 % \label{sec:implement-vita}
3118
3119 % \begin{environment}{vita}
3120 % \begin{environment}{DUTvita}
3121 % From the Manual \S 3.15 p13
3122 % \begin{itemize}
3123 %   \item The heading |Vita| must appear at the top of the page.  The
3124 %   heading must be bold, centered, and without punctuation.
3125 %   \item The Vita text should begin four spaces below the heading.
3126 %   \item List the Vita separately in the Table of Contents.
3127 %   \item The page is counted and numbered in Arabic numerals.
3128 % \end{itemize}
3129 % \changes{0.12}{2010/06/17}{W.~Trevor King added $\backslash$par to
3130 %   detach the single space $\backslash$setstretch from the from the
3131 %   final paragraph.}
3132 %    \begin{macrocode}
3133 \newenvironment{vita}{%
3134   \listed@schapter{\vitaname}
3135   \setstretch{\@dsp}%
3136 }{%
3137   \par\setstretch{\@ssp}%
3138 }
3139 \let\DUTvita\vita
3140 \let\endDUTvita\endvita
3141 %    \end{macrocode}
3142 % \end{environment}
3143 % \end{environment}
3144 %
3145 %
3146 % \subsubsection{Titlepage}
3147 %
3148 % \begin{environment}{titlepage}
3149 % In the normal environments, the titlepage environment does nothing
3150 % but start and end a page, and inhibit page numbers.  We inhibit the
3151 % paging in draft mode, since it seems silly to waste a whole page on
3152 % the title.  We also drop the \Lopt{twocolumn} code.
3153 % (\file{classes.dtx}, L3111)
3154 %    \begin{macrocode}
3155 \renewenvironment{titlepage}%
3156   {\thispagestyle{empty}%
3157     \setcounter{page}\z@}%
3158   {\if@final \newpage \else \blanklinesp{2} \par \fi}
3159 \let\@DUT@titlepage\titlepage
3160 \let\end@DUT@titlepage\endtitlepage
3161 %    \end{macrocode}
3162 % \end{environment}
3163 %
3164 %
3165 % \subsubsection{Appendix}
3166 % \label{sec:implement-appendix}
3167 %
3168 % \begin{macro}{\appendix}
3169 % \begin{macro}{\DUTappendix}
3170 % The |\appendix| command is not really an environment, it is a
3171 % macro that makes some changes in the way things are done.
3172 %
3173 % In the article document class the |\appendix| command must do the
3174 % following:
3175 % \begin{itemize}
3176 %   \item reset the section and subsection counters to zero,
3177 %   \item redefine |\thesection| to produce alphabetic appendix
3178 %         numbers. This redefinition is done globally to ensure that it 
3179 %         survives even if |\appendix| is issued within an environment such
3180 %         as |multicols|.
3181 % \end{itemize}
3182 %
3183 % In addition to \cls{book}'s (or \pkg{hyperref}'s) activity, we
3184 % fiddle with the \pkg{tocloft} chapter settings add switch to global
3185 % double-spacing.
3186 % (\file{classes.dtx}, L3177)
3187 %    \begin{macrocode}
3188 \let\@DUT@appendix\appendix
3189 \renewcommand\appendix{%
3190   \@DUT@appendix%
3191 %    \end{macrocode}
3192 % Setup TOC entries like
3193 % \begin{center}
3194 %   Appendix A: Chapter Title
3195 % \end{center}
3196 % We don't need to worry about the |vita| environment (page
3197 % \pageref{sec:implement-vita}), because it is a |\listed@schapter|,
3198 % and therefore lacks a |\numberline| section in its \file{*.toc}
3199 % entry.
3200 %
3201 % We increase |numwidth| to 6.5em to make room for |Appendix~| before
3202 % the chapter number/letter, and add a colon after it.
3203 %
3204 % The |\protect| calls get the macros into \file{*.toc} unexpanded, so
3205 % they function correctly when \LaTeX\ parses \file{*.toc}.
3206 %    \begin{macrocode}
3207   \addtocontents{toc}{%
3208     \protect\cftsetindents{chapter}{0pt}{6.5em}
3209     \protect\renewcommand{\protect\cftchappresnum}{\protect\appendixname~}
3210     \protect\renewcommand{\protect\cftchapaftersnum}{:}}
3211 %    \end{macrocode}
3212 % We also turn on double spacing by default, since we're no longer
3213 % wrapped in the |thesis| environment.
3214 %    \begin{macrocode}
3215   \setstretch{\@dsp}%
3216 }
3217 \let\DUTappendix\appendix
3218 %    \end{macrocode}
3219 % \end{macro}
3220 % \end{macro}
3221 %
3222 %
3223 % \subsubsection{Table of Contents}
3224 % \label{sec:implement-toc}
3225 %
3226 % From Manual \S 3.5 p9, ``Table of Contents'', and the example on p17.
3227 % \begin{quote}
3228 %   \begin{itemize}
3229 %     \item Do not list any sections that precede the
3230 %     |Table of Contents| (e.g., |Dedications|, |Acknowledgments|).  Do
3231 %     not list the |Table of Contents| itself.
3232 %     \item These pages are counted and numbered in lowercase Roman numerals.
3233 %   \end{itemize}
3234 % \end{quote}
3235 %
3236 % \begin{macro}{\cfttoctitlefont}
3237 % Take advantange of \pkg{tocloft}'s TOC title code.
3238 % (\file{tocloft.dtx}, L1501)
3239 % \begin{example}
3240 %   \cfttoctitlefont\contentsname}{\cftaftertoctitle}
3241 % \end{example}
3242 % by setting it equal to something ending in |\chapter*|.  That way
3243 % \LaTeX parses the whole thing as
3244 % \begin{example}
3245 %   ...\chapter*\contentsname}{\cftaftertoctitle}
3246 % \end{example}
3247 % which will set up the TOC page correctly.
3248 %    \begin{macrocode}
3249 \renewcommand\cfttoctitlefont{%
3250 %    \end{macrocode}
3251 % Start a new page in \Lopt{final} mode
3252 %    \begin{macrocode}
3253   \@DUT@clearpage
3254 %    \end{macrocode}
3255 % Add a bookmark if we're using pdf\LaTeX.
3256 %    \begin{macrocode}
3257   \ifpdf
3258     \phantomsection
3259     \pdfbookmark[0]{\contentsname}{\contentsname}
3260   \fi
3261 %    \end{macrocode}
3262 % |\chapter*| to gobble and format the next token (|\contentsname|).
3263 %    \begin{macrocode}
3264   \chapter*}
3265 %    \end{macrocode}
3266 % \end{macro}
3267 %
3268 % \begin{macro}{\aftertoctitleskip}
3269 % Don't add any extra space after the title (the chapter will take
3270 % care of that).
3271 %    \begin{macrocode}
3272 \setlength\cftaftertoctitleskip{0pt}
3273 %    \end{macrocode}
3274 % \end{macro}
3275 %
3276 % \begin{macro}{\l@DUT@toc@sep}
3277 % Define a length for TOC/LOF/LOT spacing.
3278 % \changes{0.13}{2010/07/28}{Renamed from $\backslash$l$@$cont$@$sep.}
3279 %    \begin{macrocode}
3280 \newlength\l@DUT@toc@sep
3281 \set@lines@length{\l@DUT@toc@sep}{\@DUT@toc@sep}
3282 %    \end{macrocode}
3283 % \end{macro}
3284 %
3285 % \begin{macro}{\DUT@toc@high@font}
3286 % Define a font for high level (part, chapter) entries.
3287 % \changes{0.13}{2010/07/28}{Renamed from $\backslash@$cont$@$font.}
3288 %    \begin{macrocode}
3289 \newcommand{\DUT@toc@high@font}{\normalsize\scshape}
3290 %    \end{macrocode}
3291 % \end{macro}
3292 %
3293 % \begin{macro}{\DUT@toc@low@font}
3294 % Define a font for low level (section, table, figure) entries.
3295 % \changes{0.13}{2010/07/28}{Macro added.}
3296 %    \begin{macrocode}
3297 \newcommand{\DUT@toc@low@font}{\normalfont}
3298 %    \end{macrocode}
3299 % \end{macro}
3300 %
3301 % \begin{macro}{\DUT@toc@page@font}
3302 % Define a font for page numbers.
3303 % \changes{0.13}{2010/07/28}{Macro added.}
3304 %    \begin{macrocode}
3305 \newcommand{\DUT@toc@page@font}{\normalfont}
3306 %    \end{macrocode}
3307 % \end{macro}
3308 %
3309 % \begin{macro}{\cftbeforepartskip}
3310 % \begin{macro}{\cftpartfont}
3311 % \begin{macro}{\cftpartleader}
3312 % \begin{macro}{\cftpartdotsep}
3313 % \begin{macro}{\cftpartpagefont}
3314 % Setup parts.  See the \pkg{tocloft} manual for a description of the
3315 % commands.
3316 %    \begin{macrocode}
3317 \setlength\cftbeforepartskip{\l@DUT@toc@sep}
3318 \cftsetindents{part}{0pt}{3em}
3319 \if@boldpart   \renewcommand{\cftpartfont}{\bfseries\DUT@toc@high@font}
3320 \else          \renewcommand{\cftpartfont}{\DUT@toc@high@font}
3321 \renewcommand{\cftpartleader}{\cftdotfill{\cftpartdotsep}}
3322 \if@dottedpart \renewcommand{\cftpartdotsep}{\cftdotsep}
3323 \else          \renewcommand{\cftpartdotsep}{\cftnodots} \fi
3324 \renewcommand{\cftpartpagefont}{\DUT@toc@page@font}
3325 %    \end{macrocode}
3326 % \end{macro}
3327 % \end{macro}
3328 % \end{macro}
3329 % \end{macro}
3330 % \end{macro}
3331 %
3332 % \begin{macro}{\cftbeforechapskip}
3333 % \begin{macro}{\cftchapaftersnum}
3334 % \begin{macro}{\cftchapfont}
3335 % \begin{macro}{\cftchapleader}
3336 % \begin{macro}{\cftchapdotsep}
3337 % \begin{macro}{\cftchappagefont}
3338 % Setup chapters and appendicies.  Some of these settings are adjusted
3339 % for appendicies in particular by |\appendix|
3340 % (Sec.~\ref{sec:implement-appendix}).
3341 %    \begin{macrocode}
3342 \setlength\cftbeforechapskip{\l@DUT@toc@sep}
3343 \cftsetindents{chapter}{0pt}{1.5em}
3344 \renewcommand{\cftchapaftersnum}{.}
3345 \if@boldchapter   \renewcommand{\cftchapfont}{\bfseries\DUT@toc@high@font}
3346 \else             \renewcommand{\cftchapfont}{\DUT@toc@high@font} \fi
3347 \renewcommand{\cftchapleader}{\cftdotfill{\cftchapdotsep}}
3348 \if@dottedchapter \renewcommand{\cftchapdotsep}{\cftdotsep}
3349 \else             \renewcommand{\cftchapdotsep}{\cftnodots} \fi
3350 \renewcommand{\cftchappagefont}{\DUT@toc@page@font}
3351 %    \end{macrocode}
3352 % \end{macro}
3353 % \end{macro}
3354 % \end{macro}
3355 % \end{macro}
3356 % \end{macro}
3357 % \end{macro}
3358 %
3359 % \begin{macro}{\cftbeforesecskip}
3360 % \begin{macro}{\cftsecfont}
3361 % \begin{macro}{\cftpagefont}
3362 % \begin{macro}{\cftbeforesubsecskip}
3363 % \begin{macro}{\cftsubsecfont}
3364 % \begin{macro}{\cftsubsecpagefont}
3365 % \begin{macro}{\cftbeforesubsubsecskip}
3366 % \begin{macro}{\cftsubsubsecfont}
3367 % \begin{macro}{\cftsubsubsecpagefont}
3368 % Setup sections, subsections, etc.
3369
3370 % \changes{0.13}{2010/07/28}{Added $\backslash$cft*pagefont
3371 %   definitions and switch $\backslash$cft*font from hardcoded
3372 %   $\backslash$normalsize to $\backslash$DUT$@$toc$@$low$@$font.}
3373 %    \begin{macrocode}
3374 %\cftsetindents{chap}{0pt}{1.5em}
3375 \setlength\cftbeforesecskip{\l@DUT@toc@sep}
3376 \cftsetindents{section}{0pt}{3em}
3377 \renewcommand{\cftsecfont}{\DUT@toc@low@font}
3378 \renewcommand{\cftsecpagefont}{\DUT@toc@page@font}
3379 \setlength\cftbeforesubsecskip{\l@DUT@toc@sep}
3380 \cftsetindents{subsection}{0pt}{4.5em}
3381 \renewcommand{\cftsubsecfont}{\DUT@toc@low@font}
3382 \renewcommand{\cftsubsecpagefont}{\DUT@toc@page@font}
3383 \setlength\cftbeforesubsubsecskip{\l@DUT@toc@sep}
3384 \cftsetindents{subsubsection}{0pt}{6em}
3385 \renewcommand{\cftsubsubsecfont}{\DUT@toc@low@font}
3386 \renewcommand{\cftsubsubsecpagefont}{\DUT@toc@page@font}
3387 %    \end{macrocode}
3388 % \end{macro}
3389 % \end{macro}
3390 % \end{macro}
3391 % \end{macro}
3392 % \end{macro}
3393 % \end{macro}
3394 % \end{macro}
3395 % \end{macro}
3396 % \end{macro}
3397 %
3398 % The default indents above are all |0pt|.  If \Lopt{indenttoc} was
3399 % given, override this, restoring the \pkg{tocloft} defaults, see the
3400 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/tocloft/tocloft.pdf}{%
3401 %   \pkg{tocloft} manual, Table 1}.
3402 %    \begin{macrocode}
3403 \if@indenttoc
3404   \cftsetindents{chapter}{0pt}{1.5em}
3405   \cftsetindents{section}{1.5em}{2.3em}
3406   \cftsetindents{subsection}{3.8em}{3.2em}
3407   \cftsetindents{subsubsection}{7.0em}{4.1em}
3408 \fi
3409 %    \end{macrocode}
3410 %
3411 %
3412 % \subsubsection{List of figures}
3413 % \label{sec:implement-lof}
3414 %
3415 % From the Manual \S 3.7 p10
3416 % \begin{quote}
3417 %   \begin{itemize}
3418 %     \item The heading |List of Figures| must appear at the top of
3419 %       the first page.
3420 %     \item The heading must be bold, centered, and without
3421 %       punctuation.  List figure captions exactly as they appear
3422 %       below the figures in the text.
3423 %     \item Single space each entry, but double-space between entries.
3424 %     \item Separate figure captions from page numbers with
3425 %       right-justified tabs and dot leaders.
3426 %     \item Do not use periods to separate captions and page numbers.
3427 %     \item These pages are counted and numbered in lowercase Roman
3428 %     numerals.
3429 %   \end{itemize}
3430 % \end{quote}
3431 %
3432 % \begin{macro}{\cftloftitlefont}
3433 % Much like our |\cfttoctitlefont|, but the list of figures gets
3434 % listed in the TOC.
3435 %    \begin{macrocode}
3436 \renewcommand\cftloftitlefont{\listed@schapter}
3437 %    \end{macrocode}
3438 % \end{macro}
3439 %
3440 % \begin{macro}{\afterloftitleskip}
3441 % Don't add any extra space after the title (the chapter will take
3442 % care of that).  Actually we make a one-line correction so the first
3443 % line matches the first line in the TOC.  HACK!
3444 %    \begin{macrocode}
3445 \setlength\cftafterloftitleskip{-12pt}
3446 %    \end{macrocode}
3447 % \end{macro}
3448 %
3449 % \begin{macro}{\cftbeforefigskip}
3450 % \begin{macro}{\cftfigindent}
3451 % \begin{macro}{\cftfigfont}
3452 % \begin{macro}{\cftfigpagefont}
3453 % Setup figure entries.
3454
3455 % \changes{0.13}{2010/07/28}{Added $\backslash$cftfigpagefont
3456 %   definition and switch $\backslash$cftfigfont from hardcoded
3457 %   $\backslash$normalsize$\backslash$singlespace to
3458 %   $\backslash$DUT$@$toc$@$low$@$font.  The $\backslash$singlespace
3459 %   portion appears to be unnecessary, and it was causing post-number
3460 %   linebreak issues with latex (pdflatex always worked).}
3461 %    \begin{macrocode}
3462 \setlength{\cftbeforefigskip}{\l@DUT@toc@sep}
3463 \setlength{\cftfigindent}{0pt}
3464 \renewcommand{\cftfigfont}{\DUT@toc@low@font}
3465 \renewcommand{\cftfigpagefont}{\DUT@toc@page@font}
3466 %    \end{macrocode}
3467 % \end{macro}
3468 % \end{macro}
3469 % \end{macro}
3470 % \end{macro}
3471 %
3472 %
3473 % \subsubsection{List of tables}
3474 % \label{sec:implement-lot}
3475 %
3476 % From the Manual \S 3.6 p10
3477 % \begin{quote}
3478 %   \begin{itemize}
3479 %     \item The heading |List of Tables| must appear at the top of the
3480 %       first page.
3481 %     \item The heading must be bold, centered, and without
3482 %       punctuation.
3483 %     \item List table captions exactly as they appear above the
3484 %       tables in the text.
3485 %     \item Single space each entry, but double-space between entries.
3486 %     \item Separate table captions from page numbers with
3487 %       right-justified tabs and dot leaders.
3488 %     \item Do not use periods to separate captions and page numbers.
3489 %       These pages are counted and numbered in lowercase Roman
3490 %       numerals.
3491 %   \end{itemize}
3492 % \end{quote}
3493 %
3494 % \begin{macro}{\cftlottitlefont}
3495 % Much like our |\cfttoctitlefont|, but the list of tables gets
3496 % listed in the TOC.
3497 %    \begin{macrocode}
3498 \renewcommand\cftlottitlefont{\listed@schapter}
3499 %    \end{macrocode}
3500 % \end{macro}
3501 %
3502 % \begin{macro}{\afterlottitleskip}
3503 % Don't add any extra space after the title (the chapter will take
3504 % care of that).  Actually we make a one-line correction so the first
3505 % line matches the first line in the TOC.  HACK!
3506 %    \begin{macrocode}
3507 \setlength\cftafterlottitleskip{-12pt}
3508 %    \end{macrocode}
3509 % \end{macro}
3510 %
3511 % \begin{macro}{\cftbeforetabskip}
3512 % \begin{macro}{\cfttabindent}
3513 % \begin{macro}{\cfttabfont}
3514 % \begin{macro}{\cfttabpagefont}
3515 % Setup table entries.
3516 % \changes{0.13}{2010/07/28}{Added $\backslash$cfttabpagefont
3517 %   definition switch $\backslash$cfttabfont from hardcoded
3518 %   $\backslash$normalsize$\backslash$singlespace to
3519 %   $\backslash$DUT$@$toc$@$low$@$font.  The $\backslash$singlespace
3520 %   portion appears to be unnecessary, and it was causing post-number
3521 %   linebreak issues with latex (pdflatex always worked).}
3522 %    \begin{macrocode}
3523 \setlength{\cfttabindent}{0pt}
3524 \setlength{\cftbeforetabskip}{\l@DUT@toc@sep}
3525 \renewcommand{\cfttabfont}{\DUT@toc@low@font}
3526 \renewcommand{\cfttabpagefont}{\DUT@toc@page@font}
3527 %    \end{macrocode}
3528 % \end{macro}
3529 % \end{macro}
3530 % \end{macro}
3531 % \end{macro}
3532 %
3533 %
3534 % \subsubsection{Bibliography}
3535 %
3536 % \begin{environment}{thebibliography}
3537 % The |thebibliography| environment is a list environment.  To save the
3538 % use of an extra counter, it should use |enumiv| as the item
3539 % counter. 
3540 % Instead of using |\item|, items in the bibliography are produced by
3541 % the following commands:\\
3542 %   |\bibitem|\marg{name} : Produces a numbered entry cited as
3543 %   \meta{name}.\\
3544 %   |\bibitem|\oarg{label}\marg{name} : Produces an entry labeled by
3545 %   \meta{Label} and cited by \meta{name}.
3546 %
3547 % Override \cls{book}'s version, adding a line to the table of
3548 % contents.  We split out the section-creation code into
3549 % |\bib@heading| for \pkg{natbib} compatibility.
3550 % (\file{classes.dtx}, L4063).
3551 %    \begin{macrocode}
3552 \renewenvironment{thebibliography}[1]
3553      {\bib@heading%
3554       \list{\@biblabel{\@arabic\c@enumiv}}%
3555            {\settowidth\labelwidth{\@biblabel{#1}}%
3556             \leftmargin\labelwidth
3557             \advance\leftmargin\labelsep
3558             \@openbib@code
3559             \usecounter{enumiv}%
3560             \let\p@enumiv\@empty
3561             \renewcommand\theenumiv{\@arabic\c@enumiv}}%
3562 %    \end{macrocode}
3563 % Because it's hard to do line breaks in bibliographies.
3564 %    \begin{macrocode}
3565       \sloppy
3566 %    \end{macrocode}
3567 %    This is setting the normal (non-infinite) value of
3568 %    |\clubpenalty| for the whole of this environment,
3569 %    so we must reset its stored value also.  (Why is there a |%| after
3570 %    the second 4000 below?)
3571 %    \begin{macrocode}
3572       \clubpenalty4000
3573       \@clubpenalty \clubpenalty
3574       \widowpenalty4000%
3575 %    \end{macrocode}
3576 % Cause a `.' (period) not to produce an end-of-sentence space.
3577 %    \begin{macrocode}
3578       \sfcode`\.\@m}
3579 %    \end{macrocode}
3580 % Warn if an empty `thebibliography' environment is found.
3581 %    \begin{macrocode}
3582      {\def\@noitemerr
3583        {\@latex@warning{Empty `thebibliography' environment}}%
3584       \endlist}
3585 %    \end{macrocode}
3586 % \end{environment}
3587 %
3588 % \begin{macro}{\bib@heading}
3589 % \pkg{natbib} messes with |thebibliography|.  We setup |\bib@heading|
3590 % so we will still get our table of contents entry.
3591 %    \begin{macrocode}
3592 \newcommand{\bib@heading}{%
3593   \listed@schapter{\bibname}%
3594 }
3595 %    \end{macrocode}
3596 % \end{macro}
3597 %
3598 %
3599 % \subsubsection{Index}
3600 %
3601 % \begin{environment}{theindex}
3602 % The environment |theindex| can be used for indices. It makes an
3603 % index with two columns, with each entry a separate paragraph. At
3604 % the user level the commands |\item|, |\subitem| and |\subsubitem|
3605 % are used to produce index entries of various levels. When a new
3606 % letter of the alphabet is encountered an amount of |\indexspace|
3607 % white space can be added.
3608 %
3609 % Override \cls{book}'s version, adding a line to the table of
3610 % contents.  We split out the section-creation code into
3611 % |\bib@heading| for \pkg{natbib} compatibility.
3612 % (\file{classes.dtx}, L4107).
3613 %    \begin{macrocode}
3614 \renewenvironment{theindex}
3615                {\if@twocolumn
3616                   \@restonecolfalse
3617                 \else
3618                   \@restonecoltrue
3619                 \fi
3620 %    \end{macrocode}
3621 % Here we add our TOC entry, and setup two columns by hand
3622 % to avoid the |\clearpage| in \LaTeX's default |\twocolumn|.
3623 %    \begin{macrocode}
3624   \listed@schapter{\indexname}
3625   \global\columnwidth\textwidth
3626   \global\advance\columnwidth-\columnsep
3627   \global\divide\columnwidth\tw@
3628   \global\hsize\columnwidth
3629   \global\linewidth\columnwidth
3630   \global\@twocolumntrue
3631   \global\@firstcolumntrue
3632   \col@number \tw@
3633 %    \end{macrocode}
3634 %    Parameter changes to |\columnseprule| and |\columnsep| have to be
3635 %    done after |\twocolumn| has acted. Otherwise they can affect the
3636 %    last page before the index.
3637 %    \begin{macrocode}
3638                 \parindent\z@
3639                 \parskip\z@ \@plus .3\p@\relax
3640                 \columnseprule \z@
3641                 \columnsep 35\p@
3642                 \let\item\@idxitem}
3643 %    \end{macrocode}
3644 %    When the document continues after the index and it was a one
3645 %    column document we have to switch back to one column after the
3646 %    index.
3647 %    \begin{macrocode}
3648                {\if@restonecol\onecolumn\else\@DUT@clearpage\fi}
3649 %    \end{macrocode}
3650 % \end{environment}
3651 %
3652 %
3653 % \subsubsection{Words}
3654 % \label{sec:words}
3655 %
3656 % Set the official names of the various sections encountered.  Some of
3657 % these are not defined in \file{classes.dtx} but are close analogs of
3658 % those that are.
3659 %
3660 % \begin{macro}{\dedicationsname}
3661 % From the Manual \S 3.3 p9, ``The heading |Dedications| must appear at
3662 % the top of the page.''
3663 %    \begin{macrocode}
3664 \newcommand\dedicationsname{Dedications}
3665 \let\DUTdedicationsname\dedicationsname
3666 %    \end{macrocode}
3667 % \end{macro}
3668 %
3669 % \begin{macro}{\acknowledgmentsname}
3670 % From the Manual \S 3.4 p9, ``The heading |Acknowledgments| must appear
3671 % at the top of the page.''
3672 %    \begin{macrocode}
3673 \newcommand\acknowledgmentsname{Acknowledgments}
3674 \let\DUTacknowledgmentsname\acknowledgmentsname
3675 %    \end{macrocode}
3676 % \end{macro}
3677 %
3678 % \begin{macro}{\contentsname}
3679 % From the Manual \S 3.5 p9, ``The heading |Table of Contents| must
3680 % appear at the top of the page.''  (\file{classes.dtx}, L4331)
3681 %    \begin{macrocode}
3682 \renewcommand\contentsname{Table of Contents}
3683 \let\DUTcontentsname\contentsname
3684 %    \end{macrocode}
3685 % \end{macro}
3686 %
3687 % \begin{macro}{\listtablename}
3688 % From the Manual \S 3.6 p10, ``The heading |List of Tables| must appear
3689 % at the top of the page.''  (\file{classes.dtx}, L4333)
3690 %    \begin{macrocode}
3691 \renewcommand\listtablename{List of Tables}
3692 \let\DUTlisttablename\listtablename
3693 %    \end{macrocode}
3694 % \end{macro}
3695 %
3696 % \begin{macro}{\listfigurename}
3697 % From the Manual \S 3.7 p10, ``The heading |List of Figures| must appear
3698 % at the top of the page.''  (\file{classes.dtx}, L4332)
3699 %    \begin{macrocode}
3700 \renewcommand\listfigurename{List of Figures}
3701 \let\DUTlistfigurename\listfigurename
3702 %    \end{macrocode}
3703 % \end{macro}
3704 %
3705 % \begin{macro}{\abstractname}
3706 % From the Manual \S 3.8 p10, ``The following heading must be centered at
3707 % the top of the first page: |Abstract|\ldots.''
3708 % (\file{classes.dtx}, L4367)
3709 %    \begin{macrocode}
3710 \newcommand\abstractname{Abstract}
3711 \let\DUTabstractname\abstractname
3712 %    \end{macrocode}
3713 % \end{macro}
3714 %
3715 % \begin{macro}{\bibname}
3716 % From the Manual \S 3.13 p12, ``The heading |Bibliography| (or
3717 % |List of References|) must appear at the top of first page.''
3718 % (\file{classes.dtx}, L4344)
3719 %    \begin{macrocode}
3720 \renewcommand\bibname{Bibliography}
3721 \let\DUTbibname\bibname
3722 %    \end{macrocode}
3723 % \end{macro}
3724 %
3725 % \begin{macro}{\appendixname}
3726 % From the Manual \S 3.14 p12, ``Number the appendicies consecutively
3727 % either alphabetically or numerically (|Appendix A|, |Appendix B|\ldots
3728 % or |Appendix 1|, |Appendix 2|\ldots).''
3729 % (\file{classes.dtx}, L4366)
3730 %    \begin{macrocode}
3731 \renewcommand\appendixname{Appendix}
3732 \let\DUTappendixname\appendixname
3733 %    \end{macrocode}
3734 % \end{macro}
3735 %
3736 % \begin{macro}{\vitaname}
3737 % From the Manual \S 3.15 p13, ``The heading |Vita| must appear at the
3738 % top of the page.''
3739 %    \begin{macrocode}
3740 \newcommand\vitaname{Vita}
3741 \let\DUTvitaname\vitaname
3742 %    \end{macrocode}
3743 % \end{macro}
3744 %
3745 % \begin{macro}{\DUTnames}
3746 % Some packages (e.g.,
3747 %   \href{http://www.ctan.org/tex-archive/macros/latex/required/babel/}{%
3748 %     \pkg{babel}})
3749 % mess with our |\*name| values and we have to restore them.
3750 \newcommand{\DUTnames}{%
3751   \gdef\dedicationsname{\DUTdedicationsname}%
3752   \gdef\contentsname{\DUTcontentsname}%
3753   \gdef\listtablename{\DUTlisttablename}%
3754   \gdef\listfigurename{\DUTlistfigurename}%
3755   \gdef\bibname{\DUTbibname}%
3756   \gdef\appendixname{\DUTappendixname}%
3757   \gdef\vitaname{\DUTvitaname}%
3758 }
3759 % \end{macro}
3760 %
3761 %
3762 % \subsection{Remaining details}
3763 %
3764 %
3765 % \subsubsection{Terminal blank page}
3766 %
3767 % Add a terminal blank page (when |\if@final| is true)
3768 % From the Manual \S 3.16 p13
3769 % \begin{quote}
3770 %   Include a blank page (with no page number) at the end of the
3771 %   thesis or dissertation.  The blank page is neither counted nor
3772 %   numbered.
3773 % \end{quote}
3774 %    \begin{macrocode}
3775 \AtEndDocument{\@DUT@blankpage}
3776 %    \end{macrocode}
3777 %
3778 %
3779 %    \begin{macrocode}
3780 %</class>
3781 %    \end{macrocode}
3782 %
3783 %
3784 % \section{Examples}
3785 %
3786 %
3787 % \subsubsection{Template}
3788 %
3789 %    \begin{macrocode}
3790 %<*template>
3791 % See drexel-thesis.pdf for details.
3792 \documentclass{drexel-thesis}
3793
3794 %% Enter the appropriate information here
3795 \author{}    % Fullname
3796 \title{}     % Title Of Thesis
3797 \DUTmonth{}  % Name of the month of you defense
3798 \DUTyear{}   % Year you are defending
3799 \degree{}    % Your target degree, spelled out
3800 \advisor{}   % Advisor's full name, degree
3801 \copyrighttext{} % If not "All Rights Reserved."
3802
3803 %% unsrt style give references in order of citation
3804 \bibliographystyle{unsrt}
3805
3806 \begin{document}
3807 \begin{preamble}
3808
3809 \begin{dedications} % OPTIONAL
3810 %% Type dedications here
3811 \end{dedications}
3812
3813 \begin{acknowledgments} % OPTIONAL
3814 %% Type acknowledgments here
3815 \end{acknowledgments}
3816
3817 \tableofcontents
3818 \listoftables  % If you have tables
3819 \listoffigures % If you have figures
3820
3821 \begin{abstract}
3822 %% Type abstract here
3823 \end{abstract}
3824 \end{preamble}
3825
3826 \begin{thesis}
3827 %% If your thesis does not use \part{}s, you may want to add a
3828 %% part-level PDF bookmark to set the main matter of from the front
3829 %% matter.
3830 %%\pdfbookmark[-1]{Main Matter}{Main Matter}
3831
3832 %% Use include statements to include your main thesis code
3833 %% from seperate files.
3834 %%\include{part1}
3835 %%...
3836 \end{thesis}
3837
3838 \bibliography{references} % Include references.bib BibTeX
3839
3840 \appendix % If you have appendices
3841 %% include files with your appendicies (if any) here
3842 %%\include{appendixA}
3843 %%...
3844
3845 \begin{vita} % Ph.D. only.
3846 %%Vita text.
3847 \end{vita}
3848
3849 \end{document}
3850 %</template>
3851 %    \end{macrocode}
3852 %
3853 %
3854 % \subsection{A better example}
3855 % \label{sec:better-example}
3856 %
3857 % \subsubsection{Main}
3858 %
3859 %    \begin{macrocode}
3860 %<*example|example-draft>
3861 %% See drexel-thesis.pdf for details.
3862 %<example>\documentclass[subfig,blackref,approvalform]{drexel-thesis}
3863 %<example-draft>\documentclass[draft,subfig]{drexel-thesis}
3864
3865 %% Enter the appropriate information here
3866 \author{Johny Henry}
3867 \title{Inadequacies of Steam-Driven Boring Machines}
3868 \DUTmonth{July}
3869 \DUTyear{1872}
3870 \degree{Doctor of Philosophy}
3871 \advisor{Collis Potter Huntington, R.R.D.}
3872 \advisor{Advisor 2, Ph.D.}
3873 \advisor{Advisor 3, Ph.D.}
3874 \copyrighttext{\copyrighttextCCBYSA}
3875
3876 \usepackage[super,sort&compress]{natbib} % fancy citation extensions
3877 \bibliographystyle{unsrtnat}
3878
3879 \usepackage{fancyvrb} % nicer verbatim handling
3880 \DefineShortVerb{\|}  % \verb+TEXT+  ->  |TEXT|
3881
3882 %    \end{macrocode}
3883 % Sometimes other packages clobber \cls{drexel-thesis}'s macros and
3884 % environments.  It's ok though, the originals are all aliased to
3885 % |\DUT*|.  We'll just have to use |DUTpreamble| instead.
3886 %    \begin{macrocode}
3887 \renewenvironment{preamble}{% look, we're clobbering an environment!
3888   What preamble?\begingroup\color{white}}{\endgroup}
3889
3890 %    \end{macrocode}
3891 % Use
3892 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/blindtext/}%
3893 %   {\pkg{blindtext}}
3894 % for dummy text creation.  \pkg{blindtext} requires
3895 % \href{http://www.ctan.org/tex-archive/macros/latex/required/babel/}%
3896 %   {\pkg{babel}}.
3897 %    \begin{macrocode}
3898 \usepackage[english]{babel} % English blindtext
3899 \usepackage{blindtext} % macros for producing dummy output
3900 %    \end{macrocode}
3901 % \pkg{babel} messes with some of our words (\S \ref{sec:words}), so
3902 % we have to reset them.  See the
3903 % \href{http://www.tex.ac.uk/cgi-bin/texfaq2html?label=latexwords}{\TeX\ FAQ}
3904 % for details.
3905 %    \begin{macrocode}
3906 \addto\captionsenglish{\DUTnames}
3907
3908 \begin{document}
3909 \begin{DUTpreamble} % "DUT" because original preamble was clobbered.
3910
3911 \begin{dedications}
3912 We're in \iffinal{final}{draft} mode!
3913
3914 \Blindtext[3]
3915 \end{dedications}
3916
3917 \begin{acknowledgments}
3918 \Blindtext[3]
3919 \end{acknowledgments}
3920
3921 \tableofcontents
3922 \listoftables
3923 \listoffigures
3924
3925 \begin{abstract}
3926 \Blindtext[3]
3927 \end{abstract}
3928 \end{DUTpreamble}
3929
3930 \begin{thesis}
3931 \include{example-1}
3932 \end{thesis}
3933
3934 \bibliography{example-ref}
3935
3936 \appendix
3937 \include{example-a}
3938
3939 \begin{vita}
3940 \Blindtext[3]
3941 \end{vita}
3942
3943 \end{document}
3944 %</example|example-draft>
3945 %    \end{macrocode}
3946 %
3947 %
3948 % \subsubsection{Part}
3949 % \label{sec:better-example-part}
3950 %
3951 %    \begin{macrocode}
3952 %<*example-part>
3953 \part{A Part Heading}
3954 \chapter{A Chapter Heading}
3955 \section{A Section Heading}
3956 The following sectioning commands are available:
3957 \begin{quote}
3958  part \\
3959  chapter \\
3960  section \\
3961  subsection \\ 
3962  subsubsection \\ 
3963  paragraph \\ 
3964  subparagraph 
3965 \end{quote}
3966
3967 \subsection{natbib}
3968 You can cite your references with |natbib|'s |\citet| and |\citep|
3969 macros.  See
3970 \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}
3971 {the natbib manual} for details.
3972
3973 Here we have a text citation \citet{rief97} followed by a
3974 parenthetical citation\citep{rief97}.
3975
3976 \subsubsection{Tables and Figures}
3977 \Blindtext[2]
3978 \begin{table}
3979   \begin{center}
3980   \begin{tabular}{r@{.}l r@{.}l r@{.}l}
3981     \multicolumn{2}{c}{Time (s)} &
3982       \multicolumn{2}{c}{John Henry (m)} &
3983       \multicolumn{2}{c}{Steam drill (m)} \\
3984     0&0 & 0&0 & 0&0 \\
3985     10&0 & 4&3 & 3&75 \\
3986     30&0 & 11&9 & 10&1 \\
3987     \ldots
3988   \end{tabular}
3989   \caption{A table float.} % low caption allowed with floatrow
3990 %% Note the strange |r@{.}l| notation in the |\tabular| column
3991 %% definition.  This allows for numbers aligned at the decimal point
3992 %% (see \href{http://www.stat.unipg.it/tex-man/ltx-68.html}{here}).
3993 %%
3994 %% |\multicolumn{num_cols}{alignment}{contents}| allows the headings
3995 %% to span the pre- and post-decimal columns.
3996   \end{center}
3997 \end{table}
3998 \Blindtext[2]
3999 \begin{figure}
4000   \caption{A figure float. \blindtext} % high caption allowed with floatrow
4001   \begin{center}
4002     \includegraphics[width=0.4\textwidth]{drexel-logo}
4003   \end{center}
4004 \end{figure}
4005 \Blindtext[3]
4006 \begin{figure}
4007   \begin{center}
4008     \subfloat[][]{%
4009       \includegraphics[width=0.2\textwidth]{drexel-logo}%
4010       \label{fig:sub-a}}
4011     \subfloat[][]{%
4012       \includegraphics[width=0.2\textwidth]{drexel-logo}%
4013       \label{fig:sub-b}}
4014     \caption{(a) One subfig float. (b) Another subfig float.%
4015       \label{fig:both}}
4016   \end{center}
4017 \end{figure}
4018 You can reference the subfig floats individually (\ref{fig:sub-a}) or
4019 together (\ref{fig:both}).
4020
4021 \Blindtext[3]
4022
4023 \part{Another Part}
4024 \chapter{Another Chapter}
4025 \Blindtext[5]
4026 \chapter{A Long Title Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla
4027 Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla}
4028 \Blindtext[5]
4029 %</example-part>
4030 %    \end{macrocode}
4031 %
4032 %
4033 % \subsubsection{\BibTeX}
4034 %
4035 % What goes into the \BibTeX\ file |example-ref.bib|?
4036 % For more information, check out this 
4037 % \href{http://cmtw.harvard.edu/Documentation/TeX/Bibtex/Example.html}{basic tutorial}.
4038 % If you want to get deeper, take a look at
4039 % \href{http://www.ctan.org/tex-archive/info/bibtex/tamethebeast/}{Tame the BeaST}.
4040 % Other resources:
4041 % \href{http://www.andy-roberts.net/misc/latex/latextutorial3.html}{how the process works},
4042 %   \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node6.html}{entry types},
4043 %   \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node7.html}{fields},
4044 %   \href{http://en.wikipedia.org/wiki/BibTeX}{entries and fields},
4045 %   \href{http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html}{assorted style examples}, and
4046 %   \href{http://liinwww.ira.uka.de/bibliography/Bib.Format.html}{assorted \BibTeX tools}.
4047 %
4048 % Here is an example \BibTeX\ file to get you started.  We define
4049 % strings for the publishers, journals, and authors to avoid
4050 % duplication, minimize the risk of typos, etc.
4051 %
4052 %    \begin{macrocode}
4053 %<*example-bibtex-refs>
4054 %% Publishers
4055 @String{APS = "American Physical Society"}
4056
4057 %% Journals
4058 @String{SCI = "Science"}
4059
4060 %% Authors
4061 @String{MRief = "Rief, Matthias"}
4062 @String{MGautel = "Gautel, Mathias"}
4063 @String{FOesterhelt = "Oesterhelt, Filipp"}
4064 @String{JFernandez = "Fernandez, Julio M."}
4065 @String{HGaub = "Gaub, Hermann E."}
4066
4067 %% Articles
4068 @Article{rief97,
4069   author = MRief #" and "# MGautel #" and "# FOesterhelt #" and "#
4070            JFernandez #" and "# HGaub,
4071   title = "Reversible Unfolding of Individual Titin Immunoglobulin
4072            Domains by {AFM}",
4073   journal = SCI,
4074   volume =  276,
4075   number =  5315,
4076   pages =   "1109--1112",
4077   year =    1997,
4078   doi =     "10.1126/science.276.5315.1109",
4079   URL =     "http://www.sciencemag.org/cgi/content/abstract/276/5315/1109",
4080   eprint =  "http://www.sciencemag.org/cgi/reprint/276/5315/1109.pdf",
4081   mynote = "Seminal paper for force spectroscopy on Titin. Cited by
4082            Dietz '04 (ref 9) as an example of how unfolding large
4083            proteins is easily interpreted (vs.\ confusing unfolding in
4084            bulk), but Titin is a rather simple example of that, because
4085            of its globular-chain structure.",
4086 }
4087 %% ...
4088 %</example-bibtex-refs>
4089 %    \end{macrocode}
4090 %
4091 %
4092 % \subsubsection{Appendix}
4093 %
4094 %    \begin{macrocode}
4095 %<*example-appendix>
4096 \chapter{Some Appendix Heading}
4097 \Blindtext[5]
4098 \chapter{Another Appendix Heading}
4099 \Blindtext[5]
4100 %</example-appendix>
4101 %    \end{macrocode}
4102 %
4103 %
4104 % \section{Known bugs and issues}
4105 %
4106 %
4107 % \subsection{Hacks}
4108 %
4109 % \begin{itemize}
4110 %   \item |\vspace*{0\p@}| space between page top and chapter
4111 %     headings (|\@makechapterhead| and |\@makeschapterhead|,
4112 %     Sec.~\ref{sec:implement-chapters}).
4113 %   \item Extra space under LOT and LOF titles compared to TOC.
4114 %     (Secs.~\ref{sec:implement-lof} and \ref{sec:implement-lot}).
4115 % \end{itemize}
4116 %
4117 %
4118 % \subsection{Bugs}
4119 %
4120 % \begin{itemize}
4121 %   \item Different space between chapter heading and section heading,
4122 %     vs.\ chapter heading and text.  Compare \emph{A Chapter Heading}
4123 %     and \emph{Another Chapter} in \file{example.pdf}.  This is a
4124 %     problem (although with opposite order) in the \cls{book} class
4125 %     itself.  For example, compile
4126 %     \begin{example}
4127 %\documentclass{book}
4128 %\begin{document}
4129 %\chapter{Chapter with text}
4130 %Bla bla bla.
4131 %\chapter{Chapter with section}
4132 %\section{Section}
4133 %Bla bla bla.
4134 %\end{document}
4135 %     \end{example}
4136 %   \item Footer overlap if chapter/section names are particularly long.
4137 %     See \emph{Section in long-titled chapter} in \file{example.pdf}.
4138 %     Workaround: turn off sections in the footer:
4139 %     \begin{example}
4140 %       \fancyfoot[RE,LO]{\scshape\leftmark}
4141 %       \fancyfoot[LE,RO]{}
4142 %     \end{example}
4143 %     For more header or footer manipulation ideas, see \S \ref{sec:fancyhdr}.
4144 % \end{itemize}
4145 %
4146 %
4147 % \Finale
4148 \endinput