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