1 % \def\fileversion{0.3}
2 % \def\filedate{2010/01/13}
3 % \iffalse meta-comment
4 %<class>\def\fileversion{0.3}
5 %<class>\def\filedate{2010/01/13}
7 % Copyright (C) 2010 C.Y. Ip
18 % Vincent A. Cicirello
20 % -------------------------------------------------------
22 % This file may be distributed and/or modified under the
23 % conditions of the LaTeX Project Public License, either version 1.3
24 % of this license or (at your option) any later version.
25 % The latest version of this license is in:
27 % http://www.latex-project.org/lppl.txt
29 % and version 1.3 or later is part of all distributions of LaTeX
30 % version 2003/12/01 or later.
32 % Docstrip formatting initially based on Scott Pakin's
33 % dtxtut/cskeleton.dtx
34 % http://www.ctan.org/tex-archive/info/dtxtut/
38 % \iffalse meta-comment
40 \ProvidesFile{drexel-thesis.dtx}
42 %<class>\NeedsTeXFormat{LaTeX2e}
43 %<class>\ProvidesClass{drexel-thesis}
44 %<class> [\filedate\ \fileversion\ Drexel Thesis]
46 % Code for the .ini driver, see section "2.1 The driver file" of doc.dtx.
48 \documentclass{ltxdoc}
49 \usepackage[colorlinks=true]{hyperref}
51 % Include some useful commands from |xkeyval|'s |<preamble>|.
55 \lstnewenvironment{command}{%
56 \lstset{columns=flexible,frame=single,backgroundcolor=\color{blue!20},%
57 xleftmargin=\fboxsep,xrightmargin=\fboxsep,escapeinside=`',gobble=1}}{}
58 \lstnewenvironment{example}{%
59 \lstset{basicstyle=\footnotesize\ttfamily,columns=flexible,frame=single,%
60 backgroundcolor=\color{yellow!20},xleftmargin=\fboxsep,%
61 xrightmargin=\fboxsep,gobble=1}}{}
63 % Define a quick and dirty version of |xkeyval|'s |\DescribeOptions|.
65 \newenvironment{option}[1]{\begin{macro}{#1}}
68 % Some commonly used abbreviations from |classes.dtx|.
70 \newcommand*{\Lopt}[1]{\textsf {#1}}
71 \newcommand*{\file}[1]{\texttt {#1}}
72 \newcommand*{\Lcount}[1]{\textsl {\small#1}}
73 \newcommand*{\pstyle}[1]{\textsl {#1}}
77 \def\DescribeOption#1{\leavevmode\@bsphack
78 \marginpar{\raggedleft\PrintDescribeOption{#1}}%
79 \SpecialOptionIndex{#1}\@esphack\ignorespaces}
80 \def\PrintDescribeOption#1{\strut\emph{option}\\\MacroFont #1\ }
81 \def\SpecialOptionIndex#1{\@bsphack
82 \index{#1\actualchar{\protect\ttfamily#1}
83 (option)\encapchar usage}%
84 \index{options:\levelchar#1\actualchar{\protect\ttfamily#1}\encapchar
86 \def\DescribeOptions#1{\leavevmode\@bsphack
87 \marginpar{\raggedleft\strut\emph{options}%
89 \\\strut\MacroFont\@tempa\SpecialOptionIndex\@tempa
90 }}\@esphack\ignorespaces}
98 \DocInput{drexel-thesis.dtx}
106 % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
107 % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
108 % Digits \0\1\2\3\4\5\6\7\8\9
109 % Exclamation \! Double quote \" Hash (number) \#
110 % Dollar \$ Percent \% Ampersand \&
111 % Acute accent \' Left paren \( Right paren \)
112 % Asterisk \* Plus \+ Comma \,
113 % Minus \- Point \. Solidus \/
114 % Colon \: Semicolon \; Less than \<
115 % Equals \= Greater than \> Question mark \?
116 % Commercial at \@ Left bracket \[ Backslash \\
117 % Right bracket \] Circumflex \^ Underscore \_
118 % Grave accent \` Left brace \{ Vertical bar \|
119 % Right brace \} Tilde \~}
122 % \changes{0.1}{2006/01/18}{Rewrite by Daniel J.~Cross}
123 % \changes{0.2}{2010/01/09}{W.~Trevor King transitioned from thesis.cls
124 % to drexel-thesis.dtx and did a good deal of reorganizing.}
125 % \changes{0.3}{2010/01/13}{W.~Trevor King merged drexelthesis.cls
126 % developed in the Comp.~Sci.~Department by Jeff Abrahamson,
127 % Evan Sultanik, C.Y.~Ip, Christopher S.~Dahn, Christopher D.~Cera,
128 % Mitchell Peabody, David T.~McWherter, and Vincent A.~Cicirello.
129 % Based on the University of Toronto Thesis \LaTeXe\ Class. Also
130 % greatly improved the documentation by incorperating bits of
131 % the base/*.dtx files.}
134 % \newcommand{\pkg}[1]{\textsf{#1}}
135 % \newcommand{\cls}[1]{\textsf{#1}}
136 % ^^A\newcommand{\BibTeX}{{\scshape Bib}\TeX}
138 % \title{The \textsf{drexel-thesis} class\thanks{This document
139 % corresponds to \textsf{drexel-thesis}~\fileversion, dated \filedate.}}
140 % \author{W.~Trevor King \\\texttt{wking@drexel.edu}
141 % \and Daniel J.~Cross \and T.~Tsankov \and R.~Rojas.}
147 % \section{Introduction}
149 % This package defines a \LaTeX\ thesis class for Drexel University
151 % \href{http://www.library.drexel.edu/files/services_documents/thesismanual.pdf}
152 % {Drexel University Thesis Manual version 2009/06/01}.
156 % To write a thesis, you load the Drexel thesis definitions by loading
157 % the \pkg{drexel-thesis} class at the beginning of your
158 % \LaTeX\ document with the |\documentclass| command. For example,
160 % \documentclass{drexel-thesis}
163 % \subsection{Options}
165 % \DescribeOptions{final,draft}
166 % The default option (selected if not options are passed) is
167 % \Lopt{final} mode, which has all the proper formatting and spacing
168 % for your final product. The other main option is \Lopt{draft} mode,
169 % which reduces all the spacing in the document, so might be helpful
170 % when printing out drafts (saves paper).
172 % \Lopt{final} mode corresponds to (with Thesis Manual chapter and
174 % \begin{tabular}{r p{0.8\textwidth}}
175 % \Lopt{oneside} & 1.5 Library Submission Information, Print
176 % Version: ``All copies must be: \ldots Typed/printed on only one
177 % side of the page (not double-sided).'' \\
178 % \Lopt{finalspace} & Assorted single, double, and triple spacing
180 % \Lopt{dottedtoc} & From the example on p17.
183 % \Lopt{draft} mode corresponds to \\
184 % \begin{tabular}{r p{0.8\textwidth}}
185 % \Lopt{twoside} & Save space. \\
186 % \Lopt{draftspace} & Save space. \\
187 % \Lopt{dottedtoc} & Might as well be consistent with \Lopt{final}. \\
188 % \Lopt{mydraftwatermark} & It's good to have a timestamp. \\
191 % \DescribeOption{subfig}
192 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/subfig/}{\pkg{subfig}}
193 % makes it easy to include and caption multi-part figures. However,
194 % getting \pkg{subfig} to cooperate with \pkg{floatrow} and
195 % \pkg{tocloft} can be tricky. If you want to use \pkg{subfig}, just
196 % pass the \Lopt{subfig} option to \cls{drexel-thesis}, and all the
197 % pesky details will be taken care of. See Section
198 % \ref{sec:better-example} for an example.
200 % \DescribeOption{finalspace}
203 % \DescribeOption{draftspace}
206 % \DescribeOptions{dottedtoc,boldtoc,
207 % dottedpart,boldpart,
208 % dottedchapter,boldchapter}
209 % These options change how the relevant table of contents lines are
210 % printed. \LaTeX\ defaults to bold but not dots. The \Lopt{*toc}
211 % options set all of the types. For example, \Lopt{boldtoc} is
212 % equivalent to \Lopt{boldchapter,boldpart}.
214 % \DescribeOption{indenttoc}
215 % The example table of contents in the Manual p17 does not indent
216 % section entries, etc., so neither does \cls{drexel-thesis}. If you
217 % \emph{do} want pretty, indented TOCs, like the \LaTeX\ defaults pass
218 % \Lopt{indenttoc} to \cls{drexel-thesis}.
220 % \DescribeOption{draftwatermark}
221 % \Lopt{draftwatermark} adds ``DRAFT \meta{date}'' watermarks to each
222 % page. A useful way to remember that the version you're looking at
223 % is not final. Also helps reviewers tell you what version they're
224 % correcting. Requires the \pkg{draftmark} package.
226 % \DescribeOption{mydraftwatermark}
227 % \Lopt{mydraftwatermark} is similar to \Lopt{draftwatermark} but
228 % depends on the possibly more common \pkg{xcolor}, \pkg{eso-pic},
229 % and \pkg{graphicx}.
231 % \DescribeOption{indentfirst}
232 % \Lopt{indentfirst} indents the first paragraph after sections etc.
235 % \subsubsection{Interesting \cls{book} options}
237 % \DescribeOption{oneside}
238 % Setup output for one-sided printing.
240 % \DescribeOption{twoside}
241 % Setup output for two-sided printing.
243 % \DescribeOption{leqno}
244 % \Lopt{leqno} places the numbering of formulae on the left hand side
245 % instead of the right.
247 % \DescribeOption{fleqn}
248 % \Lopt{fleqn} typesets displayed formulae left-aligned instead of
252 % \subsection{Macros}
255 % `\cs{author}\marg{name}'
257 % \DescribeMacro{\author}
258 % Use this macro to set your full name to \meta{name}, including
259 % your middle initial or name. For example
261 % \name{Richard P. Feynman}
263 % See the Manual 3.1 p8.
266 % `\cs{title}\marg{title}'
268 % \DescribeMacro{\title}
269 % Use this macro to set your thesis title to \meta{name}. For example
271 % \title{A New Approach to Quantum Theory}
273 % See the Manual p16.
276 % `\cs{advisor}\marg{name}'
278 % \DescribeMacro{\advisor}
279 % Use this macro to set your advisor's name to \meta{name}. For
282 % \advisor{John A. Wheeler, Ph.D.}
284 % You can set multiple advisors, if appropriate, by calling |\advisor|
287 % \advisor{John A. Wheeler, Ph.D.}
288 % \advisor{Advisor 2}
290 % See the Manual 3.1 p8.
293 % `\cs{defmonth}\marg{month}'
294 % `\cs{defyear}\marg{year}'
296 % \DescribeMacro{\defmonth}
297 % \DescribeMacro{\defyear}
298 % Use these macros to set the month with \meta{month} (spelled out)
299 % and year with \meta{year} (four digits) of your thesis defense. For
305 % See the Manual 3.1 p8.
306 % The |def| in |\def*| avoids collisions with the plain \TeX\
307 % |\month| and |\year| (see the
308 % \href{http://www.tug.org/utilities/plain/cseq.html#month-rp}{month}
310 % \href{http://www.tug.org/utilities/plain/cseq.html#year-rp}{year}
311 % entries in the HTML version of David Bausum's \emph{TeX Reference
315 % `\cs{degree}\marg{degree}'
317 % \DescribeMacro{\degree}
318 % Set your target degree with \meta{degree}. From the Manual 3.1 p8.
320 % Write out the name of the degree for which you are a candidate.
321 % All Ph.D.\ candidates must use |Doctor of Philosophy|. All
322 % Master's degree candidates should use the precise degree name
323 % (e.g., |Master of Science in Mechanical Engineering|).
325 % So, for a Ph.D candidate,
327 % \degree{Doctor of Philosophy}
331 % `\cs{copyrighttext}\marg{text}'
333 % \DescribeMacro{\copyrighttext}
334 % Use this macro to set the copyright text to \meta{text}.
335 % The default value is ``All Rights Reserved.''.
337 % \copyrighttext{Released to the Public Domain.}
339 % See the Manual 3.2 p9.
342 % `\cs{copyrighttextCC}'
344 % There are a number of predefined copyright messages for ease of use \\
345 % \begin{tabular}{l l}
346 % |\copyrighttextCC| & Creative Commons copyright \\
350 % `\cs{tableofcontents}'
352 % \DescribeMacro{\tableofcontents}
353 % Write the table of contents (Manual 3.5 p9). You can control the
354 % verbosity by setting |\tocdepth| according to the following table
355 % (\href{http://www.image.ufl.edu/help/latex/intext.shtml}{source}). \\
356 % \begin{tabular}{l l l}
357 % Depth in document & Section Command & Depth for |\secnumdepth| Command \\
358 % -1 & |\part| & 1 \\
359 % 0 & |\chapter| & 2 \\
360 % 1 & |\section| & 3 \\
361 % 2 & |\subsection| & 4 \\
362 % 3 & |\subsubsection| & 5 \\
363 % 4 & |\paragraph| & 6 \\
364 % 5 & |\subparagraph| & 7
366 % For example, to expose everything down to and including the
367 % |\subsection| level, you would add
369 % \setcounter{tocdepth}{2}
371 % to your preamble (the section before |\begin{document}|, not the
372 % |preamble| environment discussed below).
374 % Note that the Manual 3.5 p9 requires ``List chapter titles and at
375 % least the first and second order subdivisions.'', which corresponds
376 % to a |\tocdepth| of at least 2.
379 % `\cs{listoftables}'
381 % \DescribeMacro{\listoftables}
382 % Write the List of Tables page (Manual 3.6 p10).
383 % Skip if you have no tables in your thesis.
386 % `\cs{listoffigures}'
388 % \DescribeMacro{\listoffigures}
389 % Write the List of Figures page (Manual 3.7 p10).
390 % Skip if you have no figures in your thesis.
393 % `\cs{blanklines}\marg{num}'
395 % \DescribeMacro{\blanklines}
396 % Insert \meta{num} blank lines. For example
400 % The skipped lines are always \emph{single spaced} lines, regardless
401 % of the current line spacing in the environment calling this macro.
404 % \subsection{Environments}
406 % \DescribeEnv{preamble}
407 % Generalize the |\frontmatter| for the thesis, setting up page
408 % numbering, including the title page, copyright page etc. The
409 % |preamble| environment should contain the following elements
410 % (in order, see the Manual p8)
412 % \item |dedication| environment (optional)
413 % \item |acknowledgments| environment (optional)
414 % \item |\tableofcontents|
415 % \item |\listoftables|
416 % \item |\listoffigures|
417 % \item |abstract| environment
419 % This will take care of everything from the title page (Manual 3.1),
420 % up through the blank page before the text (Manual 3.9).
422 % \DescribeEnv{dedications}
423 % Set the dedications text.
424 % Highlights from the Manual 3.3 p9:
426 % The |Dedications| page is optional.
429 % \DescribeEnv{acknowledgments}
430 % Set the acknowledgments text.
431 % Highlights from the Manual 3.4 p9:
433 % The |Acknowledgments| page is optional, but most theses do
434 % include a brief statement of thanks or recognition of any special
438 % \DescribeEnv{abstract}
439 % Set the thesis abstract text. In the Thesis Manual, see section 3.8
440 % Abstract (p10) for details, p20 for an example.
442 % Highlights from the Manual:
444 % The abstract is a summary that allows readers to determine the
445 % value of reading the full thesis. It should include a statement
446 % of the problem, an outline of procedures or methods, and a summary
447 % of results and conclusions.
450 % \item Word limits: 600 for a Master's thesis, 350 for a Ph.D.\ thesis.
453 % \DescribeEnv{thesis}
454 % Set the thesis text. In the Thesis Manual, see section 3.10 Thesis
457 % Highlights from the Manual:
459 % Divide the text into its major parts/chapters/subsections. No
460 % fixed arrangement is necessary. The major parts may contain such
461 % subjects as introduction, general argument, description of
462 % experimental procedures, research methods, discussion, summary,
463 % conclusions, recommendations, and other pertinent topics that are
464 % necessary for a complete understanding on the part of a
465 % sophisticated or professional reader.
469 % Set the thesis vita text (Ph.D.\ only). See the Manual 3.15 p12,
470 % ``Vita'', for details.
472 % Highlights from the Manual:
474 % The Vita is a biography of the student written in the third person
475 % in either essay or outline form. It should include the full name,
476 % place and date of birth (optional), country of citizenship
477 % (optional), institutions attended, degrees and honors received,
478 % titles of publications, teaching and professional experience, and
479 % other pertinent data. The Vita must be one page or less.
486 % \subsubsection{Package installation}
487 % \label{sec:dependencies}
489 % All the packages this class depends on must be installed somewhere
490 % in your texmf tree (they probably already are). If not, you will
491 % recieve warning messages on compilation such as
493 % ! LaTeX Error: File `missing-package.sty' not found.
495 % You should then install the missing package(s) using your operating
496 % systems package manager, or grab the missing package from
497 % \href{http://www.ctan.org/}{CTAN}, and install them following TODO.
500 % \subsubsection{Tables and Figures}
502 % \pkg{drexel-thesis} loads
503 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
504 % to define the |\includegraphics| macro,
505 % \href{http://www.ctan.org/tex-archive/macros/latex/required/caption/}{\pkg{caption}}
506 % for pretty caption formatting, and
507 % \href{http://www.ctan.org/tex-archive/macros/latex/required/floatrow/}{\pkg{floatrow}}
508 % for placing captions.
510 % Simple float definitions will look like
513 % \caption{Some caption text}
514 % \begin{tabular}{...}
522 % \includegraphics{...}
523 % \caption{Some caption text}
526 % For more useful float information, see the examples in Section
527 % \ref{sec:better-example-part} and the
528 % \href{http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions}
529 % {\LaTeX\ wikibook page}.
532 % \subsubsection{Citations}
534 % I highly recommend using \BibTeX\ and
535 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}{\pkg{natbib}}.
536 % See Section \ref{sec:better-example} for a simple example.
538 % Suggested options:\\
539 % \begin{tabular}{r p{0.8\textwidth}}
540 % |super| & selects citations in superscript mode. \\
541 % |sort&compress| & automatically sorts and compresses compound
542 % citations (|\pcite{a,b,...}|).
546 % \subsubsection{References}
548 % Easier cross referencing with
549 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/cleveref/}{\pkg{cleveref}}.
550 % Is a wonderful tool for easy, consistent crosslinking via |\cref|,
551 % |\Cref|, etc.. The manual is also very good.
552 % Note that if you use |\part|s in your document, you need to tell
553 % \pkg{cleveref} how to deal with them:
555 % \usepackage{cleveref}
556 % \crefname{part}{part}{parts}
560 % \subsubsection{Hyperlinks}
562 % \cls{drexel-thesis} loads
563 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{\pkg{hyperref}}.
564 % with the options:\\
565 % \begin{tabular}{r p{0.8\textwidth}}
566 % |colorlinks| & color the link letters instead of drawing colored boxes. \\
569 % If running with a pdftex-based driver, |\author|, |\title|, and
570 % |\degree| automatically set |pdfauthor|, |pdftitle|, and
571 % |pdfsubject| respectively. You can use the |\hypersetup| macro to
572 % set options overriding these defaults.
575 % \subsubsection{Developing large \LaTeX\ documents}
577 % A thesis may take a while to compile, especially if it contains
578 % lots of images, etc.. One way to save time, is to use |\includeonly|
579 % when including chapter \file{*.tex} files (see
580 % \href{http://en.wikibooks.org/wiki/TeX/includeonly}{the \TeX\ Wikibook}).
581 % Usage would be something like
583 % \documentclass{drexel-thesis}
585 % \includeonly{chapter2.tex,chapter3.tex}
589 % \include{chapter1.tex}
590 % \include{chapter2.tex}
591 % \include{chapter3.tex}
592 % \include{chapter4.tex}
597 % which would only compile chapters two and three. Don't confuse the
598 % similar commands |\include| and |\input|. The more fundamental
599 % |\input| just inserts the file contents at that point, while
602 % \item may only be used after |\begin{document}|
603 % \item acts like |\clearpage \input{} \clearpage|
604 % \item will not crash on nonexistent files
608 % \StopEventually{\pagebreak\PrintChanges}
611 % \section{Implementation}
616 % For simplicity, we'll derive everything from the standard \cls{book}
620 % \subsection{Option Processing}
623 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xkeyval/}{\pkg{xkeyval}}
624 % for easier option parsing. If the package is not installed on your system,
625 % see Section \ref{sec:dependencies} for installation instructions.
627 \RequirePackage{xkeyval}
630 % Define some booleans to store option states
632 \newif\if@mainmatter \@mainmattertrue
633 \newif\if@DUT@subfigopt
634 \newif\if@dottedchapter
635 \newif\if@boldchapter
639 \newif\if@draftwatermark
640 \newif\if@mydraftwatermark
641 \newif\if@indentfirst
642 \newif\if@final \@finalfalse
645 % \begin{option}{subfig}
646 % Set \Lopt{subfig} flag
648 \DeclareOptionX{subfig}{\@DUT@subfigopttrue}
652 % \begin{option}{finalspace}
654 \DeclareOptionX{finalspace}{
655 \setlength\overfullrule{0pt}
656 \def\@cont@sep{1} % content page separation (# blanklines between entries)
657 \def\@ssp{1} % single space
658 \def\@dsp{2} % double space
659 \def\@tsp{3} % triple space
664 % \begin{option}{draftspace}
666 \DeclareOptionX{draftspace}{
667 \setlength\overfullrule{5pt}
668 \def\@cont@sep{0} % content page separation (# blanklines between entries)
669 \def\@ssp{1} % single space
670 \def\@dsp{1} % double space
671 \def\@tsp{2} % triple space
673 % Don't force chapters onto right-hand pages.
675 \PassOptionsToClass{openany}{book}
681 % \begin{option}{dottedpart}
683 \DeclareOptionX{dottedpart}{\@dottedparttrue}
686 % \begin{option}{dottedchapter}
688 \DeclareOptionX{dottedchapter}{\@dottedchaptertrue}
691 % \begin{option}{boldpart}
693 \DeclareOptionX{boldpart}{\@boldparttrue}
696 % \begin{option}{boldchapter}
698 \DeclareOptionX{boldchapter}{\@boldchaptertrue}
701 % \begin{option}{dottedtoc}
703 \DeclareOptionX{dottedtoc}{
704 \setkeys{drexel-thesis.cls}{dottedpart}
705 \setkeys{drexel-thesis.cls}{dottedchapter}
709 % \begin{option}{boldtoc}
711 \DeclareOptionX{boldtoc}{
712 \setkeys{drexel-thesis.cls}{boldpart}
713 \setkeys{drexel-thesis.cls}{boldchapter}
718 % \begin{option}{indenttoc}
719 % Set \Lopt{indenttoc} flag
721 \DeclareOptionX{indenttoc}{\@indenttoctrue}
725 % \begin{option}{draftwatermark}
726 % Set \Lopt{draftwatermark} flag
728 \DeclareOptionX{draftwatermark}{%
730 \@mydraftwatermarkfalse}
734 % \begin{option}{mydraftwatermark}
735 % Set \Lopt{mydraftwatermark} flag
737 \DeclareOptionX{mydraftwatermark}{%
738 \@mydraftwatermarktrue
739 \@draftwatermarkfalse}
743 % \begin{option}{indentfirst}
744 % Set \Lopt{indentfirst} flag
746 \DeclareOptionX{indentfirst}{\@indentfirsttrue}
750 % Define the book options that \Lopt{final} and \Lopt{draft} need to
752 % \begin{option}{oneside}
754 \DeclareOptionX{oneside}{\PassOptionsToClass{oneside}{book}}
758 % \begin{option}{twoside}
760 \DeclareOptionX{twoside}{\PassOptionsToClass{twoside}{book}}
764 % \begin{option}{final}
766 \DeclareOptionX{final}{
767 \setkeys{drexel-thesis.cls}{oneside}
768 \setkeys{drexel-thesis.cls}{finalspace}
769 \setkeys{drexel-thesis.cls}{dottedtoc}
774 % \begin{option}{draft}
776 \DeclareOptionX{draft}{
777 \setkeys{drexel-thesis.cls}{twoside}
778 \setkeys{drexel-thesis.cls}{draftspace}
779 \setkeys{drexel-thesis.cls}{dottedtoc}
780 \setkeys{drexel-thesis.cls}{mydraftwatermark}
785 % Use the default \cls{book} implementation for any remaining options
786 % including \Lopt{oneside}, \Lopt{twoside}, \Lopt{leqno}, \Lopt{fleqn},
789 \DeclareOptionX*{\PassOptionsToClass{\CurrentOption}{book}}
792 % Execute the default options
794 \ExecuteOptionsX{final}
797 % Process options and load the book class
799 \ProcessOptionsX\relax
804 % \subsection{Internal package includes}
807 % Include some other packages we'll need. If the package is not
808 % installed on your system, see Section \ref{sec:dependencies} for
809 % installation instructions.
811 % For many packages, we want the same functionality for both
812 % \Lopt{final} and \Lopt{draft} modes. We pass \Lopt{final} to most
813 % of those packages to override a possible \Lopt{draft} option passed
814 % to \pkg{drexel-thesis}.
817 % \subsubsection{\pkg{setspace}}
819 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/setspace/}{\pkg{setspace}}
820 % for double spacing.
822 \RequirePackage{setspace}
826 % \subsubsection{\pkg{calc}}
828 % \href{http://www.ctan.org/tex-archive/macros/latex/required/tools/}{\pkg{calc}}
829 % for |\set@lines@length| macro (page
830 % \pageref{sec:implement-line-spacing}).
832 \RequirePackage{calc}
836 % \subsubsection{\pkg{graphicx}}
838 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
839 % for |\includegraphics|. Not strictly necessary, but I can't imagine
840 % a thesis without figures.
842 \RequirePackage[final]{graphicx}
845 % We include the graphicx package now so we can
846 % pass \Lopt{final}, because some later packages include it with no options,
847 % and a \Lopt{final} include after that produces errors like
849 % l.104 \RequirePackage
851 % The package graphicx has already been loaded with options:
853 % There has now been an attempt to load it with options
858 % \subsubsection{\pkg{draftmark}}
860 % The Comp.~Sci.\ class used
861 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftcopy/}{\pkg{draftcopy}}
862 % to add their watermarks, but as of the current 2002/02/25 v2.16, it
863 % uses postscript specials, and so doesn't work with pdf\LaTeX.
864 % Instead we use the recent (catalogued 2009/11/03)
865 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftmark/}{\pkg{draftmark}}
866 % which unfortunately has a number of apparently non-standard dependencies
867 % (\href{http://www.ctan.org/tex-archive/macros/latex/contrib/etextools/}{\pkg{etextools}},
868 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/etoolbox/}{\pkg{etoolbox}},
869 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/lastpage/}{\pkg{lastpage}},
870 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/ltxnew/}{\pkg{ltxnew}},
871 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/pagerange/}{\pkg{pagerange}},
872 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xifthen/}{\pkg{xifthen}},
873 % if only I had the space to install |texlive-latexextra| |:p|).
874 % The output is, however, very flexible, and it \emph{does} work with
875 % both \LaTeX\ and pdf\LaTeX. If you don't like the default watermark,
876 % you can also adjust the particulars with |\draftmarksetup|.
879 \RequirePackage[draft,allpages,mark={DRAFT \today},
880 fontsize=2cm,grayness=0.9]{draftmark}
884 % Here is Evan's alternative implementation This will not look right
885 % as a DVI, but it'll look fine once rendered to either a PS or PDF.
889 % Use \pkg{eso-pic} for |\AddToShipoutPicture|.
891 \RequirePackage{eso-pic}
893 % Use \pkg{xcolor} for |\definecolor|.
895 \RequirePackage{xcolor}
896 \definecolor{watermark}{rgb}{0.9,0.9,0.9}
898 % Set the font explicitly to avoid being effected by the last text on
899 % the page having some strange font. |\sffamily| sets a sans serif
902 \newcommand{\watermarkfont}{%
903 \color{watermark}}%\fontfamily{phv}\selectfont\sffamily}
904 \newcommand{\watermark}{%
905 \rule{4.25in}{0pt}\raisebox{5.5in}{%
908 % |\rotatebox| and |\resizebox| from \pkg{graphicx}.
910 \rotatebox[origin=c]{45}{%
911 \resizebox{!}{1.5in}{%
912 {\watermarkfont DRAFT}%
916 \rotatebox[origin=c]{45}{%
917 \resizebox{!}{.6in}{%
918 {\watermarkfont \qquad\today}%
920 \AddToShipoutPicture{\watermark{}}
925 % \subsubsection{\pkg{indentfirst}}
927 % Indent the first paragraph after sections etc.\ with
928 % \href{http://www.ctan.org/tex-archive/macros/latex/required/tools/}{\pkg{indentfirst}}.
931 \RequirePackage{indentfirst}
936 % \subsubsection{\pkg{geometry}}
938 % Setup page margins with
939 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/geometry/}{\pkg{geometry}}.
940 % From the Manual p5:
942 % \item The left margin must be at least 1 1/2'' (1.5 inches)
943 % throughout the document.
944 % \item All other margins (top, bottom, and right) must be at least 1''.
946 % And from the Manual 1.5 p4, Print Version:
948 % The paper size must be 8 1/2'' x 11''.
951 \RequirePackage[letterpaper,margin=1in,bindingoffset=0.5in]{geometry}
953 % Note that we include the \pkg{geometry} package after loading \cls{book} to
954 % override the margin manipulation that takes place in \cls{book}.
957 % \subsubsection{\pkg{tocloft}}
959 % Typeset the table of contents, etc., with
960 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/tocloft/}{\pkg{tocloft}}.
963 \RequirePackage[subfigure]{tocloft}
965 \RequirePackage{tocloft}
968 % The \Lopt{subfigure} option sets up \pkg{tocloft} for
969 % \pkg{subfig}/\pkg{subfigure} compatibility. See the
970 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/tocloft/tocloft.pdf}{%
971 % \pkg{tocloft} manual, Section 2.1}
974 % The configuration of \pkg{tocloft} takes place in Sections
975 % \ref{sec:implement-toc}, \ref{sec:implement-lof}, and
976 % \ref{sec:implement-lot}.
979 % \subsubsection{\pkg{caption}}
981 % Get nice caption formatting with
982 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/caption/}{\pkg{caption}}.
983 % From the Manual p5:
985 % \item The left margin must be at least 1 1/2'' (1.5 inches)
986 % throughout the document.
987 % \item All other margins (top, bottom, and right) must be at least 1''.
990 \RequirePackage[margin=10pt,labelfont=bf,labelsep=colon]{caption}
992 % You can change these settings if you like using |\captionsetup|.
995 % \subsubsection{\pkg{floatrow}}
996 % \label{sec:floatrow}
998 % Enforce caption placement with
999 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/floatrow/}{\pkg{floatrow}}.
1000 % From the Manual 2.3 p6, ``Tables and Figures'',
1003 % \item Place figure captions below figures.
1004 % \item Place table captions above tables.
1008 \RequirePackage{floatrow}
1009 \floatsetup[table]{style=plaintop}
1010 \floatsetup{captionskip=10pt}
1011 \floatsetup[table]{captionskip=10pt}
1013 % Use \pkg{fr-subfig} for \pkg{floatrow}/\pkg{subfig} compatibility.
1014 % See the \pkg{floatrow} documentation (Sec.~7.1, ``The \pkg{subfig}
1015 % package'') and \pkg{subfig} documentation (Sec.~4.3,
1016 % ``\pkg{FloatRow} Package'') for details.
1019 \RequirePackage{fr-subfig}
1022 % We set up the three-line surrounding spaces in Section
1023 % \ref{sec:implement-floats}.
1025 % You can change these settings using |\floatsetup|, but you probably
1029 % \subsubsection{\pkg{subfig}}
1030 % \label{sec:subfig}
1032 % Allow multi-partfigures with
1033 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/subfig/}{\pkg{subfig}}.
1036 \RequirePackage{subfig}
1041 % \subsubsection{\pkg{fancyhdr}}
1042 % \label{sec:fancyhdr}
1044 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/}{\pkg{fancyhdr}}
1045 % for correct page numbering and fancy headers.
1046 % From the Manual 2.3 p5, ``Pagination''
1048 % Place page numbers in the upper right-hand corner of the page,
1049 % 3/4'' from the top.
1052 \RequirePackage{fancyhdr}
1054 % Setup the standard |fancy| format.
1059 % Turn off the header rule by setting its width to $0$.
1061 \renewcommand{\headrulewidth}{0pt}
1063 % 0.4 pt is \pkg{fancyhdr}'s default |\headrulewidth|, so we'll
1064 % recycle the value.
1066 \renewcommand{\footrulewidth}{0.4pt}
1068 % |\leftmark| is the higher level mark, see |\chaptermark| below.
1069 % |\rightmark| is the lower level mark, see |\sectionmark| below.
1070 % We put the lower level mark to the outside because it changes more
1071 % often. Page numbers also go on the outside.
1073 \fancyfoot[RE,LO]{\scshape\leftmark}
1074 \fancyfoot[LE,RO]{\scshape\rightmark}
1075 \fancyhead[LE,RO]{\thepage}
1077 % Override the |plain| format (for part pages, etc.).
1079 \fancypagestyle{plain}{
1081 \renewcommand{\footrulewidth}{0pt}
1082 \fancyhead[LE,RO]{\thepage}
1085 % Keep the |empty| format at its default.
1087 \fancypagestyle{empty}{
1089 \renewcommand{\footrulewidth}{0pt}
1093 % Note that the Chapter / Section footer is not required. You can
1094 % remove the footer text and rule entirely with.
1096 % \renewcommand{\footrulewidth}{0pt}
1097 % \fancyfoot[RE,LO]{}
1098 % \fancyfoot[LE,RO]{}
1102 % \subsubsection{\pkg{ifpdf}}
1104 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{ifpdf}}
1105 % for detecting PDF drivers. We use it to configure \pkg{hyperref} below.
1107 \RequirePackage{ifpdf}
1110 % \subsubsection{\pkg{hyperref}}
1112 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{\pkg{hyperref}}
1113 % for hyperlinks. Not strictly necessary, but I can't imagine a
1114 % thesis without it.
1116 \RequirePackage[final]{hyperref}
1118 % Nobody likes the default colored boxes. Color the text itself.
1120 \hypersetup{colorlinks}
1122 % If we're writing a PDF, we set the |pdfauthor|, etc.\ arguments in
1123 % |\author|, etc.\ to avoid using |\AtBeginDocument| or some such.
1126 % \subsection{\LaTeX\ overrides and extensions}
1128 % Here we change the behavior of a bunch of macros and environments
1129 % from \file{latex.ltx} (generated by \file{format.ins} in
1130 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{base}}).
1131 % We'll copy in their original notes along with their code, following
1132 % the relevant documentation an order given in \file{format.ins} and
1133 % the associated \file{*.dtx} files.
1136 % \subsubsection{\file{ltsect.dtx}}
1138 % \begin{macro}{\title}
1139 % |\title| for use in |\maketitle|. If not given |\maketitle| will
1140 % produce a warning message (\file{ltsect.dtx}, L117).
1142 % We extend |\title| to set \pkg{hyperref}'s |pdftitle|.
1143 % (\file{ltsect.dtx}, L117).
1145 \let\DUT@title\title
1146 \renewcommand{\title}[1]{
1148 \ifpdf \hypersetup{pdftitle={\@title}} \fi
1153 % \begin{macro}{\author}
1154 % |\author| for use in |\maketitle|. If not given |\maketitle| will
1155 % produce a warning message (\file{ltsect.dtx}, L129).
1157 % We extend |\author| to set \pkg{hyperref}'s |pdfauthor|.
1158 % (\file{ltsect.dtx}, L129).
1160 \let\DUT@author\author
1161 \renewcommand{\author}[1]{
1163 \ifpdf \hypersetup{pdfauthor={\@author}} \fi
1168 % In a similar vein, we some additional meta-info macros.
1170 % \begin{macro}{\defmonth}
1171 % \begin{macro}{\@defmonth}
1172 % |\defmonth| (defense month) for use in |\maketitle|. If not given
1173 % |\maketitle| will produce an error message.
1175 \def\defmonth#1{\gdef\def@month{#1}}
1176 \def\def@month{\@latex@error{No \noexpand\defmonth given}\@ehc}
1181 % \begin{macro}{\defyear}
1182 % \begin{macro}{\@defyear}
1183 % |\defyear| (defense year) for use in |\maketitle|. If not given
1184 % |\maketitle| will produce an error message.
1186 \def\defyear#1{\gdef\def@year{#1}}
1187 \def\def@year{\@latex@error{No \noexpand\defyear given}\@ehc}
1192 % \begin{macro}{\degree}
1193 % \begin{macro}{\@degree}
1194 % |\degree| for use in |\maketitle|. If not given |\maketitle| will
1195 % produce an error message.
1197 \def\degree#1{\gdef\@degree{#1}
1198 \ifpdf \hypersetup{pdfsubject={\@degree}} \fi}
1199 \def\@degree{\@latex@error{No \noexpand\degree given}\@ehc}
1204 % \begin{macro}{\copyrighttext}
1205 % \begin{macro}{\@copyrighttext}
1206 % |\copyrighttext| for use in |\makecopyright|. There are a number of
1207 % blurbs predefined in Section \ref{sec:implement-copyright}.
1209 \def\copyrighttext#1{\gdef\@copyrighttext{#1}}
1210 \def\@copyrighttext{All Rights Reserved.}
1215 % \begin{macro}{\advisor}
1216 % \begin{macro}{\@advisor}
1217 % |\advisor| for use in |\maketitle|. If not given |\maketitle| will
1218 % produce an error message. We get a bit fancier here to support
1219 % multiple advisors.
1221 \newcounter{advisors}
1222 \setcounter{advisors}{0}
1223 \newcommand\advisor[1]{%
1226 % If |#1| is |\empty|, this call is a no-op.
1231 % Save the advisors to |\@advisor@a|, |\@advisor@b|, \ldots.
1232 % |\alph{|\Lcount{COUNTER}|}| (\file{ltcounts.dtx}, L319) prints the
1233 % value of \Lcount{COUNTER} as a lowercase letter: $1 =$~a, $2 =$~
1236 \stepcounter{advisors}
1237 \expandafter\gdef\csname @advisor@\alph{advisors}\endcsname{#1}
1239 \newcommand\@advisor{%
1240 \ifnum\c@advisors=0%
1241 \@latex@error{No \noexpand\advisor given}\@ehc%
1244 % Start a group so \Lcount{advisor@loop} is released afterwards to
1248 \newcounter{advisor@loop}%
1249 \setcounter{advisor@loop}{1}%
1251 % Print the first advisor.
1253 \csname @advisor@\alph{advisor@loop}\endcsname\relax%
1255 % For any remaining advisors\ldots
1257 \loop\ifnum\c@advisor@loop<\c@advisors%
1258 \stepcounter{advisor@loop}%
1260 % Print the connecting text.
1262 \ifnum\c@advisor@loop=\c@advisors%
1263 \ifnum\c@advisors=2%
1265 % The next advisor if the last of two.
1270 % The next advisor if the last of many.
1276 % The next advisor is not the last.
1281 % Print the advisor's name.
1283 \csname @advisor@\alph{advisor@loop}\endcsname\relax%
1291 % \paragraph{baselineskip}
1292 % \label{sec:implement-line-spacing}
1294 % \begin{macro}{\DUT@baselineskip}
1295 % Since we'll be messing with the spacing, save the single-spaced
1297 % \changes{0.3}{2010/01/13}{Use \\setlength to store the value at
1298 % the default font. The previous version used \\let, which made
1299 % \\DUT\@baselineskip a synonym for \\baselineskip that changed
1302 \newlength\DUT@baselineskip
1303 \setlength\DUT@baselineskip\baselineskip
1308 % `\cs{set@lines@length}\marg{length}\marg{N}'
1310 % \begin{macro}{\set@lines@length}
1311 % Many specifications in the Manual refer to ``\meta{N} blank lines''.
1312 % |\set@lines@length| allows you to set a length to a given number of
1313 % lines, protecting against external |spacing| environments. It
1314 % requires \pkg{calc} for the multiplication.
1316 \newcommand{\set@lines@length}[2]{%
1317 \setlength{#1}{\DUT@baselineskip * {#2}}}
1322 % Fix |\@ssect| and |\@sect| from \file{latex.ltx} to give single
1325 % \begin{macro}{\@sect}
1326 % Pseudocode for the |\@sect| command
1328 % \@sect{NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}[ARG1]{ARG2}
1331 % IF LEVEL > \c@secnumdepth
1332 % THEN \@svsec :=L null
1333 % ELSE \refstepcounter{NAME}
1334 % \@svsec :=L BEGIN \@seccntformat{#1}\relax END
1339 % \@hangfrom{\hskip INDENT\@svsec}
1340 % {\interlinepenalty 10000 ARG2\par}
1343 % \addcontentsline{toc}{NAME}
1344 % { IF LEVEL > \c@secnumdepth
1345 % ELSE \protect\numberline{\theNAME} FI
1347 % ELSE \@svsechd == BEGIN STYLE
1348 % \hskip INDENT\@svsec
1351 % \addcontentsline{toc}{NAME}
1352 % { IF LEVEL > \c@secnumdepth
1354 % \protect\numberline{\theNAME}
1359 % \@xsect{AFTERSKIP}
1362 % (\file{ltsect.dtx}, L295).
1364 \def\@sect#1#2#3#4#5#6[#7]#8{%
1365 \ifnum #2>\c@secnumdepth
1368 \refstepcounter{#1}%
1369 \protected@edef\@svsec{\@seccntformat{#1}\relax}%
1371 \@tempskipa #5\relax
1372 \ifdim \@tempskipa>\z@
1375 % Here we deviate from \file{ltsect.dtx} to ensure single spacing for
1376 % the section title.
1380 \@hangfrom{\hskip #3\relax\@svsec}%
1381 \interlinepenalty \@M #8\@@par}%
1383 \csname #1mark\endcsname{#7}%
1384 \addcontentsline{toc}{#1}{%
1385 \ifnum #2>\c@secnumdepth \else
1386 \protect\numberline{\csname the#1\endcsname}%
1393 \csname #1mark\endcsname{#7}%
1394 \addcontentsline{toc}{#1}{%
1395 \ifnum #2>\c@secnumdepth \else
1396 \protect\numberline{\csname the#1\endcsname}%
1404 % \begin{macro}{\@ssect}
1405 % Pseudocode for the |\@ssect| command
1407 % \@ssect{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}{ARG} ==
1412 % \@hangfrom{\hskip INDENT}{\interlinepenalty 10000 ARG\par}
1414 % ELSE \@svsechd == BEGIN STYLE
1419 % \@xsect{AFTERSKIP}
1422 % (\file{ltsect.dtx}, L521).
1424 \def\@ssect#1#2#3#4#5{%
1425 \@tempskipa #3\relax
1426 \ifdim \@tempskipa>\z@
1429 % Here we deviate from \file{ltsect.dtx} to ensure single spacing for
1430 % the section title.
1434 \@hangfrom{\hskip #1}%
1435 \interlinepenalty \@M #5\@@par}%
1438 \def\@svsechd{#4{\hskip #1\relax #5}}%
1445 % \subsubsection{\file{ltbibl.dtx}}
1447 % \DescribeMacro{\bibliography}
1448 % \DescribeEnv{thebibliography}
1449 % A bibliography is created by the |thebibliography| environment, which
1450 % generates a title such as ``Bibliography'', and a list of entries.
1451 % The \BibTeX\ program will create a file containing such an
1452 % environment, which will be read in by the |\bibliography| command.
1453 % With \BibTeX, the following commands will be used.
1455 % The document class must define the thebibliography environment. This
1456 % environment has a single argument, which is the widest bibliography
1457 % label-- e.g., if the [Knuth67] is the widest entry, then this
1458 % argument will be Knuth67. The |\thebibliography| command must begin
1459 % a list environment, which the |\endthebibliography| command ends.
1461 % \begin{macro}{\bibliography}
1462 % |\bibliography|\marg{file1,file2,\ldots,filen} : specifies
1463 % the bibdata files. Writes a |\bibdata| entry on the |.aux| file
1464 % and tries to read in |mainfile.bbl|.
1466 % We don't need to change it, but it explains why we need to override
1467 % |thebibliography| even when we don't use it directly.
1468 % (\file{ltbibl.dtx}, L284).
1470 %\def\bibliography#1{%
1472 % \immediate\write\@auxout{\string\bibdata{#1}}%
1474 % \@input@{\jobname.bbl}
1480 % \subsubsection{\file{ltoutput.dtx}}
1482 % \begin{macro}{\DUT@clearpage}
1483 % \begin{macro}{\DUT@cleardoublepage}
1484 % Versions of |\clear*page| that only work when |\if@final| is true
1485 % (\file{ltoutput.dtx}, L877 and L904).
1487 \newcommand\DUT@clearpage{\if@final \clearpage \fi}
1488 \newcommand\DUT@cleardoublepage{\if@final \cleardoublepage \fi}
1493 % \begin{macro}{\blankpage}
1494 % Add a useful extension to insert a blank page without numbering.
1495 % In draft mode, this macro is a no-op.
1497 \newcommand\blankpage{%
1500 \thispagestyle{empty}
1510 % `\cs{blanklines}\marg{N}'
1511 % `\cs{blanklines*}\marg{N}'
1513 % \begin{macro}{\blanklines}
1514 % Insert \meta{N} blank lines. The starred forms use |\vspace|, which
1515 % inserts space even at the start and end of pages. The |p| forms
1516 % add a trailing |\par|. \emph{I'm still trying to get this part working
1519 \newlength\DUT@blanklines@length
1520 \newcommand{\@blanklines@setup}[1]{%
1521 \set@lines@length{\DUT@blanklines@length}{#1}%
1522 %\typeout{BLANKLINES -- #1}%
1523 %\showthe\DUT@blanklines@length
1525 \newcommand{\blanklines}{\@ifstar\@sblanklines\@blanklines}
1526 \newcommand{\@blanklines}[1]{%
1527 \@blanklines@setup{#1}%
1528 \vspace{\DUT@blanklines@length}}
1529 \newcommand{\@sblanklines}[1]{%
1530 \@blanklines@setup{#1}%
1531 \vspace*{\DUT@blanklines@length}}
1532 \newcommand{\blanklinesp}{\@ifstar\@sblanklines\@blanklines}
1533 \newcommand{\@blanklinesp}[1]{%
1534 \@blanklines@setup{#1}%
1535 \vspace{\DUT@blanklines@length}\par}
1536 \newcommand{\@sblanklinesp}[1]{%
1537 \@blanklines@setup{#1}%
1538 \vspace*{\DUT@blanklines@length}\par}
1543 % \subsection{\cls{book} overrides and extensions}
1545 % Here we change the behavior of a bunch of macros and environments from
1546 % \cls{book} (generated by \file{classes.ins} from \file{classes.dtx}) in
1547 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{base}}).
1548 % We'll copy in their original notes along with their code, following
1549 % the relevant documentation an order given in \file{classes.dtx}.
1552 % \subsubsection{Floats on a text page}
1553 % \label{sec:implement-floats}
1555 % \begin{macro}{\floatsep}
1556 % \begin{macro}{\textfloatsep}
1557 % When a floating object is placed on a page with text, these
1558 % parameters control the separation between the float and the other
1559 % objects on the page.
1561 % |\floatsep| is the space between adjacent floats that are moved
1562 % to the top or bottom of the text page.
1564 % |\textfloatsep| is the space between the main text and floats
1565 % at the top or bottom of the page.
1567 % |\intextsep| is the space between in-text floats and the text. We
1568 % don't bother overriding this one, because we've handled it with
1569 % \pkg{floatrow} in Section \ref{sec:floatrow}.
1571 % From the Manual 2.3 p6, ``Tables and Figures''
1573 % Insert at least 3 single-spaced lines of space above table
1574 % captions and figures and below figure captions, tables, and other
1577 % (\file{classes.dtx}, L1426)
1579 \set@lines@length{\floatsep}{\@ssp}
1580 \set@lines@length{\textfloatsep}{\@tsp}
1586 % \subsubsection{The title}
1588 % \begin{macro}{\maketitle}
1589 % Automate the creation of the title page.
1590 % From Manual 3.1 p8, ``Title Page'', and the example on p16.
1592 % \item This page is counted but not numbered (it counts as page i,
1593 % but should not have a page number). TODO: How is this implemented?
1595 % Our definition simplifies \cls{book}'s by ignoring footnotes.
1596 % (\file{classes.dtx}, L1796)
1598 \renewcommand\maketitle{
1601 % Add some bookmarks if we're using pdf\LaTeX. The |frontmatter|
1602 % bookmark is set at the \emph{part} level (-1) to hold all bookmarks
1603 % from the |preamble| environment, since those entries are all
1607 \pdfbookmark[-1]{Frontmatter}{Frontmatter}
1608 \pdfbookmark[0]{Title Page}{Title Page}
1611 % Add some stretchy space to center the title vertically if we're not
1614 \if@final \vspace*{\fill} \fi
1616 % Here is the title text itself.
1619 {\setstretch{\@tsp} \bfseries \@title \par}%
1621 % We want two blank lines (triple spacing) between the title and the
1622 % remaining material, so add three but don't end the paragraph.
1627 Submitted to the Faculty\\
1632 in partial fulfillment of the\\
1633 requirements for the degree\\
1636 \def@month\ \def@year
1639 % Some more stretchy space for the bottom if we're not in draft mode.
1642 % Add some stretchy space to center the title vertically if we're not
1645 \if@final \vspace*{\fill} \fi
1648 % And that's it. We reset the footnote counter for the rest of the
1649 % document and save space by freeing the memory associated with the
1650 % |\maketitle| and |\and| macros (by setting them equal to |\relax|).
1652 \setcounter{footnote}{0}%
1653 \global\let\maketitle\relax
1654 \global\let\and\relax
1660 % \subsubsection{Copyright pages}
1661 % \label{sec:implement-copyright}
1663 % \begin{macro}{\makecopyright}
1664 % The Manual allows for the selection of different copyrights, so we
1665 % define a base macro that generates a proper copyright page
1666 % containing |\@copyrighttext|, which the user can set with
1668 % From Manual 3.2 p9, ``Copyright Page''.
1670 % \item Include a copyright page with the following information: a
1671 % copyright notice, full legal name of author, and date of
1672 % publication on file.
1673 % \item This page is neither counted nor numbered.
1675 % In final mode, we start off on a new page and center the blurb.
1676 % In draft mode, we dive right into the text.
1678 \newcommand\makecopyright{%
1681 % If we're using pdf\LaTeX, add a bookmark.
1683 \ifpdf \pdfbookmark[0]{Copyright Page}{Copyright Page} \fi
1684 \if@final \vspace*{\fill} \fi
1686 \copyright~Copyright \def@year\\
1687 \@author. \@copyrighttext
1689 \if@final \vspace*{\fill} \else \blanklinesp{2} \fi
1691 % Turn off page numbering for this page.
1693 \thispagestyle{empty}
1698 % \begin{macro}{\copyrighttextCC}
1699 % The Creative Commons license.
1701 \newcommand\copyrighttextCC{
1703 This work is licensed under the terms of the Creative Commons
1704 Attribution-ShareAlike license. The license is available at \\
1705 \url{http://creativecommons.org/licenses/by-sa/3.0/}.
1712 % \subsubsection{Mark commands}
1714 % Default initializations of |\*mark| commands. These commands
1715 % are used in the definition of the page styles.
1717 % \begin{macro}{\chaptermark}
1718 % Setup colon rather than period separated chapter marks.
1719 % (\file{classes.dtx}, L2053)
1721 \renewcommand\chaptermark[1]{%
1723 \ifnum \c@secnumdepth >\m@ne
1725 \@chapapp\ \thechapter: \ %
1732 % \begin{macro}{\schaptermark}
1733 % Setup unnumbered chapter marks for \pkg{fancyhdr}.
1735 \newcommand\schaptermark[1]{\markboth{#1}{}}
1739 % \begin{macro}{\sectionmark}
1740 % Setup space rather than period separated section marks.
1741 % (\file{classes.dtx}, L2054)
1743 \renewcommand{\sectionmark}[1]{%
1745 \ifnum \c@secnumdepth >\z@
1753 % \subsubsection{Front Matter, Main Matter, and Back Matter}
1755 % A book contains these three (logical) sections. The switch
1756 % |\@mainmatter| is true iff we are processing Main Matter. When this
1757 % switch is false, the |\chapter| command does not print chapter
1760 % \begin{macro}{\mainmatter}
1761 % This command clears the page (in final mode), starts arabic page
1762 % numbering and turns on chapter numbering. Since this restarts the
1763 % page numbering from 1, it should also ensure that a recto page is
1766 % We replace \cls{book}'s |\clear*page| calls with |\DUT@clearpage| calls.
1767 % (\file{classes.dtx}, L2211)
1769 \renewcommand\mainmatter{%
1770 \DUT@cleardoublepage
1772 \pagenumbering{arabic}}
1777 % \subsubsection{Parts}
1779 % \begin{macro}{\part}
1780 % The command to start a new part of our document.
1782 % We start a new (righthand) page and use the \pstyle{plain}
1783 % pagestyle, replacing \cls{book}'s |\clear*page| calls with
1784 % |\DUT@clearpage| calls and dropping twopage code.
1785 % (\file{classes.dtx}, L2249)
1787 \renewcommand\part{%
1789 \DUT@cleardoublepage
1793 \thispagestyle{plain}%
1796 % Add some stretchy space for vertical centering if we're in final mode.
1798 \if@final \null\vfil \fi
1800 % Here we use |\secdef| to indicate which commands to use to make
1801 % the actual heading.
1803 \secdef\@part\@spart}
1807 % \begin{macro}{\@part}
1808 % This macro does the actual formatting of the title of the part. We
1809 % replace \cls{book}'s |\Huge| with |\large|, and make use of
1810 % |\numberline| for consistent spacing.
1812 % When \Lcount{secnumdepth} is larger than $-2$, we have a numbered
1813 % part, otherwise it is unnumbered.
1814 % (\file{classes.dtx}, L2310)
1817 \ifnum \c@secnumdepth >-2\relax
1818 \refstepcounter{part}%
1819 \addcontentsline{toc}{part}%
1820 {\protect\numberline{\thepart}#1}%
1822 \addcontentsline{toc}{part}{#1}%
1825 % We empty the mark registers and center the title on the page.
1826 % Also we prevent breaking between lines and reset the font.
1830 \interlinepenalty \@M
1833 % When this is a numbered part we have to print the number.
1835 \ifnum \c@secnumdepth >-2\relax
1836 \large\bfseries \partname\nobreakspace\thepart
1839 % We leave some space before we print the title and leave the
1840 % finishing up to |\@endpart|.
1844 \large \bfseries #2\par}%
1849 % \begin{macro}{\@spart}
1850 % This macro does the actual formatting of the title of the part
1851 % when the star form of the user command was used. In this case we
1852 % \emph{never} print a number. Otherwise the formatting is the
1854 % (\file{classes.dtx}, L2402)
1858 \interlinepenalty \@M
1860 \large \bfseries #1\par}%
1865 % \begin{macro}{\@endpart}
1866 % This macro finishes the part page, for both |\@part| and |\@spart|.
1867 % We drop \cls{book}'s twoside handling.
1868 % If |\if@final| is true, we fill the current page.
1869 % (\file{classes.dtx}, L2435)
1872 \if@final \vfil\newpage \fi
1874 % Then, when we are in twosided mode and the chapters are supposed to
1875 % be on the right hand sides, we produce a completely blank page. We
1876 % don't need to check |\if@final| here, because \Lopt{draftspace} set
1877 % |\@openrighttrue|.
1882 \thispagestyle{empty}%
1890 % \subsubsection{Chapters}
1891 % \label{sec:implement-chapters}
1893 % \begin{macro}{\chapter}
1894 % \cls{book} always starts a chapter on a new page, but we don't want
1895 % to do that if we're in draft mode.
1896 % (\file{classes.dtx}, L2472).
1898 \renewcommand\chapter{%
1899 \if@openright\DUT@cleardoublepage\else\DUT@clearpage\fi
1900 \thispagestyle{plain}%
1902 % Then we prevent floats from appearing at the top of this page
1903 % because it looks weird to see a floating object above a chapter
1908 % Then we suppress the indentation of the first paragraph by
1909 % setting the switch |\@afterindent| to false. We use |\secdef|
1910 % to specify the macros to use for actually setting the chapter
1914 \secdef\@chapter\@schapter}
1918 % \begin{macro}{\listed@schapter}
1919 % |\chapter| declares numbered chapters, which are listed in the table
1921 % |\chapter*| declares unnumbered chapters, which are \emph{not}
1922 % listed in the TOC.
1923 % |\listed@schapter| declares an unnumbered chapter that \emph{is}
1924 % listed in the TOC.
1926 \newcommand\listed@schapter[1]{%
1927 \if@openright\DUT@cleardoublepage\else\DUT@clearpage\fi
1928 \thispagestyle{plain}%
1931 \addcontentsline{toc}{chapter}{#1}
1937 % \begin{macro}{\@chapter}
1938 % This macro is called when we have a numbered chapter. When
1939 % \Lcount{secnumdepth} is larger than $-1$ and |\@mainmatter| is true,
1940 % we display the chapter number.
1941 % We drop \cls{book}'s \Lopt{twocolumn} code.
1942 % (\file{classes.dtx}, L2496).
1944 \def\@chapter[#1]#2{
1946 % Inform the user that a new chapter is about to be typeset by writing
1947 % a message to the terminal.
1949 \typeout{\@chapapp\space\thechapter. #1}%
1950 \ifnum \c@secnumdepth >\m@ne
1952 \refstepcounter{chapter}%
1953 \addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}#1}%
1955 \addcontentsline{toc}{chapter}{#1}%
1958 \addcontentsline{toc}{chapter}{#1}%
1961 % After having written an entry to the table of contents we store
1962 % the (alternative) title of this chapter with |\chaptermark|.
1966 % For nicer lists of figures and tables, we could add some white space
1967 % to separate the chapters. However, nice lists $\neq$~Manual
1970 % \addtocontents{lof}{\protect\addvspace{10\p@}}%
1971 % \addtocontents{lot}{\protect\addvspace{10\p@}}%
1973 % Then we call upon |\@makechapterhead| to format the actual chapter
1974 % title. |\@afterheading| which takes care of suppressing the
1977 \@makechapterhead{#2}%
1982 % \begin{macro}{\@makechapterhead}
1983 % The |\@chapter| macro uses |\@makechapterhead|\meta{text} to format
1984 % the heading of the chapter.
1985 % From the Manual 3.11 p11.
1987 % Chapter headings must be bold and centered.
1988 % The chapter number and title must be on the same line, separated
1989 % by a colon or period, as shown in the example below:
1991 % CHAPTER 1: INTRODUCTION
1993 % Headings must not be larger than 12 points.
1994 % Headings must be single spaced.
1996 % \cls{book} sets |\@chapapp| and |\thechapter| (e.g.\ ``Chapter 5'')
1997 % on a line above the chapter title, but that doesn't match the
1998 % Manual's specification.
2000 % We begin by leaving some white space. The we open a group in which
2001 % we have a paragraph indent of 0pt, and in which we have the text set
2002 % ragged right. We also reset the font.
2003 % (\file{classes.dtx}, L2540).
2005 \def\@makechapterhead#1{%
2007 % Adding even a \vspace*{0\p@} here seems to increase the vertical
2008 % space above the chapter heading by two lines. I'm not sure why.
2009 % Workaround is to pass the ``value of blanklines you want minus two''
2010 % to |\blanklines*|. HACK!
2013 {\parindent \z@ \raggedright \normalfont
2015 % Ensure single spacing.
2019 % Prevent a pagebreak from occuring in the middle of or after the title.
2021 \interlinepenalty\@M
2023 % Check whether the number of the chapter has to be printed.
2025 \ifnum \c@secnumdepth >\m@ne
2027 % Check whether there \emph{is} a number to be printed.
2031 % Setup a ``Chapter \#: Title'' heading.
2033 \center \large \bfseries \@chapapp{} \thechapter: #1\par\nobreak
2036 % Setup a ``Title'' heading.
2038 \center \large \bfseries #1\par\nobreak
2041 \center \large \bfseries #1\par\nobreak
2044 % Put a little space before the chapter body. We use four blank lines
2045 % to comply with the Manual 3.13 p12
2047 % Begin the list of sources four spaces below the heading.
2056 % \begin{macro}{\@schapter}
2057 % This macro is called when we have an unnumbered chapter. We drop
2058 % \file{classes.dtx}'s \Lopt{twocolumn} code and set marks for
2060 % (\file{classes.dtx}, L2582).
2062 \def\@schapter#1{\schaptermark{#1}%
2063 \@makeschapterhead{#1}%
2068 % \begin{macro}{\@makeschapterhead}
2069 % The macro above uses |\@makeschapterhead|\meta{text} to format
2070 % the heading of the chapter. It is similar to |\@makechapterhead|
2071 % except that it never has to print a chapter number.
2072 % (\file{classes.dtx}, L2595).
2074 \def\@makeschapterhead#1{%
2075 \blanklines*{-1}% HACK!
2076 {\parindent \z@ \raggedright \normalfont
2078 \interlinepenalty\@M
2079 \center \large \bfseries #1\par\nobreak
2087 % \subsubsection{Lower level headings}
2089 % \begin{macro}{\section}
2090 % Setup section headings in |\large| rather than \cls{book}'s
2092 % (\file{classes.dtx}, L2623).
2094 \renewcommand\section{%
2095 \@startsection {section}{1}{\z@}%
2096 {-3.5ex \@plus -1ex \@minus -.2ex}%
2098 {\normalfont\large\bfseries}}
2103 % \subsubsection{Defining new environments}
2105 % We don't override any of \cls{book}'s environments, but this is
2106 % where \file{classes.dtx} defines its environments (L2996), so we'll put
2109 % \begin{environment}{preamble}
2111 \newenvironment{preamble}{%
2114 \pagenumbering{roman}
2116 % From Manual 3.1 p8, ``Title Page''.
2120 % From Manual 3.2 p9, ``Copyright Page''.
2125 % From the Manual 3.9, p11:
2127 % Include a blank page (with no page number) before the first page
2128 % of text. The blank page is neither numbered nor counted.
2136 % \begin{environment}{dedications}
2137 % From the Manual 3.3 p9
2139 % \item The heading |Dedications| must appear at the top of the
2140 % page. The heading must be bold, centered, and without
2142 % \item This page is counted and numbered in lowercase Roman numerals.
2145 \newenvironment{dedications}{%
2149 \pdfbookmark[0]{\dedicationsname}{\dedicationsname}
2151 \chapter*{\dedicationsname}
2159 % \begin{environment}{acknowledgments}
2160 % From the Manual 3.4 p9
2162 % \item The heading |Acknowledgments| must appear at the top of the
2163 % page. The heading must be bold, centered, and without
2165 % \item This page is counted and numbered in lowercase Roman numerals.
2168 \newenvironment{acknowledgments}{%
2172 \pdfbookmark[0]{\acknowledgmentsname}{\acknowledgmentsname}
2174 \chapter*{\acknowledgmentsname}
2182 % \begin{environment}{abstract}
2184 \newenvironment{abstract}{%
2185 \listed@schapter{\abstractname}%
2187 % Suck up some blank space to position the rest of the header right
2188 % under the chapter title.
2192 % From the Manual 3.9 p10
2195 % \item The following heading must be centered at the top of the page
2198 % Full Title of Dissertation or Thesis \\
2199 % Author's Name as it appears on the Dissertation or Thesis
2201 % In the example on p20, they list the advisor's name after the
2202 % author, but that is not specified in the text on p10.
2203 % \item The text begins four lines below this heading.
2209 % \item These pages are numbered using lowercase Roman numerals.
2210 % \item Note that the heading is single spaced, but the abstract
2232 % \begin{environment}{thesis}
2233 % From the Manual 3.10 p11
2235 % \item The pages are counted and numbered in Arabic numerals.
2238 \newenvironment{thesis}{%
2246 \pdfbookmark[-1]{Backmatter}{Backmatter}
2253 % \label{sec:implement-vita}
2255 % \begin{environment}{vita}
2256 % From the Manual 3.15 p13
2258 % \item The heading |Vita| must appear at the top of the page. The
2259 % heading must be bold, centered, and without punctuation.
2260 % \item The Vita text should begin four spaces below the heading.
2261 % \item List the Vita separately in the Table of Contents.
2262 % \item The page is counted and numbered in Arabic numerals.
2265 \newenvironment{vita}{%
2266 \listed@schapter{\vitaname}
2275 % \subsubsection{Titlepage}
2277 % \begin{environment}{titlepage}
2278 % In the normal environments, the titlepage environment does nothing
2279 % but start and end a page, and inhibit page numbers. We inhibit the
2280 % paging in draft mode, since it seems silly to waste a whole page on
2281 % the title. We also drop the \Lopt{twocolumn} code.
2282 % (\file{classes.dtx}, L3111)
2284 \renewenvironment{titlepage}{\thispagestyle{empty}%
2285 \setcounter{page}\z@}%
2286 {\if@final \newpage \else \blanklinesp{2} \par \fi}
2291 % \subsubsection{Appendix}
2292 % \label{sec:implement-appendix}
2294 % \begin{macro}{\appendix}
2295 % The |\appendix| command is not really an environment, it is a
2296 % macro that makes some changes in the way things are done.
2298 % In the article document class the |\appendix| command must do the
2301 % \item reset the section and subsection counters to zero,
2302 % \item redefine |\thesection| to produce alphabetic appendix
2303 % numbers. This redefinition is done globally to ensure that it
2304 % survives even if |\appendix| is issued within an environment such
2305 % as \texttt{multicols}.
2308 % In addition to \cls{book}'s (or \pkg{hyperref}'s) activity, we
2309 % fiddle with the \pkg{tocloft} chapter settings add switch to global
2311 % (\file{classes.dtx}, L3177)
2313 \let\DUT@appendix\appendix
2314 \renewcommand\appendix{%
2317 % Setup TOC entries like
2319 % Appendix A: Chapter Title
2321 % We don't need to worry about the |vita| environment (page
2322 % \pageref{sec:implement-vita}), because it is a |\listed@schapter|,
2323 % and therefore lacks a |\numberline| section in its \file{*.toc}
2326 % We increase |numwidth| to 6.5em to make room for |Appendix~| before
2327 % the chapter number/letter, and add a colon after it.
2329 % The |\protect| calls get the macros into \file{*.toc} unexpanded, so
2330 % they function correctly when \LaTeX\ parses \file{*.toc}.
2332 \addtocontents{toc}{%
2333 \protect\cftsetindents{chapter}{0pt}{6.5em}
2334 \protect\renewcommand{\protect\cftchappresnum}{\protect\appendixname~}
2335 \protect\renewcommand{\protect\cftchapaftersnum}{:}}
2337 % We also turn on double spacing by default, since we're no longer
2338 % wrapped in the |thesis| environment.
2346 % \subsubsection{Table of Contents}
2347 % \label{sec:implement-toc}
2349 % From Manual 3.5 p9, ``Table of Contents'', and the example on p17.
2352 % \item Do not list any sections that precede the
2353 % |Table of Contents| (e.g.\ |Dedications|, |Acknowledgments|). Do
2354 % not list the |Table of Contents| itself.
2355 % \item These pages are counted and numbered in lowercase Roman numerals.
2359 % \begin{macro}{\cfttoctitlefont}
2360 % Take advantange of \pkg{tocloft}'s TOC title code.
2361 % (\file{tocloft.dtx}, L1501)
2363 % \cfttoctitlefont\contentsname}{\cftaftertoctitle}
2365 % by setting it equal to something ending in |\chapter*|. That way
2366 % \LaTeX parses the whole thing as
2368 % ...\chapter*\contentsname}{\cftaftertoctitle}
2370 % which will set up the TOC page correctly.
2372 \renewcommand\cfttoctitlefont{%
2374 % Start a new page in \Lopt{final} mode
2378 % Add a bookmark if we're using pdf\LaTeX.
2382 \pdfbookmark[0]{\contentsname}{\contentsname}
2385 % |\chapter*| to gobble and format the next token (|\contentsname|).
2391 % \begin{macro}{\aftertoctitleskip}
2392 % Don't add any extra space after the title (the chapter will take
2395 \setlength\cftaftertoctitleskip{0pt}
2399 % \begin{macro}{\l@cont@sep}
2400 % Define a length for TOC/LOF/LOT spacing.
2402 \newlength\l@cont@sep
2403 \set@lines@length{\l@cont@sep}{\@cont@sep}
2407 % \begin{macro}{\@cont@font}
2408 % Define a font for high level (part, chapter) entries.
2410 \newcommand{\@cont@font}{\normalsize\scshape}
2414 % \begin{macro}{\cftbeforepartskip}
2415 % \begin{macro}{\cftpartfont}
2416 % \begin{macro}{\cftpartleader}
2417 % \begin{macro}{\cftpartdotsep}
2418 % \begin{macro}{\cftpartpagefont}
2419 % Setup parts. See the \pkg{tocloft} manual for a description of the
2422 \setlength\cftbeforepartskip{\l@cont@sep}
2423 \cftsetindents{part}{0pt}{3em}
2424 \if@boldpart \renewcommand{\cftpartfont}{\bfseries\@cont@font}
2425 \else \renewcommand{\cftpartfont}{\@cont@font}
2426 \renewcommand{\cftpartleader}{\cftdotfill{\cftpartdotsep}}
2427 \if@dottedpart \renewcommand{\cftpartdotsep}{\cftdotsep}
2428 \else \renewcommand{\cftpartdotsep}{\cftnodots} \fi
2429 \renewcommand{\cftpartpagefont}{\normalfont}
2437 % \begin{macro}{\cftbeforechapskip}
2438 % \begin{macro}{\cftchapaftersnum}
2439 % \begin{macro}{\cftchapfont}
2440 % \begin{macro}{\cftchapleader}
2441 % \begin{macro}{\cftchapdotsep}
2442 % \begin{macro}{\cftchappagefont}
2443 % Setup chapters and appendicies. Some of these settings are adjusted
2444 % for appendicies in particular by |\appendix|
2445 % (Sec.~\ref{sec:implement-appendix}).
2447 \setlength\cftbeforechapskip{\l@cont@sep}
2448 \cftsetindents{chapter}{0pt}{1.5em}
2449 \renewcommand{\cftchapaftersnum}{.}
2450 \if@boldchapter \renewcommand{\cftchapfont}{\bfseries\@cont@font}
2451 \else \renewcommand{\cftchapfont}{\@cont@font} \fi
2452 \renewcommand{\cftchapleader}{\cftdotfill{\cftchapdotsep}}
2453 \if@dottedchapter \renewcommand{\cftchapdotsep}{\cftdotsep}
2454 \else \renewcommand{\cftchapdotsep}{\cftnodots} \fi
2455 \renewcommand{\cftchappagefont}{\normalfont}
2464 % \begin{macro}{\cftbeforesecskip}
2465 % \begin{macro}{\cftsecfont}
2466 % \begin{macro}{\cftbeforesubsecskip}
2467 % \begin{macro}{\cftsubsecfont}
2468 % \begin{macro}{\cftbeforesubsubsecskip}
2469 % \begin{macro}{\cftsubsubsecfont}
2470 % Setup sections, subsections, etc.
2472 %\cftsetindents{chap}{0pt}{1.5em}
2473 \setlength\cftbeforesecskip{\l@cont@sep}
2474 \cftsetindents{section}{0pt}{3em}
2475 \renewcommand{\cftsecfont}{\normalsize}
2476 \setlength\cftbeforesubsecskip{\l@cont@sep}
2477 \cftsetindents{subsection}{0pt}{4.5em}
2478 \renewcommand{\cftsubsecfont}{\cftsecfont}
2479 \setlength\cftbeforesubsubsecskip{\l@cont@sep}
2480 \cftsetindents{subsubsection}{0pt}{6em}
2481 \renewcommand{\cftsubsubsecfont}{\cftsecfont}
2490 % The default indents above are all |0pt|. If \Lopt{indenttoc} was
2491 % given, override this, restoring the \pkg{tocloft} defaults, see the
2492 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/tocloft/tocloft.pdf}{%
2493 % \pkg{tocloft} manual, Table 1}.
2496 \cftsetindents{chapter}{0pt}{1.5em}
2497 \cftsetindents{section}{1.5em}{2.3em}
2498 \cftsetindents{subsection}{3.8em}{3.2em}
2499 \cftsetindents{subsubsection}{7.0em}{4.1em}
2504 % \subsubsection{List of figures}
2505 % \label{sec:implement-lof}
2507 % From the Manual 3.7 p10
2510 % \item The heading |List of Figures| must appear at the top of
2512 % \item The heading must be bold, centered, and without
2513 % punctuation. List figure captions exactly as they appear
2514 % below the figures in the text.
2515 % \item Single space each entry, but double-space between entries.
2516 % \item Separate figure captions from page numbers with
2517 % right-justified tabs and dot leaders.
2518 % \item Do not use periods to separate captions and page numbers.
2519 % \item These pages are counted and numbered in lowercase Roman
2524 % \begin{macro}{\cftloftitlefont}
2525 % Much like our |\cfttoctitlefont|, but the list of figures gets
2526 % listed in the TOC.
2528 \renewcommand\cftloftitlefont{\listed@schapter}
2532 % \begin{macro}{\afterloftitleskip}
2533 % Don't add any extra space after the title (the chapter will take
2534 % care of that). Actually we make a one-line correction so the first
2535 % line matches the first line in the TOC. HACK!
2537 \setlength\cftafterloftitleskip{-12pt}
2541 % \begin{macro}{\cftbeforefigskip}
2542 % \begin{macro}{\cftfigindent}
2543 % \begin{macro}{\cftfigfont}
2544 % Setup figure entries.
2546 \setlength{\cftbeforefigskip}{\l@cont@sep}
2547 \setlength{\cftfigindent}{0pt}
2548 \renewcommand{\cftfigfont}{\normalsize\singlespace}
2555 % \subsubsection{List of tables}
2556 % \label{sec:implement-lot}
2558 % From the Manual 3.6 p10
2561 % \item The heading |List of Tables| must appear at the top of the
2563 % \item The heading must be bold, centered, and without
2565 % \item List table captions exactly as they appear above the
2566 % tables in the text.
2567 % \item Single space each entry, but double-space between entries.
2568 % \item Separate table captions from page numbers with
2569 % right-justified tabs and dot leaders.
2570 % \item Do not use periods to separate captions and page numbers.
2571 % These pages are counted and numbered in lowercase Roman
2576 % \begin{macro}{\cftlottitlefont}
2577 % Much like our |\cfttoctitlefont|, but the list of tables gets
2578 % listed in the TOC.
2580 \renewcommand\cftlottitlefont{\listed@schapter}
2584 % \begin{macro}{\afterlottitleskip}
2585 % Don't add any extra space after the title (the chapter will take
2586 % care of that). Actually we make a one-line correction so the first
2587 % line matches the first line in the TOC. HACK!
2589 \setlength\cftafterlottitleskip{-12pt}
2593 % \begin{macro}{\cftbeforetabskip}
2594 % \begin{macro}{\cfttabindent}
2595 % \begin{macro}{\cfttabfont}
2596 % Setup table entries.
2598 \setlength{\cfttabindent}{0pt}
2599 \setlength{\cftbeforetabskip}{\l@cont@sep}
2600 \renewcommand{\cfttabfont}{\normalsize\singlespace}
2607 % \subsubsection{Bibliography}
2609 % \begin{environment}{thebibliography}
2610 % The |thebibliography| environment is a list environment. To save the
2611 % use of an extra counter, it should use |enumiv| as the item
2613 % Instead of using |\item|, items in the bibliography are produced by
2614 % the following commands:\\
2615 % |\bibitem|\marg{name} : Produces a numbered entry cited as
2617 % |\bibitem|\oarg{label}\marg{name} : Produces an entry labeled by
2618 % \meta{Label} and cited by \meta{name}.
2620 % Override \cls{book}'s version, adding a line to the table of
2621 % contents. We split out the section-creation code into
2622 % |\bib@heading| for \pkg{natbib} compatibility.
2623 % (\file{classes.dtx}, L4063).
2625 \renewenvironment{thebibliography}[1]
2627 \list{\@biblabel{\@arabic\c@enumiv}}%
2628 {\settowidth\labelwidth{\@biblabel{#1}}%
2629 \leftmargin\labelwidth
2630 \advance\leftmargin\labelsep
2632 \usecounter{enumiv}%
2633 \let\p@enumiv\@empty
2634 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
2636 % Because it's hard to do line breaks in bibliographies.
2640 % This is setting the normal (non-infinite) value of
2641 % |\clubpenalty| for the whole of this environment,
2642 % so we must reset its stored value also. (Why is there a |%| after
2643 % the second 4000 below?)
2646 \@clubpenalty \clubpenalty
2649 % Cause a `.' (period) not to produce an end-of-sentence space.
2653 % Warn if an empty `thebibliography' environment is found.
2656 {\@latex@warning{Empty `thebibliography' environment}}%
2661 % \begin{macro}{\bib@heading}
2662 % \pkg{natbib} messes with |thebibliography|. We setup |\bib@heading|
2663 % so we will still get our table of contents entry.
2665 \newcommand{\bib@heading}{%
2666 \listed@schapter{\bibname}%
2667 \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
2672 % \subsubsection{Words}
2675 % Set the official names of the various sections encountered. Some of
2676 % these are not defined in \file{classes.dtx} but are close analogs of
2679 % \begin{macro}{\dedicationsname}
2680 % From the Manual 3.3 p9, ``The heading |Dedications| must appear at
2681 % the top of the page.''
2683 \newcommand\dedicationsname{Dedications}
2687 % \begin{macro}{\acknowledgmentsname}
2688 % From the Manual 3.4 p9, ``The heading |Acknowledgments| must appear
2689 % at the top of the page.''
2691 \newcommand\acknowledgmentsname{Acknowledgments}
2695 % \begin{macro}{\contentsname}
2696 % From the Manual 3.5 p9, ``The heading |Table of Contents| must
2697 % appear at the top of the page.'' (\file{classes.dtx}, L4331)
2699 \renewcommand\contentsname{Table of Contents}
2703 % \begin{macro}{\listtablename}
2704 % From the Manual 3.6 p10, ``The heading |List of Tables| must appear
2705 % at the top of the page.'' (\file{classes.dtx}, L4333)
2707 \renewcommand\listtablename{List of Tables}
2711 % \begin{macro}{\listfigurename}
2712 % From the Manual 3.7 p10, ``The heading |List of Figures| must appear
2713 % at the top of the page.'' (\file{classes.dtx}, L4332)
2715 \renewcommand\listfigurename{List of Figures}
2719 % \begin{macro}{\abstractname}
2720 % From the Manual 3.8 p10, ``The following heading must be centered at
2721 % the top of the first page: |Abstract|\ldots.''
2722 % (\file{classes.dtx}, L4367)
2724 \newcommand\abstractname{Abstract}
2728 % \begin{macro}{\bibname}
2729 % From the Manual 3.13 p12, ``The heading |Bibliography| (or
2730 % |List of References|) must appear at the top of first page.''
2731 % (\file{classes.dtx}, L4344)
2733 \renewcommand\bibname{Bibliography}
2737 % \begin{macro}{\appendixname}
2738 % From the Manual 3.14 p12, ``Number the appendicies consecutively
2739 % either alphabetically or numerically (|Appendix A|, |Appendix B|\ldots
2740 % or |Appendix 1|, |Appendix 2|\ldots).''
2741 % (\file{classes.dtx}, L4366)
2743 \renewcommand\appendixname{Appendix}
2747 % \begin{macro}{\vitaname}
2748 % From the Manual 3.15 p13, ``The heading |Vita| must appear at the
2749 % top of the page.''
2751 \newcommand\vitaname{Vita}
2756 % \subsection{Remaining details}
2759 % \subsubsection{Terminal blank page}
2761 % Add a terminal blank page (when |\if@final| is true)
2762 % From the Manual 3.16 p13
2764 % Include a blank page (with no page number) at the end of the
2765 % thesis or dissertation. The blank page is neither counted nor
2769 \AtEndDocument{\blankpage}
2778 % \section{Examples}
2781 % \subsubsection{Template}
2785 % See drexel-thesis.pdf for details.
2786 \documentclass{drexel-thesis}
2788 %% Enter the appropriate information here
2789 \author{} % Fullname
2790 \title{} % Title Of Thesis
2791 \defmonth{} % Name of the month of you defense
2792 \defyear{} % Year you are defending
2793 \degree{} % Your target degree, spelled out
2794 \advisor{} % Advisor's full name, degree
2795 \copyrighttext{} % If not "All Rights Reserved."
2797 %% unsrt style give references in order of citation
2798 \bibliographystyle{unsrt}
2803 \begin{dedications} % OPTIONAL
2804 %% Type dedications here
2807 \begin{acknowledgments} % OPTIONAL
2808 %% Type acknowledgments here
2809 \end{acknowledgments}
2812 \listoftables % If you have tables
2813 \listoffigures % If you have figures
2816 %% Type abstract here
2821 %% Use include statements to include your main thesis code
2822 %% from seperate files.
2827 \bibliography{references} % Include references.bib BibTeX
2829 \appendix % If you have appendices
2830 %% include files with your appendicies (if any) here
2831 %%\include{appendixA}
2834 \begin{vita} % Ph.D. only.
2843 % \subsection{A better example}
2844 % \label{sec:better-example}
2846 % \subsubsection{Main}
2849 %<*example|example-draft>
2850 %% See drexel-thesis.pdf for details.
2851 %<example>\documentclass[subfig]{drexel-thesis}
2852 %<example-draft>\documentclass[draft,subfig]{drexel-thesis}
2854 %% Enter the appropriate information here
2855 \author{Johny Henry}
2856 \title{Inadequacies of Steam-Driven Boring Machines}
2859 \degree{Doctor of Philosophy}
2860 \advisor{Collis Potter Huntington, R.R.D.}
2861 \advisor{Advisor 2, Ph.D.}
2862 \advisor{Advisor 3, Ph.D.}
2863 \copyrighttext{\copyrighttextCC}
2865 \usepackage[super,sort&compress]{natbib} % fancy citation extensions
2866 \bibliographystyle{unsrtnat}
2868 \usepackage{fancyvrb} % nicer verbatim handling
2869 \DefineShortVerb{\|} % \verb+TEXT+ -> |TEXT|
2873 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/blindtext/}{\pkg{blindtext}}
2874 % for dummy text creation. \pkg{blindtext} requires
2875 % \href{}{\pkg{babel}}.
2877 \usepackage[english]{babel} % English blindtext
2878 \usepackage{blindtext} % macros for producing dummy output
2880 % \pkg{babel} messes with some of our words (Section \ref{sec:words}), so
2881 % we have to reset them. See the
2882 % \href{http://www.tex.ac.uk/cgi-bin/texfaq2html?label=latexwords}{\TeX\ FAQ}
2885 \addto\captionsenglish{%
2886 \renewcommand\dedicationsname{Dedications}%
2887 \renewcommand\acknowledgmentsname{Acknowledgments}%
2888 \renewcommand\contentsname{Table of Contents}%
2889 \renewcommand\listtablename{List of Tables}%
2890 \renewcommand\listfigurename{List of Figures}%
2891 \renewcommand\abstractname{Abstract}%
2892 \renewcommand\bibname{Bibliography}%
2893 \renewcommand\appendixname{Appendix}%
2894 \renewcommand\vitaname{Vita}%
2904 \begin{acknowledgments}
2906 \end{acknowledgments}
2921 \bibliography{example-ref}
2931 %</example|example-draft>
2935 % \subsubsection{Part}
2936 % \label{section:better-example-part}
2940 \part{A Part Heading}
2941 \chapter{A Chapter Heading}
2942 \section{A Section Heading}
2943 The following sectioning commands are available:
2955 You can cite your references with |natbib|'s |\citet| and |\citep|
2957 \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}
2958 {the natbib manual} for details.
2960 Here we have a text citation \citet{rief97} followed by a
2961 parenthetical citation\citep{rief97}.
2963 \subsubsection{Tables and Figures}
2967 \begin{tabular}{r@{.}l r@{.}l r@{.}l}
2968 \multicolumn{2}{c}{Time (s)} &
2969 \multicolumn{2}{c}{John Henry (m)} &
2970 \multicolumn{2}{c}{Steam drill (m)} \\
2972 10&0 & 4&3 & 3&75 \\
2973 30&0 & 11&9 & 10&1 \\
2976 \caption{A table float.} %\blindtext{20}} % low caption allowed with floatrow
2977 %% Note the strange |r@{.}l| notation in the |\tabular| column
2978 %% definition. This allows for numbers aligned at the decimal point
2979 %% (see \href{http://www.stat.unipg.it/tex-man/ltx-68.html}{here}).
2981 %% |\multicolumn{num_cols}{alignment}{contents}| allows the headings
2982 %% to span the pre- and post-decimal columns.
2987 \caption{A figure float. \blindtext{20}} % high caption allowed with floatrow
2989 \includegraphics[width=0.4\textwidth]{drexel-logo}
2996 \includegraphics[width=0.2\textwidth]{drexel-logo}%
2999 \includegraphics[width=0.2\textwidth]{drexel-logo}%
3001 \caption{(a) One subfig float. (b) Another subfig float.%
3005 You can reference the subfig floats individually (\ref{fig:sub-a}) or
3006 together (\ref{fig:both}).
3011 \chapter{Another Chapter}
3013 \chapter{A Long Title Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla
3014 Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla}
3020 % \subsubsection{\BibTeX}
3022 % What goes into the \BibTeX\ file |example-ref.bib|?
3023 % For more information, check out this
3024 % \href{http://cmtw.harvard.edu/Documentation/TeX/Bibtex/Example.html}{basic tutorial}.
3025 % If you want to get deeper, take a look at
3026 % \href{http://www.ctan.org/tex-archive/info/bibtex/tamethebeast/}{Tame the BeaST}.
3028 % \href{http://www.andy-roberts.net/misc/latex/latextutorial3.html}{how the process works},
3029 % \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node6.html}{entry types},
3030 % \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node7.html}{fields},
3031 % \href{http://en.wikipedia.org/wiki/BibTeX}{entries and fields},
3032 % \href{http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html}{assorted style examples}, and
3033 % \href{http://liinwww.ira.uka.de/bibliography/Bib.Format.html}{assorted \BibTeX tools}.
3035 % Here is an example \BibTeX\ file to get you started. We define
3036 % strings for the publishers, journals, and authors to avoid
3037 % duplication, minimize the risk of typos, etc.
3040 %<*example-bibtex-refs>
3042 @String{APS = "American Physical Society"}
3045 @String{SCI = "Science"}
3048 @String{MRief = "Rief, Matthias"}
3049 @String{MGautel = "Gautel, Mathias"}
3050 @String{FOesterhelt = "Oesterhelt, Filipp"}
3051 @String{JFernandez = "Fernandez, Julio M."}
3052 @String{HGaub = "Gaub, Hermann E."}
3056 author = MRief #" and "# MGautel #" and "# FOesterhelt #" and "#
3057 JFernandez #" and "# HGaub,
3058 title = "Reversible Unfolding of Individual Titin Immunoglobulin
3063 pages = "1109--1112",
3065 doi = "10.1126/science.276.5315.1109",
3066 URL = "http://www.sciencemag.org/cgi/content/abstract/276/5315/1109",
3067 eprint = "http://www.sciencemag.org/cgi/reprint/276/5315/1109.pdf",
3068 mynote = "Seminal paper for force spectroscopy on Titin. Cited by
3069 Dietz '04 (ref 9) as an example of how unfolding large
3070 proteins is easily interpreted (vs.\ confusing unfolding in
3071 bulk), but Titin is a rather simple example of that, because
3072 of its globular-chain structure.",
3075 %</example-bibtex-refs>
3079 % \subsubsection{Appendix}
3082 %<*example-appendix>
3083 \chapter{Some Appendix Heading}
3085 \chapter{Another Appendix Heading}
3087 %</example-appendix>
3091 % \section{Known bugs and issues}
3094 % \subsection{Hacks}
3097 % \item |\vspace*{0\p@}| space between page top and chapter
3098 % headings (|\@makechapterhead| and |\@makeschapterhead|,
3099 % Sec.~\ref{sec:implement-chapters}).
3100 % \item Extra space under LOT and LOF titles compared to TOC.
3101 % (Secs.~\ref{sec:implement-lof} and \ref{sec:implement-lot}).
3108 % \item Different space between chapter heading and section heading,
3109 % vs.\ chapter heading and text. Compare \emph{A Chapter Heading}
3110 % and \emph{Another Chapter} in \file{example.pdf}. This is a
3111 % problem (although with opposite order) in the \cls{book} class
3112 % itself. For example, compile
3114 %\documentclass{book}
3116 %\chapter{Chapter with text}
3118 %\chapter{Chapter with section}
3123 % \item Footer overlap if chapter/section names are particularly long.
3124 % See \emph{Section in long-titled chapter} in \file{example.pdf}.
3125 % Workaround: turn off sections in the footer:
3127 % \fancyfoot[RE,LO]{\scshape\leftmark}
3128 % \fancyfoot[LE,RO]{}
3130 % For more header or footer manipulation ideas, see Section \ref{sec:fancyhdr}.