1 % \def\fileversion{0.10}
2 % \def\filedate{2010/05/21}
3 % \iffalse meta-comment
5 \ProvidesFile{drexel-thesis.dtx}
10 \def\filedate{2010/05/21}
13 % Copyright (C) 2010 C.Y. Ip
24 % Vincent A. Cicirello
26 % -------------------------------------------------------
28 % This file may be distributed and/or modified under the
29 % conditions of the LaTeX Project Public License, either version 1.3
30 % of this license or (at your option) any later version.
31 % The latest version of this license is in:
33 % http://www.latex-project.org/lppl.txt
35 % and version 1.3 or later is part of all distributions of LaTeX
36 % version 2003/12/01 or later.
38 % Docstrip formatting initially based on Scott Pakin's
39 % dtxtut/cskeleton.dtx
40 % http://www.ctan.org/tex-archive/info/dtxtut/
44 % \iffalse meta-comment
45 %<class>\NeedsTeXFormat{LaTeX2e}
46 %<class>\ProvidesClass{drexel-thesis}
47 %<class> [\filedate\ \fileversion\ Drexel Thesis]
49 % Code for the .ini driver, see \S 2.1 ``The driver file'' of doc.dtx.
51 \usepackage[colorlinks=true,]{hyperref}
52 \hypersetup{pdfauthor={W. Trevor King et al.}}
53 \hypersetup{pdftitle={drexel-thesis \fileversion\ documentation}}
55 % Include some useful commands from |xkeyval|'s |<preamble>|.
59 \lstnewenvironment{command}{%
60 \lstset{columns=flexible,frame=single,backgroundcolor=\color{blue!20},%
61 xleftmargin=\fboxsep,xrightmargin=\fboxsep,escapeinside=`',gobble=1}}{}
62 \lstnewenvironment{example}{%
63 \lstset{basicstyle=\footnotesize\ttfamily,columns=flexible,frame=single,%
64 backgroundcolor=\color{yellow!20},xleftmargin=\fboxsep,%
65 xrightmargin=\fboxsep,gobble=1}}{}
67 % Define a quick and dirty version of |xkeyval|'s |\DescribeOptions|.
69 \newenvironment{option}[1]{\begin{macro}{#1}}
72 % Some commonly used abbreviations from |classes.dtx|.
74 \newcommand*{\Lopt}[1]{\textsf {#1}}
75 \newcommand*{\file}[1]{\texttt {#1}}
76 \newcommand*{\Lcount}[1]{\textsl {\small#1}}
77 \newcommand*{\pstyle}[1]{\textsl {#1}}
79 % Provide easy access to the @ character. Note that this, like the
80 % short-verbatim markers ||, does not work in |\changes| sections
81 % because of the way they are cached to the glossary file. If you
82 % find a way to make them work there, let me know :).
84 \newcommand*{\textat}{\makeatletter @ \makeatother}
88 \def\DescribeOption#1{\leavevmode\@bsphack
89 \marginpar{\raggedleft\PrintDescribeOption{#1}}%
90 \SpecialOptionIndex{#1}\@esphack\ignorespaces}
91 \def\PrintDescribeOption#1{\strut\emph{option}\\\MacroFont #1\ }
92 \def\SpecialOptionIndex#1{\@bsphack
93 \index{#1\actualchar{\protect\ttfamily#1}
94 (option)\encapchar usage}%
95 \index{options:\levelchar#1\actualchar{\protect\ttfamily#1}\encapchar
97 \def\DescribeOptions#1{\leavevmode\@bsphack
98 \marginpar{\raggedleft\strut\emph{options}%
100 \\\strut\MacroFont\@tempa\SpecialOptionIndex\@tempa
101 }}\@esphack\ignorespaces}
109 \DocInput{drexel-thesis.dtx}
117 % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
118 % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
119 % Digits \0\1\2\3\4\5\6\7\8\9
120 % Exclamation \! Double quote \" Hash (number) \#
121 % Dollar \$ Percent \% Ampersand \&
122 % Acute accent \' Left paren \( Right paren \)
123 % Asterisk \* Plus \+ Comma \,
124 % Minus \- Point \. Solidus \/
125 % Colon \: Semicolon \; Less than \<
126 % Equals \= Greater than \> Question mark \?
127 % Commercial at \@ Left bracket \[ Backslash \\
128 % Right bracket \] Circumflex \^ Underscore \_
129 % Grave accent \` Left brace \{ Vertical bar \|
130 % Right brace \} Tilde \~}
133 % \changes{0.1}{2006/01/18}{Rewrite by Daniel J.~Cross}
134 % \changes{0.2}{2010/01/09}{W.~Trevor King transitioned from thesis.cls
135 % to drexel-thesis.dtx and did a good deal of reorganizing.}
136 % \changes{0.3}{2010/01/13}{W.~Trevor King merged drexelthesis.cls
137 % developed in the Comp.~Sci.~Department by Jeff Abrahamson,
138 % Evan Sultanik, C.Y.~Ip, Christopher S.~Dahn, Christopher D.~Cera,
139 % Mitchell Peabody, David T.~McWherter, and Vincent A.~Cicirello.
140 % Based on the University of Toronto Thesis \LaTeXe\ Class. Also
141 % greatly improved the documentation by incorperating bits of
142 % the base/*.dtx files.}
143 % \changes{0.4}{2010/02/23}{W.~Trevor King repositioned hyperref
144 % inclusion for proper hyperref overriding. The previous
145 % implementation couldn't handle $\backslash$label for
146 % $\backslash$paragraph and some other section levels. The page
147 % number for the reference was correct, but the link went to the
148 % label's parent chapter.}
149 % \changes{0.5}{2010/03/03}{W.~Trevor King use hypcap for better
150 % caption hyperlink anchor placement.}
151 % \changes{0.6}{2010/03/11}{W.~Trevor King fixed
152 % $\backslash$if$@$final handling. Previous versions used
153 % it more like a hypothetical $\backslash$if$@$finalspace.
154 % Also adjusted theindex to use a listed$@$schapter.}
155 % \changes{0.10}{2010/05/21}{W.~Trevor King added $\backslash$DUT\*
156 % aliases for all public macros and environments and renamed
157 % $\backslash$defmonth and $\backslash$defyear to
158 % $\backslash$DUTmonth and $\backslash$DUTyear for consistency with
162 % \newcommand{\pkg}[1]{\textsf{#1}}
163 % \newcommand{\cls}[1]{\textsf{#1}}
164 % ^^A\newcommand{\BibTeX}{{\scshape Bib}\TeX}
166 % \title{The \textsf{drexel-thesis} class\thanks{This document
167 % corresponds to \textsf{drexel-thesis}~\fileversion, dated \filedate.}}
168 % \author{W.~Trevor King \\\texttt{wking@drexel.edu}
169 % \and Daniel J.~Cross \and T.~Tsankov \and R.~Rojas.}
175 % \section{Introduction}
177 % This package defines a \LaTeX\ thesis class for Drexel University
179 % \href{http://www.library.drexel.edu/files/services_documents/thesismanual.pdf}
180 % {Drexel University Thesis Manual version 2009/06/01}.
184 % To write a thesis, you load the Drexel thesis definitions by loading
185 % the \pkg{drexel-thesis} class at the beginning of your
186 % \LaTeX\ document with the |\documentclass| command. For example,
188 % \documentclass{drexel-thesis}
191 % \subsection{Options}
193 % \DescribeOptions{final,draft}
194 % The default option (selected if not options are passed) is
195 % \Lopt{final} mode, which has all the proper formatting and spacing
196 % for your final product. The other main option is \Lopt{draft} mode,
197 % which reduces all the spacing in the document, so might be helpful
198 % when printing out drafts (saves paper).
200 % \Lopt{final} mode corresponds to (with Thesis Manual chapter and
202 % \begin{tabular}{r p{0.8\textwidth}}
203 % \Lopt{oneside} & 1.5 Library Submission Information, Print
204 % Version: ``All copies must be: \ldots Typed/printed on only one
205 % side of the page (not double-sided).'' \\
206 % \Lopt{finalspace} & Assorted single, double, and triple spacing
208 % \Lopt{dottedtoc} & From the example on p17.
211 % \Lopt{draft} mode corresponds to \\
212 % \begin{tabular}{r p{0.8\textwidth}}
213 % \Lopt{twoside} & Save space. \\
214 % \Lopt{draftspace} & Save space. \\
215 % \Lopt{dottedtoc} & Might as well be consistent with \Lopt{final}. \\
216 % \Lopt{mydraftwatermark} & It's good to have a timestamp. \\
219 % \DescribeOption{subfig}
220 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/subfig/}{\pkg{subfig}}
221 % makes it easy to include and caption multi-part figures. However,
222 % getting \pkg{subfig} to cooperate with \pkg{floatrow} and
223 % \pkg{tocloft} can be tricky. If you want to use \pkg{subfig}, just
224 % pass the \Lopt{subfig} option to \cls{drexel-thesis}, and all the
225 % pesky details will be taken care of. See \S
226 % \ref{sec:better-example} for an example.
228 % \DescribeOption{finalspace}
231 % \DescribeOption{draftspace}
234 % \DescribeOptions{dottedtoc,boldtoc,
235 % dottedpart,boldpart,
236 % dottedchapter,boldchapter}
237 % These options change how the relevant table of contents lines are
238 % printed. \LaTeX\ defaults to bold but not dots. The \Lopt{*toc}
239 % options set all of the types. For example, \Lopt{boldtoc} is
240 % equivalent to \Lopt{boldchapter,boldpart}.
242 % \DescribeOption{indenttoc}
243 % The example table of contents in the Manual p17 does not indent
244 % section entries, etc., so neither does \cls{drexel-thesis}. If you
245 % \emph{do} want pretty, indented TOCs, like the \LaTeX\ defaults pass
246 % \Lopt{indenttoc} to \cls{drexel-thesis}.
248 % \DescribeOption{draftwatermark}
249 % \Lopt{draftwatermark} adds ``DRAFT \meta{date}'' watermarks to each
250 % page. A useful way to remember that the version you're looking at
251 % is not final. Also helps reviewers tell you what version they're
252 % correcting. Requires the \pkg{draftmark} package.
254 % \DescribeOption{mydraftwatermark}
255 % \Lopt{mydraftwatermark} is similar to \Lopt{draftwatermark} but
256 % depends on the possibly more common \pkg{xcolor}, \pkg{eso-pic},
257 % and \pkg{graphicx}.
259 % \DescribeOption{indentfirst}
260 % \Lopt{indentfirst} indents the first paragraph after sections etc.
263 % \subsubsection{Interesting \cls{book} options}
265 % \DescribeOption{oneside}
266 % Setup output for one-sided printing.
268 % \DescribeOption{twoside}
269 % Setup output for two-sided printing.
271 % \DescribeOption{leqno}
272 % \Lopt{leqno} places the numbering of formulae on the left hand side
273 % instead of the right.
275 % \DescribeOption{fleqn}
276 % \Lopt{fleqn} typesets displayed formulae left-aligned instead of
280 % \subsection{Macros}
282 % To help deal with name collisions, all \cls{drexel-thesis} macros
283 % have ``secret'' aliases. For example, |\author| can also be used as
284 % |\DUTauthor|. This is useful if one of your packages clobbers a
285 % \cls{drexel-thesis} macro, but you still want to use the original.
287 % \documentclass{drexel-thesis}
288 % \renewcommand{\author}[1]{I'm forgetting about your author! Muahahaha!}
289 % \DUTauthor{Your Name Here}
294 % `\cs{author}\marg{name}'
296 % \DescribeMacro{\author}
297 % \DescribeMacro{\DUTauthor}
298 % Use this macro to set your full name to \meta{name}, including
299 % your middle initial or name. For example
301 % \name{Richard P. Feynman}
303 % See the Manual \S 3.1 p8.
306 % `\cs{title}\marg{title}'
308 % \DescribeMacro{\title}
309 % \DescribeMacro{\DUTtitle}
310 % Use this macro to set your thesis title to \meta{name}. For example
312 % \title{A New Approach to Quantum Theory}
314 % See the Manual p16.
317 % `\cs{advisor}\marg{name}'
319 % \DescribeMacro{\advisor}
320 % \DescribeMacro{\DUTadvisor}
321 % Use this macro to set your advisor's name to \meta{name}. For
324 % \advisor{John A. Wheeler, Ph.D.}
326 % You can set multiple advisors, if appropriate, by calling |\advisor|
329 % \advisor{John A. Wheeler, Ph.D.}
330 % \advisor{Advisor 2}
332 % See the Manual \S 3.1 p8.
335 % `\cs{DUTmonth}\marg{month}'
336 % `\cs{DUTyear}\marg{year}'
338 % \DescribeMacro{\DUTmonth}
339 % \DescribeMacro{\DUTyear}
340 % Use these macros to set the month with \meta{month} (spelled out)
341 % and year with \meta{year} (four digits) of your thesis defense. For
347 % See the Manual \S 3.1 p8.
348 % There are no non-|DUT| versions of these commands to avoid
349 % collisions with the plain \TeX\ |\month| and |\year| (see the
350 % \href{http://www.tug.org/utilities/plain/cseq.html#month-rp}{month}
352 % \href{http://www.tug.org/utilities/plain/cseq.html#year-rp}{year}
353 % entries in the HTML version of David Bausum's \emph{TeX Reference
357 % `\cs{degree}\marg{degree}'
359 % \DescribeMacro{\degree}
360 % \DescribeMacro{\DUTdegree}
361 % Set your target degree with \meta{degree}. From the Manual \S 3.1
364 % Write out the name of the degree for which you are a candidate.
365 % All Ph.D.\ candidates must use |Doctor of Philosophy|. All
366 % Master's degree candidates should use the precise degree name
367 % (e.g., |Master of Science in Mechanical Engineering|).
369 % So, for a Ph.D candidate,
371 % \degree{Doctor of Philosophy}
375 % `\cs{copyrighttext}\marg{text}'
377 % \DescribeMacro{\copyrighttext}
378 % \DescribeMacro{\DUTcopyrighttext}
379 % Use this macro to set the copyright text to \meta{text}.
380 % The default value is ``All Rights Reserved.''.
382 % \copyrighttext{Released to the Public Domain.}
384 % See the Manual \S 3.2 p9.
387 % `\cs{copyrighttextCCBYSA}'
389 % \DescribeMacro{\copyrighttextCCBYSA}
390 % \DescribeMacro{\DUTcopyrighttextCCBYSA}
391 % There are a number of predefined copyright messages for ease of use \\
392 % \begin{tabular}{l l}
393 % |\copyrighttextCCBYSA| &
394 % Creative Commons Attribution-ShareAlike License Version 3.0.\\
398 % `\cs{tableofcontents}'
400 % \DescribeMacro{\tableofcontents}
401 % \DescribeMacro{\DUTtableofcontents}
402 % Write the table of contents (Manual \S 3.5 p9). You can control the
403 % verbosity by setting |\tocdepth| according to the following table
404 % (\href{http://www.image.ufl.edu/help/latex/intext.shtml}{source}). \\
405 % \begin{tabular}{l l l}
406 % Depth in document & Section Command & Depth for |\secnumdepth| Command \\
407 % -1 & |\part| & 1 \\
408 % 0 & |\chapter| & 2 \\
409 % 1 & |\section| & 3 \\
410 % 2 & |\subsection| & 4 \\
411 % 3 & |\subsubsection| & 5 \\
412 % 4 & |\paragraph| & 6 \\
413 % 5 & |\subparagraph| & 7
415 % For example, to expose everything down to and including the
416 % |\subsection| level, you would add
418 % \setcounter{tocdepth}{2}
420 % to your preamble (the section before |\begin{document}|, not the
421 % |preamble| environment discussed below).
423 % Note that the Manual \S 3.5 p9 requires ``List chapter titles and at
424 % least the first and second order subdivisions.'', which corresponds
425 % to a |\tocdepth| of at least 2.
428 % `\cs{listoftables}'
430 % \DescribeMacro{\listoftables}
431 % \DescribeMacro{\DUTlistoftables}
432 % Write the List of Tables page (Manual \S 3.6 p10).
433 % Skip if you have no tables in your thesis.
436 % `\cs{listoffigures}'
438 % \DescribeMacro{\listoffigures}
439 % \DescribeMacro{\DUTlistoffigures}
440 % Write the List of Figures page (Manual \S 3.7 p10).
441 % Skip if you have no figures in your thesis.
444 % `\cs{blanklines}\marg{num}'
446 % \DescribeMacro{\blanklines}
447 % \DescribeMacro{\DUTblanklines}
448 % Insert \meta{num} blank lines. For example
452 % The skipped lines are always \emph{single spaced} lines, regardless
453 % of the current line spacing in the environment calling this macro.
456 % `\cs{iffinal}\marg{final-mode-action}\marg{draft-mode-action}'
458 % \DescribeMacro{\iffinal}
459 % \DescribeMacro{\DUTiffinal}
460 % Include \Lopt{final}- or \Lopt{draft}-specific code.
462 % We're in \iffinal{final}{draft} mode!
466 % \subsection{Environments}
468 % To help deal with name collisions, all \cls{drexel-thesis}
469 % environments have ``secret'' aliases. For example, |preamble| can
470 % also be used as |DUTpreamble|. This is useful if one of your
471 % packages clobbers a \cls{drexel-thesis} environment, but you still
472 % want to use the original.
474 % \documentclass{drexel-thesis}
475 % \renewenvironment{preamble}{%
476 % What preamble?\begingroup\color{white}}{\endgroup}
478 % \begin{DUTpreamble}
479 % Thwarted again, evil one!
484 % \DescribeEnv{preamble}
485 % \DescribeEnv{DUTpreamble}
486 % Generalize the |\frontmatter| for the thesis, setting up page
487 % numbering, including the title page, copyright page etc. The
488 % |preamble| environment should contain the following elements
489 % (in order, see the Manual p8)
491 % \item |dedication| environment (optional)
492 % \item |acknowledgments| environment (optional)
493 % \item |\tableofcontents|
494 % \item |\listoftables|
495 % \item |\listoffigures|
496 % \item |abstract| environment
498 % This will take care of everything from the title page (Manual \S 3.1),
499 % up through the blank page before the text (Manual \S 3.9).
501 % \DescribeEnv{dedications}
502 % \DescribeEnv{DUTdedications}
503 % Set the dedications text.
504 % Highlights from the Manual \S 3.3 p9:
506 % The |Dedications| page is optional.
509 % \DescribeEnv{acknowledgments}
510 % \DescribeEnv{DUTacknowledgments}
511 % Set the acknowledgments text.
512 % Highlights from the Manual \S 3.4 p9:
514 % The |Acknowledgments| page is optional, but most theses do
515 % include a brief statement of thanks or recognition of any special
519 % \DescribeEnv{abstract}
520 % \DescribeEnv{DUTabstract}
521 % Set the thesis abstract text. In the Thesis Manual, see \S 3.8
522 % Abstract (p10) for details, p20 for an example.
524 % Highlights from the Manual:
526 % The abstract is a summary that allows readers to determine the
527 % value of reading the full thesis. It should include a statement
528 % of the problem, an outline of procedures or methods, and a summary
529 % of results and conclusions.
532 % \item Word limits: 600 for a Master's thesis, 350 for a Ph.D.\ thesis.
535 % \DescribeEnv{thesis}
536 % \DescribeEnv{DUTthesis}
537 % Set the thesis text. In the Thesis Manual, see \S 3.10 Thesis (p11)
540 % Highlights from the Manual:
542 % Divide the text into its major parts/chapters/subsections. No
543 % fixed arrangement is necessary. The major parts may contain such
544 % subjects as introduction, general argument, description of
545 % experimental procedures, research methods, discussion, summary,
546 % conclusions, recommendations, and other pertinent topics that are
547 % necessary for a complete understanding on the part of a
548 % sophisticated or professional reader.
552 % \DescribeEnv{DUTvita}
553 % Set the thesis vita text (Ph.D.\ only). See the Manual \S 3.15 p12,
554 % ``Vita'', for details.
556 % Highlights from the Manual:
558 % The Vita is a biography of the student written in the third person
559 % in either essay or outline form. It should include the full name,
560 % place and date of birth (optional), country of citizenship
561 % (optional), institutions attended, degrees and honors received,
562 % titles of publications, teaching and professional experience, and
563 % other pertinent data. The Vita must be one page or less.
570 % \subsubsection{Package installation}
571 % \label{sec:dependencies}
573 % All the packages this class depends on must be installed somewhere
574 % in your texmf tree (they probably already are). If not, you will
575 % recieve warning messages on compilation such as
577 % ! LaTeX Error: File `missing-package.sty' not found.
579 % You should then install the missing package(s) using your operating
580 % systems package manager, or grab the missing package from
581 % \href{http://www.ctan.org/}{CTAN}, and install them following TODO.
584 % \subsubsection{Tables and Figures}
586 % \pkg{drexel-thesis} loads
587 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
588 % to define the |\includegraphics| macro,
589 % \href{http://www.ctan.org/tex-archive/macros/latex/required/caption/}{\pkg{caption}}
590 % for pretty caption formatting,
591 % \href{http://www.ctan.org/tex-archive/macros/latex/required/floatrow/}{\pkg{floatrow}}
592 % for placing captions, and
593 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{hypcap}}
594 % for placing caption anchors.
596 % Simple float definitions will look like
599 % \caption{Some caption text}
600 % \begin{tabular}{...}
608 % \includegraphics{...}
609 % \caption{Some caption text}
612 % For more useful float information, see the examples in \S
613 % \ref{sec:better-example-part} and the
614 % \href{http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions}
615 % {\LaTeX\ wikibook page}.
618 % \subsubsection{Citations}
620 % I highly recommend using \BibTeX\ and
621 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}{\pkg{natbib}}.
622 % See \S \ref{sec:better-example} for a simple example.
624 % Suggested options:\\
625 % \begin{tabular}{r p{0.8\textwidth}}
626 % |super| & selects citations in superscript mode. \\
627 % |sort&compress| & automatically sorts and compresses compound
628 % citations (|\pcite{a,b,...}|).
632 % \subsubsection{References}
634 % Easier cross referencing with
635 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/cleveref/}{\pkg{cleveref}}.
636 % Is a wonderful tool for easy, consistent crosslinking via |\cref|,
637 % |\Cref|, etc.. The manual is also very good.
638 % Note that if you use |\part|s in your document, you need to tell
639 % \pkg{cleveref} how to deal with them:
641 % \usepackage{cleveref}
642 % \crefname{part}{part}{parts}
646 % \subsubsection{Hyperlinks}
648 % \cls{drexel-thesis} loads
649 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{\pkg{hyperref}}.
650 % with the options:\\
651 % \begin{tabular}{r p{0.8\textwidth}}
652 % |colorlinks| & color the link letters instead of drawing colored boxes. \\
655 % If running with a pdftex-based driver, |\author|, |\title|, and
656 % |\degree| automatically set |pdfauthor|, |pdftitle|, and
657 % |pdfsubject| respectively. You can use the |\hypersetup| macro to
658 % set options overriding these defaults.
661 % \subsubsection{Developing large \LaTeX\ documents}
663 % A thesis may take a while to compile, especially if it contains
664 % lots of images, etc.. One way to save time, is to use |\includeonly|
665 % when including chapter \file{*.tex} files (see
666 % \href{http://en.wikibooks.org/wiki/TeX/includeonly}{the \TeX\ Wikibook}).
667 % Usage would be something like
669 % \documentclass{drexel-thesis}
671 % \includeonly{chapter2.tex,chapter3.tex}
675 % \include{chapter1.tex}
676 % \include{chapter2.tex}
677 % \include{chapter3.tex}
678 % \include{chapter4.tex}
683 % which would only compile chapters two and three. Don't confuse the
684 % similar commands |\include| and |\input|. The more fundamental
685 % |\input| just inserts the file contents at that point, while
688 % \item may only be used after |\begin{document}|
689 % \item acts like |\clearpage \input{} \clearpage|
690 % \item will not crash on nonexistent files
694 % \StopEventually{\pagebreak\PrintChanges}
697 % \section{Implementation}
702 % For simplicity, we'll derive everything from the standard \cls{book}
706 % \subsection{Option Processing}
709 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xkeyval/}{\pkg{xkeyval}}
710 % for easier option parsing. If the package is not installed on your system,
711 % see \S \ref{sec:dependencies} for installation instructions.
713 \RequirePackage{xkeyval}
716 % Define some booleans to store option states
718 \newif\if@mainmatter \@mainmattertrue
719 \newif\if@DUT@subfigopt
720 \newif\if@dottedchapter
721 \newif\if@boldchapter
725 \newif\if@draftwatermark
726 \newif\if@mydraftwatermark
727 \newif\if@indentfirst
731 % \begin{macro}{\iffinal}
732 % Setup a user-friendly means for including \Lopt{final}- or
733 % \Lopt{draft}-specific code.
734 % \changes{0.7}{2010/03/14}{W.~Trevor King added macro.}
736 \newcommand\iffinal[2]{\if@final #1\else #2\fi}
740 % \begin{option}{subfig}
741 % Set \Lopt{subfig} flag
743 \DeclareOptionX{subfig}{\@DUT@subfigopttrue}
747 % \begin{option}{finalspace}
749 \DeclareOptionX{finalspace}{
750 \setlength\overfullrule{0pt}
751 \def\@cont@sep{1} % content page separation (# blanklines between entries)
752 \def\@ssp{1} % single space
753 \def\@dsp{2} % double space
754 \def\@tsp{3} % triple space
758 % \begin{option}{draftspace}
760 \DeclareOptionX{draftspace}{
761 \setlength\overfullrule{5pt}
762 \def\@cont@sep{0} % content page separation (# blanklines between entries)
763 \def\@ssp{1} % single space
764 \def\@dsp{1} % double space
765 \def\@tsp{2} % triple space
767 % Don't force chapters onto right-hand pages.
769 \PassOptionsToClass{openany}{book}
774 % \begin{option}{dottedpart}
776 \DeclareOptionX{dottedpart}{\@dottedparttrue}
779 % \begin{option}{dottedchapter}
781 \DeclareOptionX{dottedchapter}{\@dottedchaptertrue}
784 % \begin{option}{boldpart}
786 \DeclareOptionX{boldpart}{\@boldparttrue}
789 % \begin{option}{boldchapter}
791 \DeclareOptionX{boldchapter}{\@boldchaptertrue}
794 % \begin{option}{dottedtoc}
796 \DeclareOptionX{dottedtoc}{
797 \setkeys{drexel-thesis.cls}{dottedpart}
798 \setkeys{drexel-thesis.cls}{dottedchapter}
802 % \begin{option}{boldtoc}
804 \DeclareOptionX{boldtoc}{
805 \setkeys{drexel-thesis.cls}{boldpart}
806 \setkeys{drexel-thesis.cls}{boldchapter}
811 % \begin{option}{indenttoc}
812 % Set \Lopt{indenttoc} flag
814 \DeclareOptionX{indenttoc}{\@indenttoctrue}
818 % \begin{option}{draftwatermark}
819 % Set \Lopt{draftwatermark} flag
821 \DeclareOptionX{draftwatermark}{%
823 \@mydraftwatermarkfalse}
827 % \begin{option}{mydraftwatermark}
828 % Set \Lopt{mydraftwatermark} flag
830 \DeclareOptionX{mydraftwatermark}{%
831 \@mydraftwatermarktrue
832 \@draftwatermarkfalse}
836 % \begin{option}{indentfirst}
837 % Set \Lopt{indentfirst} flag
839 \DeclareOptionX{indentfirst}{\@indentfirsttrue}
843 % Define the book options that \Lopt{final} and \Lopt{draft} need to
845 % \begin{option}{oneside}
847 \DeclareOptionX{oneside}{\PassOptionsToClass{oneside}{book}}
851 % \begin{option}{twoside}
853 \DeclareOptionX{twoside}{\PassOptionsToClass{twoside}{book}}
857 % \begin{option}{final}
859 \DeclareOptionX{final}{
861 \setkeys{drexel-thesis.cls}{oneside}
862 \setkeys{drexel-thesis.cls}{finalspace}
863 \setkeys{drexel-thesis.cls}{dottedtoc}
868 % \begin{option}{draft}
870 \DeclareOptionX{draft}{
872 \setkeys{drexel-thesis.cls}{twoside}
873 \setkeys{drexel-thesis.cls}{draftspace}
874 \setkeys{drexel-thesis.cls}{dottedtoc}
875 \setkeys{drexel-thesis.cls}{mydraftwatermark}
880 % Use the default \cls{book} implementation for any remaining options
881 % including \Lopt{oneside}, \Lopt{twoside}, \Lopt{leqno}, \Lopt{fleqn},
884 \DeclareOptionX*{\PassOptionsToClass{\CurrentOption}{book}}
887 % Execute the default options
889 \ExecuteOptionsX{final}
892 % Process options and load the book class
894 \ProcessOptionsX\relax
899 % \subsection{Internal package includes}
902 % Include some other packages we'll need. If the package is not
903 % installed on your system, see \S \ref{sec:dependencies} for
904 % installation instructions.
906 % For many packages, we want the same functionality for both
907 % \Lopt{final} and \Lopt{draft} modes. We pass \Lopt{final} to most
908 % of those packages to override a possible \Lopt{draft} option passed
909 % to \pkg{drexel-thesis}.
912 % \subsubsection{\pkg{setspace}}
914 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/setspace/}{\pkg{setspace}}
915 % for double spacing.
917 \RequirePackage{setspace}
921 % \subsubsection{\pkg{calc}}
923 % \href{http://www.ctan.org/tex-archive/macros/latex/required/tools/}{\pkg{calc}}
924 % for |\set@lines@length| macro (page
925 % \pageref{sec:implement-line-spacing}).
927 \RequirePackage{calc}
931 % \subsubsection{\pkg{graphicx}}
933 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
934 % for |\includegraphics|. Not strictly necessary, but I can't imagine
935 % a thesis without figures.
937 \RequirePackage[final]{graphicx}
940 % We include the graphicx package now so we can
941 % pass \Lopt{final}, because some later packages include it with no options,
942 % and a \Lopt{final} include after that produces errors like
944 % l.104 \RequirePackage
946 % The package graphicx has already been loaded with options:
948 % There has now been an attempt to load it with options
953 % \subsubsection{\pkg{draftmark}}
955 % The Comp.~Sci.\ class used
956 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftcopy/}{\pkg{draftcopy}}
957 % to add their watermarks, but as of the current 2002/02/25 v2.16, it
958 % uses postscript specials, and so doesn't work with pdf\LaTeX.
959 % Instead we use the recent (catalogued 2009/11/03)
960 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftmark/}{\pkg{draftmark}}
961 % which unfortunately has a number of apparently non-standard dependencies
962 % (\href{http://www.ctan.org/tex-archive/macros/latex/contrib/etextools/}{\pkg{etextools}},
963 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/etoolbox/}{\pkg{etoolbox}},
964 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/lastpage/}{\pkg{lastpage}},
965 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/ltxnew/}{\pkg{ltxnew}},
966 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/pagerange/}{\pkg{pagerange}},
967 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xifthen/}{\pkg{xifthen}},
968 % if only I had the space to install |texlive-latexextra| |:p|).
969 % The output is, however, very flexible, and it \emph{does} work with
970 % both \LaTeX\ and pdf\LaTeX. If you don't like the default watermark,
971 % you can also adjust the particulars with |\draftmarksetup|.
974 \RequirePackage[draft,allpages,mark={DRAFT \today},
975 fontsize=2cm,grayness=0.9]{draftmark}
979 % Here is Evan's alternative implementation This will not look right
980 % as a DVI, but it'll look fine once rendered to either a PS or PDF.
984 % Use \pkg{eso-pic} for |\AddToShipoutPicture|.
986 \RequirePackage{eso-pic}
988 % Use \pkg{xcolor} for |\definecolor|.
990 \RequirePackage{xcolor}
991 \definecolor{watermark}{rgb}{0.9,0.9,0.9}
993 % Set the font explicitly to avoid being effected by the last text on
994 % the page having some strange font. |\sffamily| sets a sans serif
997 \newcommand{\watermarkfont}{%
998 \color{watermark}}%\fontfamily{phv}\selectfont\sffamily}
999 \newcommand{\watermark}{%
1000 \rule{4.25in}{0pt}\raisebox{5.5in}{%
1003 % |\rotatebox| and |\resizebox| from \pkg{graphicx}.
1005 \rotatebox[origin=c]{45}{%
1006 \resizebox{!}{1.5in}{%
1007 {\watermarkfont DRAFT}%
1011 \rotatebox[origin=c]{45}{%
1012 \resizebox{!}{.6in}{%
1013 {\watermarkfont \qquad\today}%
1015 \AddToShipoutPicture{\watermark{}}
1020 % \subsubsection{\pkg{indentfirst}}
1022 % Indent the first paragraph after sections etc.\ with
1023 % \href{http://www.ctan.org/tex-archive/macros/latex/required/tools/}{\pkg{indentfirst}}.
1026 \RequirePackage{indentfirst}
1031 % \subsubsection{\pkg{geometry}}
1033 % Setup page margins with
1034 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/geometry/}{\pkg{geometry}}.
1035 % From the Manual p5:
1037 % \item The left margin must be at least 1 1/2'' (1.5 inches)
1038 % throughout the document.
1039 % \item All other margins (top, bottom, and right) must be at least 1''.
1041 % And from the Manual \S 1.5 p4, Print Version:
1043 % The paper size must be 8 1/2'' x 11''.
1046 \RequirePackage[letterpaper,margin=1in,bindingoffset=0.5in]{geometry}
1048 % Note that we include the \pkg{geometry} package after loading \cls{book} to
1049 % override the margin manipulation that takes place in \cls{book}.
1052 % \subsubsection{\pkg{tocloft}}
1054 % Typeset the table of contents, etc., with
1055 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/tocloft/}{\pkg{tocloft}}.
1058 \RequirePackage[subfigure]{tocloft}
1060 \RequirePackage{tocloft}
1063 % The \Lopt{subfigure} option sets up \pkg{tocloft} for
1064 % \pkg{subfig}/\pkg{subfigure} compatibility. See the
1065 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/tocloft/tocloft.pdf}{%
1066 % \pkg{tocloft} manual \S 2.1}
1069 % The configuration of \pkg{tocloft} takes place in \S
1070 % \ref{sec:implement-toc}, \S \ref{sec:implement-lof}, and \S
1071 % \ref{sec:implement-lot}.
1074 % \subsubsection{\pkg{caption}}
1076 % Get nice caption formatting with
1077 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/caption/}{\pkg{caption}}.
1078 % From the Manual p5:
1080 % \item The left margin must be at least 1 1/2'' (1.5 inches)
1081 % throughout the document.
1082 % \item All other margins (top, bottom, and right) must be at least 1''.
1085 \RequirePackage[margin=10pt,labelfont=bf,labelsep=colon]{caption}
1087 % You can change these settings if you like using |\captionsetup|.
1090 % \subsubsection{\pkg{floatrow}}
1091 % \label{sec:floatrow}
1093 % Enforce caption placement with
1094 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/floatrow/}{\pkg{floatrow}}.
1095 % From the Manual \S 2.3 p6, ``Tables and Figures'',
1098 % \item Place figure captions below figures.
1099 % \item Place table captions above tables.
1103 \RequirePackage{floatrow}
1104 \floatsetup[table]{style=plaintop}
1105 \floatsetup{captionskip=10pt}
1106 \floatsetup[table]{captionskip=10pt}
1108 % Use \pkg{fr-subfig} for \pkg{floatrow}/\pkg{subfig} compatibility.
1109 % See the \pkg{floatrow} documentation (Sec.~7.1, ``The \pkg{subfig}
1110 % package'') and \pkg{subfig} documentation (Sec.~4.3,
1111 % ``\pkg{FloatRow} Package'') for details.
1114 \RequirePackage{fr-subfig}
1117 % We set up the three-line surrounding spaces in \S
1118 % \ref{sec:implement-floats}.
1120 % You can change these settings using |\floatsetup|, but you probably
1124 % \subsubsection{\pkg{subfig}}
1125 % \label{sec:subfig}
1127 % Allow multi-part figures with
1128 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/subfig/}{\pkg{subfig}}.
1131 \RequirePackage{subfig}
1136 % \subsubsection{\pkg{fancyhdr}}
1137 % \label{sec:fancyhdr}
1139 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/}{\pkg{fancyhdr}}
1140 % for correct page numbering and fancy headers.
1141 % From the Manual \S 2.3 p5, ``Pagination''
1143 % Place page numbers in the upper right-hand corner of the page,
1144 % 3/4'' from the top.
1147 \RequirePackage{fancyhdr}
1149 % Setup the standard |fancy| format.
1154 % Turn off the header rule by setting its width to $0$.
1156 \renewcommand{\headrulewidth}{0pt}
1158 % 0.4 pt is \pkg{fancyhdr}'s default |\headrulewidth|, so we'll
1159 % recycle the value.
1161 \renewcommand{\footrulewidth}{0.4pt}
1163 % |\leftmark| is the higher level mark, see |\chaptermark| below.
1164 % |\rightmark| is the lower level mark, see |\sectionmark| below.
1165 % We put the lower level mark to the outside because it changes more
1166 % often. Page numbers also go on the outside.
1168 \fancyfoot[RE,LO]{\scshape\leftmark}
1169 \fancyfoot[LE,RO]{\scshape\rightmark}
1170 \fancyhead[LE,RO]{\thepage}
1172 % Override the |plain| format (for part pages, etc.).
1174 \fancypagestyle{plain}{
1176 \renewcommand{\footrulewidth}{0pt}
1177 \fancyhead[LE,RO]{\thepage}
1180 % Keep the |empty| format at its default.
1182 \fancypagestyle{empty}{
1184 \renewcommand{\footrulewidth}{0pt}
1188 % Note that the chapter/section footer is not required. You can
1189 % remove the footer text and rule entirely with.
1191 % \renewcommand{\footrulewidth}{0pt}
1192 % \fancyfoot[RE,LO]{}
1193 % \fancyfoot[LE,RO]{}
1197 % \subsubsection{\pkg{ifpdf}}
1199 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{ifpdf}}
1200 % for detecting PDF drivers. We use it to configure \pkg{hyperref} below.
1202 \RequirePackage{ifpdf}
1205 % \subsubsection{\pkg{hyperref}}
1206 % \label{sec:hyperref}
1208 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{\pkg{hyperref}}
1209 % for hyperlinks. Not strictly necessary, but I can't imagine a
1210 % thesis without it. We actually include this later (\S
1211 % \ref{sec:hyperref-inclusion}), because \pkg{hyperref} sticks its
1212 % fingers into \emph{everything} and we want it to use our versions of
1213 % some macros (e.g., |\@sect|) but not others (e.g., |thebibliography|).
1216 % \subsubsection{\pkg{hypcap}}
1217 % \label{sec:hypcap}
1219 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{hypcap}}
1220 % for placing caption hyperlink anchors. Must be included after
1221 % \pkg{hypercap}, so the actual inclusion is in \S
1222 % \ref{sec:hypcap-inclusion}).
1225 % \subsection{\LaTeX\ overrides and extensions}
1227 % Here we change the behavior of a bunch of macros and environments
1228 % from \file{latex.ltx} (generated by \file{format.ins} in
1229 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{base}}).
1230 % We'll copy in their original notes along with their code, following
1231 % the relevant documentation an order given in \file{format.ins} and
1232 % the associated \file{*.dtx} files.
1235 % \subsubsection{\file{ltsect.dtx}}
1237 % \begin{macro}{\title}
1238 % \begin{macro}{\DUTtitle}
1239 % \begin{macro}{\@DUT@title}
1240 % |\title| for use in |\maketitle|. If not given |\maketitle| will
1241 % produce a warning message (\file{ltsect.dtx}, L117).
1243 % We extend |\title| to set \pkg{hyperref}'s |pdftitle|.
1244 % (\file{ltsect.dtx}, L117).
1246 \renewcommand{\title}[1]{
1247 \gdef\@DUT@title{#1}
1248 \ifpdf \hypersetup{pdftitle={\@DUT@title}} \fi
1251 \def\@DUT@title{\@latex@error{No \noexpand\title given}\@ehc}
1257 % \begin{macro}{\author}
1258 % \begin{macro}{\DUTauthor}
1259 % \begin{macro}{\@DUT@author}
1260 % |\author| for use in |\maketitle|. If not given |\maketitle| will
1261 % produce a warning message (\file{ltsect.dtx}, L129).
1263 % We extend |\author| to set \pkg{hyperref}'s |pdfauthor| if we're
1264 % writing a PDF to avoid using |\AtBeginDocument| or some such.
1265 % (\file{ltsect.dtx}, L129).
1267 \renewcommand{\author}[1]{
1268 \gdef\@DUT@author{#1}
1269 \ifpdf \hypersetup{pdfauthor={\protect\@DUT@author}} \fi
1271 \let\DUTauthor\author
1272 \def\@DUT@author{\@latex@error{No \noexpand\author given}\@ehc}
1278 % In a similar vein, we some additional meta-info macros.
1280 % \begin{macro}{\DUTmonth}
1281 % \begin{macro}{\@DUT@month}
1282 % |\DUTmonth| (defense month) for use in |\maketitle|. If not given
1283 % |\maketitle| will produce an error message.
1285 \def\DUTmonth#1{\gdef\@DUT@month{#1}}
1286 \def\@DUT@month{\@latex@error{No \noexpand\DUTmonth given}\@ehc}
1291 % \begin{macro}{\DUTyear}
1292 % \begin{macro}{\@DUT@year}
1293 % |\DUTyear| (defense year) for use in |\maketitle|. If not given
1294 % |\maketitle| will produce an error message.
1296 \def\DUTyear#1{\gdef\@DUT@year{#1}}
1297 \def\@DUT@year{\@latex@error{No \noexpand\DUTyear given}\@ehc}
1302 % \begin{macro}{\degree}
1303 % \begin{macro}{\DUTdegree}
1304 % \begin{macro}{\@DUT@degree}
1305 % |\degree| for use in |\maketitle|. If not given |\maketitle| will
1306 % produce an error message.
1308 \def\degree#1{\gdef\@DUT@degree{#1}
1309 \ifpdf \hypersetup{pdfsubject={\@DUT@degree}} \fi}
1310 \let\DUTdegree\degree
1311 \def\@DUT@degree{\@latex@error{No \noexpand\degree given}\@ehc}
1317 % \begin{macro}{\copyrighttext}
1318 % \begin{macro}{\DUTcopyrighttext}
1319 % \begin{macro}{\@copyrighttext}
1320 % |\copyrighttext| for use in |\@DUT@makecopyright|. There are a
1321 % number of blurbs predefined in \S \ref{sec:implement-copyright}.
1323 \def\copyrighttext#1{\gdef\@DUT@copyrighttext{#1}}
1324 \let\DUTcopyrighttext\copyrighttext
1325 \def\@DUT@copyrighttext{All Rights Reserved.}
1331 % \begin{macro}{\advisor}
1332 % \begin{macro}{\DUTadvisor}
1333 % \begin{macro}{\@DUT@advisor}
1334 % |\advisor| stores advisor names, and |\@DUT@advisor| prints them out
1335 % nicely for the |abstract| environment. If no advisors are given
1336 % |\@DUT@advisor| will produce an error message. We get a bit fancier
1337 % here to support multiple advisors.
1339 \newcounter{@DUT@advisors}
1340 \setcounter{@DUT@advisors}{0}
1342 % Store a new advisor name.
1344 \newcommand\advisor[1]{%
1347 % If |#1| is |\empty|, this call is a no-op.
1352 % Save the advisors to |\@DUT@advisor@a|, |\@DUT@advisor@b|, \ldots.
1353 % |\alph{|\Lcount{COUNTER}|}| (\file{ltcounts.dtx}, L319) prints the
1354 % value of \Lcount{COUNTER} as a lowercase letter: $1 =$~a, $2 =$~
1357 \stepcounter{@DUT@advisors}
1358 \expandafter\gdef\csname @DUT@advisor@\alph{@DUT@advisors}\endcsname{#1}
1361 % Format and print a list of advisor names.
1363 \newcommand\@DUT@advisor{%
1364 \ifnum\c@@DUT@advisors=0%
1365 \@latex@error{No \noexpand\advisor given}\@ehc%
1368 % Start a group so the scratch counter \Lcount{count\textat} is restored
1369 % afterwards\footnote{See the discussion in
1370 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/localloc/}{%
1372 % for some points on counter allocation.}.
1376 % Because \Lcount{count\textat} is a \TeX\ counter register not
1377 % wrapped by \LaTeX's counter sugar, we don't use \LaTeX's
1378 % |\setcounter| to set \Lcount{count\textat} to one.
1382 % Print the first advisor, using \TeX's |\@alph| macro instead of
1386 \csname @DUT@advisor@\@alph\count@\endcsname\relax%
1388 % For any remaining advisors\ldots
1390 \loop\ifnum\count@<\c@@DUT@advisors%
1392 % Advance \Lcount{count\textat} using \TeX's |\advance| macro instead
1393 % of \LaTeX's |\stepcounter|.
1397 % Print the connecting text.
1399 \ifnum\count@=\c@@DUT@advisors%
1400 \ifnum\c@@DUT@advisors=2%
1402 % The next advisor if the last of two.
1407 % The next advisor if the last of many.
1413 % The next advisor is not the last.
1418 % Print the advisor's name.
1420 \csname @DUT@advisor@\@alph\count@\endcsname\relax%
1429 % \paragraph{baselineskip}
1430 % \label{sec:implement-line-spacing}
1432 % \begin{macro}{\@DUT@baselineskip}
1433 % Since we'll be messing with the spacing, save the single-spaced
1435 % \changes{0.3}{2010/01/13}{Use $\backslash$setlength to store the
1436 % value at the default font. The previous version used
1437 % $\backslash$let, which made $\backslash$DUT\@baselineskip a
1438 % synonym for $\backslash$baselineskip that changed with font
1441 \newlength\@DUT@baselineskip
1442 \setlength\@DUT@baselineskip\baselineskip
1447 % `\cs{set@lines@length}\marg{length}\marg{N}'
1449 % \begin{macro}{\set@lines@length}
1450 % Many specifications in the Manual refer to ``\meta{N} blank lines''.
1451 % |\set@lines@length| allows you to set a length to a given number of
1452 % lines, protecting against external |spacing| environments. It
1453 % requires \pkg{calc} for the multiplication.
1455 \newcommand{\set@lines@length}[2]{%
1456 \setlength{#1}{\@DUT@baselineskip * {#2}}}
1461 % Fix |\@ssect| and |\@sect| from \file{latex.ltx} to give single
1464 % \begin{macro}{\@sect}
1465 % Pseudocode for the |\@sect| command
1467 % \@sect{NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}[ARG1]{ARG2}
1470 % IF LEVEL > \c@secnumdepth
1471 % THEN \@svsec :=L null
1472 % ELSE \refstepcounter{NAME}
1473 % \@svsec :=L BEGIN \@seccntformat{#1}\relax END
1478 % \@hangfrom{\hskip INDENT\@svsec}
1479 % {\interlinepenalty 10000 ARG2\par}
1482 % \addcontentsline{toc}{NAME}
1483 % { IF LEVEL > \c@secnumdepth
1484 % ELSE \protect\numberline{\theNAME} FI
1486 % ELSE \@svsechd == BEGIN STYLE
1487 % \hskip INDENT\@svsec
1490 % \addcontentsline{toc}{NAME}
1491 % { IF LEVEL > \c@secnumdepth
1493 % \protect\numberline{\theNAME}
1498 % \@xsect{AFTERSKIP}
1501 % (\file{ltsect.dtx}, L295).
1503 \def\@sect#1#2#3#4#5#6[#7]#8{%
1504 \ifnum #2>\c@secnumdepth
1507 \refstepcounter{#1}%
1508 \protected@edef\@svsec{\@seccntformat{#1}\relax}%
1510 \@tempskipa #5\relax
1511 \ifdim \@tempskipa>\z@
1514 % Here we deviate from \file{ltsect.dtx} to ensure single spacing for
1515 % the section title.
1519 \@hangfrom{\hskip #3\relax\@svsec}%
1520 \interlinepenalty \@M #8\@@par}%
1522 \csname #1mark\endcsname{#7}%
1523 \addcontentsline{toc}{#1}{%
1524 \ifnum #2>\c@secnumdepth \else
1525 \protect\numberline{\csname the#1\endcsname}%
1532 \csname #1mark\endcsname{#7}%
1533 \addcontentsline{toc}{#1}{%
1534 \ifnum #2>\c@secnumdepth \else
1535 \protect\numberline{\csname the#1\endcsname}%
1543 % \begin{macro}{\@ssect}
1544 % Pseudocode for the |\@ssect| command
1546 % \@ssect{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}{ARG} ==
1551 % \@hangfrom{\hskip INDENT}{\interlinepenalty 10000 ARG\par}
1553 % ELSE \@svsechd == BEGIN STYLE
1558 % \@xsect{AFTERSKIP}
1561 % (\file{ltsect.dtx}, L521).
1563 \def\@ssect#1#2#3#4#5{%
1564 \@tempskipa #3\relax
1565 \ifdim \@tempskipa>\z@
1568 % Here we deviate from \file{ltsect.dtx} to ensure single spacing for
1569 % the section title.
1573 \@hangfrom{\hskip #1}%
1574 \interlinepenalty \@M #5\@@par}%
1577 \def\@svsechd{#4{\hskip #1\relax #5}}%
1584 % \subsubsection{\file{ltbibl.dtx}}
1586 % \DescribeMacro{\bibliography}
1587 % \DescribeEnv{thebibliography}
1588 % A bibliography is created by the |thebibliography| environment, which
1589 % generates a title such as ``Bibliography'', and a list of entries.
1590 % The \BibTeX\ program will create a file containing such an
1591 % environment, which will be read in by the |\bibliography| command.
1592 % With \BibTeX, the following commands will be used.
1594 % The document class must define the thebibliography environment. This
1595 % environment has a single argument, which is the widest bibliography
1596 % label-- e.g., if the [Knuth67] is the widest entry, then this
1597 % argument will be Knuth67. The |\thebibliography| command must begin
1598 % a list environment, which the |\endthebibliography| command ends.
1600 % \begin{macro}{\bibliography}
1601 % |\bibliography|\marg{file1,file2,\ldots,filen} : specifies
1602 % the bibdata files. Writes a |\bibdata| entry on the |.aux| file
1603 % and tries to read in |mainfile.bbl|.
1605 % We don't need to change it, but it explains why we need to override
1606 % |thebibliography| even when we don't use it directly.
1607 % (\file{ltbibl.dtx}, L284).
1609 %\def\bibliography#1{%
1611 % \immediate\write\@auxout{\string\bibdata{#1}}%
1613 % \@input@{\jobname.bbl}
1619 % \subsubsection{\file{ltoutput.dtx}}
1621 % \begin{macro}{\@DUT@clearpage}
1622 % \begin{macro}{\@DUT@cleardoublepage}
1623 % Versions of |\clear*page| that only work when |\if@final| is true
1624 % (\file{ltoutput.dtx}, L877 and L904).
1626 \newcommand\@DUT@clearpage{\if@final \clearpage \fi}
1627 \newcommand\@DUT@cleardoublepage{\if@final \cleardoublepage \fi}
1632 % \begin{macro}{\@DUT@blankpage}
1633 % Add a useful extension to insert a blank page without numbering.
1634 % In draft mode, this macro is a no-op.
1636 \newcommand\@DUT@blankpage{%
1639 \thispagestyle{empty}
1649 % `\cs{blanklines}\marg{N}'
1650 % `\cs{blanklines*}\marg{N}'
1652 % \begin{macro}{\blanklines}
1653 % Insert \meta{N} blank lines. The starred forms use |\vspace|, which
1654 % inserts space even at the start and end of pages. The |p| forms
1655 % add a trailing |\par|. \emph{I'm still trying to get this part working
1658 \newlength\@DUT@blanklines@length
1659 \newcommand{\@blanklines@setup}[1]{%
1660 \set@lines@length{\@DUT@blanklines@length}{#1}%
1661 %\typeout{BLANKLINES -- #1}%
1662 %\showthe\@DUT@blanklines@length
1664 \newcommand{\blanklines}{\@ifstar\@sblanklines\@blanklines}
1665 \newcommand{\@blanklines}[1]{%
1666 \@blanklines@setup{#1}%
1667 \vspace{\@DUT@blanklines@length}}
1668 \newcommand{\@sblanklines}[1]{%
1669 \@blanklines@setup{#1}%
1670 \vspace*{\@DUT@blanklines@length}}
1671 \newcommand{\blanklinesp}{\@ifstar\@sblanklines\@blanklines}
1672 \newcommand{\@blanklinesp}[1]{%
1673 \@blanklines@setup{#1}%
1674 \vspace{\@DUT@blanklines@length}\par}
1675 \newcommand{\@sblanklinesp}[1]{%
1676 \@blanklines@setup{#1}%
1677 \vspace*{\@DUT@blanklines@length}\par}
1682 % \subsection{\pkg{hyperref} inclusion}
1683 % \label{sec:hyperref-inclusion}
1685 % This is the awkward \pkg{hyperref} inclusion. See \S
1686 % \ref{sec:hyperref} for an explanation of why we stash it here.
1688 \RequirePackage[final]{hyperref}
1690 % Nobody likes the default colored boxes. Color the text itself.
1692 \hypersetup{colorlinks}
1695 % \subsubsection{\pkg{hypcap}}
1696 % \label{sec:hypcap-inclusion}
1698 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{hypcap}}
1699 % for placing caption hyperlink anchors. Not strictly necessary, but
1700 % we're using \pkg{hyperref}, and the poor link targets are annoying.
1702 \RequirePackage[all]{hypcap}
1704 % \Lopt{all} redefines the figure and table environments to
1705 % place the anchor at the start of the float.
1708 % \subsection{\cls{book} overrides and extensions}
1710 % Here we change the behavior of a bunch of macros and environments from
1711 % \cls{book} (generated by \file{classes.ins} from \file{classes.dtx}) in
1712 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{base}}).
1713 % We'll copy in their original notes along with their code, following
1714 % the relevant documentation an order given in \file{classes.dtx}.
1717 % \subsubsection{Floats on a text page}
1718 % \label{sec:implement-floats}
1720 % \begin{macro}{\floatsep}
1721 % \begin{macro}{\textfloatsep}
1722 % When a floating object is placed on a page with text, these
1723 % parameters control the separation between the float and the other
1724 % objects on the page.
1726 % |\floatsep| is the space between adjacent floats that are moved
1727 % to the top or bottom of the text page.
1729 % |\textfloatsep| is the space between the main text and floats
1730 % at the top or bottom of the page.
1732 % |\intextsep| is the space between in-text floats and the text. We
1733 % don't bother overriding this one, because we've handled it with
1734 % \pkg{floatrow} in \S \ref{sec:floatrow}.
1736 % From the Manual \S 2.3 p6, ``Tables and Figures''
1738 % Insert at least 3 single-spaced lines of space above table
1739 % captions and figures and below figure captions, tables, and other
1742 % (\file{classes.dtx}, L1426)
1744 \set@lines@length{\floatsep}{\@ssp}
1745 \set@lines@length{\textfloatsep}{\@tsp}
1751 % \subsubsection{The title}
1753 % \begin{macro}{\maketitle}
1754 % Automate the creation of the title page.
1755 % From Manual \S 3.1 p8, ``Title Page'', and the example on p16.
1757 % \item This page is counted but not numbered (it counts as page i,
1758 % but should not have a page number). TODO: How is this implemented?
1760 % Our definition simplifies \cls{book}'s by ignoring footnotes.
1761 % (\file{classes.dtx}, L1796)
1763 \newcommand\@DUT@maketitle{
1764 \begin{@DUT@titlepage}%
1766 % Add some bookmarks if we're using pdf\LaTeX. The |frontmatter|
1767 % bookmark is set at the \emph{part} level (-1) to hold all bookmarks
1768 % from the |preamble| environment, since those entries are all
1770 % \changes{0.8}{2010/05/20}{W.~Trevor King replaced Titlepage with
1771 % Title Page for consistency with \LaTeX's book class.}
1774 \pdfbookmark[-1]{Front Matter}{Front Matter}
1775 \pdfbookmark[0]{Title Page}{Title Page}
1778 % Add some stretchy space to center the title vertically if we're not
1781 \if@final \vspace*{\fill} \fi
1783 % Here is the title text itself.
1786 {\setstretch{\@tsp} \bfseries \@DUT@title \par}%
1788 % We want two blank lines (triple spacing) between the title and the
1789 % remaining material, so add three but don't end the paragraph.
1794 Submitted to the Faculty\\
1799 in partial fulfillment of the\\
1800 requirements for the degree\\
1803 \@DUT@month\ \@DUT@year
1806 % Some more stretchy space for the bottom if we're not in draft mode.
1809 % Add some stretchy space to center the title vertically if we're not
1812 \if@final \vspace*{\fill} \fi
1813 \end{@DUT@titlepage}%
1815 % And that's it. We reset the footnote counter for the rest of the
1816 % document and save space by freeing the memory associated with the
1817 % |\maketitle| and |\and| macros (by setting them equal to |\relax|).
1819 \setcounter{footnote}{0}%
1820 \global\let\maketitle\relax
1821 \global\let\and\relax
1827 % \subsubsection{Copyright pages}
1828 % \label{sec:implement-copyright}
1830 % \begin{macro}{\@DUT@makecopyright}
1831 % The Manual allows for the selection of different copyrights, so we
1832 % define a base macro that generates a proper copyright page
1833 % containing |\@copyrighttext|, which the user can set with
1835 % From Manual \S 3.2 p9, ``Copyright Page''.
1837 % \item Include a copyright page with the following information: a
1838 % copyright notice, full legal name of author, and date of
1839 % publication on file.
1840 % \item This page is neither counted nor numbered.
1842 % In final mode, we start off on a new page and center the blurb.
1843 % In draft mode, we dive right into the text.
1845 \newcommand\@DUT@makecopyright{%
1848 % If we're using pdf\LaTeX, add a bookmark.
1850 \ifpdf \pdfbookmark[0]{Copyright Page}{Copyright Page} \fi
1851 \if@final \vspace*{\fill} \fi
1853 \copyright~Copyright \@DUT@year\\
1854 \@DUT@author. \@DUT@copyrighttext
1856 \if@final \vspace*{\fill} \else \blanklinesp{2} \fi
1858 % Turn off page numbering for this page.
1860 \thispagestyle{empty}
1865 % \begin{macro}{\copyrighttextCCBYSA}
1866 % \begin{macro}{\DUTcopyrighttextCCBYSA}
1867 % The Creative Commons Attribution-ShareAlike License.
1868 % \changes{0.4}{2010/02/23}{W.~Trevor King renamed from
1869 % $\backslash$copyrighttextCC, and made specific to Creative Commons
1870 % Attribution-ShareAlike Version 3.0.}
1872 \newcommand\copyrighttextCCBYSA{
1874 This work is licensed under the terms of the Creative Commons
1875 Attribution-ShareAlike license Version 3.0. The license is
1877 \url{http://creativecommons.org/licenses/by-sa/3.0/}.
1880 \let\DUTcopyrighttextCCBYSA\copyrighttextCCBYSA
1886 % \subsubsection{Mark commands}
1888 % Default initializations of |\*mark| commands. These commands
1889 % are used in the definition of the page styles.
1891 % \begin{macro}{\chaptermark}
1892 % Setup colon rather than period separated chapter marks.
1893 % (\file{classes.dtx}, L2053)
1895 \renewcommand\chaptermark[1]{%
1897 \ifnum \c@secnumdepth >\m@ne
1899 \@chapapp\ \thechapter: \ %
1906 % \begin{macro}{\schaptermark}
1907 % Setup unnumbered chapter marks for \pkg{fancyhdr}.
1909 \newcommand\schaptermark[1]{\markboth{#1}{}}
1913 % \begin{macro}{\sectionmark}
1914 % Setup space rather than period separated section marks.
1915 % (\file{classes.dtx}, L2054)
1917 \renewcommand{\sectionmark}[1]{%
1919 \ifnum \c@secnumdepth >\z@
1927 % \subsubsection{Front Matter, Main Matter, and Back Matter}
1929 % A book contains these three (logical) sections. The switch
1930 % |\@mainmatter| is true if and only if we are processing main
1932 % \href{http://en.wikipedia.org/wiki/Book_design}{Wikipedia}
1933 % suggests \emph{body matter} for the main content, but
1934 % \href{http://mirror.ctan.org/macros/latex/base/classes.dtx}{\LaTeX's
1935 % \cls{book}} uses \emph{Main Matter}. We're a \LaTeX\ class, so
1936 % we'll stick with ``main matter'' for consistency.
1937 % }. When this switch is false, the
1938 % |\chapter| command does not print chapter numbers.
1940 % \begin{macro}{\mainmatter}
1941 % This command clears the page (in final mode), starts arabic page
1942 % numbering and turns on chapter numbering. Since this restarts the
1943 % page numbering from 1, it should also ensure that a recto page is
1946 % We replace \cls{book}'s |\clear*page| calls with |\@DUT@clearpage| calls.
1947 % (\file{classes.dtx}, L2211)
1949 \renewcommand\mainmatter{%
1950 \@DUT@cleardoublepage
1952 \pagenumbering{arabic}}
1957 % \subsubsection{Parts}
1959 % \begin{macro}{\part}
1960 % The command to start a new part of our document.
1962 % We start a new (righthand) page and use the \pstyle{plain}
1963 % pagestyle, replacing \cls{book}'s |\clear*page| calls with
1964 % |\@DUT@clearpage| calls and dropping twopage code.
1965 % (\file{classes.dtx}, L2249)
1967 \renewcommand\part{%
1969 \@DUT@cleardoublepage
1973 \thispagestyle{plain}%
1976 % Add some stretchy space for vertical centering if we're in final mode.
1978 \if@final \null\vfil \fi
1980 % Here we use |\secdef| to indicate which commands to use to make
1981 % the actual heading.
1983 \secdef\@part\@spart}
1987 % \begin{macro}{\@part}
1988 % This macro does the actual formatting of the title of the part. We
1989 % replace \cls{book}'s |\Huge| with |\large|, and make use of
1990 % |\numberline| for consistent spacing.
1992 % When \Lcount{secnumdepth} is larger than $-2$, we have a numbered
1993 % part, otherwise it is unnumbered.
1994 % (\file{classes.dtx}, L2310)
1997 \ifnum \c@secnumdepth >-2\relax
1998 \refstepcounter{part}%
1999 \addcontentsline{toc}{part}%
2000 {\protect\numberline{\thepart}#1}%
2002 \addcontentsline{toc}{part}{#1}%
2005 % We empty the mark registers and center the title on the page.
2006 % Also we prevent breaking between lines and reset the font.
2010 \interlinepenalty \@M
2013 % When this is a numbered part we have to print the number.
2015 \ifnum \c@secnumdepth >-2\relax
2016 \large\bfseries \partname\nobreakspace\thepart
2019 % We leave some space before we print the title and leave the
2020 % finishing up to |\@endpart|.
2024 \large \bfseries #2\par}%
2029 % \begin{macro}{\@spart}
2030 % This macro does the actual formatting of the title of the part
2031 % when the star form of the user command was used. In this case we
2032 % \emph{never} print a number. Otherwise the formatting is the
2034 % (\file{classes.dtx}, L2402)
2038 \interlinepenalty \@M
2040 \large \bfseries #1\par}%
2045 % \begin{macro}{\@endpart}
2046 % This macro finishes the part page, for both |\@part| and |\@spart|.
2047 % We drop \cls{book}'s twoside handling.
2048 % If |\if@final| is true, we fill the current page.
2049 % (\file{classes.dtx}, L2435)
2052 \if@final \vfil\newpage \fi
2054 % Then, when we are in twosided mode and the chapters are supposed to
2055 % be on the right hand sides, we produce a completely blank page. We
2056 % don't need to check |\if@final| here, because \Lopt{draftspace} set
2057 % |\@openrighttrue|.
2062 \thispagestyle{empty}%
2070 % \subsubsection{Chapters}
2071 % \label{sec:implement-chapters}
2073 % \begin{macro}{\chapter}
2074 % \cls{book} always starts a chapter on a new page, but we don't want
2075 % to do that if we're in draft mode.
2076 % (\file{classes.dtx}, L2472).
2078 \renewcommand\chapter{%
2079 \if@openright\@DUT@cleardoublepage\else\@DUT@clearpage\fi
2080 \thispagestyle{plain}%
2082 % Then we prevent floats from appearing at the top of this page
2083 % because it looks weird to see a floating object above a chapter
2088 % Then we suppress the indentation of the first paragraph by
2089 % setting the switch |\@afterindent| to false. We use |\secdef|
2090 % to specify the macros to use for actually setting the chapter
2094 \secdef\@chapter\@schapter}
2098 % \begin{macro}{\listed@schapter}
2099 % |\chapter| declares numbered chapters, which are listed in the table
2101 % |\chapter*| declares unnumbered chapters, which are \emph{not}
2102 % listed in the TOC.
2103 % |\listed@schapter| declares an unnumbered chapter that \emph{is}
2104 % listed in the TOC.
2106 \newcommand\listed@schapter[1]{%
2107 \if@openright\@DUT@cleardoublepage\else\@DUT@clearpage\fi
2108 \thispagestyle{plain}%
2111 \addcontentsline{toc}{chapter}{#1}
2117 % \begin{macro}{\@chapter}
2118 % This macro is called when we have a numbered chapter. When
2119 % \Lcount{secnumdepth} is larger than $-1$ and |\@mainmatter| is true,
2120 % we display the chapter number.
2121 % We drop \cls{book}'s \Lopt{twocolumn} code.
2122 % (\file{classes.dtx}, L2496).
2124 \def\@chapter[#1]#2{
2126 % Inform the user that a new chapter is about to be typeset by writing
2127 % a message to the terminal.
2128 % \changes{0.9}{2010/05/21}{W.~Trevor King disabled the label macro
2130 % Some users place |\label| in their chapter argument:
2132 % \chapter{Bla bla\label{x}}
2134 % rather than after (as recommended by
2135 % \href{http://en.wikibooks.org/wiki/LaTeX/Labels_and_Cross-referencing#Sections}%
2136 % {the \LaTeX\ Wikibook} and
2137 % \href{http://www.ctan.org/tex-archive/info/lshort/english/lshort.pdf}%
2138 % {The Not So Short Introduction to \LaTeXe\ (\S 2.8, p36)}):
2143 % The embedded |\label| chokes |\typeout| so we temporarily redefine
2144 % |\label| to just gobble its contents. |\@DUT@label| stores the
2145 % original definition.
2147 \let\@DUT@label=\label%
2148 \renewcommand{\label}[1]{}%
2149 \typeout{\@chapapp\space\thechapter. #1}%
2151 % Restore |\label| to its previous glory.
2153 \let\label=\@DUT@label%
2155 % Now we can get on with the real work.
2157 \ifnum \c@secnumdepth >\m@ne
2159 \refstepcounter{chapter}%
2160 \addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}#1}%
2162 \addcontentsline{toc}{chapter}{#1}%
2165 \addcontentsline{toc}{chapter}{#1}%
2168 % After having written an entry to the table of contents we store
2169 % the (alternative) title of this chapter with |\chaptermark|.
2173 % For nicer lists of figures and tables, we could add some white space
2174 % to separate the chapters. However, nice lists $\neq$~Manual
2177 % \addtocontents{lof}{\protect\addvspace{10\p@}}%
2178 % \addtocontents{lot}{\protect\addvspace{10\p@}}%
2180 % Then we call upon |\@makechapterhead| to format the actual chapter
2181 % title. |\@afterheading| which takes care of suppressing the
2184 \@makechapterhead{#2}%
2189 % \begin{macro}{\@makechapterhead}
2190 % The |\@chapter| macro uses |\@makechapterhead|\meta{text} to format
2191 % the heading of the chapter.
2192 % From the Manual \S 3.11 p11.
2194 % Chapter headings must be bold and centered.
2195 % The chapter number and title must be on the same line, separated
2196 % by a colon or period, as shown in the example below:
2198 % CHAPTER 1: INTRODUCTION
2200 % Headings must not be larger than 12 points.
2201 % Headings must be single spaced.
2203 % \cls{book} sets |\@chapapp| and |\thechapter| (e.g., ``Chapter 5'')
2204 % on a line above the chapter title, but that doesn't match the
2205 % Manual's specification.
2207 % We begin by leaving some white space. The we open a group in which
2208 % we have a paragraph indent of 0pt, and in which we have the text set
2209 % ragged right. We also reset the font.
2210 % (\file{classes.dtx}, L2540).
2212 \def\@makechapterhead#1{%
2214 % Adding even a \vspace*{0\p@} here seems to increase the vertical
2215 % space above the chapter heading by two lines. I'm not sure why.
2216 % Workaround is to pass the ``value of blanklines you want minus two''
2217 % to |\blanklines*|. HACK!
2219 \blanklines*{-1}% HACK!
2220 {\parindent \z@ \raggedright \normalfont
2222 % Ensure single spacing.
2226 % Prevent a pagebreak from occuring in the middle of or after the title.
2228 \interlinepenalty\@M
2230 % Check whether the number of the chapter has to be printed.
2232 \ifnum \c@secnumdepth >\m@ne
2234 % Check whether there \emph{is} a number to be printed.
2238 % Setup a ``Chapter \#: Title'' heading.
2240 \center \large \bfseries \@chapapp{} \thechapter: #1\par\nobreak
2243 % Setup a ``Title'' heading.
2245 \center \large \bfseries #1\par\nobreak
2248 \center \large \bfseries #1\par\nobreak
2251 % Put a little space before the chapter body. We use four blank lines
2252 % to comply with the Manual \S 3.13 p12
2254 % Begin the list of sources four spaces below the heading.
2263 % \begin{macro}{\@schapter}
2264 % This macro is called when we have an unnumbered chapter. We drop
2265 % \file{classes.dtx}'s \Lopt{twocolumn} code and set marks for
2267 % (\file{classes.dtx}, L2582).
2271 % Inform the user that a new chapter is about to be typeset by writing
2272 % a message to the terminal.
2274 \typeout{\@chapapp\space #1}%
2276 \@makeschapterhead{#1}%
2281 % \begin{macro}{\@makeschapterhead}
2282 % The macro above uses |\@makeschapterhead|\meta{text} to format
2283 % the heading of the chapter. It is similar to |\@makechapterhead|
2284 % except that it never has to print a chapter number.
2285 % (\file{classes.dtx}, L2595).
2287 \def\@makeschapterhead#1{%
2288 \blanklines*{-1}% HACK!
2289 {\parindent \z@ \raggedright \normalfont
2291 \interlinepenalty\@M
2292 \center \large \bfseries #1\par\nobreak
2300 % \subsubsection{Lower level headings}
2302 % \begin{macro}{\section}
2303 % Setup section headings in |\large| rather than \cls{book}'s
2305 % (\file{classes.dtx}, L2623).
2307 \renewcommand\section{%
2308 \@startsection {section}{1}{\z@}%
2309 {-3.5ex \@plus -1ex \@minus -.2ex}%
2311 {\normalfont\large\bfseries}}
2316 % \subsubsection{Defining new environments}
2318 % We don't override any of \cls{book}'s environments, but this is
2319 % where \file{classes.dtx} defines its environments (L2996), so we'll put
2322 % \begin{environment}{preamble}
2323 % \begin{environment}{DUTpreamble}
2325 \newenvironment{preamble}{%
2328 \pagenumbering{roman}
2330 % From Manual \S 3.1 p8, ``Title Page''.
2334 % From Manual \S 3.2 p9, ``Copyright Page''.
2339 % From the Manual \S 3.9, p11:
2341 % Include a blank page (with no page number) before the first page
2342 % of text. The blank page is neither numbered nor counted.
2348 % \LaTeX's |\newenvironment| and company work by defining |\X| and
2349 % |\endX| for the environment |X|. We can alias the preamble
2350 % environment by saving these macros.
2352 \let\DUTpreamble\preamble
2353 \let\endDUTpreamble\endpreamble
2358 % \begin{environment}{dedications}
2359 % \begin{environment}{DUTdedications}
2360 % From the Manual \S 3.3 p9
2362 % \item The heading |Dedications| must appear at the top of the
2363 % page. The heading must be bold, centered, and without
2365 % \item This page is counted and numbered in lowercase Roman numerals.
2368 \newenvironment{dedications}{%
2372 \pdfbookmark[0]{\DUTdedicationsname}{\DUTdedicationsname}
2374 \chapter*{\DUTdedicationsname}
2379 \let\DUTdedications\dedications
2380 \let\endDUTdedications\enddedications
2385 % \begin{environment}{acknowledgments}
2386 % \begin{environment}{DUTacknowledgments}
2387 % From the Manual \S 3.4 p9
2389 % \item The heading |Acknowledgments| must appear at the top of the
2390 % page. The heading must be bold, centered, and without
2392 % \item This page is counted and numbered in lowercase Roman numerals.
2395 \newenvironment{acknowledgments}{%
2399 \pdfbookmark[0]{\DUTacknowledgmentsname}{\DUTacknowledgmentsname}
2401 \chapter*{\acknowledgmentsname}
2407 \let\DUTacknowledgments\acknowledgments
2408 \let\endDUTacknowledgments\endacknowledgments
2412 % \begin{environment}{abstract}
2413 % \begin{environment}{DUTabstract}
2415 \newenvironment{abstract}{%
2416 \listed@schapter{\abstractname}%
2418 % Suck up some blank space to position the rest of the header right
2419 % under the chapter title.
2423 % From the Manual \S 3.9 p10
2426 % \item The following heading must be centered at the top of the page
2429 % Full Title of Dissertation or Thesis \\
2430 % Author's Name as it appears on the Dissertation or Thesis
2432 % In the example on p20, they list the advisor's name after the
2433 % author, but that is not specified in the text on p10.
2434 % \item The text begins four lines below this heading.
2440 % \item These pages are numbered using lowercase Roman numerals.
2441 % \item Note that the heading is single spaced, but the abstract
2460 \let\DUTabstract\abstract
2461 \let\endDUTabstract\endabstract
2466 % \begin{environment}{thesis}
2467 % \begin{environment}{DUTthesis}
2468 % From the Manual \S 3.10 p11
2470 % \item The pages are counted and numbered in Arabic numerals.
2473 \newenvironment{thesis}{%
2480 % \changes{0.8}{2010/05/20}{W.~Trevor King replaced Titlepage with
2481 % Title Page for consistency with \LaTeX's book class.}
2485 \pdfbookmark[-1]{Back Matter}{Back Matter}
2488 \let\DUTthesis\thesis
2489 \let\endDUTthesis\endthesis
2495 % \label{sec:implement-vita}
2497 % \begin{environment}{vita}
2498 % \begin{environment}{DUTvita}
2499 % From the Manual \S 3.15 p13
2501 % \item The heading |Vita| must appear at the top of the page. The
2502 % heading must be bold, centered, and without punctuation.
2503 % \item The Vita text should begin four spaces below the heading.
2504 % \item List the Vita separately in the Table of Contents.
2505 % \item The page is counted and numbered in Arabic numerals.
2508 \newenvironment{vita}{%
2509 \listed@schapter{\vitaname}
2515 \let\endDUTvita\endvita
2521 % \subsubsection{Titlepage}
2523 % \begin{environment}{titlepage}
2524 % In the normal environments, the titlepage environment does nothing
2525 % but start and end a page, and inhibit page numbers. We inhibit the
2526 % paging in draft mode, since it seems silly to waste a whole page on
2527 % the title. We also drop the \Lopt{twocolumn} code.
2528 % (\file{classes.dtx}, L3111)
2530 \renewenvironment{titlepage}%
2531 {\thispagestyle{empty}%
2532 \setcounter{page}\z@}%
2533 {\if@final \newpage \else \blanklinesp{2} \par \fi}
2534 \let\@DUT@titlepage\titlepage
2535 \let\end@DUT@titlepage\endtitlepage
2540 % \subsubsection{Appendix}
2541 % \label{sec:implement-appendix}
2543 % \begin{macro}{\appendix}
2544 % \begin{macro}{\DUTappendix}
2545 % The |\appendix| command is not really an environment, it is a
2546 % macro that makes some changes in the way things are done.
2548 % In the article document class the |\appendix| command must do the
2551 % \item reset the section and subsection counters to zero,
2552 % \item redefine |\thesection| to produce alphabetic appendix
2553 % numbers. This redefinition is done globally to ensure that it
2554 % survives even if |\appendix| is issued within an environment such
2555 % as \texttt{multicols}.
2558 % In addition to \cls{book}'s (or \pkg{hyperref}'s) activity, we
2559 % fiddle with the \pkg{tocloft} chapter settings add switch to global
2561 % (\file{classes.dtx}, L3177)
2563 \let\@DUT@appendix\appendix
2564 \renewcommand\appendix{%
2567 % Setup TOC entries like
2569 % Appendix A: Chapter Title
2571 % We don't need to worry about the |vita| environment (page
2572 % \pageref{sec:implement-vita}), because it is a |\listed@schapter|,
2573 % and therefore lacks a |\numberline| section in its \file{*.toc}
2576 % We increase |numwidth| to 6.5em to make room for |Appendix~| before
2577 % the chapter number/letter, and add a colon after it.
2579 % The |\protect| calls get the macros into \file{*.toc} unexpanded, so
2580 % they function correctly when \LaTeX\ parses \file{*.toc}.
2582 \addtocontents{toc}{%
2583 \protect\cftsetindents{chapter}{0pt}{6.5em}
2584 \protect\renewcommand{\protect\cftchappresnum}{\protect\appendixname~}
2585 \protect\renewcommand{\protect\cftchapaftersnum}{:}}
2587 % We also turn on double spacing by default, since we're no longer
2588 % wrapped in the |thesis| environment.
2592 \let\DUTappendix\appendix
2598 % \subsubsection{Table of Contents}
2599 % \label{sec:implement-toc}
2601 % From Manual \S 3.5 p9, ``Table of Contents'', and the example on p17.
2604 % \item Do not list any sections that precede the
2605 % |Table of Contents| (e.g., |Dedications|, |Acknowledgments|). Do
2606 % not list the |Table of Contents| itself.
2607 % \item These pages are counted and numbered in lowercase Roman numerals.
2611 % \begin{macro}{\cfttoctitlefont}
2612 % Take advantange of \pkg{tocloft}'s TOC title code.
2613 % (\file{tocloft.dtx}, L1501)
2615 % \cfttoctitlefont\contentsname}{\cftaftertoctitle}
2617 % by setting it equal to something ending in |\chapter*|. That way
2618 % \LaTeX parses the whole thing as
2620 % ...\chapter*\contentsname}{\cftaftertoctitle}
2622 % which will set up the TOC page correctly.
2624 \renewcommand\cfttoctitlefont{%
2626 % Start a new page in \Lopt{final} mode
2630 % Add a bookmark if we're using pdf\LaTeX.
2634 \pdfbookmark[0]{\contentsname}{\contentsname}
2637 % |\chapter*| to gobble and format the next token (|\contentsname|).
2643 % \begin{macro}{\aftertoctitleskip}
2644 % Don't add any extra space after the title (the chapter will take
2647 \setlength\cftaftertoctitleskip{0pt}
2651 % \begin{macro}{\l@cont@sep}
2652 % Define a length for TOC/LOF/LOT spacing.
2654 \newlength\l@cont@sep
2655 \set@lines@length{\l@cont@sep}{\@cont@sep}
2659 % \begin{macro}{\@cont@font}
2660 % Define a font for high level (part, chapter) entries.
2662 \newcommand{\@cont@font}{\normalsize\scshape}
2666 % \begin{macro}{\cftbeforepartskip}
2667 % \begin{macro}{\cftpartfont}
2668 % \begin{macro}{\cftpartleader}
2669 % \begin{macro}{\cftpartdotsep}
2670 % \begin{macro}{\cftpartpagefont}
2671 % Setup parts. See the \pkg{tocloft} manual for a description of the
2674 \setlength\cftbeforepartskip{\l@cont@sep}
2675 \cftsetindents{part}{0pt}{3em}
2676 \if@boldpart \renewcommand{\cftpartfont}{\bfseries\@cont@font}
2677 \else \renewcommand{\cftpartfont}{\@cont@font}
2678 \renewcommand{\cftpartleader}{\cftdotfill{\cftpartdotsep}}
2679 \if@dottedpart \renewcommand{\cftpartdotsep}{\cftdotsep}
2680 \else \renewcommand{\cftpartdotsep}{\cftnodots} \fi
2681 \renewcommand{\cftpartpagefont}{\normalfont}
2689 % \begin{macro}{\cftbeforechapskip}
2690 % \begin{macro}{\cftchapaftersnum}
2691 % \begin{macro}{\cftchapfont}
2692 % \begin{macro}{\cftchapleader}
2693 % \begin{macro}{\cftchapdotsep}
2694 % \begin{macro}{\cftchappagefont}
2695 % Setup chapters and appendicies. Some of these settings are adjusted
2696 % for appendicies in particular by |\appendix|
2697 % (Sec.~\ref{sec:implement-appendix}).
2699 \setlength\cftbeforechapskip{\l@cont@sep}
2700 \cftsetindents{chapter}{0pt}{1.5em}
2701 \renewcommand{\cftchapaftersnum}{.}
2702 \if@boldchapter \renewcommand{\cftchapfont}{\bfseries\@cont@font}
2703 \else \renewcommand{\cftchapfont}{\@cont@font} \fi
2704 \renewcommand{\cftchapleader}{\cftdotfill{\cftchapdotsep}}
2705 \if@dottedchapter \renewcommand{\cftchapdotsep}{\cftdotsep}
2706 \else \renewcommand{\cftchapdotsep}{\cftnodots} \fi
2707 \renewcommand{\cftchappagefont}{\normalfont}
2716 % \begin{macro}{\cftbeforesecskip}
2717 % \begin{macro}{\cftsecfont}
2718 % \begin{macro}{\cftbeforesubsecskip}
2719 % \begin{macro}{\cftsubsecfont}
2720 % \begin{macro}{\cftbeforesubsubsecskip}
2721 % \begin{macro}{\cftsubsubsecfont}
2722 % Setup sections, subsections, etc.
2724 %\cftsetindents{chap}{0pt}{1.5em}
2725 \setlength\cftbeforesecskip{\l@cont@sep}
2726 \cftsetindents{section}{0pt}{3em}
2727 \renewcommand{\cftsecfont}{\normalsize}
2728 \setlength\cftbeforesubsecskip{\l@cont@sep}
2729 \cftsetindents{subsection}{0pt}{4.5em}
2730 \renewcommand{\cftsubsecfont}{\cftsecfont}
2731 \setlength\cftbeforesubsubsecskip{\l@cont@sep}
2732 \cftsetindents{subsubsection}{0pt}{6em}
2733 \renewcommand{\cftsubsubsecfont}{\cftsecfont}
2742 % The default indents above are all |0pt|. If \Lopt{indenttoc} was
2743 % given, override this, restoring the \pkg{tocloft} defaults, see the
2744 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/tocloft/tocloft.pdf}{%
2745 % \pkg{tocloft} manual, Table 1}.
2748 \cftsetindents{chapter}{0pt}{1.5em}
2749 \cftsetindents{section}{1.5em}{2.3em}
2750 \cftsetindents{subsection}{3.8em}{3.2em}
2751 \cftsetindents{subsubsection}{7.0em}{4.1em}
2756 % \subsubsection{List of figures}
2757 % \label{sec:implement-lof}
2759 % From the Manual \S 3.7 p10
2762 % \item The heading |List of Figures| must appear at the top of
2764 % \item The heading must be bold, centered, and without
2765 % punctuation. List figure captions exactly as they appear
2766 % below the figures in the text.
2767 % \item Single space each entry, but double-space between entries.
2768 % \item Separate figure captions from page numbers with
2769 % right-justified tabs and dot leaders.
2770 % \item Do not use periods to separate captions and page numbers.
2771 % \item These pages are counted and numbered in lowercase Roman
2776 % \begin{macro}{\cftloftitlefont}
2777 % Much like our |\cfttoctitlefont|, but the list of figures gets
2778 % listed in the TOC.
2780 \renewcommand\cftloftitlefont{\listed@schapter}
2784 % \begin{macro}{\afterloftitleskip}
2785 % Don't add any extra space after the title (the chapter will take
2786 % care of that). Actually we make a one-line correction so the first
2787 % line matches the first line in the TOC. HACK!
2789 \setlength\cftafterloftitleskip{-12pt}
2793 % \begin{macro}{\cftbeforefigskip}
2794 % \begin{macro}{\cftfigindent}
2795 % \begin{macro}{\cftfigfont}
2796 % Setup figure entries.
2798 \setlength{\cftbeforefigskip}{\l@cont@sep}
2799 \setlength{\cftfigindent}{0pt}
2800 \renewcommand{\cftfigfont}{\normalsize\singlespace}
2807 % \subsubsection{List of tables}
2808 % \label{sec:implement-lot}
2810 % From the Manual \S 3.6 p10
2813 % \item The heading |List of Tables| must appear at the top of the
2815 % \item The heading must be bold, centered, and without
2817 % \item List table captions exactly as they appear above the
2818 % tables in the text.
2819 % \item Single space each entry, but double-space between entries.
2820 % \item Separate table captions from page numbers with
2821 % right-justified tabs and dot leaders.
2822 % \item Do not use periods to separate captions and page numbers.
2823 % These pages are counted and numbered in lowercase Roman
2828 % \begin{macro}{\cftlottitlefont}
2829 % Much like our |\cfttoctitlefont|, but the list of tables gets
2830 % listed in the TOC.
2832 \renewcommand\cftlottitlefont{\listed@schapter}
2836 % \begin{macro}{\afterlottitleskip}
2837 % Don't add any extra space after the title (the chapter will take
2838 % care of that). Actually we make a one-line correction so the first
2839 % line matches the first line in the TOC. HACK!
2841 \setlength\cftafterlottitleskip{-12pt}
2845 % \begin{macro}{\cftbeforetabskip}
2846 % \begin{macro}{\cfttabindent}
2847 % \begin{macro}{\cfttabfont}
2848 % Setup table entries.
2850 \setlength{\cfttabindent}{0pt}
2851 \setlength{\cftbeforetabskip}{\l@cont@sep}
2852 \renewcommand{\cfttabfont}{\normalsize\singlespace}
2859 % \subsubsection{Bibliography}
2861 % \begin{environment}{thebibliography}
2862 % The |thebibliography| environment is a list environment. To save the
2863 % use of an extra counter, it should use |enumiv| as the item
2865 % Instead of using |\item|, items in the bibliography are produced by
2866 % the following commands:\\
2867 % |\bibitem|\marg{name} : Produces a numbered entry cited as
2869 % |\bibitem|\oarg{label}\marg{name} : Produces an entry labeled by
2870 % \meta{Label} and cited by \meta{name}.
2872 % Override \cls{book}'s version, adding a line to the table of
2873 % contents. We split out the section-creation code into
2874 % |\bib@heading| for \pkg{natbib} compatibility.
2875 % (\file{classes.dtx}, L4063).
2877 \renewenvironment{thebibliography}[1]
2879 \list{\@biblabel{\@arabic\c@enumiv}}%
2880 {\settowidth\labelwidth{\@biblabel{#1}}%
2881 \leftmargin\labelwidth
2882 \advance\leftmargin\labelsep
2884 \usecounter{enumiv}%
2885 \let\p@enumiv\@empty
2886 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
2888 % Because it's hard to do line breaks in bibliographies.
2892 % This is setting the normal (non-infinite) value of
2893 % |\clubpenalty| for the whole of this environment,
2894 % so we must reset its stored value also. (Why is there a |%| after
2895 % the second 4000 below?)
2898 \@clubpenalty \clubpenalty
2901 % Cause a `.' (period) not to produce an end-of-sentence space.
2905 % Warn if an empty `thebibliography' environment is found.
2908 {\@latex@warning{Empty `thebibliography' environment}}%
2913 % \begin{macro}{\bib@heading}
2914 % \pkg{natbib} messes with |thebibliography|. We setup |\bib@heading|
2915 % so we will still get our table of contents entry.
2917 \newcommand{\bib@heading}{%
2918 \listed@schapter{\bibname}%
2924 % \subsubsection{Index}
2926 % \begin{environment}{theindex}
2927 % The environment |theindex| can be used for indices. It makes an
2928 % index with two columns, with each entry a separate paragraph. At
2929 % the user level the commands |\item|, |\subitem| and |\subsubitem|
2930 % are used to produce index entries of various levels. When a new
2931 % letter of the alphabet is encountered an amount of |\indexspace|
2932 % white space can be added.
2934 % Override \cls{book}'s version, adding a line to the table of
2935 % contents. We split out the section-creation code into
2936 % |\bib@heading| for \pkg{natbib} compatibility.
2937 % (\file{classes.dtx}, L4107).
2939 \renewenvironment{theindex}
2946 % Here we add our TOC entry, and setup two-columness by hand
2947 % to avoid the |\clearpage| in \LaTeX's default |\twocolumn|.
2949 \listed@schapter{\indexname}
2950 \global\columnwidth\textwidth
2951 \global\advance\columnwidth-\columnsep
2952 \global\divide\columnwidth\tw@
2953 \global\hsize\columnwidth
2954 \global\linewidth\columnwidth
2955 \global\@twocolumntrue
2956 \global\@firstcolumntrue
2959 % Parameter changes to |\columnseprule| and |\columnsep| have to be
2960 % done after |\twocolumn| has acted. Otherwise they can affect the
2961 % last page before the index.
2964 \parskip\z@ \@plus .3\p@\relax
2969 % When the document continues after the index and it was a one
2970 % column document we have to switch back to one column after the
2973 {\if@restonecol\onecolumn\else\@DUT@clearpage\fi}
2978 % \subsubsection{Words}
2981 % Set the official names of the various sections encountered. Some of
2982 % these are not defined in \file{classes.dtx} but are close analogs of
2985 % \begin{macro}{\dedicationsname}
2986 % From the Manual \S 3.3 p9, ``The heading |Dedications| must appear at
2987 % the top of the page.''
2989 \newcommand\dedicationsname{Dedications}
2990 \let\DUTdedicationsname\dedicationsname
2994 % \begin{macro}{\acknowledgmentsname}
2995 % From the Manual \S 3.4 p9, ``The heading |Acknowledgments| must appear
2996 % at the top of the page.''
2998 \newcommand\acknowledgmentsname{Acknowledgments}
2999 \let\DUTacknowledgmentsname\acknowledgmentsname
3003 % \begin{macro}{\contentsname}
3004 % From the Manual \S 3.5 p9, ``The heading |Table of Contents| must
3005 % appear at the top of the page.'' (\file{classes.dtx}, L4331)
3007 \renewcommand\contentsname{Table of Contents}
3008 \let\DUTcontentsname\contentsname
3012 % \begin{macro}{\listtablename}
3013 % From the Manual \S 3.6 p10, ``The heading |List of Tables| must appear
3014 % at the top of the page.'' (\file{classes.dtx}, L4333)
3016 \renewcommand\listtablename{List of Tables}
3017 \let\DUTlisttablename\listtablename
3021 % \begin{macro}{\listfigurename}
3022 % From the Manual \S 3.7 p10, ``The heading |List of Figures| must appear
3023 % at the top of the page.'' (\file{classes.dtx}, L4332)
3025 \renewcommand\listfigurename{List of Figures}
3026 \let\DUTlistfigurename\listfigurename
3030 % \begin{macro}{\abstractname}
3031 % From the Manual \S 3.8 p10, ``The following heading must be centered at
3032 % the top of the first page: |Abstract|\ldots.''
3033 % (\file{classes.dtx}, L4367)
3035 \newcommand\abstractname{Abstract}
3036 \let\DUTabstractname\abstractname
3040 % \begin{macro}{\bibname}
3041 % From the Manual \S 3.13 p12, ``The heading |Bibliography| (or
3042 % |List of References|) must appear at the top of first page.''
3043 % (\file{classes.dtx}, L4344)
3045 \renewcommand\bibname{Bibliography}
3046 \let\DUTbibname\bibname
3050 % \begin{macro}{\appendixname}
3051 % From the Manual \S 3.14 p12, ``Number the appendicies consecutively
3052 % either alphabetically or numerically (|Appendix A|, |Appendix B|\ldots
3053 % or |Appendix 1|, |Appendix 2|\ldots).''
3054 % (\file{classes.dtx}, L4366)
3056 \renewcommand\appendixname{Appendix}
3057 \let\DUTappendixname\appendixname
3061 % \begin{macro}{\vitaname}
3062 % From the Manual \S 3.15 p13, ``The heading |Vita| must appear at the
3063 % top of the page.''
3065 \newcommand\vitaname{Vita}
3066 \let\DUTvitaname\vitaname
3070 % \begin{macro}{\DUTnames}
3071 % Some packages (e.g.,
3072 % \href{http://www.ctan.org/tex-archive/macros/latex/required/babel/}{%
3074 % mess with our |\*name| values and we have to restore them.
3075 \newcommand{\DUTnames}{%
3076 \gdef\dedicationsname{\DUTdedicationsname}%
3077 \gdef\contentsname{\DUTcontentsname}%
3078 \gdef\listtablename{\DUTlisttablename}%
3079 \gdef\listfigurename{\DUTlistfigurename}%
3080 \gdef\bibname{\DUTbibname}%
3081 \gdef\appendixname{\DUTappendixname}%
3082 \gdef\vitaname{\DUTvitaname}%
3087 % \subsection{Remaining details}
3090 % \subsubsection{Terminal blank page}
3092 % Add a terminal blank page (when |\if@final| is true)
3093 % From the Manual \S 3.16 p13
3095 % Include a blank page (with no page number) at the end of the
3096 % thesis or dissertation. The blank page is neither counted nor
3100 \AtEndDocument{\@DUT@blankpage}
3109 % \section{Examples}
3112 % \subsubsection{Template}
3116 % See drexel-thesis.pdf for details.
3117 \documentclass{drexel-thesis}
3119 %% Enter the appropriate information here
3120 \author{} % Fullname
3121 \title{} % Title Of Thesis
3122 \DUTmonth{} % Name of the month of you defense
3123 \DUTyear{} % Year you are defending
3124 \degree{} % Your target degree, spelled out
3125 \advisor{} % Advisor's full name, degree
3126 \copyrighttext{} % If not "All Rights Reserved."
3128 %% unsrt style give references in order of citation
3129 \bibliographystyle{unsrt}
3134 \begin{dedications} % OPTIONAL
3135 %% Type dedications here
3138 \begin{acknowledgments} % OPTIONAL
3139 %% Type acknowledgments here
3140 \end{acknowledgments}
3143 \listoftables % If you have tables
3144 \listoffigures % If you have figures
3147 %% Type abstract here
3152 %% If your thesis does not use \part{}s, you may want to add a
3153 %% part-level PDF bookmark to set the main matter of from the front
3155 %%\pdfbookmark[-1]{Main Matter}{Main Matter}
3157 %% Use include statements to include your main thesis code
3158 %% from seperate files.
3163 \bibliography{references} % Include references.bib BibTeX
3165 \appendix % If you have appendices
3166 %% include files with your appendicies (if any) here
3167 %%\include{appendixA}
3170 \begin{vita} % Ph.D. only.
3179 % \subsection{A better example}
3180 % \label{sec:better-example}
3182 % \subsubsection{Main}
3185 %<*example|example-draft>
3186 %% See drexel-thesis.pdf for details.
3187 %<example>\documentclass[subfig]{drexel-thesis}
3188 %<example-draft>\documentclass[draft,subfig]{drexel-thesis}
3190 %% Enter the appropriate information here
3191 \author{Johny Henry}
3192 \title{Inadequacies of Steam-Driven Boring Machines}
3195 \degree{Doctor of Philosophy}
3196 \advisor{Collis Potter Huntington, R.R.D.}
3197 \advisor{Advisor 2, Ph.D.}
3198 \advisor{Advisor 3, Ph.D.}
3199 \copyrighttext{\copyrighttextCCBYSA}
3201 \usepackage[super,sort&compress]{natbib} % fancy citation extensions
3202 \bibliographystyle{unsrtnat}
3204 \usepackage{fancyvrb} % nicer verbatim handling
3205 \DefineShortVerb{\|} % \verb+TEXT+ -> |TEXT|
3208 % Sometimes other packages clobber \cls{drexel-thesis}'s macros and
3209 % environments. It's ok though, the originals are all aliased to
3210 % |\DUT*|. We'll just have to use |DUTpreamble| instead.
3212 \renewenvironment{preamble}{% look, we're clobbering an environment!
3213 What preamble?\begingroup\color{white}}{\endgroup}
3217 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/blindtext/}%
3219 % for dummy text creation. \pkg{blindtext} requires
3220 % \href{http://www.ctan.org/tex-archive/macros/latex/required/babel/}%
3223 \usepackage[english]{babel} % English blindtext
3224 \usepackage{blindtext} % macros for producing dummy output
3226 % \pkg{babel} messes with some of our words (\S \ref{sec:words}), so
3227 % we have to reset them. See the
3228 % \href{http://www.tex.ac.uk/cgi-bin/texfaq2html?label=latexwords}{\TeX\ FAQ}
3231 \addto\captionsenglish{\DUTnames}
3234 \begin{DUTpreamble} % "DUT" because original preamble was clobbered.
3237 We're in \iffinal{final}{draft} mode!
3242 \begin{acknowledgments}
3244 \end{acknowledgments}
3259 \bibliography{example-ref}
3269 %</example|example-draft>
3273 % \subsubsection{Part}
3274 % \label{section:better-example-part}
3278 \part{A Part Heading}
3279 \chapter{A Chapter Heading}
3280 \section{A Section Heading}
3281 The following sectioning commands are available:
3293 You can cite your references with |natbib|'s |\citet| and |\citep|
3295 \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}
3296 {the natbib manual} for details.
3298 Here we have a text citation \citet{rief97} followed by a
3299 parenthetical citation\citep{rief97}.
3301 \subsubsection{Tables and Figures}
3305 \begin{tabular}{r@{.}l r@{.}l r@{.}l}
3306 \multicolumn{2}{c}{Time (s)} &
3307 \multicolumn{2}{c}{John Henry (m)} &
3308 \multicolumn{2}{c}{Steam drill (m)} \\
3310 10&0 & 4&3 & 3&75 \\
3311 30&0 & 11&9 & 10&1 \\
3314 \caption{A table float.} % low caption allowed with floatrow
3315 %% Note the strange |r@{.}l| notation in the |\tabular| column
3316 %% definition. This allows for numbers aligned at the decimal point
3317 %% (see \href{http://www.stat.unipg.it/tex-man/ltx-68.html}{here}).
3319 %% |\multicolumn{num_cols}{alignment}{contents}| allows the headings
3320 %% to span the pre- and post-decimal columns.
3325 \caption{A figure float. \blindtext} % high caption allowed with floatrow
3327 \includegraphics[width=0.4\textwidth]{drexel-logo}
3334 \includegraphics[width=0.2\textwidth]{drexel-logo}%
3337 \includegraphics[width=0.2\textwidth]{drexel-logo}%
3339 \caption{(a) One subfig float. (b) Another subfig float.%
3343 You can reference the subfig floats individually (\ref{fig:sub-a}) or
3344 together (\ref{fig:both}).
3349 \chapter{Another Chapter}
3351 \chapter{A Long Title Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla
3352 Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla}
3358 % \subsubsection{\BibTeX}
3360 % What goes into the \BibTeX\ file |example-ref.bib|?
3361 % For more information, check out this
3362 % \href{http://cmtw.harvard.edu/Documentation/TeX/Bibtex/Example.html}{basic tutorial}.
3363 % If you want to get deeper, take a look at
3364 % \href{http://www.ctan.org/tex-archive/info/bibtex/tamethebeast/}{Tame the BeaST}.
3366 % \href{http://www.andy-roberts.net/misc/latex/latextutorial3.html}{how the process works},
3367 % \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node6.html}{entry types},
3368 % \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node7.html}{fields},
3369 % \href{http://en.wikipedia.org/wiki/BibTeX}{entries and fields},
3370 % \href{http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html}{assorted style examples}, and
3371 % \href{http://liinwww.ira.uka.de/bibliography/Bib.Format.html}{assorted \BibTeX tools}.
3373 % Here is an example \BibTeX\ file to get you started. We define
3374 % strings for the publishers, journals, and authors to avoid
3375 % duplication, minimize the risk of typos, etc.
3378 %<*example-bibtex-refs>
3380 @String{APS = "American Physical Society"}
3383 @String{SCI = "Science"}
3386 @String{MRief = "Rief, Matthias"}
3387 @String{MGautel = "Gautel, Mathias"}
3388 @String{FOesterhelt = "Oesterhelt, Filipp"}
3389 @String{JFernandez = "Fernandez, Julio M."}
3390 @String{HGaub = "Gaub, Hermann E."}
3394 author = MRief #" and "# MGautel #" and "# FOesterhelt #" and "#
3395 JFernandez #" and "# HGaub,
3396 title = "Reversible Unfolding of Individual Titin Immunoglobulin
3401 pages = "1109--1112",
3403 doi = "10.1126/science.276.5315.1109",
3404 URL = "http://www.sciencemag.org/cgi/content/abstract/276/5315/1109",
3405 eprint = "http://www.sciencemag.org/cgi/reprint/276/5315/1109.pdf",
3406 mynote = "Seminal paper for force spectroscopy on Titin. Cited by
3407 Dietz '04 (ref 9) as an example of how unfolding large
3408 proteins is easily interpreted (vs.\ confusing unfolding in
3409 bulk), but Titin is a rather simple example of that, because
3410 of its globular-chain structure.",
3413 %</example-bibtex-refs>
3417 % \subsubsection{Appendix}
3420 %<*example-appendix>
3421 \chapter{Some Appendix Heading}
3423 \chapter{Another Appendix Heading}
3425 %</example-appendix>
3429 % \section{Known bugs and issues}
3432 % \subsection{Hacks}
3435 % \item |\vspace*{0\p@}| space between page top and chapter
3436 % headings (|\@makechapterhead| and |\@makeschapterhead|,
3437 % Sec.~\ref{sec:implement-chapters}).
3438 % \item Extra space under LOT and LOF titles compared to TOC.
3439 % (Secs.~\ref{sec:implement-lof} and \ref{sec:implement-lot}).
3446 % \item Different space between chapter heading and section heading,
3447 % vs.\ chapter heading and text. Compare \emph{A Chapter Heading}
3448 % and \emph{Another Chapter} in \file{example.pdf}. This is a
3449 % problem (although with opposite order) in the \cls{book} class
3450 % itself. For example, compile
3452 %\documentclass{book}
3454 %\chapter{Chapter with text}
3456 %\chapter{Chapter with section}
3461 % \item Footer overlap if chapter/section names are particularly long.
3462 % See \emph{Section in long-titled chapter} in \file{example.pdf}.
3463 % Workaround: turn off sections in the footer:
3465 % \fancyfoot[RE,LO]{\scshape\leftmark}
3466 % \fancyfoot[LE,RO]{}
3468 % For more header or footer manipulation ideas, see \S \ref{sec:fancyhdr}.