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}{{\scshape 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{mydraftwatermark} & 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 table of contents lines are
189 % printed. \LaTeX\ defaults to bold but not dots. The \Lopt{*toc}
190 % options set all of the types. For example, \Lopt{boldtoc} is
191 % equivalent to \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
197 % correcting. Requires the \pkg{draftmark} package.
199 % \DescribeOption{mydraftwatermark}
200 % \Lopt{mydraftwatermark} is similar to \Lopt{draftwatermark} but
201 % depends on the possibly more common \pkg{xcolor}, \pkg{eso-pic},
202 % and \pkg{graphicx}.
204 % \DescribeOption{indentfirst}
205 % \Lopt{indentfirst} indents the first paragraph after sections etc.
208 % \subsubsection{Interesting \cls{book} options}
210 % \DescribeOption{oneside}
211 % Setup output for one-sided printing.
213 % \DescribeOption{twoside}
214 % Setup output for two-sided printing.
216 % \DescribeOption{leqno}
217 % \Lopt{leqno} places the numbering of formulae on the left hand side
218 % instead of the right.
220 % \DescribeOption{fleqn}
221 % \Lopt{fleqn} typesets displayed formulae left-aligned instead of
225 % \subsection{Macros}
228 % `\cs{author}\marg{name}'
230 % \DescribeMacro{\author}
231 % Use this macro to set your full name to \meta{name}, including
232 % your middle initial or name. For example
234 % \name{Richard P. Feynman}
236 % See the Manual 3.1 p8.
239 % `\cs{title}\marg{title}'
241 % \DescribeMacro{\title}
242 % Use this macro to set your thesis title to \meta{name}. For example
244 % \title{A New Approach to Quantum Theory}
246 % See the Manual p16.
249 % `\cs{advisor}\marg{name}'
251 % \DescribeMacro{\advisor}
252 % Use this macro to set your advisor's name to \meta{name}. For
255 % \advisor{John A. Wheeler, Ph.D.}
257 % You can set multiple advisors, if appropriate, by calling |\advisor|
260 % \advisor{John A. Wheeler, Ph.D.}
261 % \advisor{Advisor 2}
263 % See the Manual 3.1 p8.
266 % `\cs{defmonth}\marg{month}'
267 % `\cs{defyear}\marg{year}'
269 % \DescribeMacro{\defmonth}
270 % \DescribeMacro{\defyear}
271 % Use these macros to set the month with \meta{month} (spelled out)
272 % and year with \meta{year} (four digits) of your thesis defense. For
278 % See the Manual 3.1 p8.
279 % The |def| in |\def*| avoids collisions with the plain \TeX\
280 % |\month| and |\year| (see the
281 % \href{http://www.tug.org/utilities/plain/cseq.html#month-rp}{month}
283 % \href{http://www.tug.org/utilities/plain/cseq.html#year-rp}{year}
284 % entries in the HTML version of David Bausum's \emph{TeX Reference
288 % `\cs{degree}\marg{degree}'
290 % \DescribeMacro{\degree}
291 % Set your target degree with \meta{degree}. From the Manual 3.1 p8.
293 % Write out the name of the degree for which you are a candidate.
294 % All Ph.D.\ candidates must use |Doctor of Philosophy|. All
295 % Master's degree candidates should use the precise degree name
296 % (e.g., |Master of Science in Mechanical Engineering|).
298 % So, for a Ph.D candidate,
300 % \degree{Doctor of Philosophy}
304 % `\cs{copyrighttext}\marg{text}'
306 % \DescribeMacro{\copyrighttext}
307 % Use this macro to set the copyright text to \meta{text}.
308 % The default value is ``All Rights Reserved.''.
310 % \copyrighttext{Released to the Public Domain.}
312 % See the Manual 3.2 p9.
315 % `\cs{copyrighttextCC}'
317 % There are a number of predefined copyright messages for ease of use \\
318 % \begin{tabular}{l l}
319 % |\copyrighttextCC| & Creative Commons copyright \\
323 % `\cs{tableofcontents}'
325 % \DescribeMacro{\tableofcontents}
326 % Write the table of contents (Manual 3.5 p9). You can control the
327 % verbosity by setting |\tocdepth| according to the following table
328 % (\href{http://www.image.ufl.edu/help/latex/intext.shtml}{source}). \\
329 % \begin{tabular}{l l l}
330 % Depth in document & Section Command & Depth for |\secnumdepth| Command \\
331 % -1 & |\part| & 1 \\
332 % 0 & |\chapter| & 2 \\
333 % 1 & |\section| & 3 \\
334 % 2 & |\subsection| & 4 \\
335 % 3 & |\subsubsection| & 5 \\
336 % 4 & |\paragraph| & 6 \\
337 % 5 & |\subparagraph| & 7
339 % For example, to expose everything down to and including the
340 % |\subsection| level, you would add
342 % \setcounter{tocdepth}{2}
344 % to your preamble (the section before |\begin{document}|, not the
345 % |preamble| environment discussed below).
347 % Note that the Manual 3.5 p9 requires ``List chapter titles and at
348 % least the first and second order subdivisions.'', which corresponds
349 % to a |\tocdepth| of at least 2.
352 % `\cs{listoftables}'
354 % \DescribeMacro{\listoftables}
355 % Write the List of Tables page (Manual 3.6 p10).
356 % Skip if you have no tables in your thesis.
359 % `\cs{listoffigures}'
361 % \DescribeMacro{\listoffigures}
362 % Write the List of Figures page (Manual 3.7 p10).
363 % Skip if you have no figures in your thesis.
366 % `\cs{blanklines}\marg{num}'
368 % \DescribeMacro{\blanklines}
369 % Insert \meta{num} blank lines. For example
373 % The skipped lines are always \emph{single spaced} lines, regardless
374 % of the current line spacing in the environment calling this macro.
377 % \subsection{Environments}
379 % \DescribeEnv{preamble}
380 % Generalize the |\frontmatter| for the thesis, setting up page
381 % numbering, including the title page, copyright page etc. The
382 % |preamble| environment should contain the following elements
383 % (in order, see the Manual p8)
385 % \item |dedication| environment (optional)
386 % \item |acknowledgments| environment (optional)
387 % \item |\tableofcontents|
388 % \item |\listoftables|
389 % \item |\listoffigures|
390 % \item |abstract| environment
392 % This will take care of everything from the title page (Manual 3.1),
393 % up through the blank page before the text (Manual 3.9).
395 % \DescribeEnv{dedications}
396 % Set the dedications text.
397 % Highlights from the Manual 3.3 p9:
399 % The |Dedications| page is optional.
402 % \DescribeEnv{acknowledgments}
403 % Set the acknowledgments text.
404 % Highlights from the Manual 3.4 p9:
406 % The |Acknowledgments| page is optional, but most theses do
407 % include a brief statement of thanks or recognition of any special
411 % \DescribeEnv{abstract}
412 % Set the thesis abstract text. In the Thesis Manual, see section 3.8
413 % Abstract (p10) for details, p20 for an example.
415 % Highlights from the Manual:
417 % The abstract is a summary that allows readers to determine the
418 % value of reading the full thesis. It should include a statement
419 % of the problem, an outline of procedures or methods, and a summary
420 % of results and conclusions.
423 % \item Word limits: 600 for a Master's thesis, 350 for a Ph.D.\ thesis.
426 % \DescribeEnv{thesis}
427 % Set the thesis text. In the Thesis Manual, see section 3.10 Thesis
430 % Highlights from the Manual:
432 % Divide the text into its major parts/chapters/subsections. No
433 % fixed arrangement is necessary. The major parts may contain such
434 % subjects as introduction, general argument, description of
435 % experimental procedures, research methods, discussion, summary,
436 % conclusions, recommendations, and other pertinent topics that are
437 % necessary for a complete understanding on the part of a
438 % sophisticated or professional reader.
442 % Set the thesis vita text (Ph.D.\ only). See the Manual 3.15 p12,
443 % ``Vita'', for details.
445 % Highlights from the Manual:
447 % The Vita is a biography of the student written in the third person
448 % in either essay or outline form. It should include the full name,
449 % place and date of birth (optional), country of citizenship
450 % (optional), institutions attended, degrees and honors received,
451 % titles of publications, teaching and professional experience, and
452 % other pertinent data. The Vita must be one page or less.
459 % \subsubsection{Package installation}
460 % \label{sec:dependencies}
462 % All the packages this class depends on must be installed somewhere
463 % in your texmf tree (they probably already are). If not, you will
464 % recieve warning messages on compilation such as
466 % ! LaTeX Error: File `missing-package.sty' not found.
468 % You should then install the missing package(s) using your operating
469 % systems package manager, or grab the missing package from
470 % \href{http://www.ctan.org/}{CTAN}, and install them following TODO.
473 % \subsubsection{Tables and Figures}
475 % \pkg{drexel-thesis} loads
476 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
477 % to define the |\includegraphics| macro,
478 % \href{http://www.ctan.org/tex-archive/macros/latex/required/caption/}{\pkg{caption}}
479 % for pretty caption formatting, and
480 % \href{http://www.ctan.org/tex-archive/macros/latex/required/floatrow/}{\pkg{floatrow}}
481 % for placing captions.
483 % Simple float definitions will look like
486 % \caption{Some caption text}
487 % \begin{tabular}{...}
495 % \includegraphics{...}
496 % \caption{Some caption text}
499 % For more useful float information, see the
500 % \href{http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions}
501 % {\LaTeX\ wikibook page}.
504 % \subsubsection{Citations}
506 % I highly recommend using \BibTeX\ and
507 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}{\pkg{natbib}}.
508 % See Section \ref{sec:better-example} for a simple example.
510 % Suggested options:\\
511 % \begin{tabular}{r p{0.8\textwidth}}
512 % |super| & selects citations in superscript mode. \\
513 % |sort&compress| & automatically sorts and compresses compound
514 % citations (|\pcite{a,b,...}|).
518 % \subsubsection{References}
520 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/cleveref/}{\pkg{cleveref}}.
521 % Is a wonderful tool for easy, consistent crosslinking. The manual is also very good.
524 % \subsubsection{Hyperlinks}
526 % \cls{drexel-thesis} loads
527 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{\pkg{hyperref}}.
528 % with the options:\\
529 % \begin{tabular}{r p{0.8\textwidth}}
530 % |colorlinks| & color the link letters instead of drawing colored boxes. \\
533 % If running with a pdftex-based driver, |\author|, |\title|, and
534 % |\degree| automatically set |pdfauthor|, |pdftitle|, and
535 % |pdfsubject| respectively. You can use the |\hypersetup| macro to
536 % set options overriding these defaults.
539 % \StopEventually{\pagebreak\PrintChanges}
542 % \section{Implementation}
547 % For simplicity, we'll derive everything from the standard \cls{book}
551 % \subsection{Option Processing}
554 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xkeyval/}{\pkg{xkeyval}}
555 % for easier option parsing. If the package is not installed on your system,
556 % see Section \ref{sec:dependencies} for installation instructions.
558 \RequirePackage{xkeyval}
561 % Define some booleans to store option states
563 \newif\if@mainmatter \@mainmattertrue
564 \newif\if@dottedchapter
565 \newif\if@boldchapter
568 \newif\if@draftwatermark
569 \newif\if@mydraftwatermark
570 \newif\if@indentfirst
571 \newif\if@final \@finalfalse
574 % \begin{option}{finalspace}
576 \DeclareOptionX{finalspace}{
577 \setlength\overfullrule{0pt}
578 \def\@cont@sep{1} % content page separation (# blanklines between entries)
579 \def\@ssp{1} % single space
580 \def\@dsp{2} % double space
581 \def\@tsp{3} % triple space
586 % \begin{option}{draftspace}
588 \DeclareOptionX{draftspace}{
589 \setlength\overfullrule{5pt}
590 \def\@cont@sep{0} % content page separation (# blanklines between entries)
591 \def\@ssp{1} % single space
592 \def\@dsp{1} % double space
593 \def\@tsp{2} % triple space
595 % Don't force chapters onto right-hand pages.
597 \PassOptionsToClass{openany}{book}
603 % \begin{option}{dottedpart}
605 \DeclareOptionX{dottedpart}{\@dottedparttrue}
608 % \begin{option}{dottedchapter}
610 \DeclareOptionX{dottedchapter}{\@dottedchaptertrue}
613 % \begin{option}{boldpart}
615 \DeclareOptionX{boldpart}{\@boldparttrue}
618 % \begin{option}{boldchapter}
620 \DeclareOptionX{boldchapter}{\@boldchaptertrue}
623 % \begin{option}{dottedtoc}
625 \DeclareOptionX{dottedtoc}{
626 \setkeys{drexel-thesis.cls}{dottedpart}
627 \setkeys{drexel-thesis.cls}{dottedchapter}
631 % \begin{option}{boldtoc}
633 \DeclareOptionX{boldtoc}{
634 \setkeys{drexel-thesis.cls}{boldpart}
635 \setkeys{drexel-thesis.cls}{boldchapter}
640 % \begin{option}{draftwatermark}
641 % Set \Lopt{draftwatermark} flag
643 \DeclareOptionX{draftwatermark}{%
645 \@mydraftwatermarkfalse}
649 % \begin{option}{mydraftwatermark}
650 % Set \Lopt{mydraftwatermark} flag
652 \DeclareOptionX{mydraftwatermark}{%
653 \@mydraftwatermarktrue
654 \@draftwatermarkfalse}
658 % \begin{option}{indentfirst}
659 % Set \Lopt{indentfirst} flag
661 \DeclareOptionX{indentfirst}{\@indentfirsttrue}
665 % Define the book options that \Lopt{final} and \Lopt{draft} need to
667 % \begin{option}{oneside}
669 \DeclareOptionX{oneside}{\PassOptionsToClass{oneside}{book}}
673 % \begin{option}{twoside}
675 \DeclareOptionX{twoside}{\PassOptionsToClass{twoside}{book}}
679 % \begin{option}{final}
681 \DeclareOptionX{final}{
682 \setkeys{drexel-thesis.cls}{oneside}
683 \setkeys{drexel-thesis.cls}{finalspace}
684 \setkeys{drexel-thesis.cls}{dottedtoc}
689 % \begin{option}{draft}
691 \DeclareOptionX{draft}{
692 \setkeys{drexel-thesis.cls}{twoside}
693 \setkeys{drexel-thesis.cls}{draftspace}
694 \setkeys{drexel-thesis.cls}{dottedtoc}
695 \setkeys{drexel-thesis.cls}{mydraftwatermark}
700 % Use the default \cls{book} implementation for any remaining options
701 % including \Lopt{oneside}, \Lopt{twoside}, \Lopt{leqno}, \Lopt{fleqn},
704 \DeclareOptionX*{\PassOptionsToClass{\CurrentOption}{book}}
707 % Execute the default options
709 \ExecuteOptionsX{final}
712 % Process options and load the book class
714 \ProcessOptionsX\relax
719 % \subsection{Internal package includes}
722 % Include some other packages we'll need. If the package is not
723 % installed on your system, see Section \ref{sec:dependencies} for
724 % installation instructions.
726 % For many packages, we want the same functionality for both
727 % \Lopt{final} and \Lopt{draft} modes. We pass \Lopt{final} to most
728 % of those packages to override a possible \Lopt{draft} option passed
729 % to \pkg{drexel-thesis}.
732 % \subsubsection{\pkg{setspace}}
734 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/setspace/}{\pkg{setspace}}
735 % for double spacing.
737 \RequirePackage{setspace}
741 % \subsubsection{\pkg{calc}}
743 % \href{http://www.ctan.org/tex-archive/macros/latex/required/tools/}{\pkg{calc}}
744 % for |\set@lines@length| macro (page
745 % \pageref{sec:implement-line-spacing}).
747 \RequirePackage{calc}
751 % \subsubsection{\pkg{graphicx}}
753 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
754 % for |\includegraphics|. Not strictly necessary, but I can't imagine
755 % a thesis without figures.
757 \RequirePackage[final]{graphicx}
760 % We include the graphicx package now so we can
761 % pass \Lopt{final}, because some later packages include it with no options,
762 % and a \Lopt{final} include after that produces errors like
764 % l.104 \RequirePackage
766 % The package graphicx has already been loaded with options:
768 % There has now been an attempt to load it with options
773 % \subsubsection{\pkg{draftmark}}
775 % The Comp.~Sci.\ class used
776 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftcopy/}{\pkg{draftcopy}}
777 % to add their watermarks, but as of the current 2002/02/25 v2.16, it
778 % uses postscript specials, and so doesn't work with pdf\LaTeX.
779 % Instead we use the recent (catalogued 2009/11/03)
780 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftmark/}{\pkg{draftmark}}
781 % which unfortunately has a number of apparently non-standard dependencies
782 % (\href{http://www.ctan.org/tex-archive/macros/latex/contrib/etextools/}{\pkg{etextools}},
783 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/etoolbox/}{\pkg{etoolbox}},
784 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/lastpage/}{\pkg{lastpage}},
785 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/ltxnew/}{\pkg{ltxnew}},
786 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/pagerange/}{\pkg{pagerange}},
787 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xifthen/}{\pkg{xifthen}},
788 % if only I had the space to install |texlive-latexextra| |:p|).
789 % The output is, however, very flexible, and it \emph{does} work with
790 % both \LaTeX\ and pdf\LaTeX. If you don't like the default watermark,
791 % you can also adjust the particulars with |\draftmarksetup|.
794 \RequirePackage[draft,allpages,mark={DRAFT \today},
795 fontsize=2cm,grayness=0.9]{draftmark}
799 % Here is Evan's alternative implementation This will not look right
800 % as a DVI, but it'll look fine once rendered to either a PS or PDF.
804 % Use \pkg{eso-pic} for |\AddToShipoutPicture|.
806 \RequirePackage{eso-pic}
808 % Use \pkg{xcolor} for |\definecolor|.
810 \RequirePackage{xcolor}
811 \definecolor{watermark}{rgb}{0.9,0.9,0.9}
813 % Set the font explicitly to avoid being effected by the last text on
814 % the page having some strange font. |\sffamily| sets a sans serif
817 \newcommand{\watermarkfont}{%
818 \color{watermark}}%\fontfamily{phv}\selectfont\sffamily}
819 \newcommand{\watermark}{%
820 \rule{4.25in}{0pt}\raisebox{5.5in}{%
823 % |\rotatebox| and |\resizebox| from \pkg{graphicx}.
825 \rotatebox[origin=c]{45}{%
826 \resizebox{!}{1.5in}{%
827 {\watermarkfont DRAFT}%
831 \rotatebox[origin=c]{45}{%
832 \resizebox{!}{.6in}{%
833 {\watermarkfont \qquad\today}%
835 \AddToShipoutPicture{\watermark{}}
840 % \subsubsection{\pkg{indentfirst}}
842 % Indent the first paragraph after sections etc.\ with
843 % \href{http://www.ctan.org/tex-archive/macros/latex/required/tools/}{\pkg{indentfirst}}.
846 \RequirePackage{indentfirst}
851 % \subsubsection{\pkg{geometry}}
853 % Setup page margins with
854 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/geometry/}{\pkg{geometry}}.
855 % From the Manual p5:
857 % \item The left margin must be at least 1 1/2'' (1.5 inches)
858 % throughout the document.
859 % \item All other margins (top, bottom, and right) must be at least 1''.
861 % And from the Manual 1.5 p4, Print Version:
863 % The paper size must be 8 1/2'' x 11''.
866 \RequirePackage[letterpaper,margin=1in,bindingoffset=0.5in]{geometry}
868 % Note that we include the \pkg{geometry} package after loading \cls{book} to
869 % override the margin manipulation that takes place in \cls{book}.
872 % \subsubsection{\pkg{tocloft}}
874 % Typeset the table of contents, etc., with
875 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/tocloft/}{\pkg{tocloft}}.
877 \RequirePackage{tocloft}
879 % The configuration of \pkg{tocloft} takes place in Sections
880 % \ref{sec:implement-toc}, \ref{sec:implement-lof}, and
881 % \ref{sec:implement-lot}.
884 % \subsubsection{\pkg{caption}}
886 % Get nice caption formatting with
887 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/caption/}{\pkg{caption}}.
888 % From the Manual p5:
890 % \item The left margin must be at least 1 1/2'' (1.5 inches)
891 % throughout the document.
892 % \item All other margins (top, bottom, and right) must be at least 1''.
895 \RequirePackage[margin=10pt,labelfont=bf,labelsep=colon]{caption}
897 % You can change these settings if you like using |\captionsetup|.
900 % \subsubsection{\pkg{floatrow}}
901 % \label{sec:floatrow}
903 % Enforce caption placement with
904 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/floatrow/}{\pkg{floatrow}}.
905 % From the Manual 2.3 p6, ``Tables and Figures'',
908 % \item Place figure captions below figures.
909 % \item Place table captions above tables.
913 \RequirePackage{floatrow}
914 \floatsetup[table]{style=plaintop}
915 \floatsetup{captionskip=10pt}
916 \floatsetup[table]{captionskip=10pt}
918 % We set up the three-line surrounding spaces in Section
919 % \ref{sec:implement-floats}.
921 % You can change these settings using |\floatsetup|, but you probably
925 % \subsubsection{\pkg{fancyhdr}}
927 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/}{\pkg{fancyhdr}}
928 % for correct page numbering and fancy headers.
929 % From the Manual 2.3 p5, ``Pagination''
931 % Place page numbers in the upper right-hand corner of the page,
932 % 3/4'' from the top.
935 \RequirePackage{fancyhdr}
937 % Setup the standard |fancy| format.
941 \renewcommand{\headrulewidth}{0pt}
943 % 0.4 pt is \pkg{fancyhdr}'s default |\headrulewidth|, so we'll
946 \renewcommand{\footrulewidth}{0.4pt}
948 % |\leftmark| is the higher level mark, see |\chaptermark| below.
949 % |\rightmark| is the lower level mark, see |\sectionmark| below.
950 % We put the lower level mark to the outside because it changes more
951 % often. Page numbers also go on the outside.
953 \fancyfoot[RE,LO]{\scshape\leftmark}
954 \fancyfoot[LE,RO]{\scshape\rightmark}
955 \fancyhead[LE,RO]{\thepage}
957 % Override the |plain| format (for part pages, etc.).
959 \fancypagestyle{plain}{
961 \renewcommand{\footrulewidth}{0pt}
962 \fancyhead[LE,RO]{\thepage}
965 % Keep the |empty| format at its default.
967 \fancypagestyle{empty}{
969 \renewcommand{\footrulewidth}{0pt}
974 % \subsubsection{\pkg{ifpdf}}
976 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{ifpdf}}
977 % for detecting PDF drivers. We use it to configure \pkg{hyperref} below.
979 \RequirePackage{ifpdf}
982 % \subsubsection{\pkg{hyperref}}
984 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{\pkg{hyperref}}
985 % for hyperlinks. Not strictly necessary, but I can't imagine a
988 \RequirePackage[final]{hyperref}
990 % Nobody likes the default colored boxes. Color the text itself.
992 \hypersetup{colorlinks}
994 % If we're writing a PDF, we set the |pdfauthor|, etc.\ arguments in
995 % |\author|, etc.\ to avoid using |\AtBeginDocument| or some such.
998 % \subsection{\LaTeX\ overrides and extensions}
1000 % Here we change the behavior of a bunch of macros and environments
1001 % from \file{latex.ltx} (generated by \file{format.ins} in
1002 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{base}}).
1003 % We'll copy in their original notes along with their code, following
1004 % the relevant documentation an order given in \file{format.ins} and
1005 % the associated \file{*.dtx} files.
1008 % \subsubsection{\file{ltsect.dtx}}
1010 % \begin{macro}{\title}
1011 % |\title| for use in |\maketitle|. If not given |\maketitle| will
1012 % produce a warning message (\file{ltsect.dtx}, L117).
1014 % We extend |\title| to set \pkg{hyperref}'s |pdftitle|.
1015 % (\file{ltsect.dtx}, L117).
1017 \let\DUT@title\title
1018 \renewcommand{\title}[1]{
1020 \ifpdf \hypersetup{pdftitle={\@title}} \fi
1025 % \begin{macro}{\author}
1026 % |\author| for use in |\maketitle|. If not given |\maketitle| will
1027 % produce a warning message (\file{ltsect.dtx}, L129).
1029 % We extend |\author| to set \pkg{hyperref}'s |pdfauthor|.
1030 % (\file{ltsect.dtx}, L129).
1032 \let\DUT@author\author
1033 \renewcommand{\author}[1]{
1035 \ifpdf \hypersetup{pdfauthor={\@author}} \fi
1040 % In a similar vein, we some additional meta-info macros.
1042 % \begin{macro}{\defmonth}
1043 % \begin{macro}{\@defmonth}
1044 % |\defmonth| (defense month) for use in |\maketitle|. If not given
1045 % |\maketitle| will produce an error message.
1047 \def\defmonth#1{\gdef\def@month{#1}}
1048 \def\def@month{\@latex@error{No \noexpand\defmonth given}\@ehc}
1053 % \begin{macro}{\defyear}
1054 % \begin{macro}{\@defyear}
1055 % |\defyear| (defense year) for use in |\maketitle|. If not given
1056 % |\maketitle| will produce an error message.
1058 \def\defyear#1{\gdef\def@year{#1}}
1059 \def\def@year{\@latex@error{No \noexpand\defyear given}\@ehc}
1064 % \begin{macro}{\degree}
1065 % \begin{macro}{\@degree}
1066 % |\degree| for use in |\maketitle|. If not given |\maketitle| will
1067 % produce an error message.
1069 \def\degree#1{\gdef\@degree{#1}
1070 \ifpdf \hypersetup{pdfsubject={\@degree}} \fi}
1071 \def\@degree{\@latex@error{No \noexpand\degree given}\@ehc}
1076 % \begin{macro}{\copyrighttext}
1077 % \begin{macro}{\@copyrighttext}
1078 % |\copyrighttext| for use in |\makecopyright|. There are a number of
1079 % blurbs predefined in Section \ref{sec:implement-copyright}.
1081 \def\copyrighttext#1{\gdef\@copyrighttext{#1}}
1082 \def\@copyrighttext{All Rights Reserved.}
1087 % \begin{macro}{\advisor}
1088 % \begin{macro}{\@advisor}
1089 % |\advisor| for use in |\maketitle|. If not given |\maketitle| will
1090 % produce an error message. We get a bit fancier here to support
1091 % multiple advisors.
1093 \newcounter{advisors}
1094 \setcounter{advisors}{0}
1095 \newcommand\advisor[1]{%
1098 % If |#1| is |\empty|, this call is a no-op.
1103 % Save the advisors to |\@advisor@a|, |\@advisor@b|, \ldots.
1104 % |\alph{|\Lcount{COUNTER}|}| (\file{ltcounts.dtx}, L319) prints the
1105 % value of \Lcount{COUNTER} as a lowercase letter: $1 =$~a, $2 =$~
1108 \stepcounter{advisors}
1109 \expandafter\gdef\csname @advisor@\alph{advisors}\endcsname{#1}
1111 \newcommand\@advisor{%
1112 \ifnum\c@advisors=0%
1113 \@latex@error{No \noexpand\advisor given}\@ehc%
1116 % Start a group so \Lcount{advisor@loop} is released afterwards to
1120 \newcounter{advisor@loop}%
1121 \setcounter{advisor@loop}{1}%
1123 % Print the first advisor.
1125 \csname @advisor@\alph{advisor@loop}\endcsname\relax%
1127 % For any remaining advisors\ldots
1129 \loop\ifnum\c@advisor@loop<\c@advisors%
1130 \stepcounter{advisor@loop}%
1132 % Print the connecting text.
1134 \ifnum\c@advisor@loop=\c@advisors%
1135 \ifnum\c@advisors=2%
1137 % The next advisor if the last of two.
1142 % The next advisor if the last of many.
1148 % The next advisor is not the last.
1153 % Print the advisor's name.
1155 \csname @advisor@\alph{advisor@loop}\endcsname\relax%
1163 % \paragraph{baselineskip}
1164 % \label{sec:implement-line-spacing}
1166 % \begin{macro}{\DUT@baselineskip}
1167 % Since we'll be messing with the spacing, save the single-spaced
1169 % \changes{0.3}{2010/01/13}{Use \\setlength to store the value at
1170 % the default font. The previous version used \\let, which made
1171 % \\DUT\@baselineskip a synonym for \\baselineskip that changed
1174 \newlength\DUT@baselineskip
1175 \setlength\DUT@baselineskip\baselineskip
1180 % `\cs{set@lines@length}\marg{length}\marg{N}'
1182 % \begin{macro}{\set@lines@length}
1183 % Many specifications in the Manual refer to ``\meta{N} blank lines''.
1184 % |\set@lines@length| allows you to set a length to a given number of
1185 % lines, protecting against external |spacing| environments. It
1186 % requires \pkg{calc} for the multiplication.
1188 \newcommand{\set@lines@length}[2]{%
1189 \setlength{#1}{\DUT@baselineskip * {#2}}}
1194 % Fix |\@ssect| and |\@sect| from \file{latex.ltx} to give single
1197 % \begin{macro}{\@sect}
1198 % Pseudocode for the |\@sect| command
1200 % \@sect{NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}[ARG1]{ARG2}
1203 % IF LEVEL > \c@secnumdepth
1204 % THEN \@svsec :=L null
1205 % ELSE \refstepcounter{NAME}
1206 % \@svsec :=L BEGIN \@seccntformat{#1}\relax END
1211 % \@hangfrom{\hskip INDENT\@svsec}
1212 % {\interlinepenalty 10000 ARG2\par}
1215 % \addcontentsline{toc}{NAME}
1216 % { IF LEVEL > \c@secnumdepth
1217 % ELSE \protect\numberline{\theNAME} FI
1219 % ELSE \@svsechd == BEGIN STYLE
1220 % \hskip INDENT\@svsec
1223 % \addcontentsline{toc}{NAME}
1224 % { IF LEVEL > \c@secnumdepth
1226 % \protect\numberline{\theNAME}
1231 % \@xsect{AFTERSKIP}
1234 % (\file{ltsect.dtx}, L295).
1236 \def\@sect#1#2#3#4#5#6[#7]#8{%
1237 \ifnum #2>\c@secnumdepth
1240 \refstepcounter{#1}%
1241 \protected@edef\@svsec{\@seccntformat{#1}\relax}%
1243 \@tempskipa #5\relax
1244 \ifdim \@tempskipa>\z@
1247 % Here we deviate from \file{ltsect.dtx} to ensure single spacing for
1248 % the section title.
1252 \@hangfrom{\hskip #3\relax\@svsec}%
1253 \interlinepenalty \@M #8\@@par}%
1255 \csname #1mark\endcsname{#7}%
1256 \addcontentsline{toc}{#1}{%
1257 \ifnum #2>\c@secnumdepth \else
1258 \protect\numberline{\csname the#1\endcsname}%
1265 \csname #1mark\endcsname{#7}%
1266 \addcontentsline{toc}{#1}{%
1267 \ifnum #2>\c@secnumdepth \else
1268 \protect\numberline{\csname the#1\endcsname}%
1276 % \begin{macro}{\@ssect}
1277 % Pseudocode for the |\@ssect| command
1279 % \@ssect{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}{ARG} ==
1284 % \@hangfrom{\hskip INDENT}{\interlinepenalty 10000 ARG\par}
1286 % ELSE \@svsechd == BEGIN STYLE
1291 % \@xsect{AFTERSKIP}
1294 % (\file{ltsect.dtx}, L521).
1296 \def\@ssect#1#2#3#4#5{%
1297 \@tempskipa #3\relax
1298 \ifdim \@tempskipa>\z@
1301 % Here we deviate from \file{ltsect.dtx} to ensure single spacing for
1302 % the section title.
1306 \@hangfrom{\hskip #1}%
1307 \interlinepenalty \@M #5\@@par}%
1310 \def\@svsechd{#4{\hskip #1\relax #5}}%
1317 % \subsubsection{\file{ltbibl.dtx}}
1319 % \DescribeMacro{\bibliography}
1320 % \DescribeEnv{thebibliography}
1321 % A bibliography is created by the |thebibliography| environment, which
1322 % generates a title such as ``Bibliography'', and a list of entries.
1323 % The \BibTeX\ program will create a file containing such an
1324 % environment, which will be read in by the |\bibliography| command.
1325 % With \BibTeX, the following commands will be used.
1327 % The document class must define the thebibliography environment. This
1328 % environment has a single argument, which is the widest bibliography
1329 % label-- e.g., if the [Knuth67] is the widest entry, then this
1330 % argument will be Knuth67. The |\thebibliography| command must begin
1331 % a list environment, which the |\endthebibliography| command ends.
1333 % \begin{macro}{\bibliography}
1334 % |\bibliography|\marg{file1,file2,\ldots,filen} : specifies
1335 % the bibdata files. Writes a |\bibdata| entry on the |.aux| file
1336 % and tries to read in |mainfile.bbl|.
1338 % We don't need to change it, but it explains why we need to override
1339 % |thebibliography| even when we don't use it directly.
1340 % (\file{ltbibl.dtx}, L284).
1342 %\def\bibliography#1{%
1344 % \immediate\write\@auxout{\string\bibdata{#1}}%
1346 % \@input@{\jobname.bbl}
1352 % \subsubsection{\file{ltoutput.dtx}}
1354 % \begin{macro}{\DUT@clearpage}
1355 % \begin{macro}{\DUT@cleardoublepage}
1356 % Versions of |\clear*page| that only work when |\if@final| is true
1357 % (\file{ltoutput.dtx}, L877 and L904).
1359 \newcommand\DUT@clearpage{\if@final \clearpage \fi}
1360 \newcommand\DUT@cleardoublepage{\if@final \cleardoublepage \fi}
1365 % \begin{macro}{\blankpage}
1366 % Add a useful extension to insert a blank page without numbering.
1367 % In draft mode, this macro is a no-op.
1369 \newcommand\blankpage{%
1372 \thispagestyle{empty}
1382 % `\cs{blanklines}\marg{N}'
1383 % `\cs{blanklines*}\marg{N}'
1385 % \begin{macro}{\blanklines}
1386 % Insert \meta{N} blank lines. The starred forms use |\vspace|, which
1387 % inserts space even at the start and end of pages. The |p| forms
1388 % add a trailing |\par|. \emph{I'm still trying to get this part working
1391 \newlength\DUT@blanklines@length
1392 \newcommand{\@blanklines@setup}[1]{%
1393 \set@lines@length{\DUT@blanklines@length}{#1}%
1394 %\typeout{BLANKLINES -- #1}%
1395 %\showthe\DUT@blanklines@length
1397 \newcommand{\blanklines}{\@ifstar\@sblanklines\@blanklines}
1398 \newcommand{\@blanklines}[1]{%
1399 \@blanklines@setup{#1}%
1400 \vspace{\DUT@blanklines@length}}
1401 \newcommand{\@sblanklines}[1]{%
1402 \@blanklines@setup{#1}%
1403 \vspace*{\DUT@blanklines@length}}
1404 \newcommand{\blanklinesp}{\@ifstar\@sblanklines\@blanklines}
1405 \newcommand{\@blanklinesp}[1]{%
1406 \@blanklines@setup{#1}%
1407 \vspace{\DUT@blanklines@length}\par}
1408 \newcommand{\@sblanklinesp}[1]{%
1409 \@blanklines@setup{#1}%
1410 \vspace*{\DUT@blanklines@length}\par}
1415 % \subsection{\cls{book} overrides and extensions}
1417 % Here we change the behavior of a bunch of macros and environments from
1418 % \cls{book} (generated by \file{classes.ins} from \file{classes.dtx}) in
1419 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{base}}).
1420 % We'll copy in their original notes along with their code, following
1421 % the relevant documentation an order given in \file{classes.dtx}.
1424 % \subsubsection{Floats on a text page}
1425 % \label{sec:implement-floats}
1427 % \begin{macro}{\floatsep}
1428 % \begin{macro}{\textfloatsep}
1429 % When a floating object is placed on a page with text, these
1430 % parameters control the separation between the float and the other
1431 % objects on the page.
1433 % |\floatsep| is the space between adjacent floats that are moved
1434 % to the top or bottom of the text page.
1436 % |\textfloatsep| is the space between the main text and floats
1437 % at the top or bottom of the page.
1439 % |\intextsep| is the space between in-text floats and the text. We
1440 % don't bother overriding this one, because we've handled it with
1441 % \pkg{floatrow} in Section \ref{sec:floatrow}.
1443 % From the Manual 2.3 p6, ``Tables and Figures''
1445 % Insert at least 3 single-spaced lines of space above table
1446 % captions and figures and below figure captions, tables, and other
1449 % (\file{classes.dtx}, L1426)
1451 \set@lines@length{\floatsep}{\@ssp}
1452 \set@lines@length{\textfloatsep}{\@tsp}
1458 % \subsubsection{The title}
1460 % \begin{macro}{\maketitle}
1461 % Automate the creation of the title page.
1462 % From Manual 3.1 p8, ``Title Page'', and the example on p16.
1464 % \item This page is counted but not numbered (it counts as page i,
1465 % but should not have a page number). TODO: How is this implemented?
1467 % Our definition simplifies \cls{book}'s by ignoring footnotes.
1468 % (\file{classes.dtx}, L1796)
1470 \renewcommand\maketitle{
1473 % Add some bookmarks if we're using pdf\LaTeX. The |frontmatter|
1474 % bookmark is set at the \emph{part} level (-1) to hold all bookmarks
1475 % from the |preamble| environment, since those entries are all
1479 \pdfbookmark[-1]{Frontmatter}{Frontmatter}
1480 \pdfbookmark[0]{Title Page}{Title Page}
1483 % Add some stretchy space to center the title vertically if we're not
1486 \if@final \vspace*{\fill} \fi
1488 % Here is the title text itself.
1491 {\setstretch{\@tsp} \bfseries \@title \par}%
1493 % We want two blank lines (triple spacing) between the title and the
1494 % remaining material, so add three but don't end the paragraph.
1499 Submitted to the Faculty\\
1504 in partial fulfillment of the\\
1505 requirements for the degree\\
1508 \def@month\ \def@year
1511 % Some more stretchy space for the bottom if we're not in draft mode.
1514 % Add some stretchy space to center the title vertically if we're not
1517 \if@final \vspace*{\fill} \fi
1520 % And that's it. We reset the footnote counter for the rest of the
1521 % document and save space by freeing the memory associated with the
1522 % |\maketitle| and |\and| macros (by setting them equal to |\relax|).
1524 \setcounter{footnote}{0}%
1525 \global\let\maketitle\relax
1526 \global\let\and\relax
1532 % \subsubsection{Copyright pages}
1533 % \label{sec:implement-copyright}
1535 % \begin{macro}{\makecopyright}
1536 % The Manual allows for the selection of different copyrights, so we
1537 % define a base macro that generates a proper copyright page
1538 % containing |\@copyrighttext|, which the user can set with
1540 % From Manual 3.2 p9, ``Copyright Page''.
1542 % \item Include a copyright page with the following information: a
1543 % copyright notice, full legal name of author, and date of
1544 % publication on file.
1545 % \item This page is neither counted nor numbered.
1547 % In final mode, we start off on a new page and center the blurb.
1548 % In draft mode, we dive right into the text.
1550 \newcommand\makecopyright{%
1553 % If we're using pdf\LaTeX, add a bookmark.
1555 \ifpdf \pdfbookmark[0]{Copyright Page}{Copyright Page} \fi
1556 \if@final \vspace*{\fill} \fi
1558 \copyright~Copyright \def@year\\
1559 \@author. \@copyrighttext
1561 \if@final \vspace*{\fill} \else \blanklinesp{2} \fi
1563 % Turn off page numbering for this page.
1565 \thispagestyle{empty}
1570 % \begin{macro}{\copyrighttextCC}
1571 % The Creative Commons license.
1573 \newcommand\copyrighttextCC{
1575 This work is licensed under the terms of the Creative Commons
1576 Attribution-ShareAlike license. The license is available at \\
1577 \url{http://creativecommons.org/licenses/by-sa/3.0/}.
1584 % \subsubsection{Mark commands}
1586 % Default initializations of |\*mark| commands. These commands
1587 % are used in the definition of the page styles.
1589 % \begin{macro}{\chaptermark}
1590 % Setup colon rather than period separated chapter marks.
1591 % (\file{classes.dtx}, L2053)
1593 \renewcommand\chaptermark[1]{%
1595 \ifnum \c@secnumdepth >\m@ne
1597 \@chapapp\ \thechapter: \ %
1604 % \begin{macro}{\schaptermark}
1605 % Setup unnumbered chapter marks for \pkg{fancyhdr}.
1607 \newcommand\schaptermark[1]{\markboth{#1}{}}
1611 % \begin{macro}{\sectionmark}
1612 % Setup space rather than period separated section marks.
1613 % (\file{classes.dtx}, L2054)
1615 \renewcommand{\sectionmark}[1]{%
1617 \ifnum \c@secnumdepth >\z@
1625 % \subsubsection{Front Matter, Main Matter, and Back Matter}
1627 % A book contains these three (logical) sections. The switch
1628 % |\@mainmatter| is true iff we are processing Main Matter. When this
1629 % switch is false, the |\chapter| command does not print chapter
1632 % \begin{macro}{\mainmatter}
1633 % This command clears the page (in final mode), starts arabic page
1634 % numbering and turns on chapter numbering. Since this restarts the
1635 % page numbering from 1, it should also ensure that a recto page is
1638 % We replace \cls{book}'s |\clear*page| calls with |\DUT@clearpage| calls.
1639 % (\file{classes.dtx}, L2211)
1641 \renewcommand\mainmatter{%
1642 \DUT@cleardoublepage
1644 \pagenumbering{arabic}}
1649 % \subsubsection{Parts}
1651 % \begin{macro}{\part}
1652 % The command to start a new part of our document.
1654 % We start a new (righthand) page and use the \pstyle{plain}
1655 % pagestyle, replacing \cls{book}'s |\clear*page| calls with
1656 % |\DUT@clearpage| calls and dropping twopage code.
1657 % (\file{classes.dtx}, L2249)
1659 \renewcommand\part{%
1661 \DUT@cleardoublepage
1665 \thispagestyle{plain}%
1668 % Add some stretchy space for vertical centering if we're in final mode.
1670 \if@final \null\vfil \fi
1672 % Here we use |\secdef| to indicate which commands to use to make
1673 % the actual heading.
1675 \secdef\@part\@spart}
1679 % \begin{macro}{\@part}
1680 % This macro does the actual formatting of the title of the part. We
1681 % replace \cls{book}'s |\Huge| with |\large|, and make use of
1682 % |\numberline| for consistent spacing.
1684 % When \Lcount{secnumdepth} is larger than $-2$, we have a numbered
1685 % part, otherwise it is unnumbered.
1686 % (\file{classes.dtx}, L2310)
1689 \ifnum \c@secnumdepth >-2\relax
1690 \refstepcounter{part}%
1691 \addcontentsline{toc}{part}%
1692 {\protect\numberline{\thepart}#1}%
1694 \addcontentsline{toc}{part}{#1}%
1697 % We empty the mark registers and center the title on the page.
1698 % Also we prevent breaking between lines and reset the font.
1702 \interlinepenalty \@M
1705 % When this is a numbered part we have to print the number.
1707 \ifnum \c@secnumdepth >-2\relax
1708 \large\bfseries \partname\nobreakspace\thepart
1711 % We leave some space before we print the title and leave the
1712 % finishing up to |\@endpart|.
1716 \large \bfseries #2\par}%
1721 % \begin{macro}{\@spart}
1722 % This macro does the actual formatting of the title of the part
1723 % when the star form of the user command was used. In this case we
1724 % \emph{never} print a number. Otherwise the formatting is the
1726 % (\file{classes.dtx}, L2402)
1730 \interlinepenalty \@M
1732 \large \bfseries #1\par}%
1737 % \begin{macro}{\@endpart}
1738 % This macro finishes the part page, for both |\@part| and |\@spart|.
1739 % We drop \cls{book}'s twoside handling.
1740 % If |\if@final| is true, we fill the current page.
1741 % (\file{classes.dtx}, L2435)
1744 \if@final \vfil\newpage \fi
1746 % Then, when we are in twosided mode and the chapters are supposed to
1747 % be on the right hand sides, we produce a completely blank page. We
1748 % don't need to check |\if@final| here, because \Lopt{draftspace} set
1749 % |\@openrighttrue|.
1754 \thispagestyle{empty}%
1762 % \subsubsection{Chapters}
1763 % \label{sec:implement-chapters}
1765 % \begin{macro}{\chapter}
1766 % \cls{book} always starts a chapter on a new page, but we don't want
1767 % to do that if we're in draft mode.
1768 % (\file{classes.dtx}, L2472).
1770 \renewcommand\chapter{%
1771 \if@openright\DUT@cleardoublepage\else\DUT@clearpage\fi
1772 \thispagestyle{plain}%
1774 % Then we prevent floats from appearing at the top of this page
1775 % because it looks weird to see a floating object above a chapter
1780 % Then we suppress the indentation of the first paragraph by
1781 % setting the switch |\@afterindent| to false. We use |\secdef|
1782 % to specify the macros to use for actually setting the chapter
1786 \secdef\@chapter\@schapter}
1790 % \begin{macro}{\listed@schapter}
1791 % |\chapter| declares numbered chapters, which are listed in the table
1793 % |\chapter*| declares unnumbered chapters, which are \emph{not}
1794 % listed in the TOC.
1795 % |\listed@schapter| declares an unnumbered chapter that \emph{is}
1796 % listed in the TOC.
1798 \newcommand\listed@schapter[1]{%
1799 \if@openright\DUT@cleardoublepage\else\DUT@clearpage\fi
1800 \thispagestyle{plain}%
1803 \addcontentsline{toc}{chapter}{#1}
1809 % \begin{macro}{\@chapter}
1810 % This macro is called when we have a numbered chapter. When
1811 % \Lcount{secnumdepth} is larger than $-1$ and |\@mainmatter| is true,
1812 % we display the chapter number.
1813 % We drop \cls{book}'s \Lopt{twocolumn} code.
1814 % (\file{classes.dtx}, L2496).
1816 \def\@chapter[#1]#2{
1818 % Inform the user that a new chapter is about to be typeset by writing
1819 % a message to the terminal.
1821 \typeout{\@chapapp\space\thechapter. #1}%
1822 \ifnum \c@secnumdepth >\m@ne
1824 \refstepcounter{chapter}%
1825 \addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}#1}%
1827 \addcontentsline{toc}{chapter}{#1}%
1830 \addcontentsline{toc}{chapter}{#1}%
1833 % After having written an entry to the table of contents we store
1834 % the (alternative) title of this chapter with |\chaptermark|.
1838 % For nicer lists of figures and tables, we could add some white space
1839 % to separate the chapters. However, nice lists $\neq$~Manual
1842 % \addtocontents{lof}{\protect\addvspace{10\p@}}%
1843 % \addtocontents{lot}{\protect\addvspace{10\p@}}%
1845 % Then we call upon |\@makechapterhead| to format the actual chapter
1846 % title. |\@afterheading| which takes care of suppressing the
1849 \@makechapterhead{#2}%
1854 % \begin{macro}{\@makechapterhead}
1855 % The |\@chapter| macro uses |\@makechapterhead|\meta{text} to format
1856 % the heading of the chapter.
1857 % From the Manual 3.11 p11.
1859 % Chapter headings must be bold and centered.
1860 % The chapter number and title must be on the same line, separated
1861 % by a colon or period, as shown in the example below:
1863 % CHAPTER 1: INTRODUCTION
1865 % Headings must not be larger than 12 points.
1866 % Headings must be single spaced.
1868 % \cls{book} sets |\@chapapp| and |\thechapter| (e.g.\ ``Chapter 5'')
1869 % on a line above the chapter title, but that doesn't match the
1870 % Manual's specification.
1872 % We begin by leaving some white space. The we open a group in which
1873 % we have a paragraph indent of 0pt, and in which we have the text set
1874 % ragged right. We also reset the font.
1875 % (\file{classes.dtx}, L2540).
1877 \def\@makechapterhead#1{%
1879 % Adding even a \vspace*{0\p@} here seems to increase the vertical
1880 % space above the chapter heading by two lines. I'm not sure why.
1881 % Workaround is to pass the ``value of blanklines you want minus two''
1882 % to |\blanklines*|.
1885 {\parindent \z@ \raggedright \normalfont
1887 % Ensure single spacing.
1891 % Prevent a pagebreak from occuring in the middle of or after the title.
1893 \interlinepenalty\@M
1895 % Check whether the number of the chapter has to be printed.
1897 \ifnum \c@secnumdepth >\m@ne
1899 % Check whether there \emph{is} a number to be printed.
1903 % Setup a ``Chapter \#: Title'' heading.
1905 \center \large \bfseries \@chapapp{} \thechapter: #1\par\nobreak
1908 % Setup a ``Title'' heading.
1910 \center \large \bfseries #1\par\nobreak
1913 \center \large \bfseries #1\par\nobreak
1916 % Put a little space before the chapter body. We use four blank lines
1917 % to comply with the Manual 3.13 p12
1919 % Begin the list of sources four spaces below the heading.
1928 % \begin{macro}{\@schapter}
1929 % This macro is called when we have an unnumbered chapter. We drop
1930 % \file{classes.dtx}'s \Lopt{twocolumn} code and set marks for
1932 % (\file{classes.dtx}, L2582).
1934 \def\@schapter#1{\schaptermark{#1}%
1935 \@makeschapterhead{#1}%
1940 % \begin{macro}{\@makeschapterhead}
1941 % The macro above uses |\@makeschapterhead|\meta{text} to format
1942 % the heading of the chapter. It is similar to |\@makechapterhead|
1943 % except that it never has to print a chapter number.
1944 % (\file{classes.dtx}, L2595).
1946 \def\@makeschapterhead#1{%
1948 {\parindent \z@ \raggedright \normalfont
1950 \interlinepenalty\@M
1951 \center \large \bfseries #1\par\nobreak
1959 % \subsubsection{Lower level headings}
1961 % \begin{macro}{\section}
1962 % Setup section headings in |\large| rather than \cls{book}'s
1964 % (\file{classes.dtx}, L2623).
1966 \renewcommand\section{%
1967 \@startsection {section}{1}{\z@}%
1968 {-3.5ex \@plus -1ex \@minus -.2ex}%
1970 {\normalfont\large\bfseries}}
1975 % \subsubsection{Defining new environments}
1977 % We don't override any of \cls{book}'s environments, but this is
1978 % where \file{classes.dtx} defines its environments (L2996), so we'll put
1981 % \begin{environment}{preamble}
1983 \newenvironment{preamble}{%
1986 \pagenumbering{roman}
1988 % From Manual 3.1 p8, ``Title Page''.
1992 % From Manual 3.2 p9, ``Copyright Page''.
1997 % From the Manual 3.9, p11:
1999 % Include a blank page (with no page number) before the first page
2000 % of text. The blank page is neither numbered nor counted.
2008 % \begin{environment}{dedications}
2009 % From the Manual 3.3 p9
2011 % \item The heading |Dedications| must appear at the top of the
2012 % page. The heading must be bold, centered, and without
2014 % \item This page is counted and numbered in lowercase Roman numerals.
2017 \newenvironment{dedications}{%
2021 \pdfbookmark[0]{\dedicationsname}{\dedicationsname}
2023 \chapter*{\dedicationsname}
2031 % \begin{environment}{acknowledgments}
2032 % From the Manual 3.4 p9
2034 % \item The heading |Acknowledgments| must appear at the top of the
2035 % page. The heading must be bold, centered, and without
2037 % \item This page is counted and numbered in lowercase Roman numerals.
2040 \newenvironment{acknowledgments}{%
2044 \pdfbookmark[0]{\acknowledgmentsname}{\acknowledgmentsname}
2046 \chapter*{\acknowledgmentsname}
2054 % \begin{environment}{abstract}
2056 \newenvironment{abstract}{%
2057 \listed@schapter{\abstractname}%
2059 % Suck up some blank space to position the rest of the header right
2060 % under the chapter title.
2064 % From the Manual 3.9 p10
2067 % \item The following heading must be centered at the top of the page
2070 % Full Title of Dissertation or Thesis \\
2071 % Author's Name as it appears on the Dissertation or Thesis
2073 % In the example on p20, they list the advisor's name after the
2074 % author, but that is not specified in the text on p10.
2075 % \item The text begins four lines below this heading.
2081 % \item These pages are numbered using lowercase Roman numerals.
2082 % \item Note that the heading is single spaced, but the abstract
2104 % \begin{environment}{thesis}
2105 % From the Manual 3.10 p11
2107 % \item The pages are counted and numbered in Arabic numerals.
2110 \newenvironment{thesis}{%
2118 \pdfbookmark[-1]{Backmatter}{Backmatter}
2125 % \label{sec:implement-vita}
2127 % \begin{environment}{vita}
2128 % From the Manual 3.15 p13
2130 % \item The heading |Vita| must appear at the top of the page. The
2131 % heading must be bold, centered, and without punctuation.
2132 % \item The Vita text should begin four spaces below the heading.
2133 % \item List the Vita separately in the Table of Contents.
2134 % \item The page is counted and numbered in Arabic numerals.
2137 \newenvironment{vita}{%
2138 \listed@schapter{\vitaname}
2147 % \subsubsection{Titlepage}
2149 % \begin{environment}{titlepage}
2150 % In the normal environments, the titlepage environment does nothing
2151 % but start and end a page, and inhibit page numbers. We inhibit the
2152 % paging in draft mode, since it seems silly to waste a whole page on
2153 % the title. We also drop the \Lopt{twocolumn} code.
2154 % (\file{classes.dtx}, L3111)
2156 \renewenvironment{titlepage}{\thispagestyle{empty}%
2157 \setcounter{page}\z@}%
2158 {\if@final \newpage \else \blanklinesp{2} \par \fi}
2163 % \subsubsection{Appendix}
2164 % \label{sec:implement-appendix}
2166 % \begin{macro}{\appendix}
2167 % The |\appendix| command is not really an environment, it is a
2168 % macro that makes some changes in the way things are done.
2170 % In the article document class the |\appendix| command must do the
2173 % \item reset the section and subsection counters to zero,
2174 % \item redefine |\thesection| to produce alphabetic appendix
2175 % numbers. This redefinition is done globally to ensure that it
2176 % survives even if |\appendix| is issued within an environment such
2177 % as \texttt{multicols}.
2180 % In addition to \cls{book}'s (or \pkg{hyperref}'s) activity, we
2181 % fiddle with the \pkg{tocloft} chapter settings add switch to global
2183 % (\file{classes.dtx}, L3177)
2185 \let\DUT@appendix\appendix
2186 \renewcommand\appendix{%
2189 % Setup TOC entries like
2191 % Appendix A: Chapter Title
2193 % We don't need to worry about the |vita| environment (page
2194 % \pageref{sec:implement-vita}), because it is a |\listed@schapter|,
2195 % and therefore lacks a |\numberline| section in its \file{*.toc}
2198 % We increase |numwidth| to 6.5em to make room for |Appendix~| before
2199 % the chapter number/letter, and add a colon after it.
2201 % The |\protect| calls get the macros into \file{*.toc} unexpanded, so
2202 % they function correctly when \LaTeX\ parses \file{*.toc}.
2204 \addtocontents{toc}{%
2205 \protect\cftsetindents{chapter}{0pt}{6.5em}
2206 \protect\renewcommand{\protect\cftchappresnum}{\protect\appendixname~}
2207 \protect\renewcommand{\protect\cftchapaftersnum}{:}}
2209 % We also turn on double spacing by default, since we're no longer
2210 % wrapped in the |thesis| environment.
2218 % \subsubsection{Table of Contents}
2219 % \label{sec:implement-toc}
2221 % From Manual 3.5 p9, ``Table of Contents'', and the example on p17.
2224 % \item Do not list any sections that precede the
2225 % |Table of Contents| (e.g.\ |Dedications|, |Acknowledgments|). Do
2226 % not list the |Table of Contents| itself.
2227 % \item These pages are counted and numbered in lowercase Roman numerals.
2231 % \begin{macro}{\cfttoctitlefont}
2232 % Take advantange of \pkg{tocloft}'s TOC title code.
2233 % (\file{tocloft.dtx}, L1501)
2235 % \cfttoctitlefont\contentsname}{\cftaftertoctitle}
2237 % by setting it equal to something ending in |\chapter*|. That way
2238 % \LaTeX parses the whole thing as
2240 % ...\chapter*\contentsname}{\cftaftertoctitle}
2242 % which will set up the TOC page correctly.
2244 \renewcommand\cfttoctitlefont{%
2246 % Start a new page in \Lopt{final} mode
2250 % Add a bookmark if we're using pdf\LaTeX.
2254 \pdfbookmark[0]{\contentsname}{\contentsname}
2257 % |\chapter*| to gobble and format the next token (|\contentsname|).
2263 % \begin{macro}{\aftertoctitleskip}
2264 % Don't add any extra space after the title (the chapter will take
2267 \setlength\cftaftertoctitleskip{0pt}
2271 % \begin{macro}{\l@cont@sep}
2272 % Define a length for TOC/LOF/LOT spacing.
2274 \newlength\l@cont@sep
2275 \set@lines@length{\l@cont@sep}{\@cont@sep}
2279 % \begin{macro}{\@cont@font}
2280 % Define a font for high level (part, chapter) entries.
2282 \newcommand{\@cont@font}{\normalsize\scshape}
2286 % \begin{macro}{\cftbeforepartskip}
2287 % \begin{macro}{\cftpartfont}
2288 % \begin{macro}{\cftpartleader}
2289 % \begin{macro}{\cftpartdotsep}
2290 % \begin{macro}{\cftpartpagefont}
2291 % Setup parts. See the \pkg{tocloft} manual for a description of the
2294 \setlength\cftbeforepartskip{\l@cont@sep}
2295 \cftsetindents{part}{0pt}{3em}
2296 \if@boldpart \renewcommand{\cftpartfont}{\bfseries\@cont@font}
2297 \else \renewcommand{\cftpartfont}{\@cont@font}
2298 \renewcommand{\cftpartleader}{\cftdotfill{\cftpartdotsep}}
2299 \if@dottedpart \renewcommand{\cftpartdotsep}{\cftdotsep}
2300 \else \renewcommand{\cftpartdotsep}{\cftnodots} \fi
2301 \renewcommand{\cftpartpagefont}{\normalfont}
2309 % \begin{macro}{\cftbeforechapskip}
2310 % \begin{macro}{\cftchapaftersnum}
2311 % \begin{macro}{\cftchapfont}
2312 % \begin{macro}{\cftchapleader}
2313 % \begin{macro}{\cftchapdotsep}
2314 % \begin{macro}{\cftchappagefont}
2315 % Setup chapters and appendicies. Some of these settings are adjusted
2316 % for appendicies in particular by |\appendix|
2317 % (Sec.~\ref{sec:implement-appendix}).
2319 \setlength\cftbeforechapskip{\l@cont@sep}
2320 \cftsetindents{chapter}{0pt}{1.5em}
2321 \renewcommand{\cftchapaftersnum}{.}
2322 \if@boldchapter \renewcommand{\cftchapfont}{\bfseries\@cont@font}
2323 \else \renewcommand{\cftchapfont}{\@cont@font} \fi
2324 \renewcommand{\cftchapleader}{\cftdotfill{\cftchapdotsep}}
2325 \if@dottedchapter \renewcommand{\cftchapdotsep}{\cftdotsep}
2326 \else \renewcommand{\cftchapdotsep}{\cftnodots} \fi
2327 \renewcommand{\cftchappagefont}{\normalfont}
2336 % \begin{macro}{\cftbeforesecskip}
2337 % \begin{macro}{\cftsecfont}
2338 % \begin{macro}{\cftbeforesubsecskip}
2339 % \begin{macro}{\cftsubsecfont}
2340 % \begin{macro}{\cftbeforesubsubsecskip}
2341 % \begin{macro}{\cftsubsubsecfont}
2342 % Setup sections, subsections, etc.
2344 %\cftsetindents{chap}{0pt}{1.5em}
2345 \setlength\cftbeforesecskip{\l@cont@sep}
2346 \cftsetindents{section}{0pt}{3em}
2347 \renewcommand{\cftsecfont}{\normalsize}
2348 \setlength\cftbeforesubsecskip{\l@cont@sep}
2349 \cftsetindents{subsection}{0pt}{4.5em}
2350 \renewcommand{\cftsubsecfont}{\cftsecfont}
2351 \setlength\cftbeforesubsubsecskip{\l@cont@sep}
2352 \cftsetindents{subsubsection}{0pt}{6em}
2353 \renewcommand{\cftsubsubsecfont}{\cftsecfont}
2363 % \subsubsection{List of figures}
2364 % \label{sec:implement-lof}
2366 % From the Manual 3.7 p10
2369 % \item The heading |List of Figures| must appear at the top of
2371 % \item The heading must be bold, centered, and without
2372 % punctuation. List figure captions exactly as they appear
2373 % below the figures in the text.
2374 % \item Single space each entry, but double-space between entries.
2375 % \item Separate figure captions from page numbers with
2376 % right-justified tabs and dot leaders.
2377 % \item Do not use periods to separate captions and page numbers.
2378 % \item These pages are counted and numbered in lowercase Roman
2383 % \begin{macro}{\cftloftitlefont}
2384 % Much like our |\cfttoctitlefont|, but the list of figures gets
2385 % listed in the TOC.
2387 \renewcommand\cftloftitlefont{\listed@schapter}
2391 % \begin{macro}{\afterloftitleskip}
2392 % Don't add any extra space after the title (the chapter will take
2393 % care of that). Actually we make a one-line correction so the first
2394 % line matches the first line in the TOC.
2396 \setlength\cftafterloftitleskip{-12pt}
2400 % \begin{macro}{\cftbeforefigskip}
2401 % \begin{macro}{\cftfigindent}
2402 % \begin{macro}{\cftfigfont}
2403 % Setup figure entries.
2405 \setlength{\cftbeforefigskip}{\l@cont@sep}
2406 \setlength{\cftfigindent}{0pt}
2407 \renewcommand{\cftfigfont}{\normalsize\singlespace}
2414 % \subsubsection{List of tables}
2415 % \label{sec:implement-lot}
2417 % From the Manual 3.6 p10
2420 % \item The heading |List of Tables| must appear at the top of the
2422 % \item The heading must be bold, centered, and without
2424 % \item List table captions exactly as they appear above the
2425 % tables in the text.
2426 % \item Single space each entry, but double-space between entries.
2427 % \item Separate table captions from page numbers with
2428 % right-justified tabs and dot leaders.
2429 % \item Do not use periods to separate captions and page numbers.
2430 % These pages are counted and numbered in lowercase Roman
2435 % \begin{macro}{\cftlottitlefont}
2436 % Much like our |\cfttoctitlefont|, but the list of tables gets
2437 % listed in the TOC.
2439 \renewcommand\cftlottitlefont{\listed@schapter}
2443 % \begin{macro}{\afterlottitleskip}
2444 % Don't add any extra space after the title (the chapter will take
2445 % care of that). Actually we make a one-line correction so the first
2446 % line matches the first line in the TOC.
2448 \setlength\cftafterlottitleskip{-12pt}
2452 % \begin{macro}{\cftbeforetabskip}
2453 % \begin{macro}{\cfttabindent}
2454 % \begin{macro}{\cfttabfont}
2455 % Setup table entries.
2457 \setlength{\cfttabindent}{0pt}
2458 \setlength{\cftbeforetabskip}{\l@cont@sep}
2459 \renewcommand{\cfttabfont}{\normalsize\singlespace}
2466 % \subsubsection{Bibliography}
2468 % \begin{environment}{thebibliography}
2469 % The |thebibliography| environment is a list environment. To save the
2470 % use of an extra counter, it should use |enumiv| as the item
2472 % Instead of using |\item|, items in the bibliography are produced by
2473 % the following commands:\\
2474 % |\bibitem|\marg{name} : Produces a numbered entry cited as
2476 % |\bibitem|\oarg{label}\marg{name} : Produces an entry labeled by
2477 % \meta{Label} and cited by \meta{name}.
2479 % Override \cls{book}'s version, adding a line to the table of
2480 % contents. We split out the section-creation code into
2481 % |\bib@heading| for \pkg{natbib} compatibility.
2482 % (\file{classes.dtx}, L4063).
2484 \renewenvironment{thebibliography}[1]
2486 \list{\@biblabel{\@arabic\c@enumiv}}%
2487 {\settowidth\labelwidth{\@biblabel{#1}}%
2488 \leftmargin\labelwidth
2489 \advance\leftmargin\labelsep
2491 \usecounter{enumiv}%
2492 \let\p@enumiv\@empty
2493 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
2495 % Because it's hard to do line breaks in bibliographies.
2499 % This is setting the normal (non-infinite) value of
2500 % |\clubpenalty| for the whole of this environment,
2501 % so we must reset its stored value also. (Why is there a |%| after
2502 % the second 4000 below?)
2505 \@clubpenalty \clubpenalty
2508 % Cause a `.' (period) not to produce an end-of-sentence space.
2512 % Warn if an empty `thebibliography' environment is found.
2515 {\@latex@warning{Empty `thebibliography' environment}}%
2520 % \begin{macro}{\bib@heading}
2521 % \pkg{natbib} messes with |thebibliography|. We setup |\bib@heading|
2522 % so we will still get our table of contents entry.
2524 \newcommand{\bib@heading}{%
2525 \listed@schapter{\bibname}%
2526 \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
2531 % \subsubsection{Words}
2533 % Set the official names of the various sections encountered. Some of
2534 % these are not defined in \file{classes.dtx} but are close analogs of
2537 % \begin{macro}{\dedicationsname}
2538 % From the Manual 3.3 p9, ``The heading |Dedications| must appear at
2539 % the top of the page.''
2541 \newcommand\dedicationsname{Dedications}
2545 % \begin{macro}{\acknowledgmentsname}
2546 % From the Manual 3.4 p9, ``The heading |Acknowledgments| must appear
2547 % at the top of the page.''
2549 \newcommand\acknowledgmentsname{Acknowledgments}
2553 % \begin{macro}{\contentsname}
2554 % From the Manual 3.5 p9, ``The heading |Table of Contents| must
2555 % appear at the top of the page.'' (\file{classes.dtx}, L4331)
2557 \renewcommand\contentsname{Table of Contents}
2561 % \begin{macro}{\listtablename}
2562 % From the Manual 3.6 p10, ``The heading |List of Tables| must appear
2563 % at the top of the page.'' (\file{classes.dtx}, L4333)
2565 \renewcommand\listtablename{List of Tables}
2569 % \begin{macro}{\listfigurename}
2570 % From the Manual 3.7 p10, ``The heading |List of Figures| must appear
2571 % at the top of the page.'' (\file{classes.dtx}, L4332)
2573 \renewcommand\listfigurename{List of Figures}
2577 % \begin{macro}{\abstractname}
2578 % From the Manual 3.8 p10, ``The following heading must be centered at
2579 % the top of the first page: |Abstract|\ldots.''
2580 % (\file{classes.dtx}, L4367)
2582 \newcommand\abstractname{Abstract}
2586 % \begin{macro}{\bibname}
2587 % From the Manual 3.13 p12, ``The heading |Bibliography| (or
2588 % |List of References|) must appear at the top of first page.''
2589 % (\file{classes.dtx}, L4344)
2591 \renewcommand\bibname{Bibliography}
2595 % \begin{macro}{\appendixname}
2596 % From the Manual 3.14 p12, ``Number the appendicies consecutively
2597 % either alphabetically or numerically (|Appendix A|, |Appendix B|\ldots
2598 % or |Appendix 1|, |Appendix 2|\ldots).''
2599 % (\file{classes.dtx}, L4366)
2601 \renewcommand\appendixname{Appendix}
2605 % \begin{macro}{\vitaname}
2606 % From the Manual 3.15 p13, ``The heading |Vita| must appear at the
2607 % top of the page.''
2609 \newcommand\vitaname{Vita}
2614 % \subsection{Remaining details}
2617 % \subsubsection{Terminal blank page}
2619 % Add a terminal blank page (when |\if@final| is true)
2620 % From the Manual 3.16 p13
2622 % Include a blank page (with no page number) at the end of the
2623 % thesis or dissertation. The blank page is neither counted nor
2627 \AtEndDocument{\blankpage}
2636 % \section{Examples}
2639 % \subsubsection{Template}
2643 % See drexel-thesis.pdf for details.
2644 \documentclass{drexel-thesis}
2646 %% Enter the appropriate information here
2647 \author{} % Fullname
2648 \title{} % Title Of Thesis
2649 \defmonth{} % Name of the month of you defense
2650 \defyear{} % Year you are defending
2651 \degree{} % Your target degree, spelled out
2652 \advisor{} % Advisor's full name, degree
2653 \copyrighttext{} % If not "All Rights Reserved."
2655 %% unsrt style give references in order of citation
2656 \bibliographystyle{unsrt}
2661 \begin{dedications} % OPTIONAL
2662 %% Type dedications here
2665 \begin{acknowledgments} % OPTIONAL
2666 %% Type acknowledgments here
2667 \end{acknowledgments}
2670 \listoftables % If you have tables
2671 \listoffigures % If you have figures
2674 %% Type abstract here
2679 %% Use include statements to include your main thesis code
2680 %% from seperate files.
2685 \bibliography{references} % Include references.bib BibTeX
2687 \appendix % If you have appendices
2688 %% include files with your appendicies (if any) here
2689 %%\include{appendixA}
2692 \begin{vita} % Ph.D. only.
2701 % \subsection{A better example}
2702 % \label{sec:better-example}
2704 % \subsubsection{Main}
2707 %<*example|example-draft>
2708 %% See drexel-thesis.pdf for details.
2709 %<example>\documentclass{drexel-thesis}
2710 %<example-draft>\documentclass[draft]{drexel-thesis}
2712 %% Enter the appropriate information here
2713 \author{Johny Henry}
2714 \title{Inadequacies of Steam-Driven Boring Machines}
2717 \degree{Doctor of Philosophy}
2718 \advisor{Collis Potter Huntington, R.R.D.}
2719 \advisor{Advisor 2, Ph.D.}
2720 \advisor{Advisor 3, Ph.D.}
2721 \copyrighttext{\copyrighttextCC}
2723 \usepackage[super,sort&compress]{natbib} % fancy citation extensions
2724 \bibliographystyle{unsrtnat}
2726 \usepackage{fancyvrb} % nicer verbatim handling
2727 \DefineShortVerb{\|} % \verb+TEXT+ -> |TEXT|
2729 \usepackage{blabla} % \blabla macro for producing dummy output
2738 \begin{acknowledgments}
2740 \end{acknowledgments}
2755 \bibliography{example-ref}
2765 %</example|example-draft>
2769 % \subsubsection{Part}
2773 \part{A Part Heading}
2774 \chapter{A Chapter Heading}
2775 \section{A Section Heading}
2776 The following sectioning commands are available:
2788 You can cite your references with |natbib|'s |\citet| and |\citep|
2790 \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}
2791 {the natbib manual} for details.
2793 Here we have a text citation \citet{rief97} followed by a
2794 parenthetical citation\citep{rief97}.
2796 \subsubsection{Tables and Figures}
2800 \begin{tabular}{r@{.}l r@{.}l r@{.}l}
2801 \multicolumn{2}{c}{Time (s)} &
2802 \multicolumn{2}{c}{John Henry (m)} &
2803 \multicolumn{2}{c}{Steam drill (m)} \\
2805 10&0 & 4&3 & 3&75 \\
2806 30&0 & 11&9 & 10&1 \\
2809 \caption{A table float. \bla{20}} % low caption allowed with floatrow
2810 %% Note the strange |r@{.}l| notation in the |\tabular| column
2811 %% definition. This allows for numbers aligned at the decimal point
2812 %% (see \href{http://www.stat.unipg.it/tex-man/ltx-68.html}{here}).
2814 %% |\multicolumn{num_cols}{alignment}{contents}| allows the headings
2815 %% to span the pre- and post-decimal columns.
2820 \caption{A figure float. \bla{20}} % high caption allowed with floatrow
2822 \includegraphics[width=0.4\textwidth]{drexel-logo}
2828 \chapter{Another Chapter}
2830 \chapter{A Long Title Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla
2831 Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla}
2837 % \subsubsection{\BibTeX}
2839 % What goes into the \BibTeX\ file |example-ref.bib|?
2840 % For more information, check out this
2841 % \href{http://cmtw.harvard.edu/Documentation/TeX/Bibtex/Example.html}{basic tutorial}.
2842 % If you want to get deeper, take a look at
2843 % \href{http://www.ctan.org/tex-archive/info/bibtex/tamethebeast/}{Tame the BeaST}.
2845 % \href{http://www.andy-roberts.net/misc/latex/latextutorial3.html}{how the process works},
2846 % \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node6.html}{entry types},
2847 % \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node7.html}{fields},
2848 % \href{http://en.wikipedia.org/wiki/BibTeX}{entries and fields},
2849 % \href{http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html}{assorted style examples}, and
2850 % \href{http://liinwww.ira.uka.de/bibliography/Bib.Format.html}{assorted \BibTeX tools}.
2852 % Here is an example \BibTeX\ file to get you started. We define
2853 % strings for the publishers, journals, and authors to avoid
2854 % duplication, minimize the risk of typos, etc.
2857 %<*example-bibtex-refs>
2859 @String{APS = "American Physical Society"}
2862 @String{SCI = "Science"}
2865 @String{MRief = "Rief, Matthias"}
2866 @String{MGautel = "Gautel, Mathias"}
2867 @String{FOesterhelt = "Oesterhelt, Filipp"}
2868 @String{JFernandez = "Fernandez, Julio M."}
2869 @String{HGaub = "Gaub, Hermann E."}
2873 author = MRief #" and "# MGautel #" and "# FOesterhelt #" and "#
2874 JFernandez #" and "# HGaub,
2875 title = "Reversible Unfolding of Individual Titin Immunoglobulin
2880 pages = "1109--1112",
2882 doi = "10.1126/science.276.5315.1109",
2883 URL = "http://www.sciencemag.org/cgi/content/abstract/276/5315/1109",
2884 eprint = "http://www.sciencemag.org/cgi/reprint/276/5315/1109.pdf",
2885 mynote = "Seminal paper for force spectroscopy on Titin. Cited by
2886 Dietz '04 (ref 9) as an example of how unfolding large
2887 proteins is easily interpreted (vs.\ confusing unfolding in
2888 bulk), but Titin is a rather simple example of that, because
2889 of its globular-chain structure.",
2892 %</example-bibtex-refs>
2896 % \subsubsection{Appendix}
2899 %<*example-appendix>
2900 \chapter{Some Appendix Heading}
2902 \chapter{Another Appendix Heading}
2904 %</example-appendix>
2908 % \subsubsection{\pkg{blabla}}
2910 % Define the \pkg{blabla} package for generating dummy text. This
2911 % will make it easier to generate reasonable exampes.
2914 \ProvidesPackage{blabla} [2010/01/11 1.0 Dummy text generation]
2917 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/forloop/}{\pkg{foorloop}}
2920 % `\cs{forloop}\oarg{step}\marg{counter}\marg{initial value}\marg{condition}\marg{code}'
2923 \RequirePackage{forloop}[2006/09/18]
2925 \newcounter{blabla@i}
2926 \newcounter{blabla@j}
2927 \newcommand{\bla}[1]{
2929 \forloop{blabla@i}{0}{\value{blabla@i} < #1}{ bla }
2932 \newcommand{\blabla}[2]{
2933 \forloop{blabla@j}{0}{\value{blabla@j} < #1}{ \bla{#2}\par }