1 % \def\fileversion{0.3}
2 % \def\filedate{2010/01/09}
3 % \iffalse meta-comment
4 %<class>\def\fileversion{0.3}
5 %<class>\def\filedate{2010/01/09}
7 % Copyright (C) 2010 W. Trevor King, Daniel J. Cross, T. Tsankov, and
9 % -------------------------------------------------------
11 % This file may be distributed and/or modified under the
12 % conditions of the LaTeX Project Public License, either version 1.3
13 % of this license or (at your option) any later version.
14 % The latest version of this license is in:
16 % http://www.latex-project.org/lppl.txt
18 % and version 1.3 or later is part of all distributions of LaTeX
19 % version 2003/12/01 or later.
21 % Based on Scott Pakin's dtxtut/cskeleton.dtx
22 % http://www.ctan.org/tex-archive/info/dtxtut/
26 % \iffalse meta-comment
28 \ProvidesFile{drexel-thesis.dtx}
30 %<class>\NeedsTeXFormat{LaTeX2e}
31 %<class>\ProvidesClass{drexel-thesis}
32 %<class> [\filedate\ \fileversion\ Drexel Thesis]
34 % Code for the .ini driver, see section "2.1 The driver file" of doc.dtx.
36 \documentclass{ltxdoc}
37 \usepackage[colorlinks=true]{hyperref}
39 % Include some useful commands from |xkeyval|'s |<preamble>|.
43 \lstnewenvironment{command}{%
44 \lstset{columns=flexible,frame=single,backgroundcolor=\color{blue!20},%
45 xleftmargin=\fboxsep,xrightmargin=\fboxsep,escapeinside=`',gobble=1}}{}
46 \lstnewenvironment{example}{%
47 \lstset{basicstyle=\footnotesize\ttfamily,columns=flexible,frame=single,%
48 backgroundcolor=\color{yellow!20},xleftmargin=\fboxsep,%
49 xrightmargin=\fboxsep,gobble=1}}{}
51 % Define a quick and dirty version of |xkeyval|'s |\DescribeOptions|.
53 \newenvironment{option}[1]{\begin{macro}{#1}}
56 % Some commonly used abbreviations from |classes.dtx|.
58 \newcommand*{\Lopt}[1]{\textsf {#1}}
59 \newcommand*{\file}[1]{\texttt {#1}}
60 \newcommand*{\Lcount}[1]{\textsl {\small#1}}
61 \newcommand*{\pstyle}[1]{\textsl {#1}}
65 \def\DescribeOption#1{\leavevmode\@bsphack
66 \marginpar{\raggedleft\PrintDescribeOption{#1}}%
67 \SpecialOptionIndex{#1}\@esphack\ignorespaces}
68 \def\PrintDescribeOption#1{\strut\emph{option}\\\MacroFont #1\ }
69 \def\SpecialOptionIndex#1{\@bsphack
70 \index{#1\actualchar{\protect\ttfamily#1}
71 (option)\encapchar usage}%
72 \index{options:\levelchar#1\actualchar{\protect\ttfamily#1}\encapchar
74 \def\DescribeOptions#1{\leavevmode\@bsphack
75 \marginpar{\raggedleft\strut\emph{options}%
77 \\\strut\MacroFont\@tempa\SpecialOptionIndex\@tempa
78 }}\@esphack\ignorespaces}
86 \DocInput{drexel-thesis.dtx}
94 % {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
95 % 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
96 % Digits \0\1\2\3\4\5\6\7\8\9
97 % Exclamation \! Double quote \" Hash (number) \#
98 % Dollar \$ Percent \% Ampersand \&
99 % Acute accent \' Left paren \( Right paren \)
100 % Asterisk \* Plus \+ Comma \,
101 % Minus \- Point \. Solidus \/
102 % Colon \: Semicolon \; Less than \<
103 % Equals \= Greater than \> Question mark \?
104 % Commercial at \@ Left bracket \[ Backslash \\
105 % Right bracket \] Circumflex \^ Underscore \_
106 % Grave accent \` Left brace \{ Vertical bar \|
107 % Right brace \} Tilde \~}
110 % \changes{0.1}{2006/01/18}{Rewrite by Daniel J.~Cross}
111 % \changes{0.2}{2010/01/09}{W.~Trevor King transitioned from thesis.cls
112 % to drexel-thesis.dtx and did a good deal of reorganizing.}
113 % \changes{0.3}{2010/01/11}{W.~Trevor King merged drexelthesis.cls
114 % developed in the Comp.~Sci.~Department by Jeff Abrahamson,
115 % Evan Sultanik, C.Y.~Ip, Christopher S.~Dahn, Christopher D.~Cera,
116 % Mitchell Peabody, David T.~McWherter, and Vincent A.~Cicirello.
117 % Based on the University of Toronto Thesis \LaTeXe\ Class. Also
118 % greatly improved the documentation by incorperating bits of
119 % the base/*.dtx files.}
122 % \newcommand{\pkg}[1]{\textsf{#1}}
123 % \newcommand{\cls}[1]{\textsf{#1}}
124 % ^^A\newcommand{\BibTeX}{{\sc Bib}\TeX}
126 % \title{The \textsf{drexel-thesis} class\thanks{This document
127 % corresponds to \textsf{drexel-thesis}~\fileversion, dated \filedate.}}
128 % \author{W.~Trevor King \\\texttt{wking@drexel.edu}
129 % \and Daniel J.~Cross \and T.~Tsankov \and R.~Rojas.}
135 % \section{Introduction}
137 % This package defines a \LaTeX\ thesis class for Drexel University
139 % \href{http://www.library.drexel.edu/files/services_documents/thesismanual.pdf}
140 % {Drexel University Thesis Manual version 2009/06/01}.
144 % To write a thesis, you load the Drexel thesis definitions by loading
145 % the \pkg{drexel-thesis} class at the beginning of your
146 % \LaTeX\ document with the |\documentclass| command. For example,
148 % \documentclass{drexel-thesis}
151 % \subsection{Options}
153 % \DescribeOptions{final,draft}
154 % The default option (selected if not options are passed) is
155 % \Lopt{final} mode, which has all the proper formatting and spacing
156 % for your final product. The other main option is \Lopt{draft} mode,
157 % which reduces all the spacing in the document, so might be helpful
158 % when printing out drafts (saves paper).
160 % \Lopt{final} mode corresponds to (with Thesis Manual chapter and
162 % \begin{tabular}{r p{0.8\textwidth}}
163 % \Lopt{oneside} & 1.5 Library Submission Information, Print
164 % Version: ``All copies must be: \ldots Typed/printed on only one
165 % side of the page (not double-sided).'' \\
166 % \Lopt{finalspace} & Assorted single, double, and triple spacing
168 % \Lopt{dottedtoc} & From the example on p17.
171 % \Lopt{draft} mode corresponds to \\
172 % \begin{tabular}{r p{0.8\textwidth}}
173 % \Lopt{twoside} & Save space. \\
174 % \Lopt{draftspace} & Save space. \\
175 % \Lopt{dottedtoc} & Might as well be consistent with \Lopt{final}. \\
176 % \Lopt{draftwatermark} & It's good to have a timestamp. \\
179 % \DescribeOption{finalspace}
182 % \DescribeOption{draftspace}
185 % \DescribeOptions{dottedtoc,boldtoc,
186 % dottedpart,boldpart,
187 % dottedchapter,boldchapter}
188 % These options change how the relevant TOC lines are printed
189 % \LaTeX\ defaults to bold but not dots. The \Lopt{*toc} options set
190 % all of the types. For example, \Lopt{boldtoc} is equivalent to
191 % \Lopt{boldchapter,boldpart}.
193 % \DescribeOption{draftwatermark}
194 % \Lopt{draftwatermark} adds ``DRAFT \meta{date}'' watermarks to each
195 % page. A useful way to remember that the version you're looking at
196 % is not final. Also helps reviewers tell you what version they're
200 % \subsubsection{Interesting \cls{book} options}
202 % \DescribeOption{oneside}
203 % Setup output for one-sided printing.
205 % \DescribeOption{twoside}
206 % Setup output for two-sided printing.
208 % \DescribeOption{leqno}
209 % \Lopt{leqno} places the numbering of formulae on the left hand side
210 % instead of the right.
212 % \DescribeOption{fleqn}
213 % \Lopt{fleqn} typesets displayed formulae left-aligned instead of
217 % \subsection{Macros}
220 % `\cs{author}\marg{name}'
222 % \DescribeMacro{\author}
223 % Use this macro to set your full name to \meta{name}, including
224 % your middle initial or name. For example
226 % \name{Richard P. Feynman}
228 % See the Manual 3.1 p8.
231 % `\cs{title}\marg{title}'
233 % \DescribeMacro{\title}
234 % Use this macro to set your thesis title to \meta{name}. For example
236 % \title{A New Approach to Quantum Theory}
238 % See the Manual p16.
241 % `\cs{advisor}\marg{name}'
243 % \DescribeMacro{\advisor}
244 % Use this macro to set your advisor's name to \meta{name}. For
247 % \advisor{John A. Wheeler, Ph.D.}
249 % See the Manual 3.1 p8.
252 % `\cs{defmonth}\marg{month}'
253 % `\cs{defyear}\marg{year}'
255 % \DescribeMacro{\defmonth}
256 % \DescribeMacro{\defyear}
257 % Use these macros to set the month with \meta{month} (spelled out)
258 % and year with \meta{year} (four digits) of your thesis defense. For
264 % See the Manual 3.1 p8.
265 % The |def| in |\def*| avoids collisions with the plain \TeX\
266 % |\month| and |\year| (see the
267 % \href{http://www.tug.org/utilities/plain/cseq.html#month-rp}{month}
269 % \href{http://www.tug.org/utilities/plain/cseq.html#year-rp}{year}
270 % entries in the HTML version of David Bausum's \emph{TeX Reference
274 % `\cs{degree}\marg{degree}'
276 % \DescribeMacro{\degree}
277 % Set your target degree with \meta{degree}. From the Manual 3.1 p8.
279 % Write out the name of the degree for which you are a candidate.
280 % All Ph.D.\ candidates must use |Doctor of Philosophy|. All
281 % Master's degree candidates should use the precise degree name
282 % (e.g., |Master of Science in Mechanical Engineering|).
284 % So, for a Ph.D candidate,
286 % \degree{Doctor of Philosophy}
290 % `\cs{copyrighttext}\marg{text}'
292 % \DescribeMacro{\copyrighttext}
293 % Use this macro to set the copyright text to \meta{text}.
294 % The default value is ``All Rights Reserved.''.
296 % \copyrighttext{Released to the Public Domain.}
298 % See the Manual 3.2 p9.
301 % `\cs{copyrighttextCC}'
303 % There are a number of predefined copyright messages for ease of use \\
304 % \begin{tabular}{l l}
305 % |\copyrighttextCC| & Creative Commons copyright \\
309 % `\cs{tableofcontents}'
311 % \DescribeMacro{\tableofcontents}
312 % Write the table of contents (Manual 3.5 p9). You can control the
313 % verbosity by setting |\tocdepth| according to the following table
314 % (\href{http://www.image.ufl.edu/help/latex/intext.shtml}{source}). \\
315 % \begin{tabular}{l l l}
316 % Depth in document & Section Command & Depth for |\secnumdepth| Command \\
317 % -1 & |\part| & 1 \\
318 % 0 & |\chapter| & 2 \\
319 % 1 & |\section| & 3 \\
320 % 2 & |\subsection| & 4 \\
321 % 3 & |\subsubsection| & 5 \\
322 % 4 & |\paragraph| & 6 \\
323 % 5 & |\subparagraph| & 7
325 % For example, to expose everything down to and including the
326 % |\subsection| level, you would add
328 % \setcounter{tocdepth}{2}
330 % to your preamble (the section before |\begin{document}|, not the
331 % |preamble| environment discussed below).
333 % Note that the Manual 3.5 p9 requires ``List chapter titles and at
334 % least the first and second order subdivisions.'', which corresponds
335 % to a |\tocdepth| of at least 2.
338 % `\cs{listoftables}'
340 % \DescribeMacro{\listoftables}
341 % Write the List of Tables page (Manual 3.7 p10).
342 % Skip if you have no tables in your thesis.
345 % `\cs{listoffigures}'
347 % \DescribeMacro{\listoffigures}
348 % Write the List of Figures page (Manual 3.7 p10).
349 % Skip if you have no figures in your thesis.
352 % `\cs{blanklines}\marg{num}'
354 % \DescribeMacro{\blanklines}
355 % Insert \meta{num} blank lines. For example
359 % The skipped lines are always \emph{single spaced} lines, regardless
360 % of the current line spacing in the environment calling this macro.
363 % \subsection{Environments}
365 % \DescribeEnv{preamble}
366 % Generalize the |\frontmatter| for the thesis, setting up page
367 % numbering, including the title page, copyright page etc. The
368 % |preamble| environment should contain the following elements
369 % (in order, see the Manual p8)
371 % \item |dedication| environment (optional)
372 % \item |acknowledgments| environment (optional)
373 % \item |\tableofcontents|
374 % \item |\listoftables|
375 % \item |\listoffigures|
376 % \item |abstract| environment
378 % This will take care of everything from the title page (Manual 3.1),
379 % up through the blank page before the text (Manual 3.9).
381 % \DescribeEnv{dedications}
382 % Set the dedications text.
383 % Highlights from the Manual 3.3 p9:
385 % The |Dedications| page is optional.
388 % \DescribeEnv{acknowledgments}
389 % Set the acknowledgments text.
390 % Highlights from the Manual 3.4 p9:
392 % The |Acknowledgments| page is optional, but most theses do
393 % include a brief statement of thanks or recognition of any special
397 % \DescribeEnv{abstract}
398 % Set the thesis abstract text. In the Thesis Manual, see section 3.8
399 % Abstract (p10) for details, p20 for an example.
401 % Highlights from the Manual:
403 % The abstract is a summary that allows readers to determine the
404 % value of reading the full thesis. It should include a statement
405 % of the problem, an outline of procedures or methods, and a summary
406 % of results and conclusions.
409 % \item Word limits: 600 for a Master's thesis, 350 for a Ph.D.\ thesis.
412 % \DescribeEnv{thesis}
413 % Set the thesis text. In the Thesis Manual, see section 3.10 Thesis
416 % Highlights from the Manual:
418 % Divide the text into its major parts/chapters/subsections. No
419 % fixed arrangement is necessary. The major parts may contain such
420 % subjects as introduction, general argument, description of
421 % experimental procedures, research methods, discussion, summary,
422 % conclusions, recommendations, and other pertinent topics that are
423 % necessary for a complete understanding on the part of a
424 % sophisticated or professional reader.
428 % Set the thesis vita text (Ph.D.\ only). See the Manual 3.15 p12,
429 % ``Vita'', for details.
431 % Highlights from the Manual:
433 % The Vita is a biography of the student written in the third person
434 % in either essay or outline form. It should include the full name,
435 % place and date of birth (optional), country of citizenship
436 % (optional), institutions attended, degrees and honors received,
437 % titles of publications, teaching and professional experience, and
438 % other pertinent data. The Vita must be one page or less.
445 % \subsubsection{Package installation}
446 % \label{sec:dependencies}
448 % All the packages this class depends on must be installed somewhere
449 % in your texmf tree (they probably already are). If not, you will
450 % recieve warning messages on compilation such as
452 % ! LaTeX Error: File `missing-package.sty' not found.
454 % You should then install the missing package(s) using your operating
455 % systems package manager, or grab the missing package from
456 % \href{http://www.ctan.org/}{CTAN}, and install them following TODO.
459 % \subsubsection{Tables and Figures}
461 % From the Manual 2.3 p6, ``Tables and Figures'',
463 % Place figure captions below figures.
464 % Place table captions above tables.
466 % so make sure the |\caption| command is in the appropriate location.
470 % \caption{Some caption text}
471 % \begin{tabular}{...}
479 % \includegraphics{...}
480 % \caption{Some caption text}
483 % \pkg{drexel-thesis} loads
484 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
485 % to define the |\includegraphics| macro. For more useful
486 % float information, see the
487 % \href{http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions}
488 % {\LaTeX\ wikibook page}.
491 % \subsubsection{Citations}
493 % I highly recommend using \BibTeX\ and
494 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}{\pkg{natbib}}.
495 % See Section \ref{sec:better-example} for a simple example.
497 % Suggested options:\\
498 % \begin{tabular}{r p{0.8\textwidth}}
499 % |super| & selects citations in superscript mode. \\
500 % |sort&compress| & automatically sorts and compresses compound
501 % citations (|\pcite{a,b,...}|).
505 % \subsubsection{References}
507 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/cleveref/}{\pkg{cleveref}}.
508 % Is a wonderful tool for easy, consistent crosslinking. The manual is also very good.
511 % \subsubsection{Hyperlinks}
513 % \cls{drexel-thesis} loads
514 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{\pkg{hyperref}}.
515 % with the options:\\
516 % \begin{tabular}{r p{0.8\textwidth}}
517 % |colorlinks| & color the link letters instead of drawing colored boxes. \\
520 % If running with a pdftex-based driver, |\author|, |\title|, and
521 % |\degree| automatically set |pdfauthor|, |pdftitle|, and
522 % |pdfsubject| respectively. You can use the |\hypersetup| macro to
523 % set options overriding these defaults.
526 % \StopEventually{\pagebreak\PrintChanges}
529 % \section{Implementation}
534 % For simplicity, we'll derive everything from the standard \cls{book}
538 % \subsection{Option Processing}
541 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xkeyval/}{\pkg{xkeyval}}
542 % for easier option parsing. If the package is not installed on your system,
543 % see Section \ref{sec:dependencies} for installation instructions.
545 \RequirePackage{xkeyval}
548 % Define some booleans to store option states
550 \newif\if@mainmatter \@mainmattertrue
551 \newif\if@dottedchapter
552 \newif\if@boldchapter
555 \newif\if@draftwatermark
557 \newif\if@final \@finalfalse
560 % \begin{option}{finalspace}
562 \DeclareOptionX{finalspace}{
563 \setlength\overfullrule{0pt}
564 \def\@cont@sep{1} % content page separation (# blanklines between entries)
565 \def\@ssp{1} % single space
566 \def\@dsp{2} % double space
567 \def\@tsp{3} % triple space
572 % \begin{option}{draftspace}
574 \DeclareOptionX{draftspace}{
575 \setlength\overfullrule{5pt}
576 \def\@cont@sep{0} % content page separation (# blanklines between entries)
577 \def\@ssp{1} % single space
578 \def\@dsp{1} % double space
579 \def\@tsp{2} % triple space
581 % Don't force chapters onto right-hand pages.
583 \PassOptionsToClass{openany}{book}
589 % \begin{option}{dottedpart}
591 \DeclareOptionX{dottedpart}{\@dottedparttrue}
594 % \begin{option}{dottedchapter}
596 \DeclareOptionX{dottedchapter}{\@dottedchaptertrue}
599 % \begin{option}{boldpart}
601 \DeclareOptionX{boldpart}{\@boldparttrue}
604 % \begin{option}{boldchapter}
606 \DeclareOptionX{boldchapter}{\@boldchaptertrue}
609 % \begin{option}{dottedtoc}
611 \DeclareOptionX{dottedtoc}{
612 \setkeys{drexel-thesis.cls}{dottedpart}
613 \setkeys{drexel-thesis.cls}{dottedchapter}
617 % \begin{option}{boldtoc}
619 \DeclareOptionX{boldtoc}{
620 \setkeys{drexel-thesis.cls}{boldpart}
621 \setkeys{drexel-thesis.cls}{boldchapter}
626 % \begin{option}{draftwatermark}
627 % Set draft watermark flag
629 \DeclareOptionX{draftwatermark}{\@draftwatermarktrue}
633 % Define the book options that \Lopt{final} and \Lopt{draft} need to
635 % \begin{option}{oneside}
637 \DeclareOptionX{oneside}{\PassOptionsToClass{oneside}{book}}
641 % \begin{option}{twoside}
643 \DeclareOptionX{twoside}{\PassOptionsToClass{twoside}{book}}
647 % \begin{option}{final}
649 \DeclareOptionX{final}{
650 \setkeys{drexel-thesis.cls}{oneside}
651 \setkeys{drexel-thesis.cls}{finalspace}
652 \setkeys{drexel-thesis.cls}{dottedtoc}
657 % \begin{option}{draft}
659 \DeclareOptionX{draft}{
660 \setkeys{drexel-thesis.cls}{twoside}
661 \setkeys{drexel-thesis.cls}{draftspace}
662 \setkeys{drexel-thesis.cls}{dottedtoc}
663 \setkeys{drexel-thesis.cls}{draftwatermark}
668 % Use the default \cls{book} implementation for any remaining options
669 % including \Lopt{oneside}, \Lopt{twoside}, \Lopt{leqno}, \Lopt{fleqn},
672 \DeclareOptionX*{\PassOptionsToClass{\CurrentOption}{book}}
675 % Execute the default options
677 \ExecuteOptionsX{final}
680 % Process options and load the book class
682 \ProcessOptionsX\relax
687 % \subsection{Internal package includes}
690 % Include some other packages we'll need. If the package is not
691 % installed on your system, see Section \ref{sec:dependencies} for
692 % installation instructions.
694 % For many packages, we want the same functionality for both
695 % \Lopt{final} and \Lopt{draft} modes. We pass \Lopt{final} to most
696 % of those packages to override a possible \Lopt{draft} option passed
697 % to \pkg{drexel-thesis}.
700 % \subsubsection{\pkg{setspace}}
702 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/setspace/}{\pkg{setspace}}
703 % for double spacing.
705 \RequirePackage{setspace}
708 % \subsubsection{\pkg{calc}}
710 % \href{http://www.ctan.org/tex-archive/macros/latex/required/tools/}{\pkg{calc}}
711 % for |\blanklines| macro.
713 \RequirePackage{calc}
716 % \subsubsection{\pkg{graphicx}}
718 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
719 % for |\includegraphics|. Not strictly necessary, but I can't imagine
720 % a thesis without figures.
722 \RequirePackage[final]{graphicx}
725 % We include the graphicx package now so we can
726 % pass \Lopt{final}, because some later packages include it with no options,
727 % and a \Lopt{final} include after that produces errors like
729 % l.104 \RequirePackage
731 % The package graphicx has already been loaded with options:
733 % There has now been an attempt to load it with options
737 % \subsubsection{\pkg{draftmark}}
739 % The Comp.~Sci.\ class used
740 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftcopy/}{\pkg{draftcopy}}
741 % to add their watermarks, but as of the current 2002/02/25 v2.16, it
742 % uses postscript specials, and so doesn't work with pdf\LaTeX.
743 % Instead we use the recent (catalogued 2009/11/03)
744 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftmark/}{\pkg{draftmark}}
745 % which unfortunately has a number of apparently non-standard dependencies
746 % (\href{http://www.ctan.org/tex-archive/macros/latex/contrib/etextools/}{\pkg{etextools}},
747 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/etoolbox/}{\pkg{etoolbox}},
748 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xifthen/}{\pkg{xifthen}},
749 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/ltxnew/}{\pkg{ltxnew}},
750 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/pagerange/}{\pkg{pagerange}},
751 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/lastpage/}{\pkg{lastpage}},
752 % if only I had the space to install |texlive-latexextra| |:p|).
753 % The output is, however, very flexible, and it \emph{does} work with
754 % both \LaTeX\ and pdf\LaTeX. If you don't like the default watermark,
755 % you can also adjust the particulars with |\draftmarksetup|.
758 \RequirePackage[draft,allpages,mark={DRAFT \today},
759 fontsize=2cm,grayness=0.9]{draftmark}
763 % \subsubsection{\pkg{geometry}}
765 % Setup page margins with the
766 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/geometry/}{\pkg{geometry}}
767 % package. From the Manual p5:
769 % \item The left margin must be at least 1 1/2'' (1.5 inches)
770 % throughout the document.
771 % \item All other margins (top, bottom, and right) must be at least 1''.
773 % And from the Manual 1.5 p4, Print Version:
775 % The paper size must be 8 1/2'' x 11''.
778 \RequirePackage[letterpaper,margin=1in,bindingoffset=0.5in]{geometry}
780 % Note that we include the \pkg{geometry} package after loading \cls{book} to
781 % override the margin manipulation that takes place in \cls{book}.
783 % \subsubsection{\pkg{fancyhdr}}
785 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/}{\pkg{fancyhdr}}
786 % for correct page numbering and fancy headers.
788 \RequirePackage{fancyhdr}
790 % Setup the standard |fancy| format. |\leftmark| is the higher level
791 % mark, see |\chaptermark| below. |\rightmark| is the lower level
792 % mark, see |\sectionmark| below.
796 \fancyhead[LE,RO]{\slshape\rightmark}
797 \fancyhead[LO,RE]{\slshape\leftmark}
798 \fancyfoot[LE,RO]{\thepage}
800 % Override the |plain| format (for chapter pages, etc.).
802 \fancypagestyle{plain}{
804 \renewcommand{\headrulewidth}{0pt}
805 \fancyfoot[LE,RO]{\thepage}
810 % \subsubsection{\pkg{ifpdf}}
812 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{ifpdf}}
813 % for detecting PDF drivers. We use it to configure \pkg{hyperref} below.
815 \RequirePackage{ifpdf}
818 % \subsubsection{\pkg{hyperref}}
820 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{\pkg{hyperref}}
821 % for hyperlinks. Not strictly necessary, but I can't imagine a
824 \RequirePackage[final]{hyperref}
826 % Nobody likes the default colored boxes. Color the text itself.
828 \hypersetup{colorlinks}
830 % If we're writing a PDF, we set the |pdfauthor|, etc.\ arguments in
831 % |\author|, etc.\ to avoid using |\AtBeginDocument| or some such.
834 % \subsection{\LaTeX\ overrides and extensions}
836 % Here we change the behavior of a bunch of macros and environments
837 % from \file{latex.ltx} (generated by \file{format.ins} in
838 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{base}}).
839 % We'll copy in their original notes along with their code, following
840 % the relevant documentation an order given in \file{format.ins} and
841 % the associated \file{*.dtx} files.
844 % \subsubsection{\file{ltsect.dtx}}
846 % \begin{macro}{\title}
847 % |\title| for use in |\maketitle|. If not given |\maketitle| will
848 % produce a warning message (\file{ltsect.dtx}, L117).
850 % We extend |\title| to set \pkg{hyperref}'s |pdftitle|.
851 % (\file{ltsect.dtx}, L117).
854 \renewcommand{\title}[1]{
856 \ifpdf \hypersetup{pdftitle={\@title}} \fi
861 % \begin{macro}{\author}
862 % |\author| for use in |\maketitle|. If not given |\maketitle| will
863 % produce a warning message (\file{ltsect.dtx}, L129).
865 % We extend |\author| to set \pkg{hyperref}'s |pdfauthor|.
866 % (\file{ltsect.dtx}, L129).
868 \let\DUT@author\author
869 \renewcommand{\author}[1]{
871 \ifpdf \hypersetup{pdfauthor={\@author}} \fi
876 % In a similar vein, we some additional meta-info macros.
878 % \begin{macro}{\advisor}
879 % \begin{macro}{\@advisor}
880 % |\advisor| for use in |\maketitle|. If not given |\maketitle| will
881 % produce an error message.
883 \def\advisor#1{\gdef\@advisor{#1}}
884 \def\@advisor{\@latex@error{No \noexpand\advisor given}\@ehc}
889 % \begin{macro}{\defmonth}
890 % \begin{macro}{\@defmonth}
891 % |\defmonth| (defense month) for use in |\maketitle|. If not given
892 % |\maketitle| will produce an error message.
894 \def\defmonth#1{\gdef\def@month{#1}}
895 \def\def@month{\@latex@error{No \noexpand\defmonth given}\@ehc}
900 % \begin{macro}{\defyear}
901 % \begin{macro}{\@defyear}
902 % |\defyear| (defense year) for use in |\maketitle|. If not given
903 % |\maketitle| will produce an error message.
905 \def\defyear#1{\gdef\def@year{#1}}
906 \def\def@year{\@latex@error{No \noexpand\defyear given}\@ehc}
911 % \begin{macro}{\degree}
912 % \begin{macro}{\@degree}
913 % |\degree| for use in |\maketitle|. If not given |\maketitle| will
914 % produce an error message.
916 \def\degree#1{\gdef\@degree{#1}
917 \ifpdf \hypersetup{pdfsubject={\@degree}} \fi}
918 \def\@advisor{\@latex@error{No \noexpand\degree given}\@ehc}
923 % \begin{macro}{\copyrighttext}
924 % \begin{macro}{\@copyrighttext}
925 % |\copyrighttext| for use in |\makecopyright|. There are a number of
926 % blurbs predefined in Section \ref{sec:implement-copyright}.
928 \def\copyrighttext#1{\gdef\@copyrighttext{#1}}
929 \def\@copyrighttext{All Rights Reserved.}
936 % `\cs{AddContentsLine}\marg{table}\marg{type}\marg{notcap}\marg{entry}'
938 % \begin{macro}{\AddContentsLine}
939 % Define a version of |\addcontentsline| that capitalizes \meta{entry}.
940 % \meta{notcap} allows for |\numberline| bits, etc.
942 \newcommand{\AddContentsLine}{\@ifstar
943 \@AddContentsLine\@sAddContentsLine}
944 \newcommand{\@AddContentsLine}[4]{%
945 % \addcontentsline{#1}{#2}{#3#4}}
946 \addcontentsline{#1}{#2}{#3\uppercase{#4}}}
947 \newcommand{\@sAddContentsLine}[4]{%
948 % \addcontentsline{#1}{#2}{#3#4}}
949 \addcontentsline{#1}{#2}{#3\uppercase{#4}}}
950 % \addcontentsline{#1}{#2}{#3\MakeUppercase{#4}}}
955 % \begin{macro}{\@dottedtocline}
956 % |\@dottedtocline{|\meta{level}|}{|\meta{indent}|}{|\meta{numwidth}%
957 % |}{|\meta{title}|}{|\meta{page}|}|:
958 % Macro to produce a table of contents line with the following
960 % \begin{description}
961 % \item[level] If \meta{level} $>$ |\c@tocdepth|, then no line
963 % \item[indent] Total indentation from the left margin.
964 % \item[numwidth] Width of box for number if the \meta{title} has a
965 % |\numberline| command. This is also the amount of extra
966 % indentation added to second and later lines of a
967 % multiple line entry.
968 % \item[title] Contents of entry.
969 % \item[page] Page number.
972 % Uses the following parameters, which must be set by the document
973 % style. They should be defined with |\def|'s.
974 % \begin{description}
975 % \item[|\@pnumwidth|] Width of box in which page number is set.
976 % \item[|\@tocrmarg|] Right margin indentation for all but last line
977 % of multiple-line entries.
978 % \item[|\@dotsep|] Separation between dots, in mu units.
979 % Should be |\def|'d to a number like 2 or 1.7
982 % We just add |spacing| environments to \cls{book}'s version.
983 % (\file{ltsect.dtx}, L804).
985 \def\@dottedtocline#1#2#3#4#5{%
986 \begin{spacing}{\@ssp}
987 \ifnum #1>\c@tocdepth \else
988 \vskip \z@ \@plus.2\p@
989 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
990 \parindent #2\relax\@afterindenttrue
994 \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
997 \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
1000 \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}%
1002 \blanklines{\@cont@sep}
1010 % Fix |\@ssect| and |\@sect| from \file{latex.ltx} to give single
1013 % \begin{macro}{\@sect}
1014 % Pseudocode for the |\@sect| command
1016 % \@sect{NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}[ARG1]{ARG2}
1019 % IF LEVEL > \c@secnumdepth
1020 % THEN \@svsec :=L null
1021 % ELSE \refstepcounter{NAME}
1022 % \@svsec :=L BEGIN \@seccntformat{#1}\relax END
1027 % \@hangfrom{\hskip INDENT\@svsec}
1028 % {\interlinepenalty 10000 ARG2\par}
1031 % \addcontentsline{toc}{NAME}
1032 % { IF LEVEL > \c@secnumdepth
1033 % ELSE \protect\numberline{\theNAME} FI
1035 % ELSE \@svsechd == BEGIN STYLE
1036 % \hskip INDENT\@svsec
1039 % \addcontentsline{toc}{NAME}
1040 % { IF LEVEL > \c@secnumdepth
1042 % \protect\numberline{\theNAME}
1047 % \@xsect{AFTERSKIP}
1050 % (\file{ltsect.dtx}, L295).
1052 \def\@sect#1#2#3#4#5#6[#7]#8{%
1053 \ifnum #2>\c@secnumdepth
1056 \refstepcounter{#1}%
1057 \protected@edef\@svsec{\@seccntformat{#1}\relax}%
1059 \@tempskipa #5\relax
1060 \ifdim \@tempskipa>\z@
1063 % Here we deviate from \file{ltsect.dtx} to ensure single spacing for
1064 % the section title.
1066 \begin{spacing}{\@ssp}
1068 \@hangfrom{\hskip #3\relax\@svsec}%
1069 \interlinepenalty \@M #8\@@par}%
1072 \csname #1mark\endcsname{#7}%
1073 \addcontentsline{toc}{#1}{%
1074 \ifnum #2>\c@secnumdepth \else
1075 \protect\numberline{\csname the#1\endcsname}%
1082 \csname #1mark\endcsname{#7}%
1083 \addcontentsline{toc}{#1}{%
1084 \ifnum #2>\c@secnumdepth \else
1085 \protect\numberline{\csname the#1\endcsname}%
1093 % \begin{macro}{\@ssect}
1094 % Pseudocode for the |\@ssect| command
1096 % \@ssect{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}{ARG} ==
1101 % \@hangfrom{\hskip INDENT}{\interlinepenalty 10000 ARG\par}
1103 % ELSE \@svsechd == BEGIN STYLE
1108 % \@xsect{AFTERSKIP}
1111 % (\file{ltsect.dtx}, L521).
1113 \def\@ssect#1#2#3#4#5{%
1114 \@tempskipa #3\relax
1115 \ifdim \@tempskipa>\z@
1118 % Here we deviate from \file{ltsect.dtx} to ensure single spacing for
1119 % the section title.
1121 \begin{spacing}{\@ssp}
1123 \@hangfrom{\hskip #1}%
1124 \interlinepenalty \@M #5\@@par}%
1128 \def\@svsechd{#4{\hskip #1\relax #5}}%
1135 % \subsubsection{\file{ltbibl.dtx}}
1137 % \DescribeMacro{\bibliography}
1138 % \DescribeEnv{thebibliography}
1139 % A bibliography is created by the |thebibliography| environment, which
1140 % generates a title such as ``Bibliography'', and a list of entries.
1141 % The \BibTeX\ program will create a file containing such an
1142 % environment, which will be read in by the |\bibliography| command.
1143 % With \BibTeX, the following commands will be used.
1145 % The document class must define the thebibliography environment. This
1146 % environment has a single argument, which is the widest bibliography
1147 % label-- e.g., if the [Knuth67] is the widest entry, then this
1148 % argument will be Knuth67. The |\thebibliography| command must begin
1149 % a list environment, which the |\endthebibliography| command ends.
1151 % \begin{macro}{\bibliography}
1152 % |\bibliography|\marg{file1,file2,\ldots,filen} : specifies
1153 % the bibdata files. Writes a |\bibdata| entry on the |.aux| file
1154 % and tries to read in |mainfile.bbl|.
1156 % We don't need to change it, but it explains why we need to override
1157 % |thebibliography| even when we don't use it directly.
1158 % (\file{ltbibl.dtx}, L284).
1160 %\def\bibliography#1{%
1162 % \immediate\write\@auxout{\string\bibdata{#1}}%
1164 % \@input@{\jobname.bbl}
1170 % \subsubsection{\file{ltoutput.dtx}}
1172 % \begin{macro}{\DUT@clearpage}
1173 % \begin{macro}{\DUT@cleardoublepage}
1174 % Versions of |\clear*page| that only work when |\if@final| is true
1175 % (\file{ltoutput.dtx}, L877 and L904).
1177 \newcommand\DUT@clearpage{\if@final \clearpage \fi}
1178 \newcommand\DUT@cleardoublepage{\if@final \cleardoublepage \fi}
1183 % \begin{macro}{\blankpage}
1184 % Add a useful extension to insert a blank page without numbering.
1185 % In draft mode, this macro is a no-op.
1187 \newcommand\blankpage{%
1190 \thispagestyle{empty}
1199 % `\cs{set@lines@length}\marg{length}\marg{N}'
1201 % \begin{macro}{\set@lines@length}
1202 % Many specifications in the Manual refer to ``\meta{N} blank lines''.
1203 % |\set@lines@length| allows you to set a length to a given number of
1204 % lines, protecting against external |spacing| environments. It
1205 % requires \pkg{calc} for the multiplication.
1207 \let\DUT@baselineskip\baselineskip
1208 \newcommand{\set@lines@length}[2]{%
1209 \setlength{#1}{\DUT@baselineskip * {#2}}
1215 % `\cs{blanklines}\marg{N}'
1217 % \begin{macro}{\blanklines}
1218 % Insert \meta{N} blank lines.
1220 \newlength\DUT@blanklines@length
1221 \newcommand{\blanklines}[1]{%
1223 \set@lines@length{\DUT@blanklines@length}{#1}%
1224 \vspace{\DUT@blanklines@length}
1231 % \subsection{\cls{book} overrides and extensions}
1233 % Here we change the behavior of a bunch of macros and environments from
1234 % \cls{book} (generated by \file{classes.ins} from \file{classes.dtx}) in
1235 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{base}}).
1236 % We'll copy in their original notes along with their code, following
1237 % the relevant documentation an order given in \file{classes.dtx}.
1240 % \subsubsection{Floats on a text page}
1242 % \begin{macro}{\floatsep}
1243 % \begin{macro}{\textfloatsep}
1244 % \begin{macro}{\intextsep}
1245 % When a floating object is placed on a page with text, these
1246 % parameters control the separation between the float and the other
1247 % objects on the page.
1249 % |\floatsep| is the space between adjacent floats that are moved
1250 % to the top or bottom of the text page.
1252 % |\textfloatsep| is the space between the main text and floats
1253 % at the top or bottom of the page.
1255 % |\intextsep| is the space between in-text floats and the text.
1257 % From the Manual 2.3 p6, ``Tables and Figures''
1259 % Insert at least 3 single-spaced lines of space above table
1260 % captions and figures and below figure captions, tables, and other
1263 % (\file{classes.dtx}, L1426)
1265 \set@lines@length{\floatsep}{\@ssp}
1266 \set@lines@length{\textfloatsep}{\@tsp}
1267 \set@lines@length{\intextsep}{\@tsp}
1274 % \subsubsection{The title}
1276 % \begin{macro}{\maketitle}
1277 % Automate the creation of the title page.
1278 % From Manual 3.1 p8, ``Title Page'', and the example on p16.
1280 % \item This page is counted but not numbered (it counts as page i,
1281 % but should not have a page number). TODO: How is this implemented?
1283 % Our definition simplifies \cls{book}'s by ignoring footnotes.
1284 % (\file{classes.dtx}, L1796)
1286 \renewcommand\maketitle{
1289 % Add some bookmarks if we're using pdf\LaTeX. The |frontmatter|
1290 % bookmark is set at the \emph{part} level (-1) to hold all bookmarks
1291 % from the |preamble| environment, since those entries are all
1295 \pdfbookmark[-1]{Frontmatter}{frontmatter}
1296 \pdfbookmark[0]{Title Page}{title}
1299 % Add some stretchy space to center the title vertically if we're not
1302 \if@final \vspace*{\fill} \fi
1304 % Here is the title text itself.
1307 \begin{spacing}{\@tsp}
1310 \begin{spacing}{\@dsp}
1312 Submitted to the Faculty\\
1317 in partial fulfillment of the\\
1318 requirements for the degree\\
1321 \def@month\ \def@year
1325 % Some more stretchy space for the bottom if we're not in draft mode.
1328 % Add some stretchy space to center the title vertically if we're not
1331 \if@final \vspace*{\fill} \fi
1334 % And that's it. We reset the footnote counter for the rest of the
1335 % document and save space by freeing the memory associated with the
1336 % |\maketitle| and |\and| macros (by setting them equal to |\relax|).
1338 \setcounter{footnote}{0}%
1339 \global\let\maketitle\relax
1340 \global\let\and\relax
1346 % \subsubsection{Copyright pages}
1347 % \label{sec:implement-copyright}
1349 % \begin{macro}{\makecopyright}
1350 % The Manual allows for the selection of different copyrights, so we
1351 % define a base macro that generates a proper copyright page
1352 % containing |\@copyrighttext|, which the user can set with
1354 % From Manual 3.2 p9, ``Copyright Page''.
1356 % \item Include a copyright page with the following information: a
1357 % copyright notice, full legal name of author, and date of
1358 % publication on file.
1359 % \item This page is neither counted nor numbered.
1361 % In final mode, we start off on a new page and center the blurb.
1362 % In draft mode, we dive right into the text.
1364 \newcommand\makecopyright{%
1367 % If we're using pdf\LaTeX, add a bookmark.
1369 \ifpdf \pdfbookmark[0]{Copyright Page}{copyright} \fi
1370 \if@final \vspace*{\fill} \fi
1372 \copyright~Copyright \def@year\\
1373 \@author. \@copyrighttext
1375 \if@final \vspace*{\fill} \else \blanklines{2} \fi
1377 % Turn off page numbering for this page.
1379 \thispagestyle{empty}
1384 % \begin{macro}{\copyrighttextCC}
1385 % The Creative Commons license.
1387 \newcommand\copyrighttextCC{
1389 This work is licensed under the terms of the Creative Commons
1390 Attribution-ShareAlike license. The license is available at \\
1391 \url{http://creativecommons.org/licenses/by-sa/2.0/}.
1398 % \subsubsection{Mark commands}
1400 % Default initializations of |\...mark| commands. These commands
1401 % are used in the definition of the page styles.
1403 % \begin{macro}{\chaptermark}
1404 % Setup colon rather than period separated chapter marks.
1405 % (\file{classes.dtx}, L2053)
1407 \renewcommand\chaptermark[1]{%
1408 \markboth {\MakeUppercase{%
1409 \ifnum \c@secnumdepth >\m@ne
1411 \@chapapp\ \thechapter: \ %
1418 % \begin{macro}{\chaptermark}
1419 % Setup space rather than period separated section marks.
1420 % (\file{classes.dtx}, L2054)
1422 \renewcommand{\sectionmark}[1]{%
1423 \markright {\MakeUppercase{%
1424 \ifnum \c@secnumdepth >\z@
1432 % \subsubsection{Front Matter, Main Matter, and Back Matter}
1434 % A book contains these three (logical) sections. The switch
1435 % |\@mainmatter| is true iff we are processing Main Matter. When this
1436 % switch is false, the |\chapter| command does not print chapter
1439 % \begin{macro}{\mainmatter}
1440 % This command clears the page (in final mode), starts arabic page
1441 % numbering and turns on chapter numbering. Since this restarts the
1442 % page numbering from 1, it should also ensure that a recto page is
1445 % We replace \cls{book}'s |\clear*page| calls with |\DUT@clearpage| calls.
1446 % (\file{classes.dtx}, L2211)
1448 \renewcommand\mainmatter{%
1449 \DUT@cleardoublepage
1451 \pagenumbering{arabic}}
1456 % \subsubsection{Parts}
1458 % \begin{macro}{\part}
1459 % The command to start a new part of our document.
1461 % We start a new (righthand) page and use the \pstyle{plain}
1462 % pagestyle, replacing \cls{book}'s |\clear*page| calls with
1463 % |\DUT@clearpage| calls and dropping twopage code.
1464 % (\file{classes.dtx}, L2249)
1466 \renewcommand\part{%
1468 \DUT@cleardoublepage
1472 \thispagestyle{plain}%
1475 % Add some stretchy space for vertical centering if we're in final mode.
1477 \if@final \null\vfil \fi
1479 % Here we use |\secdef| to indicate which commands to use to make
1480 % the actual heading.
1482 \secdef\@part\@spart}
1486 % \begin{macro}{\@part}
1487 % This macro does the actual formatting of the title of the part. We
1488 % replace \cls{book}'s |\Huge| with |\large|, and make use of
1489 % |\numberline| for consistent spacing.
1491 % When \Lcount{secnumdepth} is larger than $-2$, we have a numbered
1492 % part, otherwise it is unnumbered.
1493 % (\file{classes.dtx}, L2310)
1496 \ifnum \c@secnumdepth >-2\relax
1497 \refstepcounter{part}%
1498 \AddContentsLine{toc}{part}%
1499 {\protect\numberline{\thepart}}{#1}%
1501 \AddContentsLine{toc}{part}{}{#1}%
1504 % We empty the mark registers and center the title on the page.
1505 % Also we prevent breaking between lines and reset the font.
1509 \interlinepenalty \@M
1512 % When this is a numbered part we have to print the number.
1514 \ifnum \c@secnumdepth >-2\relax
1515 \large\bfseries \partname\nobreakspace\thepart
1518 % We leave some space before we print the title and leave the
1519 % finishing up to |\@endpart|.
1523 \large \bfseries #2\par}%
1528 % \begin{macro}{\@spart}
1529 % This macro does the actual formatting of the title of the part
1530 % when the star form of the user command was used. In this case we
1531 % \emph{never} print a number. Otherwise the formatting is the
1533 % (\file{classes.dtx}, L2402)
1537 \interlinepenalty \@M
1539 \large \bfseries #1\par}%
1544 % \begin{macro}{\@endpart}
1545 % This macro finishes the part page, for both |\@part| and |\@spart|.
1546 % We drop \cls{book}'s twoside handling.
1547 % If |\if@final| is true, we fill the current page.
1548 % (\file{classes.dtx}, L2435)
1551 \if@final \vfil\newpage \fi
1553 % Then, when we are in twosided mode and the chapters are supposed to
1554 % be on the right hand sides, we produce a completely blank page. We
1555 % don't need to check |\if@final| here, because \Lopt{draftspace} set
1556 % |\@openrighttrue|.
1561 \thispagestyle{empty}%
1569 % \subsubsection{Chapters}
1570 % \label{sec:implement-chapters}
1572 % \begin{macro}{\chapter}
1573 % \cls{book} always starts a chapter on a new page, but we don't want
1574 % to do that if we're in draft mode.
1575 % (\file{classes.dtx}, L2472).
1577 \renewcommand\chapter{%
1578 \if@openright\DUT@cleardoublepage\else\DUT@clearpage\fi
1579 \thispagestyle{plain}%
1581 % Then we prevent floats from appearing at the top of this page
1582 % because it looks weird to see a floating object above a chapter
1587 % Then we suppress the indentation of the first paragraph by
1588 % setting the switch |\@afterindent| to false. We use |\secdef|
1589 % to specify the macros to use for actually setting the chapter
1593 \secdef\@chapter\@schapter}
1597 % \begin{macro}{\@chapter}
1598 % This macro is called when we have a numbered chapter. When
1599 % \Lcount{secnumdepth} is larger than $-1$ and |\@mainmatter| is true,
1600 % we display the chapter number.
1601 % We drop \cls{book}'s \Lopt{twocolumn} code.
1602 % (\file{classes.dtx}, L2496).
1604 \def\@chapter[#1]#2{
1605 \ifnum \c@secnumdepth >\m@ne
1607 \refstepcounter{chapter}%
1609 % Inform the user that a new chapter is about to be typeset by writing
1610 % a message to the terminal.
1612 \typeout{\@chapapp\space\thechapter.}%
1615 % We're in the appendix (when |\if@mainmatter| and
1616 % |\if@appendix| are both true), add a TOC line like
1618 % Appendix A: Chapter Title
1620 % |\thechapter| (defined in \cls{book}) is the text representation of
1621 % the chapter number (e.g.\ |1| or, for an appendix, |A|).
1622 % |\@chapapp{}| (also defined in \cls{book}) was redefined in
1623 % |\appendix| (Sec. \ref{sec:implement-appendix}) as |\appendixname|.
1625 \AddContentsLine{toc}{appendix}%
1626 {\protect\numberline{\@chapapp{} \thechapter:}}{#1}%
1629 % We're in the pre-appendix mainmatter, so add a TOC line like
1634 \AddContentsLine{toc}{chapter}%
1635 {\protect\numberline{\thechapter}}{#1}%
1639 % We're in the pre-mainmatter, so add a TOC line like
1644 \AddContentsLine{toc}{chapter}{}{#1}%
1647 \AddContentsLine{toc}{chapter}{}{#1}%
1650 % After having written an entry to the table of contents we store
1651 % the (alternative) title of this chapter with |\chaptermark| and
1652 % add some white space to the lists of figures and tables.
1655 \addtocontents{lof}{\protect\addvspace{10\p@}}%
1656 \addtocontents{lot}{\protect\addvspace{10\p@}}%
1658 % Then we call upon |\@makechapterhead| to format the actual chapter
1659 % title. |\@afterheading| which takes care of suppressing the
1662 \@makechapterhead{#2}%
1667 % \begin{macro}{\@makechapterhead}
1668 % The |\@chapter| macro uses |\@makechapterhead|\meta{text} to format
1669 % the heading of the chapter.
1670 % From the Manual 3.11 p11.
1672 % Chapter headings must be bold and centered.
1673 % The chapter number and title must be on the same line, separated
1674 % by a colon or period, as shown in the example below:
1676 % CHAPTER 1: INTRODUCTION
1678 % Headings must not be larger than 12 points.
1679 % Headings must be single spaced.
1681 % \cls{book} sets |\@chapapp| and |\thechapter| (e.g.\ ``Chapter 5'')
1682 % on a line above the chapter title, but that doesn't match the
1683 % Manual's specification.
1685 % We begin by leaving some white space. The we open a group in which
1686 % we have a paragraph indent of 0pt, and in which we have the text set
1687 % ragged right. We also reset the font.
1688 % (\file{classes.dtx}, L2540).
1690 \def\@makechapterhead#1{%
1692 {\parindent \z@ \raggedright \normalfont
1694 % Ensure single spacing.
1696 \begin{spacing}{\@ssp}
1698 % Prevent a pagebreak from occuring in the middle of or after the title.
1700 \interlinepenalty\@M
1702 % Check whether the number of the chapter has to be printed.
1704 \ifnum \c@secnumdepth >\m@ne
1706 % Check whether there \emph{is} a number to be printed.
1710 % Setup a ``Chapter \#: Title'' heading.
1712 \center \large \bfseries \@chapapp{} \thechapter: #1\par\nobreak
1715 % Setup a ``Title'' heading.
1717 \center \large \bfseries #1\par\nobreak
1720 \center \large \bfseries #1\par\nobreak
1724 % Put a little space before the chapter body.
1732 % \begin{macro}{\@schapter}
1733 % We don't have to worry about |\@schapter|, since it is very simple.
1734 % In onecolumn mode it's just
1735 % (\file{classes.dtx}, L2582).
1737 %\def\@schapter#1{\@makeschapterhead{#1}%
1742 % \begin{macro}{\@makeschapterhead}
1743 % The macro above uses |\@makeschapterhead|\meta{text} to format
1744 % the heading of the chapter. It is similar to |\@makechapterhead|
1745 % except that it never has to print a chapter number.
1746 % (\file{classes.dtx}, L2595).
1748 \def\@makeschapterhead#1{%
1750 {\parindent \z@ \raggedright
1752 \interlinepenalty\@M
1753 \begin{spacing}{\@ssp}
1754 \center \large \bfseries #1\par\nobreak
1763 % \begin{macro}{\toclevel@appendix}
1764 % We've added a new TOC entry type with the
1766 % \AddContentsLine{toc}{appendix}{...}{...}
1768 % calls above, and \pkg{hyperref} needs to know what level they belong
1769 % to. Obviously they belong to the chapter level ($0$).
1771 \providecommand*{\toclevel@appendix}{0}
1776 % \subsubsection{Lower level headings}
1778 % \begin{macro}{\section}
1779 % Setup section headings in |\large| rather than \cls{book}'s
1781 % (\file{classes.dtx}, L2623).
1783 \renewcommand\section{%
1784 \@startsection {section}{1}{\z@}%
1785 {-3.5ex \@plus -1ex \@minus -.2ex}%
1787 {\normalfont\large\bfseries}}
1792 % \subsubsection{Defining new environments}
1794 % We don't override any of \cls{book}'s environments, but this is
1795 % where \file{classes.dtx} defines its environments (L2996), so we'll put
1798 % \begin{environment}{preamble}
1800 \newenvironment{preamble}{%
1803 \pagenumbering{roman}
1805 % From Manual 3.1 p8, ``Title Page''.
1809 % From Manual 3.2 p9, ``Copyright Page''.
1814 % From the Manual 3.9, p11:
1816 % Include a blank page (with no page number) before the first page
1817 % of text. The blank page is neither numbered nor counted.
1825 % \begin{environment}{dedications}
1826 % From the Manual 3.3 p9
1828 % \item The heading |Dedications| must appear at the top of the
1829 % page. The heading must be bold, centered, and without
1831 % \item This page is counted and numbered in lowercase Roman numerals.
1834 \newenvironment{dedications}{%
1838 \pdfbookmark[0]{\dedicationsname}{dedications}
1840 \chapter*{\dedicationsname}
1841 \begin{spacing}{\@dsp}
1848 % \begin{environment}{acknowledgments}
1849 % From the Manual 3.4 p9
1851 % \item The heading |Acknowledgments| must appear at the top of the
1852 % page. The heading must be bold, centered, and without
1854 % \item This page is counted and numbered in lowercase Roman numerals.
1857 \newenvironment{acknowledgments}{%
1861 \pdfbookmark[0]{\acknowledgmentsname}{acknowledgments}
1863 \chapter*{\acknowledgmentsname}
1864 \begin{spacing}{\@dsp}
1871 % \begin{environment}{abstract}
1873 \newenvironment{abstract}{%
1875 \thispagestyle{plain}%
1878 \AddContentsLine*{toc}{chapter}{}{\abstractname}
1881 % From the Manual 3.9 p10 ``The following heading must be centered at
1882 % the top of the page'':
1885 % Full Title of Dissertation or Thesis \\
1886 % Author's Name as it appears on the Dissertation or Thesis
1888 % In the example on p20, they list the advisor's name after the
1889 % author, but that is not specified in the text on p10.
1891 % On p20, ``These pages are numbered using lowercase Roman numerals.
1892 % Note that the heading is single spaced, but the abstract is double
1895 \begin{spacing}{\@ssp}
1897 {\large \bfseries \abstractname \par}
1898 %% \@endparpenalty\@M
1905 \begin{spacing}{\@dsp}
1915 % \begin{environment}{thesis}
1916 % From the Manual 3.10 p11
1918 % \item The pages are counted and numbered in Arabic numerals.
1921 \newenvironment{thesis}{%
1923 \begin{spacing}{\@dsp}
1929 \pdfbookmark[-1]{Backmatter}{backmatter}
1935 % \begin{environment}{vita}
1936 % From the Manual 3.15 p13
1938 % \item The heading |Vita| must appear at the top of the page. The
1939 % heading must be bold, centered, and without punctuation.
1940 % \item The Vita text should begin four spaces below the heading.
1941 % \item List the Vita separately in the Table of Contents.
1942 % \item The page is counted and numbered in Arabic numerals.
1945 \newenvironment{vita}{%
1948 \AddContentsLine*{toc}{chapter}{}{\vitaname}
1949 \chapter*{\vitaname}
1951 \begin{spacing}{\@dsp}
1959 % \subsubsection{Titlepage}
1961 % \begin{environment}{titlepage}
1962 % In the normal environments, the titlepage environment does nothing
1963 % but start and end a page, and inhibit page numbers. We inhibit the
1964 % paging in draft mode, since it seems silly to waste a whole page on
1965 % the title. We also drop the \Lopt{twocolumn} code.
1966 % (\file{classes.dtx}, L3111)
1968 \renewenvironment{titlepage}{\thispagestyle{empty}%
1969 \setcounter{page}\z@}%
1970 {\if@final \newpage \else \blanklines{2} \fi}
1975 % \subsubsection{Appendix}
1977 % \begin{macro}{\appendix}
1978 % The |\appendix| command is not really an environment, it is a
1979 % macro that makes some changes in the way things are done.
1981 % In the article document class the |\appendix| command must do the
1984 % \item reset the section and subsection counters to zero,
1985 % \item redefine |\thesection| to produce alphabetic appendix
1986 % numbers. This redefinition is done globally to ensure that it
1987 % survives even if |\appendix| is issued within an environment such
1988 % as \texttt{multicols}.
1991 % In addition to \cls{book}'s (or \pkg{hyperref}'s) activity, we add
1992 % |\@appendixtrue|. This gets |\if@appendix| working in our
1993 % |\chapter| definition (Sec.~\ref{sec:implement-chapters}).
1994 % (\file{classes.dtx}, L3177)
1996 \let\DUT@appendix\appendix
1997 \renewcommand\appendix{%
2001 % We also turn on double spacing by default, since we're no longer
2002 % wrapped in the |thesis| environment.
2010 % \subsubsection{Table}
2011 % \label{sec:implement-tables}
2013 % \begin{environment}{table}
2014 % \begin{environment}{table*}
2015 % To help symmetrize the spacing around tables and figures, we set
2016 % |\if@table| in the |table| environments. The remainder of the
2017 % code comes in Section \ref{sec:implement-captions}.
2018 % (\file{classes.dtx}, L3491)
2020 \newif\if@table \@tablefalse
2021 \renewenvironment{table}
2022 {\@tabletrue\@float{table}}
2023 {\end@float\@tablefalse}
2024 \renewenvironment{table*}
2025 {\@tabletrue\@dblfloat{table}}
2026 {\end@dblfloat\@tablefalse}
2032 % \subsubsection{Captions}
2033 % \label{sec:implement-captions}
2035 % \begin{macro}{\@makecaption}
2036 % The |\caption| command calls |\@makecaption| to format the
2037 % caption of floating objects. It gets two arguments,
2038 % \meta{number}, the number of the floating object and \meta{text},
2039 % the text of the caption. Usually \meta{number} contains a string
2040 % such as ``Figure 3.2''. The macro can assume it is called inside a
2041 % |\parbox| of right width, with |\normalsize|.
2043 % We override \cls{book}'s |\@makecaption|, adding two |\if@table|
2044 % conditionals, which swap |\abovecaptionskip| and |\belowcaptionskip|
2045 % for tables (where the caption is above the float body). With our
2046 % implementation, |\belowcaptionskip| \emph{always} gives the distance
2047 % between the caption and the text, and |\abovecaptionskip|
2048 % \emph{always} gives the distance between the caption and the float
2049 % body. See Section \ref{sec:implement-tables} for our |\if@table|
2052 % We also replace the caption lead-in |#1: #2| with
2053 % |\small{\bfseries#1:} #2|.
2054 % (\file{classes.dtx}, L3508)
2057 % Define a temporary length for swapping.
2059 \newlength\@tempcapskip
2061 % The definition of this macro is |\long| in order to allow more
2062 % then one paragraph in a caption.
2064 \long\def\@makecaption#1#2{%
2067 % Swap |\abovecaptionskip| and |\belowcaptionskip|.
2069 \@tempcapskip\abovecaptionskip
2070 \abovecaptionskip\belowcaptionskip
2071 \belowcaptionskip\@tempcapskip
2073 \vskip\abovecaptionskip
2075 % We want to see if the caption fits on one line on the page,
2076 % therefore we first typeset it in a temporary box.
2078 \sbox\@tempboxa{\small{\bfseries#1:} #2}%
2080 % We can the measure its width. It that is larger than the current
2081 % |\hsize| we typeset the caption as an ordinary paragraph.
2083 \ifdim \wd\@tempboxa >\hsize
2084 {\small{\bfseries#1:} #2\par}
2087 % If the caption fits, we center it. Because this uses an |\hbox|
2088 % directly in vertical mode, it does not execute the |\everypar|
2089 % tokens; the only thing that could be needed here is resetting the
2090 % `minipage flag' so we do this explicitly.
2092 \global \@minipagefalse
2093 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
2095 \vskip\belowcaptionskip
2097 % Restore |\abovecaptionskip| and |\belowcaptionskip|.
2100 \@tempcapskip\belowcaptionskip
2101 \belowcaptionskip\abovecaptionskip
2102 \abovecaptionskip\@tempcapskip
2108 % \begin{macro}{\abovecaptionskip}
2109 % \begin{macro}{\belowcaptionskip}
2110 % For \cls{book}, these lengths contain the amount of white space to
2111 % leave above and below the caption. However, because of our work
2112 % with |\@makecaption| (above), |\belowcaptionskip| \emph{always}
2113 % gives the distance between the caption and the text, and
2114 % |\abovecaptionskip| \emph{always} gives the distance between the
2115 % caption and the float.
2116 % (\file{classes.dtx}, L3516)
2118 \set@lines@length{\abovecaptionskip}{\@ssp}
2119 \set@lines@length{\belowcaptionskip}{\@tsp}
2125 % \subsubsection{Table of Contents}
2127 % \begin{macro}{\tableofcontents}
2128 % Automate the creation of the table of contents.
2129 % From Manual 3.5 p9, ``Table of Contents'', and the example on p17.
2131 % \item Do not list any sections that precede the
2132 % |Table of Contents| (e.g.\ |Dedications|, |Acknowledgments|). Do
2133 % not list the |Table of Contents| itself.
2134 % \item These pages are counted and numbered in lowercase Roman numerals.
2136 % We inhibit the paging in draft mode and drop the \Lopt{twocolumn} code.
2137 % (\file{classes.dtx}, L3728)
2139 \renewcommand\tableofcontents{%
2142 % If we're using pdf\LaTeX, add a bookmark.
2146 \pdfbookmark[0]{\contentsname}{tableofcontents}
2148 \chapter*{\contentsname}
2150 % Set the marks for \cls{fancyhdr}'s fancy header.
2152 \@mkboth{\MakeUppercase\contentsname}%
2153 {\MakeUppercase\contentsname}%
2159 % The command |\contentsline{|\meta{name}|}| expands to
2160 % |\l@|\meta{name}. So, to specify the table of contents, we must
2161 % define |\l@chapter|, |\l@section|, |\l@subsection|, ... ; to
2162 % specify the list of figures, we must define |\l@figure|; and so
2166 % `\cs{l@DUT@major}\marg{title}\marg{page}\marg{inset}'
2168 % \begin{macro}{\l@DUT@major}
2169 % Define a wrapper class for printing TOC entries for parts, chapters,
2170 % and appendicies, since they should all have the same formatting.
2171 % \meta{title} and \meta{page} are the first two arguments passed to
2172 % the outer |\l@*| macro. \meta{inset} gives the distance that the
2173 % title text is offset from the left margin (|\@tempdima|), with any
2174 % |\numberline| text (e.g.\ part or chapter numbers) being printed
2175 % flush on the left margin.
2177 \newif\if@bold@DUT@major
2178 \newif\if@dotted@DUT@major
2179 \newcommand\l@DUT@major[3]{%
2180 \begin{spacing}{\@ssp}
2181 \ifnum \c@tocdepth >\m@ne
2183 % Make sure that if a pagebreak should occur, it occurs \emph{before}
2186 \addpenalty{-\@highpenalty}%
2188 % The macro |\numberline| requires that the width of the box that
2189 % holds the part number is stored in \LaTeX's scratch register
2190 % |\@tempdima|. Therefore we initialize it there even though we may
2191 % not use |\numberline| internally.
2193 \setlength\@tempdima{#3}%
2196 % We set |\parindent| to 0pt and use |\rightskip| to leave
2197 % enough room for the pagenumbers.\footnote{^^A
2198 % We use \file{classes.dtx} suggested \cs{@tocrmarg} for
2199 % \cs{rightskip}, which they're delaying until \LaTeX3.}
2200 % To prevent overfull box messages the |\parfillskip| is set to a
2203 \parindent \z@ \rightskip \@tocrmarg \parfillskip -\rightskip
2205 % Leave vertical mode.
2209 % Switch to bold font if appropriate.
2215 % Manuever to place the part number flush left, with the part title
2216 % inset by |\@tempdima|.
2218 \advance\leftskip\@tempdima
2221 % Set the part title.
2225 % Draw a dotted line if appropriate.
2227 \if@dotted@DUT@major
2228 \leaders\hbox{$\m@th
2229 \mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}
2232 % Wrap up with the page entry, set flush right.
2234 \hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
2236 % Prevent a pagebreak immediately after this entry.
2240 % Add a content-page-spacing blank after this entry.
2242 \blanklines{\@cont@sep}
2244 % Discourage page breaking.
2246 \penalty\@highpenalty
2254 % \begin{macro}{\l@part}
2255 % Override \cls{book}'s |\l@part|.
2256 % (\file{classes.dtx}, L3775)
2258 \renewcommand*\l@part[2]{%
2260 \@bold@DUT@majortrue
2262 \@bold@DUT@majorfalse
2265 \@dotted@DUT@majortrue
2267 \@dotted@DUT@majorfalse
2269 \l@DUT@major{#1}{#2}{3em}}
2273 % \begin{macro}{\l@chapter}
2274 % Override \cls{book}'s |\l@chapter|.
2275 % (\file{classes.dtx}, L3847)
2277 \renewcommand*\l@chapter[2]{%
2279 \@bold@DUT@majortrue
2281 \@bold@DUT@majorfalse
2284 \@dotted@DUT@majortrue
2286 \@dotted@DUT@majorfalse
2288 \l@DUT@major{#1}{#2}{1.5em}}
2293 % \begin{macro}{\l@appendix}
2294 % Add |\l@appendix|, which is identical to our |\l@chapter| except
2295 % for setting |\@tempdima| to 8em rather than 1.5em, because the word
2296 % |Appendix| takes up a bunch of space.
2298 \newcommand*\l@appendix[2]{%
2300 \@bold@DUT@majortrue
2302 \@bold@DUT@majorfalse
2305 \@dotted@DUT@majortrue
2307 \@dotted@DUT@majorfalse
2309 \l@DUT@major{#1}{#2}{8em}}
2314 % \subsubsection{List of figures}
2316 % \begin{macro}{\listoffigures}
2317 % This macro is used to request that \LaTeX\ produces a list of
2318 % figures. It is very similar to |\tableofcontents|.
2320 % From the Manual 3.7 p10
2322 % The heading |List of Figures| must appear at the top of the first
2324 % The heading must be bold, centered, and without punctuation.
2325 % List figure captions exactly as they appear below the figures in
2327 % Single space each entry, but double-space between entries.
2328 % Separate figure captions from page numbers with right-justified
2329 % tabs and dot leaders.
2330 % Do not use periods to separate captions and page numbers.
2331 % These pages are counted and numbered in lowercase Roman numerals.
2334 % We drop the \Lopt{twocolumn} code, add a line to the table of
2335 % contents, and adjust paging.
2336 % (\file{classes.dtx}, L3981).
2338 \renewcommand\listoffigures{%
2341 \AddContentsLine*{toc}{chapter}{}{\listfigurename}
2342 \chapter*{\listfigurename}%
2343 \@mkboth{\MakeUppercase\listfigurename}%
2344 {\MakeUppercase\listfigurename}%
2351 % \subsubsection{List of tables}
2353 % \begin{macro}{\listoftables}
2354 % This macro is used to request that \LaTeX\ produces a list of
2355 % tables. It is very similar to |\tableofcontents|.
2357 % From the Manual 3.6 p10
2359 % The heading |List of Tables| must appear at the top of the first
2361 % The heading must be bold, centered, and without punctuation.
2362 % List table captions exactly as they appear above the tables in
2364 % Single space each entry, but double-space between entries.
2365 % Separate table captions from page numbers with right-justified
2366 % tabs and dot leaders.
2367 % Do not use periods to separate captions and page numbers.
2368 % These pages are counted and numbered in lowercase Roman numerals.
2371 % We drop the \Lopt{twocolumn} code, add a line to the table of
2372 % contents, and adjust paging.
2373 % (\file{classes.dtx}, L4017).
2375 \renewcommand\listoftables{%
2378 \AddContentsLine*{toc}{chapter}{}{\listtablename}
2379 \chapter*{\listtablename}%
2380 \@mkboth{\MakeUppercase\listtablename}%
2381 {\MakeUppercase\listtablename}%
2388 % \subsubsection{Bibliography}
2390 % \begin{environment}{thebibliography}
2391 % The |thebibliography| environment is a list environment. To save the
2392 % use of an extra counter, it should use |enumiv| as the item
2394 % Instead of using |\item|, items in the bibliography are produced by
2395 % the following commands:\\
2396 % |\bibitem|\marg{name} : Produces a numbered entry cited as
2398 % |\bibitem|\oarg{label}\marg{name} : Produces an entry labeled by
2399 % \meta{Label} and cited by \meta{name}.
2401 % Override \cls{book}'s version, adding a line to the table of
2402 % contents. We split out the section-creation code into
2403 % |\bib@heading| for \pkg{natbib} compatibility.
2404 % (\file{classes.dtx}, L4063).
2406 \renewenvironment{thebibliography}[1]
2408 \list{\@biblabel{\@arabic\c@enumiv}}%
2409 {\settowidth\labelwidth{\@biblabel{#1}}%
2410 \leftmargin\labelwidth
2411 \advance\leftmargin\labelsep
2413 \usecounter{enumiv}%
2414 \let\p@enumiv\@empty
2415 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
2417 % Because it's hard to do line breaks in bibliographies.
2421 % This is setting the normal (non-infinite) value of
2422 % |\clubpenalty| for the whole of this environment,
2423 % so we must reset its stored value also. (Why is there a |%| after
2424 % the second 4000 below?)
2427 \@clubpenalty \clubpenalty
2430 % Cause a `.' (period) not to produce an end-of-sentence space.
2434 % Warn if an empty `thebibliography' environment is found.
2437 {\@latex@warning{Empty `thebibliography' environment}}%
2442 % \begin{macro}{\bib@heading}
2443 % \pkg{natbib} messes with |thebibliography|. We setup |\bib@heading|
2444 % so we will still get our table of contents entry.
2446 \newcommand{\bib@heading}{%
2448 \AddContentsLine*{toc}{chapter}{}{\bibname}%
2449 \chapter*{\bibname}%
2450 \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
2455 % \subsubsection{Words}
2457 % Set the official names of the various sections encountered. Some of
2458 % these are not defined in \file{classes.dtx} but are close analogs of
2461 % \begin{macro}{\dedicationsname}
2462 % From the Manual 3.3 p9, ``The heading |Dedications| must appear at
2463 % the top of the page.''
2465 \newcommand\dedicationsname{Dedications}
2469 % \begin{macro}{\acknowledgmentsname}
2470 % From the Manual 3.4 p9, ``The heading |Acknowledgments| must appear
2471 % at the top of the page.''
2473 \newcommand\acknowledgmentsname{Acknowledgments}
2477 % \begin{macro}{\contentsname}
2478 % From the Manual 3.5 p9, ``The heading |Table of Contents| must
2479 % appear at the top of the page.'' (\file{classes.dtx}, L4331)
2481 \renewcommand\contentsname{Table of Contents}
2485 % \begin{macro}{\listtablename}
2486 % From the Manual 3.6 p10, ``The heading |List of Tables| must appear
2487 % at the top of the page.'' (\file{classes.dtx}, L4333)
2489 \renewcommand\listtablename{List of Tables}
2493 % \begin{macro}{\listfigurename}
2494 % From the Manual 3.7 p10, ``The heading |List of Figures| must appear
2495 % at the top of the page.'' (\file{classes.dtx}, L4332)
2497 \renewcommand\listfigurename{List of Figures}
2501 % \begin{macro}{\abstractname}
2502 % From the Manual 3.8 p10, ``The following heading must be centered at
2503 % the top of the first page: |Abstract|\ldots.''
2504 % (\file{classes.dtx}, L4367)
2506 \newcommand\abstractname{Abstract}
2510 % \begin{macro}{\bibname}
2511 % From the Manual 3.13 p12, ``The heading |Bibliography| (or
2512 % |List of References|) must appear at the top of first page.''
2513 % (\file{classes.dtx}, L4344)
2515 \renewcommand\bibname{Bibliography}
2519 % \begin{macro}{\appendixname}
2520 % From the Manual 3.14 p12, ``Number the appendicies consecutively
2521 % either alphabetically or numerically (|Appendix A|, |Appendix B|\ldots
2522 % or |Appendix 1|, |Appendix 2|\ldots).''
2523 % (\file{classes.dtx}, L4366)
2525 \renewcommand\appendixname{Appendix}
2529 % \begin{macro}{\vitaname}
2530 % From the Manual 3.15 p13, ``The heading |Vita| must appear at the
2531 % top of the page.''
2533 \newcommand\vitaname{Vita}
2538 % \subsection{Remaining details}
2541 % \subsubsection{Terminal blank page}
2543 % Add a terminal blank page (when |\if@final| is true)
2544 % From the Manual 3.16 p13
2546 % Include a blank page (with no page number) at the end of the
2547 % thesis or dissertation. The blank page is neither counted nor
2551 \AtEndDocument{\blankpage}
2560 % \subsection{Caveats and bugs}
2563 % \subsubsection{\pkg{hyperref} and uppercase}
2565 % In order to comply with the Manual's specifications,
2566 % part and chapter entries to the table of contents need
2567 % to be uppercased, which we do via |\AddContentsLine|.
2568 % This generates some whining from \pkg{hyperref}
2570 % Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding),
2571 % (hyperref) removing `\uppercase' on input line 72.
2573 % This is because |\uppercase| is parsed in \TeX's stomach, but
2574 % \pkg{hyperref} deals with code in \TeX's mouth, so \pkg{hyperref} is
2575 % drops the token and complains. Which is fine, since the titles
2576 % don't actually need to be uppercased in the bookmark, but the
2577 % error messages are still produced. If anyone knows of a good way
2578 % to either fix the problem or silence these particular error messages,
2579 % please let me know. Otherwise, just ignore the errors.
2582 % \section{Examples}
2585 % \subsubsection{Template}
2589 % See drexel-thesis.pdf for details.
2590 \documentclass{drexel-thesis}
2592 %% Enter the appropriate information here
2593 \author{} % Fullname
2594 \title{} % Title Of Thesis
2595 \defmonth{} % Name of the month of you defense
2596 \defyear{} % Year you are defending
2597 \degree{} % Your target degree, spelled out
2598 \advisor{} % Advisor's full name, degree
2599 \copyrighttext{} % If not "All Rights Reserved."
2601 %% unsrt style give references in order of citation
2602 \bibliographystyle{unsrt}
2607 \begin{dedications} % OPTIONAL
2608 %% Type dedications here
2611 \begin{acknowledgments} % OPTIONAL
2612 %% Type acknowledgments here
2613 \end{acknowledgments}
2616 \listoftables % If you have tables
2617 \listoffigures % If you have figures
2620 %% Type abstract here
2625 %% Use include statements to include your main thesis code
2626 %% from seperate files.
2631 \bibliography{references} % Include references.bib BibTeX
2633 \appendix % If you have appendices
2634 %% include files with your appendicies (if any) here
2635 %%\include{appendixA}
2638 \begin{vita} % Ph.D. only.
2647 % \subsection{A better example}
2648 % \label{sec:better-example}
2650 % \subsubsection{Main}
2653 %<*example|example-draft>
2654 %% See drexel-thesis.pdf for details.
2655 %<example>\documentclass{drexel-thesis}
2656 %<example-draft>\documentclass[draft]{drexel-thesis}
2658 %% Enter the appropriate information here
2659 \author{Johny Henry}
2660 \title{Inadequacies of Steam-Driven Boring Machines}
2663 \degree{Doctor of Philosophy}
2664 \advisor{Collis Potter Huntington, R.R.D.}
2665 \copyrighttext{\copyrighttextCC}
2667 \usepackage[super,sort&compress]{natbib} % fancy citation extensions
2668 \bibliographystyle{plainnat}
2670 \usepackage{fancyvrb} % nicer verbatim handling
2671 \DefineShortVerb{\|} % \verb+TEXT+ -> |TEXT|
2673 \usepackage{blabla} % \blabla macro for producing dummy output
2682 \begin{acknowledgments}
2684 \end{acknowledgments}
2699 \bibliography{example-ref}
2709 %</example|example-draft>
2713 % \subsubsection{Part}
2717 \part{A Part Heading}
2718 \chapter{A Chapter Heading}
2719 \section{A Section Heading}
2720 The following sectioning commands are available:
2732 You can cite your references with |natbib|'s |\citet| and |\citep|
2734 \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}
2735 {the natbib manual} for details.
2737 Here we have a text citation \citet{rief97} followed by a
2738 parenthetical citation\citep{rief97}.
2740 \subsubsection{Tables and Figures}
2743 \caption{A table float}
2745 \begin{tabular}{r@{.}l r@{.}l r@{.}l}
2746 \multicolumn{2}{c}{Time (s)} &
2747 \multicolumn{2}{c}{John Henry (m)} &
2748 \multicolumn{2}{c}{Steam drill (m)} \\
2750 10&0 & 4&3 & 3&75 \\
2751 30&0 & 11&9 & 10&1 \\
2754 %% Note the strange |r@{.}l| notation in the |\tabular| column
2755 %% definition. This allows for numbers aligned at the decimal point
2756 %% (see \href{http://www.stat.unipg.it/tex-man/ltx-68.html}{here}).
2758 %% |\multicolumn{num_cols}{alignment}{contents}| allows the headings
2759 %% to span the pre- and post-decimal columns.
2765 \includegraphics[width=0.4\textwidth]{drexel-logo}
2767 \caption{A figure float}
2772 \chapter{Another Chapter}
2774 \chapter{Yet another Chapter}
2780 % \subsubsection{\BibTeX}
2782 % What goes into the \BibTeX\ file |example-ref.bib|?
2783 % For more information, check out this
2784 % \href{http://cmtw.harvard.edu/Documentation/TeX/Bibtex/Example.html}{basic tutorial}.
2785 % If you want to get deeper, take a look at
2786 % \href{http://www.ctan.org/tex-archive/info/bibtex/tamethebeast/}{Tame the BeaST}.
2788 % \href{http://www.andy-roberts.net/misc/latex/latextutorial3.html}{how the process works},
2789 % \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node6.html}{entry types},
2790 % \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node7.html}{fields},
2791 % \href{http://en.wikipedia.org/wiki/BibTeX}{entries and fields},
2792 % \href{http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html}{assorted style examples}, and
2793 % \href{http://liinwww.ira.uka.de/bibliography/Bib.Format.html}{assorted \BibTeX tools}.
2795 % Here is an example \BibTeX\ file to get you started. We define
2796 % strings for the publishers, journals, and authors to avoid
2797 % duplication, minimize the risk of typos, etc.
2800 %<*example-bibtex-refs>
2802 @String{APS = "American Physical Society"}
2805 @String{SCI = "Science"}
2808 @String{MRief = "Rief, Matthias"}
2809 @String{MGautel = "Gautel, Mathias"}
2810 @String{FOesterhelt = "Oesterhelt, Filipp"}
2811 @String{JFernandez = "Fernandez, Julio M."}
2812 @String{HGaub = "Gaub, Hermann E."}
2816 author = MRief #" and "# MGautel #" and "# FOesterhelt #" and "#
2817 JFernandez #" and "# HGaub,
2818 title = "Reversible Unfolding of Individual Titin Immunoglobulin
2823 pages = "1109--1112",
2825 doi = "10.1126/science.276.5315.1109",
2826 URL = "http://www.sciencemag.org/cgi/content/abstract/276/5315/1109",
2827 eprint = "http://www.sciencemag.org/cgi/reprint/276/5315/1109.pdf",
2828 mynote = "Seminal paper for force spectroscopy on Titin. Cited by
2829 Dietz '04 (ref 9) as an example of how unfolding large
2830 proteins is easily interpreted (vs.\ confusing unfolding in
2831 bulk), but Titin is a rather simple example of that, because
2832 of its globular-chain structure.",
2835 %</example-bibtex-refs>
2839 % \subsubsection{Appendix}
2842 %<*example-appendix>
2843 \chapter{Some Appendix Heading}
2845 \chapter{Another Appendix Heading}
2847 %</example-appendix>
2851 % \subsubsection{\pkg{blabla}}
2853 % Define the \pkg{blabla} package for generating dummy text. This
2854 % will make it easier to generate reasonable exampes.
2857 \ProvidesPackage{blabla} [2010/01/11 1.0 Dummy text generation]
2858 \RequirePackage{forloop}[2006/09/18]
2859 %% http://www.ctan.org/tex-archive/macros/latex/contrib/forloop/
2861 \newcounter{blabla@i}
2862 \newcounter{blabla@j}
2863 \newcommand{\blabla}[2]{
2864 \forloop{blabla@i}{0}{\value{blabla@i} < #1}{
2866 \forloop{blabla@j}{0}{\value{blabla@j} < #2}{ bla }