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