1 % \def\fileversion{0.7}
2 % \def\filedate{2010/03/14}
3 % \iffalse meta-comment
4 %<class>\def\fileversion{0.7}
5 %<class>\def\filedate{2010/03/14}
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.}
132 % \changes{0.4}{2010/02/23}{W.~Trevor King repositioned hyperref
133 % inclusion for proper hyperref overriding. The previous
134 % implementation couldn't handle $\backslash$label for
135 % $\backslash$paragraph and some other section levels. The page
136 % number for the reference was correct, but the link went to the
137 % label's parent chapter.}
138 % \changes{0.5}{2010/03/03}{W.~Trevor King use hypcap for better
139 % caption hyperlink anchor placement.}
140 % \changes{0.6}{2010/03/11}{W.~Trevor King fixed
141 % $\backslash$if\@ final handling. Previous versions used
142 % it more like a hypothetical $\backslash$if\@ finalspace.
143 % Also adjusted theindex to use a listed\@ schapter.}
146 % \newcommand{\pkg}[1]{\textsf{#1}}
147 % \newcommand{\cls}[1]{\textsf{#1}}
148 % ^^A\newcommand{\BibTeX}{{\scshape Bib}\TeX}
150 % \title{The \textsf{drexel-thesis} class\thanks{This document
151 % corresponds to \textsf{drexel-thesis}~\fileversion, dated \filedate.}}
152 % \author{W.~Trevor King \\\texttt{wking@drexel.edu}
153 % \and Daniel J.~Cross \and T.~Tsankov \and R.~Rojas.}
159 % \section{Introduction}
161 % This package defines a \LaTeX\ thesis class for Drexel University
163 % \href{http://www.library.drexel.edu/files/services_documents/thesismanual.pdf}
164 % {Drexel University Thesis Manual version 2009/06/01}.
168 % To write a thesis, you load the Drexel thesis definitions by loading
169 % the \pkg{drexel-thesis} class at the beginning of your
170 % \LaTeX\ document with the |\documentclass| command. For example,
172 % \documentclass{drexel-thesis}
175 % \subsection{Options}
177 % \DescribeOptions{final,draft}
178 % The default option (selected if not options are passed) is
179 % \Lopt{final} mode, which has all the proper formatting and spacing
180 % for your final product. The other main option is \Lopt{draft} mode,
181 % which reduces all the spacing in the document, so might be helpful
182 % when printing out drafts (saves paper).
184 % \Lopt{final} mode corresponds to (with Thesis Manual chapter and
186 % \begin{tabular}{r p{0.8\textwidth}}
187 % \Lopt{oneside} & 1.5 Library Submission Information, Print
188 % Version: ``All copies must be: \ldots Typed/printed on only one
189 % side of the page (not double-sided).'' \\
190 % \Lopt{finalspace} & Assorted single, double, and triple spacing
192 % \Lopt{dottedtoc} & From the example on p17.
195 % \Lopt{draft} mode corresponds to \\
196 % \begin{tabular}{r p{0.8\textwidth}}
197 % \Lopt{twoside} & Save space. \\
198 % \Lopt{draftspace} & Save space. \\
199 % \Lopt{dottedtoc} & Might as well be consistent with \Lopt{final}. \\
200 % \Lopt{mydraftwatermark} & It's good to have a timestamp. \\
203 % \DescribeOption{subfig}
204 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/subfig/}{\pkg{subfig}}
205 % makes it easy to include and caption multi-part figures. However,
206 % getting \pkg{subfig} to cooperate with \pkg{floatrow} and
207 % \pkg{tocloft} can be tricky. If you want to use \pkg{subfig}, just
208 % pass the \Lopt{subfig} option to \cls{drexel-thesis}, and all the
209 % pesky details will be taken care of. See Section
210 % \ref{sec:better-example} for an example.
212 % \DescribeOption{finalspace}
215 % \DescribeOption{draftspace}
218 % \DescribeOptions{dottedtoc,boldtoc,
219 % dottedpart,boldpart,
220 % dottedchapter,boldchapter}
221 % These options change how the relevant table of contents lines are
222 % printed. \LaTeX\ defaults to bold but not dots. The \Lopt{*toc}
223 % options set all of the types. For example, \Lopt{boldtoc} is
224 % equivalent to \Lopt{boldchapter,boldpart}.
226 % \DescribeOption{indenttoc}
227 % The example table of contents in the Manual p17 does not indent
228 % section entries, etc., so neither does \cls{drexel-thesis}. If you
229 % \emph{do} want pretty, indented TOCs, like the \LaTeX\ defaults pass
230 % \Lopt{indenttoc} to \cls{drexel-thesis}.
232 % \DescribeOption{draftwatermark}
233 % \Lopt{draftwatermark} adds ``DRAFT \meta{date}'' watermarks to each
234 % page. A useful way to remember that the version you're looking at
235 % is not final. Also helps reviewers tell you what version they're
236 % correcting. Requires the \pkg{draftmark} package.
238 % \DescribeOption{mydraftwatermark}
239 % \Lopt{mydraftwatermark} is similar to \Lopt{draftwatermark} but
240 % depends on the possibly more common \pkg{xcolor}, \pkg{eso-pic},
241 % and \pkg{graphicx}.
243 % \DescribeOption{indentfirst}
244 % \Lopt{indentfirst} indents the first paragraph after sections etc.
247 % \subsubsection{Interesting \cls{book} options}
249 % \DescribeOption{oneside}
250 % Setup output for one-sided printing.
252 % \DescribeOption{twoside}
253 % Setup output for two-sided printing.
255 % \DescribeOption{leqno}
256 % \Lopt{leqno} places the numbering of formulae on the left hand side
257 % instead of the right.
259 % \DescribeOption{fleqn}
260 % \Lopt{fleqn} typesets displayed formulae left-aligned instead of
264 % \subsection{Macros}
267 % `\cs{author}\marg{name}'
269 % \DescribeMacro{\author}
270 % Use this macro to set your full name to \meta{name}, including
271 % your middle initial or name. For example
273 % \name{Richard P. Feynman}
275 % See the Manual 3.1 p8.
278 % `\cs{title}\marg{title}'
280 % \DescribeMacro{\title}
281 % Use this macro to set your thesis title to \meta{name}. For example
283 % \title{A New Approach to Quantum Theory}
285 % See the Manual p16.
288 % `\cs{advisor}\marg{name}'
290 % \DescribeMacro{\advisor}
291 % Use this macro to set your advisor's name to \meta{name}. For
294 % \advisor{John A. Wheeler, Ph.D.}
296 % You can set multiple advisors, if appropriate, by calling |\advisor|
299 % \advisor{John A. Wheeler, Ph.D.}
300 % \advisor{Advisor 2}
302 % See the Manual 3.1 p8.
305 % `\cs{defmonth}\marg{month}'
306 % `\cs{defyear}\marg{year}'
308 % \DescribeMacro{\defmonth}
309 % \DescribeMacro{\defyear}
310 % Use these macros to set the month with \meta{month} (spelled out)
311 % and year with \meta{year} (four digits) of your thesis defense. For
317 % See the Manual 3.1 p8.
318 % The |def| in |\def*| avoids collisions with the plain \TeX\
319 % |\month| and |\year| (see the
320 % \href{http://www.tug.org/utilities/plain/cseq.html#month-rp}{month}
322 % \href{http://www.tug.org/utilities/plain/cseq.html#year-rp}{year}
323 % entries in the HTML version of David Bausum's \emph{TeX Reference
327 % `\cs{degree}\marg{degree}'
329 % \DescribeMacro{\degree}
330 % Set your target degree with \meta{degree}. From the Manual 3.1 p8.
332 % Write out the name of the degree for which you are a candidate.
333 % All Ph.D.\ candidates must use |Doctor of Philosophy|. All
334 % Master's degree candidates should use the precise degree name
335 % (e.g., |Master of Science in Mechanical Engineering|).
337 % So, for a Ph.D candidate,
339 % \degree{Doctor of Philosophy}
343 % `\cs{copyrighttext}\marg{text}'
345 % \DescribeMacro{\copyrighttext}
346 % Use this macro to set the copyright text to \meta{text}.
347 % The default value is ``All Rights Reserved.''.
349 % \copyrighttext{Released to the Public Domain.}
351 % See the Manual 3.2 p9.
354 % `\cs{copyrighttextCCBYSA}'
356 % There are a number of predefined copyright messages for ease of use \\
357 % \begin{tabular}{l l}
358 % |\copyrighttextCCBYSA| &
359 % Creative Commons Attribution-ShareAlike License Version 3.0.\\
363 % `\cs{tableofcontents}'
365 % \DescribeMacro{\tableofcontents}
366 % Write the table of contents (Manual 3.5 p9). You can control the
367 % verbosity by setting |\tocdepth| according to the following table
368 % (\href{http://www.image.ufl.edu/help/latex/intext.shtml}{source}). \\
369 % \begin{tabular}{l l l}
370 % Depth in document & Section Command & Depth for |\secnumdepth| Command \\
371 % -1 & |\part| & 1 \\
372 % 0 & |\chapter| & 2 \\
373 % 1 & |\section| & 3 \\
374 % 2 & |\subsection| & 4 \\
375 % 3 & |\subsubsection| & 5 \\
376 % 4 & |\paragraph| & 6 \\
377 % 5 & |\subparagraph| & 7
379 % For example, to expose everything down to and including the
380 % |\subsection| level, you would add
382 % \setcounter{tocdepth}{2}
384 % to your preamble (the section before |\begin{document}|, not the
385 % |preamble| environment discussed below).
387 % Note that the Manual 3.5 p9 requires ``List chapter titles and at
388 % least the first and second order subdivisions.'', which corresponds
389 % to a |\tocdepth| of at least 2.
392 % `\cs{listoftables}'
394 % \DescribeMacro{\listoftables}
395 % Write the List of Tables page (Manual 3.6 p10).
396 % Skip if you have no tables in your thesis.
399 % `\cs{listoffigures}'
401 % \DescribeMacro{\listoffigures}
402 % Write the List of Figures page (Manual 3.7 p10).
403 % Skip if you have no figures in your thesis.
406 % `\cs{blanklines}\marg{num}'
408 % \DescribeMacro{\blanklines}
409 % Insert \meta{num} blank lines. For example
413 % The skipped lines are always \emph{single spaced} lines, regardless
414 % of the current line spacing in the environment calling this macro.
417 % `\cs{iffinal}\marg{final-mode-action}\marg{draft-mode-action}'
419 % \DescribeMacro{\iffinal}
420 % Include \Lopt{final}- or \Lopt{draft}-specific code.
422 % We're in \iffinal{final}{draft} mode!
426 % \subsection{Environments}
428 % \DescribeEnv{preamble}
429 % Generalize the |\frontmatter| for the thesis, setting up page
430 % numbering, including the title page, copyright page etc. The
431 % |preamble| environment should contain the following elements
432 % (in order, see the Manual p8)
434 % \item |dedication| environment (optional)
435 % \item |acknowledgments| environment (optional)
436 % \item |\tableofcontents|
437 % \item |\listoftables|
438 % \item |\listoffigures|
439 % \item |abstract| environment
441 % This will take care of everything from the title page (Manual 3.1),
442 % up through the blank page before the text (Manual 3.9).
444 % \DescribeEnv{dedications}
445 % Set the dedications text.
446 % Highlights from the Manual 3.3 p9:
448 % The |Dedications| page is optional.
451 % \DescribeEnv{acknowledgments}
452 % Set the acknowledgments text.
453 % Highlights from the Manual 3.4 p9:
455 % The |Acknowledgments| page is optional, but most theses do
456 % include a brief statement of thanks or recognition of any special
460 % \DescribeEnv{abstract}
461 % Set the thesis abstract text. In the Thesis Manual, see section 3.8
462 % Abstract (p10) for details, p20 for an example.
464 % Highlights from the Manual:
466 % The abstract is a summary that allows readers to determine the
467 % value of reading the full thesis. It should include a statement
468 % of the problem, an outline of procedures or methods, and a summary
469 % of results and conclusions.
472 % \item Word limits: 600 for a Master's thesis, 350 for a Ph.D.\ thesis.
475 % \DescribeEnv{thesis}
476 % Set the thesis text. In the Thesis Manual, see section 3.10 Thesis
479 % Highlights from the Manual:
481 % Divide the text into its major parts/chapters/subsections. No
482 % fixed arrangement is necessary. The major parts may contain such
483 % subjects as introduction, general argument, description of
484 % experimental procedures, research methods, discussion, summary,
485 % conclusions, recommendations, and other pertinent topics that are
486 % necessary for a complete understanding on the part of a
487 % sophisticated or professional reader.
491 % Set the thesis vita text (Ph.D.\ only). See the Manual 3.15 p12,
492 % ``Vita'', for details.
494 % Highlights from the Manual:
496 % The Vita is a biography of the student written in the third person
497 % in either essay or outline form. It should include the full name,
498 % place and date of birth (optional), country of citizenship
499 % (optional), institutions attended, degrees and honors received,
500 % titles of publications, teaching and professional experience, and
501 % other pertinent data. The Vita must be one page or less.
508 % \subsubsection{Package installation}
509 % \label{sec:dependencies}
511 % All the packages this class depends on must be installed somewhere
512 % in your texmf tree (they probably already are). If not, you will
513 % recieve warning messages on compilation such as
515 % ! LaTeX Error: File `missing-package.sty' not found.
517 % You should then install the missing package(s) using your operating
518 % systems package manager, or grab the missing package from
519 % \href{http://www.ctan.org/}{CTAN}, and install them following TODO.
522 % \subsubsection{Tables and Figures}
524 % \pkg{drexel-thesis} loads
525 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
526 % to define the |\includegraphics| macro,
527 % \href{http://www.ctan.org/tex-archive/macros/latex/required/caption/}{\pkg{caption}}
528 % for pretty caption formatting,
529 % \href{http://www.ctan.org/tex-archive/macros/latex/required/floatrow/}{\pkg{floatrow}}
530 % for placing captions, and
531 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{hypcap}}
532 % for placing caption anchors.
534 % Simple float definitions will look like
537 % \caption{Some caption text}
538 % \begin{tabular}{...}
546 % \includegraphics{...}
547 % \caption{Some caption text}
550 % For more useful float information, see the examples in Section
551 % \ref{sec:better-example-part} and the
552 % \href{http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions}
553 % {\LaTeX\ wikibook page}.
556 % \subsubsection{Citations}
558 % I highly recommend using \BibTeX\ and
559 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}{\pkg{natbib}}.
560 % See Section \ref{sec:better-example} for a simple example.
562 % Suggested options:\\
563 % \begin{tabular}{r p{0.8\textwidth}}
564 % |super| & selects citations in superscript mode. \\
565 % |sort&compress| & automatically sorts and compresses compound
566 % citations (|\pcite{a,b,...}|).
570 % \subsubsection{References}
572 % Easier cross referencing with
573 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/cleveref/}{\pkg{cleveref}}.
574 % Is a wonderful tool for easy, consistent crosslinking via |\cref|,
575 % |\Cref|, etc.. The manual is also very good.
576 % Note that if you use |\part|s in your document, you need to tell
577 % \pkg{cleveref} how to deal with them:
579 % \usepackage{cleveref}
580 % \crefname{part}{part}{parts}
584 % \subsubsection{Hyperlinks}
586 % \cls{drexel-thesis} loads
587 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{\pkg{hyperref}}.
588 % with the options:\\
589 % \begin{tabular}{r p{0.8\textwidth}}
590 % |colorlinks| & color the link letters instead of drawing colored boxes. \\
593 % If running with a pdftex-based driver, |\author|, |\title|, and
594 % |\degree| automatically set |pdfauthor|, |pdftitle|, and
595 % |pdfsubject| respectively. You can use the |\hypersetup| macro to
596 % set options overriding these defaults.
599 % \subsubsection{Developing large \LaTeX\ documents}
601 % A thesis may take a while to compile, especially if it contains
602 % lots of images, etc.. One way to save time, is to use |\includeonly|
603 % when including chapter \file{*.tex} files (see
604 % \href{http://en.wikibooks.org/wiki/TeX/includeonly}{the \TeX\ Wikibook}).
605 % Usage would be something like
607 % \documentclass{drexel-thesis}
609 % \includeonly{chapter2.tex,chapter3.tex}
613 % \include{chapter1.tex}
614 % \include{chapter2.tex}
615 % \include{chapter3.tex}
616 % \include{chapter4.tex}
621 % which would only compile chapters two and three. Don't confuse the
622 % similar commands |\include| and |\input|. The more fundamental
623 % |\input| just inserts the file contents at that point, while
626 % \item may only be used after |\begin{document}|
627 % \item acts like |\clearpage \input{} \clearpage|
628 % \item will not crash on nonexistent files
632 % \StopEventually{\pagebreak\PrintChanges}
635 % \section{Implementation}
640 % For simplicity, we'll derive everything from the standard \cls{book}
644 % \subsection{Option Processing}
647 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xkeyval/}{\pkg{xkeyval}}
648 % for easier option parsing. If the package is not installed on your system,
649 % see Section \ref{sec:dependencies} for installation instructions.
651 \RequirePackage{xkeyval}
654 % Define some booleans to store option states
656 \newif\if@mainmatter \@mainmattertrue
657 \newif\if@DUT@subfigopt
658 \newif\if@dottedchapter
659 \newif\if@boldchapter
663 \newif\if@draftwatermark
664 \newif\if@mydraftwatermark
665 \newif\if@indentfirst
669 % \begin{macro}{\iffinal}
670 % Setup a user-friendly means for including \Lopt{final}- or
671 % \Lopt{draft}-specific code.
672 % \changes{0.7}{2010/03/14}{W.~Trevor King added macro.}
674 \newcommand\iffinal[2]{\if@final #1\else #2\fi}
678 % \begin{option}{subfig}
679 % Set \Lopt{subfig} flag
681 \DeclareOptionX{subfig}{\@DUT@subfigopttrue}
685 % \begin{option}{finalspace}
687 \DeclareOptionX{finalspace}{
688 \setlength\overfullrule{0pt}
689 \def\@cont@sep{1} % content page separation (# blanklines between entries)
690 \def\@ssp{1} % single space
691 \def\@dsp{2} % double space
692 \def\@tsp{3} % triple space
696 % \begin{option}{draftspace}
698 \DeclareOptionX{draftspace}{
699 \setlength\overfullrule{5pt}
700 \def\@cont@sep{0} % content page separation (# blanklines between entries)
701 \def\@ssp{1} % single space
702 \def\@dsp{1} % double space
703 \def\@tsp{2} % triple space
705 % Don't force chapters onto right-hand pages.
707 \PassOptionsToClass{openany}{book}
712 % \begin{option}{dottedpart}
714 \DeclareOptionX{dottedpart}{\@dottedparttrue}
717 % \begin{option}{dottedchapter}
719 \DeclareOptionX{dottedchapter}{\@dottedchaptertrue}
722 % \begin{option}{boldpart}
724 \DeclareOptionX{boldpart}{\@boldparttrue}
727 % \begin{option}{boldchapter}
729 \DeclareOptionX{boldchapter}{\@boldchaptertrue}
732 % \begin{option}{dottedtoc}
734 \DeclareOptionX{dottedtoc}{
735 \setkeys{drexel-thesis.cls}{dottedpart}
736 \setkeys{drexel-thesis.cls}{dottedchapter}
740 % \begin{option}{boldtoc}
742 \DeclareOptionX{boldtoc}{
743 \setkeys{drexel-thesis.cls}{boldpart}
744 \setkeys{drexel-thesis.cls}{boldchapter}
749 % \begin{option}{indenttoc}
750 % Set \Lopt{indenttoc} flag
752 \DeclareOptionX{indenttoc}{\@indenttoctrue}
756 % \begin{option}{draftwatermark}
757 % Set \Lopt{draftwatermark} flag
759 \DeclareOptionX{draftwatermark}{%
761 \@mydraftwatermarkfalse}
765 % \begin{option}{mydraftwatermark}
766 % Set \Lopt{mydraftwatermark} flag
768 \DeclareOptionX{mydraftwatermark}{%
769 \@mydraftwatermarktrue
770 \@draftwatermarkfalse}
774 % \begin{option}{indentfirst}
775 % Set \Lopt{indentfirst} flag
777 \DeclareOptionX{indentfirst}{\@indentfirsttrue}
781 % Define the book options that \Lopt{final} and \Lopt{draft} need to
783 % \begin{option}{oneside}
785 \DeclareOptionX{oneside}{\PassOptionsToClass{oneside}{book}}
789 % \begin{option}{twoside}
791 \DeclareOptionX{twoside}{\PassOptionsToClass{twoside}{book}}
795 % \begin{option}{final}
797 \DeclareOptionX{final}{
799 \setkeys{drexel-thesis.cls}{oneside}
800 \setkeys{drexel-thesis.cls}{finalspace}
801 \setkeys{drexel-thesis.cls}{dottedtoc}
806 % \begin{option}{draft}
808 \DeclareOptionX{draft}{
810 \setkeys{drexel-thesis.cls}{twoside}
811 \setkeys{drexel-thesis.cls}{draftspace}
812 \setkeys{drexel-thesis.cls}{dottedtoc}
813 \setkeys{drexel-thesis.cls}{mydraftwatermark}
818 % Use the default \cls{book} implementation for any remaining options
819 % including \Lopt{oneside}, \Lopt{twoside}, \Lopt{leqno}, \Lopt{fleqn},
822 \DeclareOptionX*{\PassOptionsToClass{\CurrentOption}{book}}
825 % Execute the default options
827 \ExecuteOptionsX{final}
830 % Process options and load the book class
832 \ProcessOptionsX\relax
837 % \subsection{Internal package includes}
840 % Include some other packages we'll need. If the package is not
841 % installed on your system, see Section \ref{sec:dependencies} for
842 % installation instructions.
844 % For many packages, we want the same functionality for both
845 % \Lopt{final} and \Lopt{draft} modes. We pass \Lopt{final} to most
846 % of those packages to override a possible \Lopt{draft} option passed
847 % to \pkg{drexel-thesis}.
850 % \subsubsection{\pkg{setspace}}
852 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/setspace/}{\pkg{setspace}}
853 % for double spacing.
855 \RequirePackage{setspace}
859 % \subsubsection{\pkg{calc}}
861 % \href{http://www.ctan.org/tex-archive/macros/latex/required/tools/}{\pkg{calc}}
862 % for |\set@lines@length| macro (page
863 % \pageref{sec:implement-line-spacing}).
865 \RequirePackage{calc}
869 % \subsubsection{\pkg{graphicx}}
871 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
872 % for |\includegraphics|. Not strictly necessary, but I can't imagine
873 % a thesis without figures.
875 \RequirePackage[final]{graphicx}
878 % We include the graphicx package now so we can
879 % pass \Lopt{final}, because some later packages include it with no options,
880 % and a \Lopt{final} include after that produces errors like
882 % l.104 \RequirePackage
884 % The package graphicx has already been loaded with options:
886 % There has now been an attempt to load it with options
891 % \subsubsection{\pkg{draftmark}}
893 % The Comp.~Sci.\ class used
894 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftcopy/}{\pkg{draftcopy}}
895 % to add their watermarks, but as of the current 2002/02/25 v2.16, it
896 % uses postscript specials, and so doesn't work with pdf\LaTeX.
897 % Instead we use the recent (catalogued 2009/11/03)
898 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftmark/}{\pkg{draftmark}}
899 % which unfortunately has a number of apparently non-standard dependencies
900 % (\href{http://www.ctan.org/tex-archive/macros/latex/contrib/etextools/}{\pkg{etextools}},
901 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/etoolbox/}{\pkg{etoolbox}},
902 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/lastpage/}{\pkg{lastpage}},
903 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/ltxnew/}{\pkg{ltxnew}},
904 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/pagerange/}{\pkg{pagerange}},
905 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xifthen/}{\pkg{xifthen}},
906 % if only I had the space to install |texlive-latexextra| |:p|).
907 % The output is, however, very flexible, and it \emph{does} work with
908 % both \LaTeX\ and pdf\LaTeX. If you don't like the default watermark,
909 % you can also adjust the particulars with |\draftmarksetup|.
912 \RequirePackage[draft,allpages,mark={DRAFT \today},
913 fontsize=2cm,grayness=0.9]{draftmark}
917 % Here is Evan's alternative implementation This will not look right
918 % as a DVI, but it'll look fine once rendered to either a PS or PDF.
922 % Use \pkg{eso-pic} for |\AddToShipoutPicture|.
924 \RequirePackage{eso-pic}
926 % Use \pkg{xcolor} for |\definecolor|.
928 \RequirePackage{xcolor}
929 \definecolor{watermark}{rgb}{0.9,0.9,0.9}
931 % Set the font explicitly to avoid being effected by the last text on
932 % the page having some strange font. |\sffamily| sets a sans serif
935 \newcommand{\watermarkfont}{%
936 \color{watermark}}%\fontfamily{phv}\selectfont\sffamily}
937 \newcommand{\watermark}{%
938 \rule{4.25in}{0pt}\raisebox{5.5in}{%
941 % |\rotatebox| and |\resizebox| from \pkg{graphicx}.
943 \rotatebox[origin=c]{45}{%
944 \resizebox{!}{1.5in}{%
945 {\watermarkfont DRAFT}%
949 \rotatebox[origin=c]{45}{%
950 \resizebox{!}{.6in}{%
951 {\watermarkfont \qquad\today}%
953 \AddToShipoutPicture{\watermark{}}
958 % \subsubsection{\pkg{indentfirst}}
960 % Indent the first paragraph after sections etc.\ with
961 % \href{http://www.ctan.org/tex-archive/macros/latex/required/tools/}{\pkg{indentfirst}}.
964 \RequirePackage{indentfirst}
969 % \subsubsection{\pkg{geometry}}
971 % Setup page margins with
972 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/geometry/}{\pkg{geometry}}.
973 % From the Manual p5:
975 % \item The left margin must be at least 1 1/2'' (1.5 inches)
976 % throughout the document.
977 % \item All other margins (top, bottom, and right) must be at least 1''.
979 % And from the Manual 1.5 p4, Print Version:
981 % The paper size must be 8 1/2'' x 11''.
984 \RequirePackage[letterpaper,margin=1in,bindingoffset=0.5in]{geometry}
986 % Note that we include the \pkg{geometry} package after loading \cls{book} to
987 % override the margin manipulation that takes place in \cls{book}.
990 % \subsubsection{\pkg{tocloft}}
992 % Typeset the table of contents, etc., with
993 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/tocloft/}{\pkg{tocloft}}.
996 \RequirePackage[subfigure]{tocloft}
998 \RequirePackage{tocloft}
1001 % The \Lopt{subfigure} option sets up \pkg{tocloft} for
1002 % \pkg{subfig}/\pkg{subfigure} compatibility. See the
1003 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/tocloft/tocloft.pdf}{%
1004 % \pkg{tocloft} manual, Section 2.1}
1007 % The configuration of \pkg{tocloft} takes place in Sections
1008 % \ref{sec:implement-toc}, \ref{sec:implement-lof}, and
1009 % \ref{sec:implement-lot}.
1012 % \subsubsection{\pkg{caption}}
1014 % Get nice caption formatting with
1015 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/caption/}{\pkg{caption}}.
1016 % From the Manual p5:
1018 % \item The left margin must be at least 1 1/2'' (1.5 inches)
1019 % throughout the document.
1020 % \item All other margins (top, bottom, and right) must be at least 1''.
1023 \RequirePackage[margin=10pt,labelfont=bf,labelsep=colon]{caption}
1025 % You can change these settings if you like using |\captionsetup|.
1028 % \subsubsection{\pkg{floatrow}}
1029 % \label{sec:floatrow}
1031 % Enforce caption placement with
1032 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/floatrow/}{\pkg{floatrow}}.
1033 % From the Manual 2.3 p6, ``Tables and Figures'',
1036 % \item Place figure captions below figures.
1037 % \item Place table captions above tables.
1041 \RequirePackage{floatrow}
1042 \floatsetup[table]{style=plaintop}
1043 \floatsetup{captionskip=10pt}
1044 \floatsetup[table]{captionskip=10pt}
1046 % Use \pkg{fr-subfig} for \pkg{floatrow}/\pkg{subfig} compatibility.
1047 % See the \pkg{floatrow} documentation (Sec.~7.1, ``The \pkg{subfig}
1048 % package'') and \pkg{subfig} documentation (Sec.~4.3,
1049 % ``\pkg{FloatRow} Package'') for details.
1052 \RequirePackage{fr-subfig}
1055 % We set up the three-line surrounding spaces in Section
1056 % \ref{sec:implement-floats}.
1058 % You can change these settings using |\floatsetup|, but you probably
1062 % \subsubsection{\pkg{subfig}}
1063 % \label{sec:subfig}
1065 % Allow multi-part figures with
1066 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/subfig/}{\pkg{subfig}}.
1069 \RequirePackage{subfig}
1074 % \subsubsection{\pkg{fancyhdr}}
1075 % \label{sec:fancyhdr}
1077 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/}{\pkg{fancyhdr}}
1078 % for correct page numbering and fancy headers.
1079 % From the Manual 2.3 p5, ``Pagination''
1081 % Place page numbers in the upper right-hand corner of the page,
1082 % 3/4'' from the top.
1085 \RequirePackage{fancyhdr}
1087 % Setup the standard |fancy| format.
1092 % Turn off the header rule by setting its width to $0$.
1094 \renewcommand{\headrulewidth}{0pt}
1096 % 0.4 pt is \pkg{fancyhdr}'s default |\headrulewidth|, so we'll
1097 % recycle the value.
1099 \renewcommand{\footrulewidth}{0.4pt}
1101 % |\leftmark| is the higher level mark, see |\chaptermark| below.
1102 % |\rightmark| is the lower level mark, see |\sectionmark| below.
1103 % We put the lower level mark to the outside because it changes more
1104 % often. Page numbers also go on the outside.
1106 \fancyfoot[RE,LO]{\scshape\leftmark}
1107 \fancyfoot[LE,RO]{\scshape\rightmark}
1108 \fancyhead[LE,RO]{\thepage}
1110 % Override the |plain| format (for part pages, etc.).
1112 \fancypagestyle{plain}{
1114 \renewcommand{\footrulewidth}{0pt}
1115 \fancyhead[LE,RO]{\thepage}
1118 % Keep the |empty| format at its default.
1120 \fancypagestyle{empty}{
1122 \renewcommand{\footrulewidth}{0pt}
1126 % Note that the Chapter / Section footer is not required. You can
1127 % remove the footer text and rule entirely with.
1129 % \renewcommand{\footrulewidth}{0pt}
1130 % \fancyfoot[RE,LO]{}
1131 % \fancyfoot[LE,RO]{}
1135 % \subsubsection{\pkg{ifpdf}}
1137 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{ifpdf}}
1138 % for detecting PDF drivers. We use it to configure \pkg{hyperref} below.
1140 \RequirePackage{ifpdf}
1143 % \subsubsection{\pkg{hyperref}}
1144 % \label{sec:hyperref}
1146 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{\pkg{hyperref}}
1147 % for hyperlinks. Not strictly necessary, but I can't imagine a
1148 % thesis without it. We actually include this later
1149 % (Section~\ref{sec:hyperref-inclusion}), because \pkg{hyperref}
1150 % sticks its fingers into \emph{everything} and we want it to use our
1151 % versions of some macros (e.g. |\@sect|) but not others
1152 % (e.g. |thebibliography|).
1155 % \subsubsection{\pkg{hypcap}}
1156 % \label{sec:hypcap}
1158 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{hypcap}}
1159 % for placing caption hyperlink anchors. Must be included after
1160 % \pkg{hypercap}, so the actual inclusion is in
1161 % Section~\ref{sec:hypcap-inclusion}).
1164 % \subsection{\LaTeX\ overrides and extensions}
1166 % Here we change the behavior of a bunch of macros and environments
1167 % from \file{latex.ltx} (generated by \file{format.ins} in
1168 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{base}}).
1169 % We'll copy in their original notes along with their code, following
1170 % the relevant documentation an order given in \file{format.ins} and
1171 % the associated \file{*.dtx} files.
1174 % \subsubsection{\file{ltsect.dtx}}
1176 % \begin{macro}{\title}
1177 % |\title| for use in |\maketitle|. If not given |\maketitle| will
1178 % produce a warning message (\file{ltsect.dtx}, L117).
1180 % We extend |\title| to set \pkg{hyperref}'s |pdftitle|.
1181 % (\file{ltsect.dtx}, L117).
1183 \let\DUT@title\title
1184 \renewcommand{\title}[1]{
1186 \ifpdf \hypersetup{pdftitle={\@title}} \fi
1191 % \begin{macro}{\author}
1192 % |\author| for use in |\maketitle|. If not given |\maketitle| will
1193 % produce a warning message (\file{ltsect.dtx}, L129).
1195 % We extend |\author| to set \pkg{hyperref}'s |pdfauthor| if we're
1196 % writing a PDF to avoid using |\AtBeginDocument| or some such.
1197 % (\file{ltsect.dtx}, L129).
1199 \let\DUT@author\author
1200 \renewcommand{\author}[1]{
1202 \ifpdf \hypersetup{pdfauthor={\@author}} \fi
1207 % In a similar vein, we some additional meta-info macros.
1209 % \begin{macro}{\defmonth}
1210 % \begin{macro}{\@defmonth}
1211 % |\defmonth| (defense month) for use in |\maketitle|. If not given
1212 % |\maketitle| will produce an error message.
1214 \def\defmonth#1{\gdef\def@month{#1}}
1215 \def\def@month{\@latex@error{No \noexpand\defmonth given}\@ehc}
1220 % \begin{macro}{\defyear}
1221 % \begin{macro}{\@defyear}
1222 % |\defyear| (defense year) for use in |\maketitle|. If not given
1223 % |\maketitle| will produce an error message.
1225 \def\defyear#1{\gdef\def@year{#1}}
1226 \def\def@year{\@latex@error{No \noexpand\defyear given}\@ehc}
1231 % \begin{macro}{\degree}
1232 % \begin{macro}{\@degree}
1233 % |\degree| for use in |\maketitle|. If not given |\maketitle| will
1234 % produce an error message.
1236 \def\degree#1{\gdef\@degree{#1}
1237 \ifpdf \hypersetup{pdfsubject={\@degree}} \fi}
1238 \def\@degree{\@latex@error{No \noexpand\degree given}\@ehc}
1243 % \begin{macro}{\copyrighttext}
1244 % \begin{macro}{\@copyrighttext}
1245 % |\copyrighttext| for use in |\makecopyright|. There are a number of
1246 % blurbs predefined in Section \ref{sec:implement-copyright}.
1248 \def\copyrighttext#1{\gdef\@copyrighttext{#1}}
1249 \def\@copyrighttext{All Rights Reserved.}
1254 % \begin{macro}{\advisor}
1255 % \begin{macro}{\@advisor}
1256 % |\advisor| for use in |\maketitle|. If not given |\maketitle| will
1257 % produce an error message. We get a bit fancier here to support
1258 % multiple advisors.
1260 \newcounter{advisors}
1261 \setcounter{advisors}{0}
1262 \newcommand\advisor[1]{%
1265 % If |#1| is |\empty|, this call is a no-op.
1270 % Save the advisors to |\@advisor@a|, |\@advisor@b|, \ldots.
1271 % |\alph{|\Lcount{COUNTER}|}| (\file{ltcounts.dtx}, L319) prints the
1272 % value of \Lcount{COUNTER} as a lowercase letter: $1 =$~a, $2 =$~
1275 \stepcounter{advisors}
1276 \expandafter\gdef\csname @advisor@\alph{advisors}\endcsname{#1}
1278 \newcommand\@advisor{%
1279 \ifnum\c@advisors=0%
1280 \@latex@error{No \noexpand\advisor given}\@ehc%
1283 % Start a group so \Lcount{advisor@loop} is released afterwards to
1287 \newcounter{advisor@loop}%
1288 \setcounter{advisor@loop}{1}%
1290 % Print the first advisor.
1292 \csname @advisor@\alph{advisor@loop}\endcsname\relax%
1294 % For any remaining advisors\ldots
1296 \loop\ifnum\c@advisor@loop<\c@advisors%
1297 \stepcounter{advisor@loop}%
1299 % Print the connecting text.
1301 \ifnum\c@advisor@loop=\c@advisors%
1302 \ifnum\c@advisors=2%
1304 % The next advisor if the last of two.
1309 % The next advisor if the last of many.
1315 % The next advisor is not the last.
1320 % Print the advisor's name.
1322 \csname @advisor@\alph{advisor@loop}\endcsname\relax%
1330 % \paragraph{baselineskip}
1331 % \label{sec:implement-line-spacing}
1333 % \begin{macro}{\DUT@baselineskip}
1334 % Since we'll be messing with the spacing, save the single-spaced
1336 % \changes{0.3}{2010/01/13}{Use $\backslash$setlength to store the
1337 % value at the default font. The previous version used
1338 % $\backslash$let, which made $\backslash$DUT\@baselineskip a
1339 % synonym for $\backslash$baselineskip that changed with font
1342 \newlength\DUT@baselineskip
1343 \setlength\DUT@baselineskip\baselineskip
1348 % `\cs{set@lines@length}\marg{length}\marg{N}'
1350 % \begin{macro}{\set@lines@length}
1351 % Many specifications in the Manual refer to ``\meta{N} blank lines''.
1352 % |\set@lines@length| allows you to set a length to a given number of
1353 % lines, protecting against external |spacing| environments. It
1354 % requires \pkg{calc} for the multiplication.
1356 \newcommand{\set@lines@length}[2]{%
1357 \setlength{#1}{\DUT@baselineskip * {#2}}}
1362 % Fix |\@ssect| and |\@sect| from \file{latex.ltx} to give single
1365 % \begin{macro}{\@sect}
1366 % Pseudocode for the |\@sect| command
1368 % \@sect{NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}[ARG1]{ARG2}
1371 % IF LEVEL > \c@secnumdepth
1372 % THEN \@svsec :=L null
1373 % ELSE \refstepcounter{NAME}
1374 % \@svsec :=L BEGIN \@seccntformat{#1}\relax END
1379 % \@hangfrom{\hskip INDENT\@svsec}
1380 % {\interlinepenalty 10000 ARG2\par}
1383 % \addcontentsline{toc}{NAME}
1384 % { IF LEVEL > \c@secnumdepth
1385 % ELSE \protect\numberline{\theNAME} FI
1387 % ELSE \@svsechd == BEGIN STYLE
1388 % \hskip INDENT\@svsec
1391 % \addcontentsline{toc}{NAME}
1392 % { IF LEVEL > \c@secnumdepth
1394 % \protect\numberline{\theNAME}
1399 % \@xsect{AFTERSKIP}
1402 % (\file{ltsect.dtx}, L295).
1404 \def\@sect#1#2#3#4#5#6[#7]#8{%
1405 \ifnum #2>\c@secnumdepth
1408 \refstepcounter{#1}%
1409 \protected@edef\@svsec{\@seccntformat{#1}\relax}%
1411 \@tempskipa #5\relax
1412 \ifdim \@tempskipa>\z@
1415 % Here we deviate from \file{ltsect.dtx} to ensure single spacing for
1416 % the section title.
1420 \@hangfrom{\hskip #3\relax\@svsec}%
1421 \interlinepenalty \@M #8\@@par}%
1423 \csname #1mark\endcsname{#7}%
1424 \addcontentsline{toc}{#1}{%
1425 \ifnum #2>\c@secnumdepth \else
1426 \protect\numberline{\csname the#1\endcsname}%
1433 \csname #1mark\endcsname{#7}%
1434 \addcontentsline{toc}{#1}{%
1435 \ifnum #2>\c@secnumdepth \else
1436 \protect\numberline{\csname the#1\endcsname}%
1444 % \begin{macro}{\@ssect}
1445 % Pseudocode for the |\@ssect| command
1447 % \@ssect{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}{ARG} ==
1452 % \@hangfrom{\hskip INDENT}{\interlinepenalty 10000 ARG\par}
1454 % ELSE \@svsechd == BEGIN STYLE
1459 % \@xsect{AFTERSKIP}
1462 % (\file{ltsect.dtx}, L521).
1464 \def\@ssect#1#2#3#4#5{%
1465 \@tempskipa #3\relax
1466 \ifdim \@tempskipa>\z@
1469 % Here we deviate from \file{ltsect.dtx} to ensure single spacing for
1470 % the section title.
1474 \@hangfrom{\hskip #1}%
1475 \interlinepenalty \@M #5\@@par}%
1478 \def\@svsechd{#4{\hskip #1\relax #5}}%
1485 % \subsubsection{\file{ltbibl.dtx}}
1487 % \DescribeMacro{\bibliography}
1488 % \DescribeEnv{thebibliography}
1489 % A bibliography is created by the |thebibliography| environment, which
1490 % generates a title such as ``Bibliography'', and a list of entries.
1491 % The \BibTeX\ program will create a file containing such an
1492 % environment, which will be read in by the |\bibliography| command.
1493 % With \BibTeX, the following commands will be used.
1495 % The document class must define the thebibliography environment. This
1496 % environment has a single argument, which is the widest bibliography
1497 % label-- e.g., if the [Knuth67] is the widest entry, then this
1498 % argument will be Knuth67. The |\thebibliography| command must begin
1499 % a list environment, which the |\endthebibliography| command ends.
1501 % \begin{macro}{\bibliography}
1502 % |\bibliography|\marg{file1,file2,\ldots,filen} : specifies
1503 % the bibdata files. Writes a |\bibdata| entry on the |.aux| file
1504 % and tries to read in |mainfile.bbl|.
1506 % We don't need to change it, but it explains why we need to override
1507 % |thebibliography| even when we don't use it directly.
1508 % (\file{ltbibl.dtx}, L284).
1510 %\def\bibliography#1{%
1512 % \immediate\write\@auxout{\string\bibdata{#1}}%
1514 % \@input@{\jobname.bbl}
1520 % \subsubsection{\file{ltoutput.dtx}}
1522 % \begin{macro}{\DUT@clearpage}
1523 % \begin{macro}{\DUT@cleardoublepage}
1524 % Versions of |\clear*page| that only work when |\if@final| is true
1525 % (\file{ltoutput.dtx}, L877 and L904).
1527 \newcommand\DUT@clearpage{\if@final \clearpage \fi}
1528 \newcommand\DUT@cleardoublepage{\if@final \cleardoublepage \fi}
1533 % \begin{macro}{\blankpage}
1534 % Add a useful extension to insert a blank page without numbering.
1535 % In draft mode, this macro is a no-op.
1537 \newcommand\blankpage{%
1540 \thispagestyle{empty}
1550 % `\cs{blanklines}\marg{N}'
1551 % `\cs{blanklines*}\marg{N}'
1553 % \begin{macro}{\blanklines}
1554 % Insert \meta{N} blank lines. The starred forms use |\vspace|, which
1555 % inserts space even at the start and end of pages. The |p| forms
1556 % add a trailing |\par|. \emph{I'm still trying to get this part working
1559 \newlength\DUT@blanklines@length
1560 \newcommand{\@blanklines@setup}[1]{%
1561 \set@lines@length{\DUT@blanklines@length}{#1}%
1562 %\typeout{BLANKLINES -- #1}%
1563 %\showthe\DUT@blanklines@length
1565 \newcommand{\blanklines}{\@ifstar\@sblanklines\@blanklines}
1566 \newcommand{\@blanklines}[1]{%
1567 \@blanklines@setup{#1}%
1568 \vspace{\DUT@blanklines@length}}
1569 \newcommand{\@sblanklines}[1]{%
1570 \@blanklines@setup{#1}%
1571 \vspace*{\DUT@blanklines@length}}
1572 \newcommand{\blanklinesp}{\@ifstar\@sblanklines\@blanklines}
1573 \newcommand{\@blanklinesp}[1]{%
1574 \@blanklines@setup{#1}%
1575 \vspace{\DUT@blanklines@length}\par}
1576 \newcommand{\@sblanklinesp}[1]{%
1577 \@blanklines@setup{#1}%
1578 \vspace*{\DUT@blanklines@length}\par}
1583 % \subsection{\pkg{hyperref} inclusion}
1584 % \label{sec:hyperref-inclusion}
1586 % This is the awkward \pkg{hyperref} inclusion. See
1587 % Section~\ref{sec:hyperref} for an explanation of why we stash it
1590 \RequirePackage[final]{hyperref}
1592 % Nobody likes the default colored boxes. Color the text itself.
1594 \hypersetup{colorlinks}
1597 % \subsubsection{\pkg{hypcap}}
1598 % \label{sec:hypcap-inclusion}
1600 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{hypcap}}
1601 % for placing caption hyperlink anchors. Not strictly necessary, but
1602 % we're using \pkg{hyperref}, and the poor link targets are annoying.
1604 \RequirePackage[all]{hypcap}
1606 % \Lopt{all} redefines the figure and table environments to
1607 % place the anchor at the start of the float.
1610 % \subsection{\cls{book} overrides and extensions}
1612 % Here we change the behavior of a bunch of macros and environments from
1613 % \cls{book} (generated by \file{classes.ins} from \file{classes.dtx}) in
1614 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{base}}).
1615 % We'll copy in their original notes along with their code, following
1616 % the relevant documentation an order given in \file{classes.dtx}.
1619 % \subsubsection{Floats on a text page}
1620 % \label{sec:implement-floats}
1622 % \begin{macro}{\floatsep}
1623 % \begin{macro}{\textfloatsep}
1624 % When a floating object is placed on a page with text, these
1625 % parameters control the separation between the float and the other
1626 % objects on the page.
1628 % |\floatsep| is the space between adjacent floats that are moved
1629 % to the top or bottom of the text page.
1631 % |\textfloatsep| is the space between the main text and floats
1632 % at the top or bottom of the page.
1634 % |\intextsep| is the space between in-text floats and the text. We
1635 % don't bother overriding this one, because we've handled it with
1636 % \pkg{floatrow} in Section \ref{sec:floatrow}.
1638 % From the Manual 2.3 p6, ``Tables and Figures''
1640 % Insert at least 3 single-spaced lines of space above table
1641 % captions and figures and below figure captions, tables, and other
1644 % (\file{classes.dtx}, L1426)
1646 \set@lines@length{\floatsep}{\@ssp}
1647 \set@lines@length{\textfloatsep}{\@tsp}
1653 % \subsubsection{The title}
1655 % \begin{macro}{\maketitle}
1656 % Automate the creation of the title page.
1657 % From Manual 3.1 p8, ``Title Page'', and the example on p16.
1659 % \item This page is counted but not numbered (it counts as page i,
1660 % but should not have a page number). TODO: How is this implemented?
1662 % Our definition simplifies \cls{book}'s by ignoring footnotes.
1663 % (\file{classes.dtx}, L1796)
1665 \renewcommand\maketitle{
1668 % Add some bookmarks if we're using pdf\LaTeX. The |frontmatter|
1669 % bookmark is set at the \emph{part} level (-1) to hold all bookmarks
1670 % from the |preamble| environment, since those entries are all
1674 \pdfbookmark[-1]{Frontmatter}{Frontmatter}
1675 \pdfbookmark[0]{Title Page}{Title Page}
1678 % Add some stretchy space to center the title vertically if we're not
1681 \if@final \vspace*{\fill} \fi
1683 % Here is the title text itself.
1686 {\setstretch{\@tsp} \bfseries \@title \par}%
1688 % We want two blank lines (triple spacing) between the title and the
1689 % remaining material, so add three but don't end the paragraph.
1694 Submitted to the Faculty\\
1699 in partial fulfillment of the\\
1700 requirements for the degree\\
1703 \def@month\ \def@year
1706 % Some more stretchy space for the bottom if we're not in draft mode.
1709 % Add some stretchy space to center the title vertically if we're not
1712 \if@final \vspace*{\fill} \fi
1715 % And that's it. We reset the footnote counter for the rest of the
1716 % document and save space by freeing the memory associated with the
1717 % |\maketitle| and |\and| macros (by setting them equal to |\relax|).
1719 \setcounter{footnote}{0}%
1720 \global\let\maketitle\relax
1721 \global\let\and\relax
1727 % \subsubsection{Copyright pages}
1728 % \label{sec:implement-copyright}
1730 % \begin{macro}{\makecopyright}
1731 % The Manual allows for the selection of different copyrights, so we
1732 % define a base macro that generates a proper copyright page
1733 % containing |\@copyrighttext|, which the user can set with
1735 % From Manual 3.2 p9, ``Copyright Page''.
1737 % \item Include a copyright page with the following information: a
1738 % copyright notice, full legal name of author, and date of
1739 % publication on file.
1740 % \item This page is neither counted nor numbered.
1742 % In final mode, we start off on a new page and center the blurb.
1743 % In draft mode, we dive right into the text.
1745 \newcommand\makecopyright{%
1748 % If we're using pdf\LaTeX, add a bookmark.
1750 \ifpdf \pdfbookmark[0]{Copyright Page}{Copyright Page} \fi
1751 \if@final \vspace*{\fill} \fi
1753 \copyright~Copyright \def@year\\
1754 \@author. \@copyrighttext
1756 \if@final \vspace*{\fill} \else \blanklinesp{2} \fi
1758 % Turn off page numbering for this page.
1760 \thispagestyle{empty}
1765 % \begin{macro}{\copyrighttextCCBYSA}
1766 % The Creative Commons Attribution-ShareAlike License.
1767 % \changes{0.4}{2010/02/23}{W.~Trevor King renamed from
1768 % $\backslash$copyrighttextCC, and made specific to Creative Commons
1769 % Attribution-ShareAlike Version 3.0.}
1771 \newcommand\copyrighttextCCBYSA{
1773 This work is licensed under the terms of the Creative Commons
1774 Attribution-ShareAlike license Version 3.0. The license is
1776 \url{http://creativecommons.org/licenses/by-sa/3.0/}.
1783 % \subsubsection{Mark commands}
1785 % Default initializations of |\*mark| commands. These commands
1786 % are used in the definition of the page styles.
1788 % \begin{macro}{\chaptermark}
1789 % Setup colon rather than period separated chapter marks.
1790 % (\file{classes.dtx}, L2053)
1792 \renewcommand\chaptermark[1]{%
1794 \ifnum \c@secnumdepth >\m@ne
1796 \@chapapp\ \thechapter: \ %
1803 % \begin{macro}{\schaptermark}
1804 % Setup unnumbered chapter marks for \pkg{fancyhdr}.
1806 \newcommand\schaptermark[1]{\markboth{#1}{}}
1810 % \begin{macro}{\sectionmark}
1811 % Setup space rather than period separated section marks.
1812 % (\file{classes.dtx}, L2054)
1814 \renewcommand{\sectionmark}[1]{%
1816 \ifnum \c@secnumdepth >\z@
1824 % \subsubsection{Front Matter, Main Matter, and Back Matter}
1826 % A book contains these three (logical) sections. The switch
1827 % |\@mainmatter| is true iff we are processing Main Matter. When this
1828 % switch is false, the |\chapter| command does not print chapter
1831 % \begin{macro}{\mainmatter}
1832 % This command clears the page (in final mode), starts arabic page
1833 % numbering and turns on chapter numbering. Since this restarts the
1834 % page numbering from 1, it should also ensure that a recto page is
1837 % We replace \cls{book}'s |\clear*page| calls with |\DUT@clearpage| calls.
1838 % (\file{classes.dtx}, L2211)
1840 \renewcommand\mainmatter{%
1841 \DUT@cleardoublepage
1843 \pagenumbering{arabic}}
1848 % \subsubsection{Parts}
1850 % \begin{macro}{\part}
1851 % The command to start a new part of our document.
1853 % We start a new (righthand) page and use the \pstyle{plain}
1854 % pagestyle, replacing \cls{book}'s |\clear*page| calls with
1855 % |\DUT@clearpage| calls and dropping twopage code.
1856 % (\file{classes.dtx}, L2249)
1858 \renewcommand\part{%
1860 \DUT@cleardoublepage
1864 \thispagestyle{plain}%
1867 % Add some stretchy space for vertical centering if we're in final mode.
1869 \if@final \null\vfil \fi
1871 % Here we use |\secdef| to indicate which commands to use to make
1872 % the actual heading.
1874 \secdef\@part\@spart}
1878 % \begin{macro}{\@part}
1879 % This macro does the actual formatting of the title of the part. We
1880 % replace \cls{book}'s |\Huge| with |\large|, and make use of
1881 % |\numberline| for consistent spacing.
1883 % When \Lcount{secnumdepth} is larger than $-2$, we have a numbered
1884 % part, otherwise it is unnumbered.
1885 % (\file{classes.dtx}, L2310)
1888 \ifnum \c@secnumdepth >-2\relax
1889 \refstepcounter{part}%
1890 \addcontentsline{toc}{part}%
1891 {\protect\numberline{\thepart}#1}%
1893 \addcontentsline{toc}{part}{#1}%
1896 % We empty the mark registers and center the title on the page.
1897 % Also we prevent breaking between lines and reset the font.
1901 \interlinepenalty \@M
1904 % When this is a numbered part we have to print the number.
1906 \ifnum \c@secnumdepth >-2\relax
1907 \large\bfseries \partname\nobreakspace\thepart
1910 % We leave some space before we print the title and leave the
1911 % finishing up to |\@endpart|.
1915 \large \bfseries #2\par}%
1920 % \begin{macro}{\@spart}
1921 % This macro does the actual formatting of the title of the part
1922 % when the star form of the user command was used. In this case we
1923 % \emph{never} print a number. Otherwise the formatting is the
1925 % (\file{classes.dtx}, L2402)
1929 \interlinepenalty \@M
1931 \large \bfseries #1\par}%
1936 % \begin{macro}{\@endpart}
1937 % This macro finishes the part page, for both |\@part| and |\@spart|.
1938 % We drop \cls{book}'s twoside handling.
1939 % If |\if@final| is true, we fill the current page.
1940 % (\file{classes.dtx}, L2435)
1943 \if@final \vfil\newpage \fi
1945 % Then, when we are in twosided mode and the chapters are supposed to
1946 % be on the right hand sides, we produce a completely blank page. We
1947 % don't need to check |\if@final| here, because \Lopt{draftspace} set
1948 % |\@openrighttrue|.
1953 \thispagestyle{empty}%
1961 % \subsubsection{Chapters}
1962 % \label{sec:implement-chapters}
1964 % \begin{macro}{\chapter}
1965 % \cls{book} always starts a chapter on a new page, but we don't want
1966 % to do that if we're in draft mode.
1967 % (\file{classes.dtx}, L2472).
1969 \renewcommand\chapter{%
1970 \if@openright\DUT@cleardoublepage\else\DUT@clearpage\fi
1971 \thispagestyle{plain}%
1973 % Then we prevent floats from appearing at the top of this page
1974 % because it looks weird to see a floating object above a chapter
1979 % Then we suppress the indentation of the first paragraph by
1980 % setting the switch |\@afterindent| to false. We use |\secdef|
1981 % to specify the macros to use for actually setting the chapter
1985 \secdef\@chapter\@schapter}
1989 % \begin{macro}{\listed@schapter}
1990 % |\chapter| declares numbered chapters, which are listed in the table
1992 % |\chapter*| declares unnumbered chapters, which are \emph{not}
1993 % listed in the TOC.
1994 % |\listed@schapter| declares an unnumbered chapter that \emph{is}
1995 % listed in the TOC.
1997 \newcommand\listed@schapter[1]{%
1998 \if@openright\DUT@cleardoublepage\else\DUT@clearpage\fi
1999 \thispagestyle{plain}%
2002 \addcontentsline{toc}{chapter}{#1}
2008 % \begin{macro}{\@chapter}
2009 % This macro is called when we have a numbered chapter. When
2010 % \Lcount{secnumdepth} is larger than $-1$ and |\@mainmatter| is true,
2011 % we display the chapter number.
2012 % We drop \cls{book}'s \Lopt{twocolumn} code.
2013 % (\file{classes.dtx}, L2496).
2015 \def\@chapter[#1]#2{
2017 % Inform the user that a new chapter is about to be typeset by writing
2018 % a message to the terminal.
2020 \typeout{\@chapapp\space\thechapter. #1}%
2021 \ifnum \c@secnumdepth >\m@ne
2023 \refstepcounter{chapter}%
2024 \addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}#1}%
2026 \addcontentsline{toc}{chapter}{#1}%
2029 \addcontentsline{toc}{chapter}{#1}%
2032 % After having written an entry to the table of contents we store
2033 % the (alternative) title of this chapter with |\chaptermark|.
2037 % For nicer lists of figures and tables, we could add some white space
2038 % to separate the chapters. However, nice lists $\neq$~Manual
2041 % \addtocontents{lof}{\protect\addvspace{10\p@}}%
2042 % \addtocontents{lot}{\protect\addvspace{10\p@}}%
2044 % Then we call upon |\@makechapterhead| to format the actual chapter
2045 % title. |\@afterheading| which takes care of suppressing the
2048 \@makechapterhead{#2}%
2053 % \begin{macro}{\@makechapterhead}
2054 % The |\@chapter| macro uses |\@makechapterhead|\meta{text} to format
2055 % the heading of the chapter.
2056 % From the Manual 3.11 p11.
2058 % Chapter headings must be bold and centered.
2059 % The chapter number and title must be on the same line, separated
2060 % by a colon or period, as shown in the example below:
2062 % CHAPTER 1: INTRODUCTION
2064 % Headings must not be larger than 12 points.
2065 % Headings must be single spaced.
2067 % \cls{book} sets |\@chapapp| and |\thechapter| (e.g.\ ``Chapter 5'')
2068 % on a line above the chapter title, but that doesn't match the
2069 % Manual's specification.
2071 % We begin by leaving some white space. The we open a group in which
2072 % we have a paragraph indent of 0pt, and in which we have the text set
2073 % ragged right. We also reset the font.
2074 % (\file{classes.dtx}, L2540).
2076 \def\@makechapterhead#1{%
2078 % Adding even a \vspace*{0\p@} here seems to increase the vertical
2079 % space above the chapter heading by two lines. I'm not sure why.
2080 % Workaround is to pass the ``value of blanklines you want minus two''
2081 % to |\blanklines*|. HACK!
2083 \blanklines*{-1}% HACK!
2084 {\parindent \z@ \raggedright \normalfont
2086 % Ensure single spacing.
2090 % Prevent a pagebreak from occuring in the middle of or after the title.
2092 \interlinepenalty\@M
2094 % Check whether the number of the chapter has to be printed.
2096 \ifnum \c@secnumdepth >\m@ne
2098 % Check whether there \emph{is} a number to be printed.
2102 % Setup a ``Chapter \#: Title'' heading.
2104 \center \large \bfseries \@chapapp{} \thechapter: #1\par\nobreak
2107 % Setup a ``Title'' heading.
2109 \center \large \bfseries #1\par\nobreak
2112 \center \large \bfseries #1\par\nobreak
2115 % Put a little space before the chapter body. We use four blank lines
2116 % to comply with the Manual 3.13 p12
2118 % Begin the list of sources four spaces below the heading.
2127 % \begin{macro}{\@schapter}
2128 % This macro is called when we have an unnumbered chapter. We drop
2129 % \file{classes.dtx}'s \Lopt{twocolumn} code and set marks for
2131 % (\file{classes.dtx}, L2582).
2135 % Inform the user that a new chapter is about to be typeset by writing
2136 % a message to the terminal.
2138 \typeout{\@chapapp\space #1}%
2140 \@makeschapterhead{#1}%
2145 % \begin{macro}{\@makeschapterhead}
2146 % The macro above uses |\@makeschapterhead|\meta{text} to format
2147 % the heading of the chapter. It is similar to |\@makechapterhead|
2148 % except that it never has to print a chapter number.
2149 % (\file{classes.dtx}, L2595).
2151 \def\@makeschapterhead#1{%
2152 \blanklines*{-1}% HACK!
2153 {\parindent \z@ \raggedright \normalfont
2155 \interlinepenalty\@M
2156 \center \large \bfseries #1\par\nobreak
2164 % \subsubsection{Lower level headings}
2166 % \begin{macro}{\section}
2167 % Setup section headings in |\large| rather than \cls{book}'s
2169 % (\file{classes.dtx}, L2623).
2171 \renewcommand\section{%
2172 \@startsection {section}{1}{\z@}%
2173 {-3.5ex \@plus -1ex \@minus -.2ex}%
2175 {\normalfont\large\bfseries}}
2180 % \subsubsection{Defining new environments}
2182 % We don't override any of \cls{book}'s environments, but this is
2183 % where \file{classes.dtx} defines its environments (L2996), so we'll put
2186 % \begin{environment}{preamble}
2188 \newenvironment{preamble}{%
2191 \pagenumbering{roman}
2193 % From Manual 3.1 p8, ``Title Page''.
2197 % From Manual 3.2 p9, ``Copyright Page''.
2202 % From the Manual 3.9, p11:
2204 % Include a blank page (with no page number) before the first page
2205 % of text. The blank page is neither numbered nor counted.
2213 % \begin{environment}{dedications}
2214 % From the Manual 3.3 p9
2216 % \item The heading |Dedications| must appear at the top of the
2217 % page. The heading must be bold, centered, and without
2219 % \item This page is counted and numbered in lowercase Roman numerals.
2222 \newenvironment{dedications}{%
2226 \pdfbookmark[0]{\dedicationsname}{\dedicationsname}
2228 \chapter*{\dedicationsname}
2236 % \begin{environment}{acknowledgments}
2237 % From the Manual 3.4 p9
2239 % \item The heading |Acknowledgments| must appear at the top of the
2240 % page. The heading must be bold, centered, and without
2242 % \item This page is counted and numbered in lowercase Roman numerals.
2245 \newenvironment{acknowledgments}{%
2249 \pdfbookmark[0]{\acknowledgmentsname}{\acknowledgmentsname}
2251 \chapter*{\acknowledgmentsname}
2259 % \begin{environment}{abstract}
2261 \newenvironment{abstract}{%
2262 \listed@schapter{\abstractname}%
2264 % Suck up some blank space to position the rest of the header right
2265 % under the chapter title.
2269 % From the Manual 3.9 p10
2272 % \item The following heading must be centered at the top of the page
2275 % Full Title of Dissertation or Thesis \\
2276 % Author's Name as it appears on the Dissertation or Thesis
2278 % In the example on p20, they list the advisor's name after the
2279 % author, but that is not specified in the text on p10.
2280 % \item The text begins four lines below this heading.
2286 % \item These pages are numbered using lowercase Roman numerals.
2287 % \item Note that the heading is single spaced, but the abstract
2309 % \begin{environment}{thesis}
2310 % From the Manual 3.10 p11
2312 % \item The pages are counted and numbered in Arabic numerals.
2315 \newenvironment{thesis}{%
2323 \pdfbookmark[-1]{Backmatter}{Backmatter}
2330 % \label{sec:implement-vita}
2332 % \begin{environment}{vita}
2333 % From the Manual 3.15 p13
2335 % \item The heading |Vita| must appear at the top of the page. The
2336 % heading must be bold, centered, and without punctuation.
2337 % \item The Vita text should begin four spaces below the heading.
2338 % \item List the Vita separately in the Table of Contents.
2339 % \item The page is counted and numbered in Arabic numerals.
2342 \newenvironment{vita}{%
2343 \listed@schapter{\vitaname}
2352 % \subsubsection{Titlepage}
2354 % \begin{environment}{titlepage}
2355 % In the normal environments, the titlepage environment does nothing
2356 % but start and end a page, and inhibit page numbers. We inhibit the
2357 % paging in draft mode, since it seems silly to waste a whole page on
2358 % the title. We also drop the \Lopt{twocolumn} code.
2359 % (\file{classes.dtx}, L3111)
2361 \renewenvironment{titlepage}{\thispagestyle{empty}%
2362 \setcounter{page}\z@}%
2363 {\if@final \newpage \else \blanklinesp{2} \par \fi}
2368 % \subsubsection{Appendix}
2369 % \label{sec:implement-appendix}
2371 % \begin{macro}{\appendix}
2372 % The |\appendix| command is not really an environment, it is a
2373 % macro that makes some changes in the way things are done.
2375 % In the article document class the |\appendix| command must do the
2378 % \item reset the section and subsection counters to zero,
2379 % \item redefine |\thesection| to produce alphabetic appendix
2380 % numbers. This redefinition is done globally to ensure that it
2381 % survives even if |\appendix| is issued within an environment such
2382 % as \texttt{multicols}.
2385 % In addition to \cls{book}'s (or \pkg{hyperref}'s) activity, we
2386 % fiddle with the \pkg{tocloft} chapter settings add switch to global
2388 % (\file{classes.dtx}, L3177)
2390 \let\DUT@appendix\appendix
2391 \renewcommand\appendix{%
2394 % Setup TOC entries like
2396 % Appendix A: Chapter Title
2398 % We don't need to worry about the |vita| environment (page
2399 % \pageref{sec:implement-vita}), because it is a |\listed@schapter|,
2400 % and therefore lacks a |\numberline| section in its \file{*.toc}
2403 % We increase |numwidth| to 6.5em to make room for |Appendix~| before
2404 % the chapter number/letter, and add a colon after it.
2406 % The |\protect| calls get the macros into \file{*.toc} unexpanded, so
2407 % they function correctly when \LaTeX\ parses \file{*.toc}.
2409 \addtocontents{toc}{%
2410 \protect\cftsetindents{chapter}{0pt}{6.5em}
2411 \protect\renewcommand{\protect\cftchappresnum}{\protect\appendixname~}
2412 \protect\renewcommand{\protect\cftchapaftersnum}{:}}
2414 % We also turn on double spacing by default, since we're no longer
2415 % wrapped in the |thesis| environment.
2423 % \subsubsection{Table of Contents}
2424 % \label{sec:implement-toc}
2426 % From Manual 3.5 p9, ``Table of Contents'', and the example on p17.
2429 % \item Do not list any sections that precede the
2430 % |Table of Contents| (e.g.\ |Dedications|, |Acknowledgments|). Do
2431 % not list the |Table of Contents| itself.
2432 % \item These pages are counted and numbered in lowercase Roman numerals.
2436 % \begin{macro}{\cfttoctitlefont}
2437 % Take advantange of \pkg{tocloft}'s TOC title code.
2438 % (\file{tocloft.dtx}, L1501)
2440 % \cfttoctitlefont\contentsname}{\cftaftertoctitle}
2442 % by setting it equal to something ending in |\chapter*|. That way
2443 % \LaTeX parses the whole thing as
2445 % ...\chapter*\contentsname}{\cftaftertoctitle}
2447 % which will set up the TOC page correctly.
2449 \renewcommand\cfttoctitlefont{%
2451 % Start a new page in \Lopt{final} mode
2455 % Add a bookmark if we're using pdf\LaTeX.
2459 \pdfbookmark[0]{\contentsname}{\contentsname}
2462 % |\chapter*| to gobble and format the next token (|\contentsname|).
2468 % \begin{macro}{\aftertoctitleskip}
2469 % Don't add any extra space after the title (the chapter will take
2472 \setlength\cftaftertoctitleskip{0pt}
2476 % \begin{macro}{\l@cont@sep}
2477 % Define a length for TOC/LOF/LOT spacing.
2479 \newlength\l@cont@sep
2480 \set@lines@length{\l@cont@sep}{\@cont@sep}
2484 % \begin{macro}{\@cont@font}
2485 % Define a font for high level (part, chapter) entries.
2487 \newcommand{\@cont@font}{\normalsize\scshape}
2491 % \begin{macro}{\cftbeforepartskip}
2492 % \begin{macro}{\cftpartfont}
2493 % \begin{macro}{\cftpartleader}
2494 % \begin{macro}{\cftpartdotsep}
2495 % \begin{macro}{\cftpartpagefont}
2496 % Setup parts. See the \pkg{tocloft} manual for a description of the
2499 \setlength\cftbeforepartskip{\l@cont@sep}
2500 \cftsetindents{part}{0pt}{3em}
2501 \if@boldpart \renewcommand{\cftpartfont}{\bfseries\@cont@font}
2502 \else \renewcommand{\cftpartfont}{\@cont@font}
2503 \renewcommand{\cftpartleader}{\cftdotfill{\cftpartdotsep}}
2504 \if@dottedpart \renewcommand{\cftpartdotsep}{\cftdotsep}
2505 \else \renewcommand{\cftpartdotsep}{\cftnodots} \fi
2506 \renewcommand{\cftpartpagefont}{\normalfont}
2514 % \begin{macro}{\cftbeforechapskip}
2515 % \begin{macro}{\cftchapaftersnum}
2516 % \begin{macro}{\cftchapfont}
2517 % \begin{macro}{\cftchapleader}
2518 % \begin{macro}{\cftchapdotsep}
2519 % \begin{macro}{\cftchappagefont}
2520 % Setup chapters and appendicies. Some of these settings are adjusted
2521 % for appendicies in particular by |\appendix|
2522 % (Sec.~\ref{sec:implement-appendix}).
2524 \setlength\cftbeforechapskip{\l@cont@sep}
2525 \cftsetindents{chapter}{0pt}{1.5em}
2526 \renewcommand{\cftchapaftersnum}{.}
2527 \if@boldchapter \renewcommand{\cftchapfont}{\bfseries\@cont@font}
2528 \else \renewcommand{\cftchapfont}{\@cont@font} \fi
2529 \renewcommand{\cftchapleader}{\cftdotfill{\cftchapdotsep}}
2530 \if@dottedchapter \renewcommand{\cftchapdotsep}{\cftdotsep}
2531 \else \renewcommand{\cftchapdotsep}{\cftnodots} \fi
2532 \renewcommand{\cftchappagefont}{\normalfont}
2541 % \begin{macro}{\cftbeforesecskip}
2542 % \begin{macro}{\cftsecfont}
2543 % \begin{macro}{\cftbeforesubsecskip}
2544 % \begin{macro}{\cftsubsecfont}
2545 % \begin{macro}{\cftbeforesubsubsecskip}
2546 % \begin{macro}{\cftsubsubsecfont}
2547 % Setup sections, subsections, etc.
2549 %\cftsetindents{chap}{0pt}{1.5em}
2550 \setlength\cftbeforesecskip{\l@cont@sep}
2551 \cftsetindents{section}{0pt}{3em}
2552 \renewcommand{\cftsecfont}{\normalsize}
2553 \setlength\cftbeforesubsecskip{\l@cont@sep}
2554 \cftsetindents{subsection}{0pt}{4.5em}
2555 \renewcommand{\cftsubsecfont}{\cftsecfont}
2556 \setlength\cftbeforesubsubsecskip{\l@cont@sep}
2557 \cftsetindents{subsubsection}{0pt}{6em}
2558 \renewcommand{\cftsubsubsecfont}{\cftsecfont}
2567 % The default indents above are all |0pt|. If \Lopt{indenttoc} was
2568 % given, override this, restoring the \pkg{tocloft} defaults, see the
2569 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/tocloft/tocloft.pdf}{%
2570 % \pkg{tocloft} manual, Table 1}.
2573 \cftsetindents{chapter}{0pt}{1.5em}
2574 \cftsetindents{section}{1.5em}{2.3em}
2575 \cftsetindents{subsection}{3.8em}{3.2em}
2576 \cftsetindents{subsubsection}{7.0em}{4.1em}
2581 % \subsubsection{List of figures}
2582 % \label{sec:implement-lof}
2584 % From the Manual 3.7 p10
2587 % \item The heading |List of Figures| must appear at the top of
2589 % \item The heading must be bold, centered, and without
2590 % punctuation. List figure captions exactly as they appear
2591 % below the figures in the text.
2592 % \item Single space each entry, but double-space between entries.
2593 % \item Separate figure captions from page numbers with
2594 % right-justified tabs and dot leaders.
2595 % \item Do not use periods to separate captions and page numbers.
2596 % \item These pages are counted and numbered in lowercase Roman
2601 % \begin{macro}{\cftloftitlefont}
2602 % Much like our |\cfttoctitlefont|, but the list of figures gets
2603 % listed in the TOC.
2605 \renewcommand\cftloftitlefont{\listed@schapter}
2609 % \begin{macro}{\afterloftitleskip}
2610 % Don't add any extra space after the title (the chapter will take
2611 % care of that). Actually we make a one-line correction so the first
2612 % line matches the first line in the TOC. HACK!
2614 \setlength\cftafterloftitleskip{-12pt}
2618 % \begin{macro}{\cftbeforefigskip}
2619 % \begin{macro}{\cftfigindent}
2620 % \begin{macro}{\cftfigfont}
2621 % Setup figure entries.
2623 \setlength{\cftbeforefigskip}{\l@cont@sep}
2624 \setlength{\cftfigindent}{0pt}
2625 \renewcommand{\cftfigfont}{\normalsize\singlespace}
2632 % \subsubsection{List of tables}
2633 % \label{sec:implement-lot}
2635 % From the Manual 3.6 p10
2638 % \item The heading |List of Tables| must appear at the top of the
2640 % \item The heading must be bold, centered, and without
2642 % \item List table captions exactly as they appear above the
2643 % tables in the text.
2644 % \item Single space each entry, but double-space between entries.
2645 % \item Separate table captions from page numbers with
2646 % right-justified tabs and dot leaders.
2647 % \item Do not use periods to separate captions and page numbers.
2648 % These pages are counted and numbered in lowercase Roman
2653 % \begin{macro}{\cftlottitlefont}
2654 % Much like our |\cfttoctitlefont|, but the list of tables gets
2655 % listed in the TOC.
2657 \renewcommand\cftlottitlefont{\listed@schapter}
2661 % \begin{macro}{\afterlottitleskip}
2662 % Don't add any extra space after the title (the chapter will take
2663 % care of that). Actually we make a one-line correction so the first
2664 % line matches the first line in the TOC. HACK!
2666 \setlength\cftafterlottitleskip{-12pt}
2670 % \begin{macro}{\cftbeforetabskip}
2671 % \begin{macro}{\cfttabindent}
2672 % \begin{macro}{\cfttabfont}
2673 % Setup table entries.
2675 \setlength{\cfttabindent}{0pt}
2676 \setlength{\cftbeforetabskip}{\l@cont@sep}
2677 \renewcommand{\cfttabfont}{\normalsize\singlespace}
2684 % \subsubsection{Bibliography}
2686 % \begin{environment}{thebibliography}
2687 % The |thebibliography| environment is a list environment. To save the
2688 % use of an extra counter, it should use |enumiv| as the item
2690 % Instead of using |\item|, items in the bibliography are produced by
2691 % the following commands:\\
2692 % |\bibitem|\marg{name} : Produces a numbered entry cited as
2694 % |\bibitem|\oarg{label}\marg{name} : Produces an entry labeled by
2695 % \meta{Label} and cited by \meta{name}.
2697 % Override \cls{book}'s version, adding a line to the table of
2698 % contents. We split out the section-creation code into
2699 % |\bib@heading| for \pkg{natbib} compatibility.
2700 % (\file{classes.dtx}, L4063).
2702 \renewenvironment{thebibliography}[1]
2704 \list{\@biblabel{\@arabic\c@enumiv}}%
2705 {\settowidth\labelwidth{\@biblabel{#1}}%
2706 \leftmargin\labelwidth
2707 \advance\leftmargin\labelsep
2709 \usecounter{enumiv}%
2710 \let\p@enumiv\@empty
2711 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
2713 % Because it's hard to do line breaks in bibliographies.
2717 % This is setting the normal (non-infinite) value of
2718 % |\clubpenalty| for the whole of this environment,
2719 % so we must reset its stored value also. (Why is there a |%| after
2720 % the second 4000 below?)
2723 \@clubpenalty \clubpenalty
2726 % Cause a `.' (period) not to produce an end-of-sentence space.
2730 % Warn if an empty `thebibliography' environment is found.
2733 {\@latex@warning{Empty `thebibliography' environment}}%
2738 % \begin{macro}{\bib@heading}
2739 % \pkg{natbib} messes with |thebibliography|. We setup |\bib@heading|
2740 % so we will still get our table of contents entry.
2742 \newcommand{\bib@heading}{%
2743 \listed@schapter{\bibname}%
2749 % \subsubsection{Index}
2751 % \begin{environment}{theindex}
2752 % The environment |theindex| can be used for indices. It makes an
2753 % index with two columns, with each entry a separate paragraph. At
2754 % the user level the commands |\item|, |\subitem| and |\subsubitem|
2755 % are used to produce index entries of various levels. When a new
2756 % letter of the alphabet is encountered an amount of |\indexspace|
2757 % white space can be added.
2759 % Override \cls{book}'s version, adding a line to the table of
2760 % contents. We split out the section-creation code into
2761 % |\bib@heading| for \pkg{natbib} compatibility.
2762 % (\file{classes.dtx}, L4107).
2764 \renewenvironment{theindex}
2771 % Here we add our TOC entry, and setup two-columness by hand
2772 % to avoid the |\clearpage| in \LaTeX's default |\twocolumn|.
2774 \listed@schapter{\indexname}
2775 \global\columnwidth\textwidth
2776 \global\advance\columnwidth-\columnsep
2777 \global\divide\columnwidth\tw@
2778 \global\hsize\columnwidth
2779 \global\linewidth\columnwidth
2780 \global\@twocolumntrue
2781 \global\@firstcolumntrue
2784 % Parameter changes to |\columnseprule| and |\columnsep| have to be
2785 % done after |\twocolumn| has acted. Otherwise they can affect the
2786 % last page before the index.
2789 \parskip\z@ \@plus .3\p@\relax
2794 % When the document continues after the index and it was a one
2795 % column document we have to switch back to one column after the
2798 {\if@restonecol\onecolumn\else\DUT@clearpage\fi}
2803 % \subsubsection{Words}
2806 % Set the official names of the various sections encountered. Some of
2807 % these are not defined in \file{classes.dtx} but are close analogs of
2810 % \begin{macro}{\dedicationsname}
2811 % From the Manual 3.3 p9, ``The heading |Dedications| must appear at
2812 % the top of the page.''
2814 \newcommand\dedicationsname{Dedications}
2818 % \begin{macro}{\acknowledgmentsname}
2819 % From the Manual 3.4 p9, ``The heading |Acknowledgments| must appear
2820 % at the top of the page.''
2822 \newcommand\acknowledgmentsname{Acknowledgments}
2826 % \begin{macro}{\contentsname}
2827 % From the Manual 3.5 p9, ``The heading |Table of Contents| must
2828 % appear at the top of the page.'' (\file{classes.dtx}, L4331)
2830 \renewcommand\contentsname{Table of Contents}
2834 % \begin{macro}{\listtablename}
2835 % From the Manual 3.6 p10, ``The heading |List of Tables| must appear
2836 % at the top of the page.'' (\file{classes.dtx}, L4333)
2838 \renewcommand\listtablename{List of Tables}
2842 % \begin{macro}{\listfigurename}
2843 % From the Manual 3.7 p10, ``The heading |List of Figures| must appear
2844 % at the top of the page.'' (\file{classes.dtx}, L4332)
2846 \renewcommand\listfigurename{List of Figures}
2850 % \begin{macro}{\abstractname}
2851 % From the Manual 3.8 p10, ``The following heading must be centered at
2852 % the top of the first page: |Abstract|\ldots.''
2853 % (\file{classes.dtx}, L4367)
2855 \newcommand\abstractname{Abstract}
2859 % \begin{macro}{\bibname}
2860 % From the Manual 3.13 p12, ``The heading |Bibliography| (or
2861 % |List of References|) must appear at the top of first page.''
2862 % (\file{classes.dtx}, L4344)
2864 \renewcommand\bibname{Bibliography}
2868 % \begin{macro}{\appendixname}
2869 % From the Manual 3.14 p12, ``Number the appendicies consecutively
2870 % either alphabetically or numerically (|Appendix A|, |Appendix B|\ldots
2871 % or |Appendix 1|, |Appendix 2|\ldots).''
2872 % (\file{classes.dtx}, L4366)
2874 \renewcommand\appendixname{Appendix}
2878 % \begin{macro}{\vitaname}
2879 % From the Manual 3.15 p13, ``The heading |Vita| must appear at the
2880 % top of the page.''
2882 \newcommand\vitaname{Vita}
2887 % \subsection{Remaining details}
2890 % \subsubsection{Terminal blank page}
2892 % Add a terminal blank page (when |\if@final| is true)
2893 % From the Manual 3.16 p13
2895 % Include a blank page (with no page number) at the end of the
2896 % thesis or dissertation. The blank page is neither counted nor
2900 \AtEndDocument{\blankpage}
2909 % \section{Examples}
2912 % \subsubsection{Template}
2916 % See drexel-thesis.pdf for details.
2917 \documentclass{drexel-thesis}
2919 %% Enter the appropriate information here
2920 \author{} % Fullname
2921 \title{} % Title Of Thesis
2922 \defmonth{} % Name of the month of you defense
2923 \defyear{} % Year you are defending
2924 \degree{} % Your target degree, spelled out
2925 \advisor{} % Advisor's full name, degree
2926 \copyrighttext{} % If not "All Rights Reserved."
2928 %% unsrt style give references in order of citation
2929 \bibliographystyle{unsrt}
2934 \begin{dedications} % OPTIONAL
2935 %% Type dedications here
2938 \begin{acknowledgments} % OPTIONAL
2939 %% Type acknowledgments here
2940 \end{acknowledgments}
2943 \listoftables % If you have tables
2944 \listoffigures % If you have figures
2947 %% Type abstract here
2952 %% Use include statements to include your main thesis code
2953 %% from seperate files.
2958 \bibliography{references} % Include references.bib BibTeX
2960 \appendix % If you have appendices
2961 %% include files with your appendicies (if any) here
2962 %%\include{appendixA}
2965 \begin{vita} % Ph.D. only.
2974 % \subsection{A better example}
2975 % \label{sec:better-example}
2977 % \subsubsection{Main}
2980 %<*example|example-draft>
2981 %% See drexel-thesis.pdf for details.
2982 %<example>\documentclass[subfig]{drexel-thesis}
2983 %<example-draft>\documentclass[draft,subfig]{drexel-thesis}
2985 %% Enter the appropriate information here
2986 \author{Johny Henry}
2987 \title{Inadequacies of Steam-Driven Boring Machines}
2990 \degree{Doctor of Philosophy}
2991 \advisor{Collis Potter Huntington, R.R.D.}
2992 \advisor{Advisor 2, Ph.D.}
2993 \advisor{Advisor 3, Ph.D.}
2994 \copyrighttext{\copyrighttextCCBYSA}
2996 \usepackage[super,sort&compress]{natbib} % fancy citation extensions
2997 \bibliographystyle{unsrtnat}
2999 \usepackage{fancyvrb} % nicer verbatim handling
3000 \DefineShortVerb{\|} % \verb+TEXT+ -> |TEXT|
3004 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/blindtext/}{\pkg{blindtext}}
3005 % for dummy text creation. \pkg{blindtext} requires
3006 % \href{}{\pkg{babel}}.
3008 \usepackage[english]{babel} % English blindtext
3009 \usepackage{blindtext} % macros for producing dummy output
3011 % \pkg{babel} messes with some of our words (Section \ref{sec:words}), so
3012 % we have to reset them. See the
3013 % \href{http://www.tex.ac.uk/cgi-bin/texfaq2html?label=latexwords}{\TeX\ FAQ}
3016 \addto\captionsenglish{%
3017 \renewcommand\dedicationsname{Dedications}%
3018 \renewcommand\acknowledgmentsname{Acknowledgments}%
3019 \renewcommand\contentsname{Table of Contents}%
3020 \renewcommand\listtablename{List of Tables}%
3021 \renewcommand\listfigurename{List of Figures}%
3022 \renewcommand\abstractname{Abstract}%
3023 \renewcommand\bibname{Bibliography}%
3024 \renewcommand\appendixname{Appendix}%
3025 \renewcommand\vitaname{Vita}%
3032 We're in \iffinal{final}{draft} mode!
3037 \begin{acknowledgments}
3039 \end{acknowledgments}
3054 \bibliography{example-ref}
3064 %</example|example-draft>
3068 % \subsubsection{Part}
3069 % \label{section:better-example-part}
3073 \part{A Part Heading}
3074 \chapter{A Chapter Heading}
3075 \section{A Section Heading}
3076 The following sectioning commands are available:
3088 You can cite your references with |natbib|'s |\citet| and |\citep|
3090 \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}
3091 {the natbib manual} for details.
3093 Here we have a text citation \citet{rief97} followed by a
3094 parenthetical citation\citep{rief97}.
3096 \subsubsection{Tables and Figures}
3100 \begin{tabular}{r@{.}l r@{.}l r@{.}l}
3101 \multicolumn{2}{c}{Time (s)} &
3102 \multicolumn{2}{c}{John Henry (m)} &
3103 \multicolumn{2}{c}{Steam drill (m)} \\
3105 10&0 & 4&3 & 3&75 \\
3106 30&0 & 11&9 & 10&1 \\
3109 \caption{A table float.} % low caption allowed with floatrow
3110 %% Note the strange |r@{.}l| notation in the |\tabular| column
3111 %% definition. This allows for numbers aligned at the decimal point
3112 %% (see \href{http://www.stat.unipg.it/tex-man/ltx-68.html}{here}).
3114 %% |\multicolumn{num_cols}{alignment}{contents}| allows the headings
3115 %% to span the pre- and post-decimal columns.
3120 \caption{A figure float. \blindtext} % high caption allowed with floatrow
3122 \includegraphics[width=0.4\textwidth]{drexel-logo}
3129 \includegraphics[width=0.2\textwidth]{drexel-logo}%
3132 \includegraphics[width=0.2\textwidth]{drexel-logo}%
3134 \caption{(a) One subfig float. (b) Another subfig float.%
3138 You can reference the subfig floats individually (\ref{fig:sub-a}) or
3139 together (\ref{fig:both}).
3144 \chapter{Another Chapter}
3146 \chapter{A Long Title Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla
3147 Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla}
3153 % \subsubsection{\BibTeX}
3155 % What goes into the \BibTeX\ file |example-ref.bib|?
3156 % For more information, check out this
3157 % \href{http://cmtw.harvard.edu/Documentation/TeX/Bibtex/Example.html}{basic tutorial}.
3158 % If you want to get deeper, take a look at
3159 % \href{http://www.ctan.org/tex-archive/info/bibtex/tamethebeast/}{Tame the BeaST}.
3161 % \href{http://www.andy-roberts.net/misc/latex/latextutorial3.html}{how the process works},
3162 % \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node6.html}{entry types},
3163 % \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node7.html}{fields},
3164 % \href{http://en.wikipedia.org/wiki/BibTeX}{entries and fields},
3165 % \href{http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html}{assorted style examples}, and
3166 % \href{http://liinwww.ira.uka.de/bibliography/Bib.Format.html}{assorted \BibTeX tools}.
3168 % Here is an example \BibTeX\ file to get you started. We define
3169 % strings for the publishers, journals, and authors to avoid
3170 % duplication, minimize the risk of typos, etc.
3173 %<*example-bibtex-refs>
3175 @String{APS = "American Physical Society"}
3178 @String{SCI = "Science"}
3181 @String{MRief = "Rief, Matthias"}
3182 @String{MGautel = "Gautel, Mathias"}
3183 @String{FOesterhelt = "Oesterhelt, Filipp"}
3184 @String{JFernandez = "Fernandez, Julio M."}
3185 @String{HGaub = "Gaub, Hermann E."}
3189 author = MRief #" and "# MGautel #" and "# FOesterhelt #" and "#
3190 JFernandez #" and "# HGaub,
3191 title = "Reversible Unfolding of Individual Titin Immunoglobulin
3196 pages = "1109--1112",
3198 doi = "10.1126/science.276.5315.1109",
3199 URL = "http://www.sciencemag.org/cgi/content/abstract/276/5315/1109",
3200 eprint = "http://www.sciencemag.org/cgi/reprint/276/5315/1109.pdf",
3201 mynote = "Seminal paper for force spectroscopy on Titin. Cited by
3202 Dietz '04 (ref 9) as an example of how unfolding large
3203 proteins is easily interpreted (vs.\ confusing unfolding in
3204 bulk), but Titin is a rather simple example of that, because
3205 of its globular-chain structure.",
3208 %</example-bibtex-refs>
3212 % \subsubsection{Appendix}
3215 %<*example-appendix>
3216 \chapter{Some Appendix Heading}
3218 \chapter{Another Appendix Heading}
3220 %</example-appendix>
3224 % \section{Known bugs and issues}
3227 % \subsection{Hacks}
3230 % \item |\vspace*{0\p@}| space between page top and chapter
3231 % headings (|\@makechapterhead| and |\@makeschapterhead|,
3232 % Sec.~\ref{sec:implement-chapters}).
3233 % \item Extra space under LOT and LOF titles compared to TOC.
3234 % (Secs.~\ref{sec:implement-lof} and \ref{sec:implement-lot}).
3241 % \item Different space between chapter heading and section heading,
3242 % vs.\ chapter heading and text. Compare \emph{A Chapter Heading}
3243 % and \emph{Another Chapter} in \file{example.pdf}. This is a
3244 % problem (although with opposite order) in the \cls{book} class
3245 % itself. For example, compile
3247 %\documentclass{book}
3249 %\chapter{Chapter with text}
3251 %\chapter{Chapter with section}
3256 % \item Footer overlap if chapter/section names are particularly long.
3257 % See \emph{Section in long-titled chapter} in \file{example.pdf}.
3258 % Workaround: turn off sections in the footer:
3260 % \fancyfoot[RE,LO]{\scshape\leftmark}
3261 % \fancyfoot[LE,RO]{}
3263 % For more header or footer manipulation ideas, see Section \ref{sec:fancyhdr}.