Added draftwatermark handling, graphicx explanation.
[drexel-thesis.git] / drexel-thesis.dtx
1 % \def\fileversion{0.3}
2 % \def\filedate{2010/01/09}
3 % \iffalse meta-comment
4 %<class>\def\fileversion{0.3}
5 %<class>\def\filedate{2010/01/09}
6 %
7 % Copyright (C) 2010 W. Trevor King, Daniel J. Cross, T. Tsankov, and
8 %    R. Rojas.
9 % -------------------------------------------------------
10
11 % This file may be distributed and/or modified under the
12 % conditions of the LaTeX Project Public License, either version 1.3
13 % of this license or (at your option) any later version.
14 % The latest version of this license is in:
15 %
16 %    http://www.latex-project.org/lppl.txt
17 %
18 % and version 1.3 or later is part of all distributions of LaTeX 
19 % version 2003/12/01 or later.
20 %
21 % Based on Scott Pakin's dtxtut/cskeleton.dtx
22 %   http://www.ctan.org/tex-archive/info/dtxtut/
23 %
24 % \fi
25 %
26 % \iffalse meta-comment
27 %<*driver>
28 \ProvidesFile{drexel-thesis.dtx}
29 %</driver>
30 %<class>\NeedsTeXFormat{LaTeX2e}
31 %<class>\ProvidesClass{drexel-thesis}
32 %<class> [\filedate\ \fileversion\ Drexel Thesis]
33 %
34 % Code for the .ini driver, see section "2.1 The driver file" of doc.dtx.
35 %<*driver>
36 \documentclass{ltxdoc}
37 \usepackage[colorlinks=true]{hyperref}
38 %</driver>
39 % Include some useful commands from |xkeyval|'s |<preamble>|.
40 %<*driver>
41 \usepackage{xcolor}
42 \usepackage{listings}
43 \lstnewenvironment{command}{%
44   \lstset{columns=flexible,frame=single,backgroundcolor=\color{blue!20},%
45     xleftmargin=\fboxsep,xrightmargin=\fboxsep,escapeinside=`',gobble=1}}{}
46 \lstnewenvironment{example}{%
47   \lstset{basicstyle=\footnotesize\ttfamily,columns=flexible,frame=single,%
48     backgroundcolor=\color{yellow!20},xleftmargin=\fboxsep,%
49     xrightmargin=\fboxsep,gobble=1}}{}
50 %</driver>
51 % \TeX's arguments aren't optional/mandatory, but they do use brackets
52 % and braces.
53 %<*driver>
54 \newcommand{\bracearg}[1]{\marg{#1}}
55 \newcommand{\brackarg}[1]{\oarg{#1}}
56 %</driver>
57 % Define a quick and dirty version of |xkeyval|'s |\DescribeOptions|.
58 %<*driver>
59 \newenvironment{option}[1]{\begin{macro}{#1}}
60                           {\end{macro}}
61 %</driver>
62 %<*driver>
63 \makeatletter
64 \def\DescribeOption#1{\leavevmode\@bsphack
65               \marginpar{\raggedleft\PrintDescribeOption{#1}}%
66               \SpecialOptionIndex{#1}\@esphack\ignorespaces}
67 \def\PrintDescribeOption#1{\strut\emph{option}\\\MacroFont #1\ }
68 \def\SpecialOptionIndex#1{\@bsphack
69     \index{#1\actualchar{\protect\ttfamily#1}
70            (option)\encapchar usage}%
71     \index{options:\levelchar#1\actualchar{\protect\ttfamily#1}\encapchar
72            usage}\@esphack}
73 \def\DescribeOptions#1{\leavevmode\@bsphack
74   \marginpar{\raggedleft\strut\emph{options}%
75   \@for\@tempa:=#1\do{%
76     \\\strut\MacroFont\@tempa\SpecialOptionIndex\@tempa
77   }}\@esphack\ignorespaces}
78 \makeatother
79 %</driver>
80 %<*driver>
81 \EnableCrossrefs
82 \RecordChanges
83 \EnableCrossrefs         
84 \begin{document}
85   \DocInput{drexel-thesis.dtx}
86 \end{document}
87 %</driver>
88 % \fi
89 %
90 % \CheckSum{0}
91 %
92 % \CharacterTable
93 %  {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
94 %   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
95 %   Digits        \0\1\2\3\4\5\6\7\8\9
96 %   Exclamation   \!     Double quote  \"     Hash (number) \#
97 %   Dollar        \$     Percent       \%     Ampersand     \&
98 %   Acute accent  \'     Left paren    \(     Right paren   \)
99 %   Asterisk      \*     Plus          \+     Comma         \,
100 %   Minus         \-     Point         \.     Solidus       \/
101 %   Colon         \:     Semicolon     \;     Less than     \<
102 %   Equals        \=     Greater than  \>     Question mark \?
103 %   Commercial at \@     Left bracket  \[     Backslash     \\
104 %   Right bracket \]     Circumflex    \^     Underscore    \_
105 %   Grave accent  \`     Left brace    \{     Vertical bar  \|
106 %   Right brace   \}     Tilde         \~}
107 %
108 %
109 % \changes{0.1}{2006/01/18}{Rewrite by Daniel J.~Cross}
110 % \changes{0.2}{2010/01/09}{W.~Trevor King transitioned from thesis.cls
111 %   to drexel-thesis.dtx and did a good deal of reorganizing.}
112 % \changes{0.2}{2010/01/09}{W.~Trevor King merged drexelthesis.cls
113 %   developed in the Comp.~Sci.~Department by Jeff Abrahamson,
114 %   Evan Sultanik, C.Y.~Ip, Christopher S.~Dahn, Christopher D.~Cera,
115 %   Mitchell Peabody, David T.~McWherter, and Vincent A.~Cicirello.
116 %   Based on the University of Toronto Thesis LaTeX2e Class.}
117 %
118 % \MakeShortVerb{\|}
119 % \newcommand{\pkg}[1]{\textsf{#1}}
120 % \newcommand{\cls}[1]{\textsf{#1}}
121 % ^^A\newcommand{\BibTeX}{{\sc Bib}\TeX}
122
123 % \title{The \textsf{drexel-thesis} class\thanks{This document
124 %   corresponds to \textsf{drexel-thesis}~\fileversion, dated \filedate.}}
125 % \author{W.~Trevor King \\\texttt{wking@drexel.edu}
126 %         \and Daniel J.~Cross \and T.~Tsankov \and R.~Rojas.}
127 % \date{\filedate}
128 %
129 % \maketitle
130 %
131 % \section{Introduction}
132 %
133 % This package defines a \LaTeX\ thesis class for Drexel University
134 % conforming to the
135 % \href{http://www.library.drexel.edu/files/services_documents/thesismanual.pdf}
136 %   {Drexel University Thesis Manual version 2009/06/01}.
137 %
138 % \section{Usage}
139 %
140 % To write a thesis, you load the Drexel thesis definitions by loading
141 % the \pkg{drexel-thesis} class at the beginning of your
142 % \LaTeX\ document with the |\documentclass| command.  For example,
143 % \begin{example}
144 %   \documentclass{drexel-thesis}
145 % \end{example}
146 %
147 % \subsection{Options}
148 %
149 % \DescribeOptions{final,draft}
150 % The default option (selected if not options are passed) is |final|
151 % mode, which has all the proper formatting and spacing for your final
152 % product. The other main option is |draft| mode, which reduces all
153 % the spacing in the document, so might be helpful when printing out
154 % drafts (saves paper).
155 %
156 % |final| mode corresponds to (with Thesis Manual chapter and verse)\\
157 % \begin{tabular}{r p{0.8\textwidth}}
158 %   |oneside| & 1.5 Library Submission Information, Print
159 %     Version: ``All copies must be: \ldots Typed/printed on only one
160 %     side of the page (not double-sided).'' \\
161 %   |finalspace| & Assorted single, double, and triple spacing
162 %   directives. \\
163 %   |dottedtoc| & From the example on p17.
164 % \end{tabular}
165 %
166 % |draft| mode corresponds to \\
167 % \begin{tabular}{r p{0.8\textwidth}}
168 %   |twoside| & Save space. \\
169 %   |draftspace| & Save space. \\
170 %   |dottedtoc| & Might as well be consistent with |final|. \\
171 %   |draftwatermark| & It's good to have a timestamp. \\
172 % \end{tabular}
173 %
174 % \DescribeOption{finalspace}
175 % Loosen spacing.
176 %
177 % \DescribeOption{draftspace}
178 % Tighten spacing.
179 %
180 % \DescribeOptions{dottedtoc,boldtoc,
181 %                  dottedpart,boldpart,
182 %                  dottedchapter,boldchapter}
183 % These options change how the relevant TOC lines are printed
184 % \LaTeX\ defaults to bold but not dots.  The |*toc| options set all
185 % of the types.  For example, |boldtoc| is equivalent to
186 % |boldchapter,boldpart|.
187 %
188 % \DescribeOption{draftwatermark}
189 % |draftwatermark| adds ``DRAFT \meta{date}'' watermarks to each page.
190 % A useful way to remember that the version you're looking at is not final.
191 % Also helps reviewers tell you what version they're correcting.
192 %
193 %
194 % \subsubsection{Interesting \cls{book} options}
195
196 % \DescribeOption{oneside}
197 % Setup output for one-sided printing.
198 %
199 % \DescribeOption{twoside}
200 % Setup output for two-sided printing.
201 %
202 % \DescribeOption{leqno}
203 % |leqno| places the numbering of formulae on the left hand side
204 % instead of the right.
205 %
206 % \DescribeOption{fleqn}
207 % |fleqn| typesets displayed formulae left-aligned instead of
208 % centered.
209 %
210 %
211 % \subsection{Macros}
212 %
213 % \begin{command}
214 %   `\cs{author}\marg{name}'
215 % \end{command}
216 % \DescribeMacro{\author}
217 % Use this macro to set your full name to \meta{name}, including
218 % your middle initial or name.  For example
219 % \begin{example}
220 %   \name{Richard P. Feynman}
221 % \end{example}
222 % See the Manual 3.1 p8.
223 %
224 % \begin{command}
225 %   `\cs{title}\marg{title}'
226 % \end{command}
227 % \DescribeMacro{\title}
228 % Use this macro to set your thesis title to \meta{name}.  For example
229 % \begin{example}
230 %   \title{A New Approach to Quantum Theory}
231 % \end{example}
232 % See the Manual p16.
233 %
234 % \begin{command}
235 %   `\cs{advisor}\marg{name}'
236 % \end{command}
237 % \DescribeMacro{\advisor}
238 % Use this macro to set your advisor's name to \meta{name}.  For
239 % example
240 % \begin{example}
241 %   \advisor{John A. Wheeler, Ph.D.}
242 % \end{example}
243 % See the Manual 3.1 p8.
244 %
245 % \begin{command}
246 %   `\cs{defmonth}\marg{month}'
247 %   `\cs{defyear}\marg{year}'
248 % \end{command}
249 % \DescribeMacro{\defmonth}
250 % \DescribeMacro{\defyear}
251 % Use these macros to set the month with \meta{month} (spelled out)
252 % and year with \meta{year} (four digits) of your thesis defense.  For
253 % example
254 % \begin{example}
255 %   \defmonth{June}
256 %   \defyear{1942}
257 % \end{example}
258 % See the Manual 3.1 p8.
259 % The |def| in |\def*| avoids collisions with the plain \TeX\ 
260 % |\month| and |\year| (see the
261 % \href{http://www.tug.org/utilities/plain/cseq.html#month-rp}{month}
262 % and
263 % \href{http://www.tug.org/utilities/plain/cseq.html#year-rp}{year}
264 % entries in the HTML version of David Bausum's \emph{TeX Reference
265 % Manual}).
266 %
267 % \begin{command}
268 %   `\cs{degree}\marg{degree}'
269 % \end{command}
270 % \DescribeMacro{\degree}
271 % Set your target degree with \meta{degree}.  From the Manual 3.1 p8.
272 % \begin{quote}
273 %   Write out the name of the degree for which you are a candidate.
274 %   All Ph.D.\ candidates must use |Doctor of Philosophy|.  All
275 %   Master's degree candidates should use the precise degree name
276 %   (e.g., |Master of Science in Mechanical Engineering|).
277 % \end{quote}
278 % So, for a Ph.D candidate,
279 % \begin{example}
280 %   \degree{Doctor of Philosophy}
281 % \end{example}
282 %
283 % \begin{command}
284 %   `\cs{makecopyright}'
285 %   `\cs{makecopyrightCC}'
286 % \end{command}
287 % \DescribeMacros{\makecopyright,\makecopyrightCC}
288 % Write the copyright page (Manual 3.2 p9).
289 % Use |\makecopyright| to reserve all rights or |\makecopyrightCC| for
290 % a Creative Commons copyright.
291 %
292 % \begin{command}
293 %   `\cs{tableofcontents}'
294 % \end{command}
295 % \DescribeMacro{\tableofcontents}
296 % Write the table of contents (Manual 3.5 p9).  You can control the
297 % verbosity by setting |\tocdepth| according to the following table
298 % (\href{http://www.image.ufl.edu/help/latex/intext.shtml}{source}). \\
299 % \begin{tabular}{l l l}
300 %   Depth in document & Section Command & Depth for |\secnumdepth| Command \\
301 %   -1 & |\part| & 1 \\
302 %    0 & |\chapter| & 2 \\
303 %    1 & |\section| & 3 \\
304 %    2 & |\subsection| & 4 \\
305 %    3 & |\subsubsection| & 5 \\
306 %    4 & |\paragraph| & 6 \\
307 %    5 & |\subparagraph| & 7
308 % \end{tabular} \\
309 % For example, to expose everything down to and including the
310 % |\subsection| level, you would add
311 % \begin{example}
312 %   \setcounter{tocdepth}{2}
313 % \end{example}
314 % to your preamble (the section before |\begin{document}|, not the
315 % |preamble| environment discussed below).
316 %
317 % Note that the Manual 3.5 p9 requires ``List chapter titles and at
318 % least the first and second order subdivisions.'', which corresponds
319 % to a |\tocdepth| of at least 2.
320 %
321 % \begin{command}
322 %   `\cs{listoftables}'
323 % \end{command}
324 % \DescribeMacro{\listoftables}
325 % Write the List of Tables page (Manual 3.7 p10).
326 % Skip if you have no tables in your thesis.
327 %
328 % \begin{command}
329 %   `\cs{listoffigures}'
330 % \end{command}
331 % \DescribeMacro{\listoffigures}
332 % Write the List of Figures page (Manual 3.7 p10).
333 % Skip if you have no figures in your thesis.
334 %
335 % \begin{command}
336 %   `\cs{blanklines}\marg{num}'
337 % \end{command}
338 % \DescribeMacro{\blanklines}
339 % Insert \meta{num} blank lines.  For example
340 % \begin{example}
341 %   \blanklines{2}
342 % \end{example}
343 % The skipped lines are always \emph{single spaced} lines, regardless
344 % of the current line spacing in the environment calling this macro.
345 %
346 %
347 % \subsection{Environments}
348 %
349 % \DescribeEnv{preamble}
350 % Generalize the |\frontmatter| for the thesis, setting up page
351 % numbering, including the title page, copyright page etc.  The
352 % |preamble| environment should contain the following elements
353 % (in order, see the Manual p8)
354 % \begin{itemize}
355 %   \item |dedication| environment (optional)
356 %   \item |acknowledgments| environment (optional)
357 %   \item |\tableofcontents|
358 %   \item |\listoftables|
359 %   \item |\listoffigures|
360 %   \item |abstract| environment
361 % \end{itemize}
362 % This will take care of everything from the title page (Manual 3.1),
363 % up through the blank page before the text (Manual 3.9).
364 %
365 % \DescribeEnv{dedications}
366 % Set the dedications text.
367 % Highlights from the Manual 3.3 p9:
368 % \begin{quote}
369 %   The |Dedications| page is optional.
370 % \end{quote}
371 %
372 % \DescribeEnv{acknowledgments}
373 % Set the acknowledgments text.
374 % Highlights from the Manual 3.4 p9:
375 % \begin{quote}
376 %   The |Acknowledgments| page is optional, but most theses do
377 %   include a brief statement of thanks or recognition of any special
378 %   assistance.
379 % \end{quote}
380 %
381 % \DescribeEnv{abstract}
382 % Set the thesis abstract text.  In the Thesis Manual, see section 3.8
383 % Abstract (p10) for details, p20 for an example.
384 %
385 % Highlights from the Manual:
386 % \begin{quote}
387 %   The abstract is a summary that allows readers to determine the
388 %   value of reading the full thesis.  It should include a statement
389 %   of the problem, an outline of procedures or methods, and a summary
390 %   of results and conclusions.
391 % \end{quote}
392 % \begin{itemize}
393 %   \item Word limits: 600 for a Master's thesis, 350 for a Ph.D.\ thesis.
394 % \end{itemize}
395 %
396 % \DescribeEnv{thesis}
397 % Set the thesis text.  In the Thesis Manual, see section 3.10 Thesis
398 % (p11) for details.
399 %
400 % Highlights from the Manual:
401 % \begin{quote}
402 %   Divide the text into its major parts/chapters/subsections.  No
403 %   fixed arrangement is necessary.  The major parts may contain such
404 %   subjects as introduction, general argument, description of
405 %   experimental procedures, research methods, discussion, summary,
406 %   conclusions, recommendations, and other pertinent topics that are
407 %   necessary for a complete understanding on the part of a
408 %   sophisticated or professional reader.
409 % \end{quote}
410 %
411 % \DescribeEnv{vita}
412 % Set the thesis vita text (Ph.D.\ only).  See the Manual 3.15 p12,
413 % ``Vita'', for details.
414 %
415 % Highlights from the Manual:
416 % \begin{quote}
417 %   The Vita is a biography of the student written in the third person
418 %   in either essay or outline form.  It should include the full name,
419 %   place and date of birth (optional), country of citizenship
420 %   (optional), institutions attended, degrees and honors received,
421 %   titles of publications, teaching and professional experience, and
422 %   other pertinent data.  The Vita must be one page or less.
423 % \end{quote}
424 %
425 %
426 % \subsection{Hints}
427 %
428 %
429 % \subsubsection{Package installation}
430 % \label{sec:dependencies}
431 %
432 % All the packages this class depends on must be installed somewhere
433 % in your texmf tree (they probably already are).  If not, you will
434 % recieve warning messages on compilation such as
435 % \begin{example}
436 %   ! LaTeX Error: File `missing-package.sty' not found.
437 % \end{example}
438 % You should then install the missing package(s) using your operating
439 % systems package manager, or grab the missing package from
440 % \href{http://www.ctan.org/}{CTAN}, and install them following TODO.
441 %
442 %
443 % \subsubsection{Tables and Figures}
444 %
445 % From the Manual 2.3 p6, ``Tables and Figures'', 
446 % \begin{quote}
447 %   Place figure captions below figures.
448 %   Place table captions above tables.
449 % \end{quote}
450 % so make sure the |\caption| command is in the appropriate location.
451 % For example
452 % \begin{example}
453 %   \begin{table}
454 %      \caption{Some caption text}
455 %      \begin{tabular}{...}
456 %        ...
457 %      \end{tabular}
458 %   \end{table}
459 % \end{example}
460 % or
461 % \begin{example}
462 %   \begin{float}
463 %      \includegraphics{...}
464 %      \caption{Some caption text}
465 %   \end{float}
466 % \end{example}
467 % Note that you'll want to use the
468 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
469 % package to define the |\includegraphics| macro.  For more useful
470 % float information, see the
471 % \href{http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions}{\LaTeX wikibook page}.
472
473 %
474 % \subsubsection{Citations}
475 %
476 % I highly recommend using \BibTeX\ and
477 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}{\pkg{natbib}}.
478 % See Section \ref{sec:natbib-example} for a simple example.
479 %
480 % Suggested options:\\
481 % \begin{tabular}{r p{0.8\textwidth}}
482 %   |super| & selects citations in superscript mode. \\
483 %   |sort&compress| & automatically sorts and compresses compound
484 %     citations (|\pcite{a,b,...}|).
485 % \end{tabular}
486 %
487 %
488 % \subsubsection{References}
489 %
490 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/cleveref/}{\pkg{cleveref}}.
491 % Is a wonderful tool for easy, consistent crosslinking.  The manual is also very good.
492 %
493 %
494 % \subsubsection{Hyperlinks}
495 %
496 % \cls{drexel-thesis} loads
497 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{\pkg{hyperref}}.
498 % with the options:\\
499 % \begin{tabular}{r p{0.8\textwidth}}
500 %   |colorlinks| & color the link letters instead of drawing colored boxes. \\
501 % \end{tabular}
502 %
503 % If running with a pdftex-based driver, |\author|, |\title|, and
504 % |\degree| automatically set |pdfauthor|, |pdftitle|, and
505 % |pdfsubject| respectively.  You can use the |\hypersetup| macro to
506 % set options overriding these defaults.
507 %
508 %
509 % \StopEventually{\pagebreak\PrintChanges}
510 %
511 %
512 % \section{Implementation}
513 % \iffalse meta-comment
514 %<*class>
515 % \fi
516 %
517 % For simplicity, we'll derive everything from the standard \cls{book}
518 % class.
519 %
520 %
521 % \subsection{Option Processing}
522 %
523 % Include
524 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xkeyval/}{\pkg{xkeyval}}
525 % for easier option parsing.  If the package is not installed on your system,
526 % see Section \ref{sec:dependencies} for installation instructions.
527 %    \begin{macrocode}
528 \RequirePackage{xkeyval}
529 %    \end{macrocode}
530 %
531 % Define some booleans to store option states
532 %    \begin{macrocode}
533 \newif\if@mainmatter \@mainmattertrue
534 \newif\if@dottedchapter 
535 \newif\if@boldchapter
536 \newif\if@boldpart
537 \newif\if@dottedpart
538 \newif\if@draftwatermark
539 \newif\if@appendix
540 \newif\if@final \@finalfalse
541 %    \end{macrocode}
542 %
543 % Define some strings to store option arguments
544 %    \begin{macrocode}
545 \newcommand{\@advisor}{ }
546 \newcommand{\def@month}{ }
547 \newcommand{\def@year}{ }
548 \newcommand{\@degree}{ }
549 %    \end{macrocode}
550 % \begin{option}{finalspace}
551 %    \begin{macrocode}
552 \DeclareOptionX{finalspace}{
553   \setlength\overfullrule{0pt}
554   \def\@csp{2} % content page spacing
555   \def\@ssp{1} % single space
556   \def\@dsp{2} % double space
557   \def\@tsp{3} % triple space
558   \@finaltrue
559 }
560 %    \end{macrocode}
561 % \end{option}
562 % \begin{option}{draftspace}
563 %    \begin{macrocode}
564 \DeclareOptionX{draftspace}{
565   \setlength\overfullrule{5pt}
566   \def\@csp{1} % content page spacing
567   \def\@ssp{1} % single space
568   \def\@dsp{1} % double space
569   \def\@tsp{2} % triple space
570   \@finalfalse
571 }
572 %    \end{macrocode}
573 % \end{option}
574 %
575 % \begin{option}{dottedpart}
576 %    \begin{macrocode}
577 \DeclareOptionX{dottedpart}{\@dottedparttrue}
578 %    \end{macrocode}
579 % \end{option}
580 % \begin{option}{dottedchapter}
581 %    \begin{macrocode}
582 \DeclareOptionX{dottedchapter}{\@dottedchaptertrue}
583 %    \end{macrocode}
584 % \end{option}
585 % \begin{option}{boldpart}
586 %    \begin{macrocode}
587 \DeclareOptionX{boldpart}{\@boldparttrue}
588 %    \end{macrocode}
589 % \end{option}
590 % \begin{option}{boldchapter}
591 %    \begin{macrocode}
592 \DeclareOptionX{boldchapter}{\@boldchaptertrue}
593 %    \end{macrocode}
594 % \end{option}
595 % \begin{option}{dottedtoc}
596 %    \begin{macrocode}
597 \DeclareOptionX{dottedtoc}{
598   \setkeys{drexel-thesis.cls}{dottedpart}
599   \setkeys{drexel-thesis.cls}{dottedchapter}
600 }
601 %    \end{macrocode}
602 % \end{option}
603 % \begin{option}{boldtoc}
604 %    \begin{macrocode}
605 \DeclareOptionX{boldtoc}{
606   \setkeys{drexel-thesis.cls}{boldpart}
607   \setkeys{drexel-thesis.cls}{boldchapter}
608 }
609 %    \end{macrocode}
610 % \end{option}
611 %
612 % \begin{option}{draftwatermark}
613 % Set draft watermark flag
614 %    \begin{macrocode}
615 \DeclareOptionX{draftwatermark}{\@draftwatermarktrue}
616 %    \end{macrocode}
617 % \end{option}
618 %
619 % Define the book options that |final| and |draft| need to access.
620 % \begin{option}{oneside}
621 %    \begin{macrocode}
622 \DeclareOptionX{oneside}{\PassOptionsToClass{oneside}{book}}
623 %    \end{macrocode}
624 % \end{option}
625 %
626 % \begin{option}{twoside}
627 %    \begin{macrocode}
628 \DeclareOptionX{twoside}{\PassOptionsToClass{twoside}{book}}
629 %    \end{macrocode}
630 % \end{option}
631 %
632 % \begin{option}{final}
633 %    \begin{macrocode}
634 \DeclareOptionX{final}{
635   \setkeys{drexel-thesis.cls}{oneside}
636   \setkeys{drexel-thesis.cls}{finalspace}
637   \setkeys{drexel-thesis.cls}{dottedtoc}
638 }
639 %    \end{macrocode}
640 % \end{option}
641 %
642 % \begin{option}{draft}
643 %    \begin{macrocode}
644 \DeclareOptionX{draft}{
645   \setkeys{drexel-thesis.cls}{twoside}
646   \setkeys{drexel-thesis.cls}{draftspace}
647   \setkeys{drexel-thesis.cls}{dottedtoc}
648   \setkeys{drexel-thesis.cls}{draftwatermark}
649 }
650 %    \end{macrocode}
651 % \end{option}
652 %
653 % Use the default \cls{book} implementation for any remaining options
654 % including |oneside|, |twoside|, |leqno|, |fleqn|,
655 % \ldots.
656 %    \begin{macrocode}
657 \DeclareOptionX*{\PassOptionsToClass{\CurrentOption}{book}}
658 %    \end{macrocode}
659 %
660 % Execute the default options
661 %    \begin{macrocode}
662 \ExecuteOptionsX{final}
663 %    \end{macrocode}
664 %
665 % Process options and load the book class
666 %    \begin{macrocode}
667 \ProcessOptionsX\relax
668 \LoadClass{book}
669 %    \end{macrocode}
670 %
671 %
672 % \subsection{Internal package includes}
673 %
674 % Include some other packages we'll need.  If the package is not
675 % installed on your system, see Section \ref{sec:dependencies} for
676 % installation instructions.
677 %
678 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/setspace/}{\pkg{setspace}}
679 % for double spacing.
680 %    \begin{macrocode}
681 \RequirePackage{setspace}
682 %    \end{macrocode}
683 %
684 % \href{http://www.ctan.org/tex-archive/macros/latex/required/tools/}{\pkg{calc}}
685 % for |\blanklines| macro.
686 %    \begin{macrocode}
687 \RequirePackage{calc}
688 %    \end{macrocode}
689 %
690 % The Comp.~Sci.\ class used
691 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftcopy/}{\pkg{draftcopy}}
692 % to add their watermarks, but as of the current 2002/02/25 v2.16, it
693 % uses postscript specials, and so doesn't work with pdf\LaTeX.
694 % Instead we use the recent (catalogued 2009/11/03)
695 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftmark/}{\pkg{draftmark}}
696 % which unfortunately has a number of apparently non-standard dependencies
697 % (\href{http://www.ctan.org/tex-archive/macros/latex/contrib/etextools/}{\pkg{etextools}},
698 %  \href{http://www.ctan.org/tex-archive/macros/latex/contrib/etoolbox/}{\pkg{etoolbox}},
699 %  \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xifthen/}{\pkg{xifthen}},
700 %  \href{http://www.ctan.org/tex-archive/macros/latex/contrib/ltxnew/}{\pkg{ltxnew}},
701 %  \href{http://www.ctan.org/tex-archive/macros/latex/contrib/pagerange/}{\pkg{pagerange}},
702 %  \href{http://www.ctan.org/tex-archive/macros/latex/contrib/lastpage/}{\pkg{lastpage}},
703 %  if only I had the space to install |texlive-latexextra| |:p|).
704 % The output is, however, very flexible, and it \emph{does} work with
705 % both \LaTeX and pdf\LaTeX.  If you don't like the default watermark,
706 % you can also adjust the particulars with |\draftmarksetup|.
707 %    \begin{macrocode}
708 \if@draftwatermark
709   \RequirePackage[draft,allpages,mark={DRAFT \today},
710                   fontsize=2cm,grayness=0.9]{draftmark}
711 \fi
712 %    \end{macrocode}
713 %
714 % Setup page margins with the
715 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/geometry/}{\pkg{geometry}}
716 % package.  From the Manual p5:
717 % \begin{itemize}
718 %   \item The left margin must be at least 1 1/2'' (1.5 inches)
719 %   throughout the document.
720 %   \item All other margins (top, bottom, and right) must be at least 1''.
721 % \end{itemize}
722 % And from the Manual 1.5 p4, Print Version:
723 % ``The paper size must be 8 1/2'' x 11''{}''.
724 %    \begin{macrocode}
725 \RequirePackage[letterpaper,margin=1in,bindingoffset=0.5in]{geometry}
726 %    \end{macrocode}
727 % Note that we include the \pkg{geometry} package after loading \cls{book} to
728 % override the margin manipulation that takes place in \cls{book}.
729 %
730 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/}{\pkg{fancyhdr}}
731 % for correct page numbering and fancy headers.
732 %    \begin{macrocode}
733 \RequirePackage{fancyhdr}
734 %    \end{macrocode}
735 % Setup the standard |fancy| format.  |\leftmark| is the higher level
736 % mark, see |\chaptermark| below.  |\rightmark| is the lower level
737 % mark, see |\sectionmark| below.
738 %    \begin{macrocode}
739 \pagestyle{fancy}
740 \fancyhf{}
741 \fancyhead[LE,RO]{\slshape\rightmark}
742 \fancyhead[LO,RE]{\slshape\leftmark}
743 \fancyfoot[LE,RO]{\thepage}
744 %    \end{macrocode}
745 % Override the |plain| format (for chapter pages, etc.).
746 %    \begin{macrocode}
747 \fancypagestyle{plain}{
748   \fancyhf{}
749   \renewcommand{\headrulewidth}{0pt}
750   \fancyfoot[LE,RO]{\thepage}
751 }
752 %    \end{macrocode}
753 %
754 % Setup colon rather than period separated chapter marks, overriding
755 % \cls{book}'s |\chaptermark|.
756 %    \begin{macrocode}
757 \renewcommand\chaptermark[1]{%
758   \markboth {\MakeUppercase{%
759     \ifnum \c@secnumdepth >\m@ne
760       \if@mainmatter
761         \@chapapp\ \thechapter: \ %
762       \fi
763     \fi
764     #1}}{}}
765 %    \begin{macrocode}
766 %
767 % Setup space rather than period separated section marks, overriding
768 % \cls{book}'s |\sectionmark|.
769 %    \begin{macrocode}
770 \renewcommand{\sectionmark}[1]{%
771   \markright {\MakeUppercase{%
772     \ifnum \c@secnumdepth >\z@
773       \thesection \ %
774     \fi
775     #1}}}
776 %    \end{macrocode}
777 %
778 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
779 % for |\includegraphics|.  Not strictly necessary, but I can't imagine
780 % a thesis without figures.
781 %    \begin{macrocode}
782 \RequirePackage{graphicx}
783 %    \end{macrocode}
784 %
785 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{ifpdf}}
786 % for detecting PDF drivers.  We use it to configure \pkg{hyperref} below.
787 %    \begin{macrocode}
788 \RequirePackage{ifpdf}
789 %    \end{macrocode}
790
791 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{\pkg{hyperref}}
792 % for hyperlinks.  Not strictly necessary, but I can't imagine a
793 % thesis without it.
794 %    \begin{macrocode}
795 \RequirePackage{hyperref}
796 %    \end{macrocode}
797 % Nobody likes the default colored boxes.  Color the text itself.
798 %    \begin{macrocode}
799 \hypersetup{colorlinks}
800 %    \end{macrocode}
801 % If we're writing a PDF, we set the |pdfauthor|, etc.\ arguments in
802 % |\author|, etc.\ to avoid using |\AtBeginDocument| or some such.
803 %
804 %
805 % \subsection{Macros}
806 %
807 % \begin{macro}{\author}
808 % Override |latex.ltx|'s |\author| to set \pkg{hyperref}'s |pdfauthor|.
809 %    \begin{macrocode}
810 \renewcommand{\author}[1]{
811   \gdef\@author{#1}
812   \ifpdf \hypersetup{pdfauthor={\@author}} \fi
813 }
814 %    \end{macrocode}
815 % \end{macro}
816 % \begin{macro}{\title}
817 % Override |latex.ltx|'s |\title| to set \pkg{hyperref}'s |pdftitle|.
818 %    \begin{macrocode}
819 \renewcommand{\title}[1]{
820   \gdef\@title{#1}
821   \ifpdf \hypersetup{pdftitle={\@title}} \fi
822 }
823 %    \end{macrocode}
824 % \end{macro}
825 % \begin{macro}{\advisor}
826 %    \begin{macrocode}
827 \newcommand{\advisor}[1]{\renewcommand{\@advisor}{#1}}
828 %    \end{macrocode}
829 % \end{macro}
830 % \begin{macro}{\defmonth}
831 %    \begin{macrocode}
832 \newcommand{\defmonth}[1]{\renewcommand{\def@month}{#1}}
833 %    \end{macrocode}
834 % \end{macro}
835 % \begin{macro}{\defyear}
836 %    \begin{macrocode}
837 \newcommand{\defyear}[1]{\renewcommand{\def@year}{#1}}
838 %    \end{macrocode}
839 % \end{macro}
840 % \begin{macro}{\degree}
841 %    \begin{macrocode}
842 \newcommand{\degree}[1]{
843   \renewcommand{\@degree}{#1}
844   \ifpdf \hypersetup{pdfsubject={\@degree}} \fi
845 }
846 %    \hypersetup{pdfauthor={\@author}}
847 %    \hypersetup{pdftitle={\@title}}
848 %    \hypersetup{pdfstartview=FitH}
849 %  }
850 %    \end{macrocode}
851 % \end{macro}
852 %
853 % Set the official names of the various sections encountered
854 % \begin{macro}{\dedicationsname}
855 % From the Manual 3.3 p9, ``The heading |Dedications| must appear at
856 % the top of the page.''
857 %    \begin{macrocode}
858 \newcommand\dedicationsname{Dedications}
859 %    \end{macrocode}
860 % \end{macro}
861 % \begin{macro}{\acknowledgmentsname}
862 % From the Manual 3.4 p9, ``The heading |Acknowledgments| must appear
863 % at the top of the page.''
864 %    \begin{macrocode}
865 \newcommand\acknowledgmentsname{Acknowledgments}
866 %    \end{macrocode}
867 % \end{macro}
868 % \begin{macro}{\contentsname}
869 % From the Manual 3.5 p9, ``The heading |Table of Contents| must
870 % appear at the top of the page.''  Override \cls{book}'s definition.
871 %    \begin{macrocode}
872 \renewcommand\contentsname{Table of Contents}
873 %    \end{macrocode}
874 % \end{macro}
875 % \begin{macro}{\listtablename}
876 % From the Manual 3.6 p10, ``The heading |List of Tables| must appear
877 % at the top of the page.''
878 % Override \cls{book}'s definition.
879 %    \begin{macrocode}
880 \renewcommand\listtablename{List of Tables}
881 %    \end{macrocode}
882 % \end{macro}
883 % \begin{macro}{\listfigurename}
884 % From the Manual 3.7 p10, ``The heading |List of Figures| must appear
885 % at the top of the page.''
886 % Override \cls{book}'s definition.
887 %    \begin{macrocode}
888 \renewcommand\listfigurename{List of Figures}
889 %    \end{macrocode}
890 % \end{macro}
891 % \begin{macro}{\abstractname}
892 % From the Manual 3.8 p10, ``The following heading must be centered at
893 % the top of the first page: |Abstract|\ldots''
894 %    \begin{macrocode}
895 \newcommand\abstractname{Abstract}
896 %    \end{macrocode}
897 % \end{macro}
898 % \begin{macro}{\bibname}
899 % From the Manual 3.13 p12, ``The heading |Bibliography| (or
900 % |List of References|) must appear at the top of first page.''
901 % Override \cls{book}'s definition.
902 %    \begin{macrocode}
903 \renewcommand\bibname{Bibliography}
904 %    \end{macrocode}
905 % \end{macro}
906 % \begin{macro}{\appendixname}
907 % From the Manual 3.14 p12, ``Number the appendicies consecutively
908 % either alphabetically or numerically (|Appendix A|, |Appendix B|\ldots
909 % or |Appendix 1|, |Appendix 2|\ldots).''
910 % Override \cls{book}'s definition.
911 %    \begin{macrocode}
912 \renewcommand\appendixname{Appendix}
913 %    \end{macrocode}
914 % \end{macro}
915 % \begin{macro}{\vitaname}
916 % From the Manual 3.15 p13, ``The heading |Vita| must appear at the
917 % top of the page.''
918 %    \begin{macrocode}
919 \newcommand\vitaname{Vita}
920 %    \end{macrocode}
921 % \end{macro}
922 %
923 % \begin{macro}{\blankpage}
924 % Insert a blank page without numbering (except in draft mode).
925 %    \begin{macrocode}
926 \newcommand\blankpage{%
927   \if@final
928     \clearpage
929     \thispagestyle{empty}
930     \hphantom{0}
931     \clearpage
932   \else\fi
933 }
934 %    \end{macrocode}
935 % \end{macro}
936 %
937 % \begin{macro}{\blanklines}
938 % Insert number of blank lines, protecting against external |spacing|
939 % environments.  Requires \pkg{calc} for the multiplication.
940 %    \begin{macrocode}
941 \newlength\blanklines@length
942 \newcommand{\blanklines}[1]{%
943   \begin{spacing}{1}
944     \setlength{\blanklines@length}{\baselineskip * {#1}}
945     \vspace{\blanklines@length}
946   \end{spacing}
947 }
948 %    \end{macrocode}
949 % \end{macro}
950 %
951 % \begin{macro}{\maketitle}
952 % Automate the creation of the title page.
953 % From Manual 3.1 p8, ``Title Page'', and the example on p16.
954 % \begin{itemize}
955 %   \item This page is counted but not numbered (it counts as page i,
956 %   but should not have a page number).  TODO: How is this implemented?
957 % \end{itemize}
958 % Override \cls{book}'s definition.
959 %    \begin{macrocode}
960 \renewcommand\maketitle{
961   \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
962   \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
963   \long\def\@makefntext##1{\parindent 1em\noindent
964        \hb@xt@1.8em{%
965        \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
966   \begin{titlepage}%
967     \ifpdf
968       \pdfbookmark[-1]{Frontmatter}{frontmatter}
969       \pdfbookmark[0]{Title Page}{title}
970     \fi
971     \vspace*{\fill}
972     \begin{center}%
973     \begin{spacing}{\@tsp}
974       {\bf \@title \par}%
975     \end{spacing}
976     \begin{spacing}{\@dsp}
977       A Thesis\\
978       Submitted to the Faculty\\
979       of\\
980       Drexel University\\
981       by\\
982       \@author \\
983       in partial fulfillment of the\\
984       requirements for the degree\\
985       of\\
986       \@degree\\
987       \def@month\ \def@year
988     \end{spacing}
989     \end{center}\par
990     \vspace*{\fill}
991   \end{titlepage}%
992   \setcounter{footnote}{0}%
993   \global\let\maketitle\relax
994   \global\let\and\relax
995 }
996 %    \end{macrocode}
997 % \end{macro}
998 %
999 % \begin{macro}{\m@kecopyright}
1000 % Automate the creation of the copyright page.
1001 % From Manual 3.2 p9, ``Copyright Page''.
1002 % \begin{itemize}
1003 %   \item Include a copyright page with the following information: a
1004 %   copyright notice, full legal name of author, and date of
1005 %   publication on file.
1006 %   \item This page is neither counted nor numbered.
1007 % \end{itemize}
1008 %    \begin{macrocode}
1009 \newcommand\m@kecopyright[1]{%
1010   \clearpage
1011   \ifpdf \pdfbookmark[0]{Copyright Page}{copyright} \fi
1012   \vspace*{\fill}
1013   \begin{center}
1014     \copyright~Copyright \def@year\\
1015     \@author.  #1
1016   \end{center}
1017   \vspace*{\fill}
1018 %    \end{macrocode}
1019 % |\thispagestyle{empty}| turns off page numbering for the current
1020 % page.  See
1021 % \href{http://www.personal.ceu.hu/tex/pagestyl.htm#pgstyle}{here}.
1022 %    \begin{macrocode}
1023   \thispagestyle{empty}
1024 }
1025 %    \end{macrocode}
1026 % \end{macro}
1027 %
1028 % \begin{macro}{\makecopyright}
1029 %    \begin{macrocode}
1030 \newcommand\makecopyright{%
1031   \m@kecopyright{All Rights Reserved.}
1032 }
1033 %    \end{macrocode}
1034 % \end{macro}
1035 %
1036 % \begin{macro}{\makecopyrightCC}
1037 %    \begin{macrocode}
1038 \newcommand\makecopyrightCC{
1039   \m@kecopyright{
1040     \begin{quote}
1041       This work is licensed under the terms of the Creative Commons
1042       Attribution-ShareAlike license.  The license is available at \\
1043       \url{http://creativecommons.org/licenses/by-sa/2.0/}.
1044     \end{quote}
1045   }
1046 }
1047 %    \end{macrocode}
1048 % \end{macro}
1049 %
1050 % \begin{macro}{\tableofcontents}
1051 % Automate the creation of the table of contents.
1052 % From Manual 3.5 p9, ``Table of Contents'', and the example on p17.
1053 % \begin{itemize}
1054 %   \item Do not list any sections that precede the
1055 %   |Table of Contents| (e.g.\ |Dedications|, |Acknowledgments|).  Do
1056 %   not list the |Table of Contents| itself.
1057 %   \item These pages are counted and numbered in lowercase Roman numerals.
1058 % \end{itemize}
1059 % Override \cls{book}'s definition.
1060 %    \begin{macrocode}
1061 \renewcommand\tableofcontents{%
1062   \clearpage
1063   \ifpdf
1064     \phantomsection
1065     \pdfbookmark[0]{\contentsname}{tableofcontents}
1066   \fi
1067   \chapter*{\contentsname}
1068   \@mkboth{\MakeUppercase\contentsname}%
1069           {\MakeUppercase\contentsname}%
1070   \@starttoc{toc}%
1071 }
1072 %    \end{macrocode}
1073 % \end{macro}
1074 %
1075 %
1076 % \subsection{Environments}
1077 %
1078 % \begin{environment}{preamble}
1079 %    \begin{macrocode}
1080 \newenvironment{preamble}{%
1081   \cleardoublepage
1082   \@mainmatterfalse
1083   \pagenumbering{roman}
1084 %    \end{macrocode}
1085 % From Manual 3.1 p8, ``Title Page''.
1086 %    \begin{macrocode}
1087   \maketitle
1088 %    \end{macrocode}
1089 % From Manual 3.2 p9, ``Copyright Page''.
1090 %    \begin{macrocode}
1091   \makecopyright
1092 }{%
1093 %    \end{macrocode}
1094 % From the Manual 3.9, p11:
1095 % \begin{quote}
1096 %   Include a blank page (with no page number) before the first page
1097 %   of text.  The blank page is neither numbered nor counted.
1098 % \end{quote}
1099 %    \begin{macrocode}
1100   \blankpage
1101 }
1102 %    \end{macrocode}
1103 % \end{environment}
1104 %
1105 % \begin{environment}{dedications}
1106 % From the Manual 3.3 p9
1107 % \begin{itemize}
1108 %   \item The heading |Dedications| must appear at the top of the
1109 %   page.  The heading must be bold, centered, and without
1110 %   punctuation.
1111 %   \item This page is counted and numbered in lowercase Roman numerals.
1112 % \end{itemize}
1113 %    \begin{macrocode}
1114 \newenvironment{dedications}{%
1115   \clearpage
1116   \ifpdf
1117     \phantomsection
1118     \pdfbookmark[0]{\dedicationsname}{dedications}
1119   \fi
1120   \chapter*{\dedicationsname}
1121   \begin{spacing}{\@dsp}
1122 }{%
1123   \end{spacing}
1124 }
1125 %    \end{macrocode}
1126 % \end{environment}
1127 %
1128 % \begin{environment}{acknowledgments}
1129 % From the Manual 3.4 p9
1130 % \begin{itemize}
1131 %   \item The heading |Acknowledgments| must appear at the top of the
1132 %   page.  The heading must be bold, centered, and without
1133 %   punctuation.
1134 %   \item This page is counted and numbered in lowercase Roman numerals.
1135 % \end{itemize}
1136 %    \begin{macrocode}
1137 \newenvironment{acknowledgments}{%
1138   \clearpage
1139   \ifpdf
1140     \phantomsection
1141     \pdfbookmark[0]{\acknowledgmentsname}{acknowledgments}
1142   \fi
1143   \chapter*{\acknowledgmentsname}
1144   \begin{spacing}{\@dsp}
1145 }{%
1146   \end{spacing}
1147 }
1148 %    \end{macrocode}
1149 % \end{environment}
1150 %
1151 % \begin{environment}{abstract}
1152 %    \begin{macrocode}
1153 \newenvironment{abstract}{%
1154   \clearpage
1155   \thispagestyle{plain}%
1156   \global\@topnum\z@
1157   \phantomsection
1158   \addcontentsline{toc}{chapter}{\abstractname}
1159   \vspace*{50\p@}%
1160 %    \end{macrocode}
1161 % From the Manual 3.9 p10 ``The following heading must be centered at
1162 % the top of the page'':
1163 % \begin{center}
1164 %   Abstract \\
1165 %   Full Title of Dissertation or Thesis \\
1166 %   Author's Name as it appears on the Dissertation or Thesis
1167 % \end{center}
1168 % In the example on p20, they list the advisor's name after the
1169 % author, but that is not specified in the text on p10.
1170 %
1171 % On p20, ``These pages are numbered using lowercase Roman numerals.
1172 % Note that the heading is single spaced, but the abstract is double
1173 % spaced.''
1174 %    \begin{macrocode}
1175   \begin{spacing}{\@ssp}
1176     \begin{center}
1177       {\large \bfseries \abstractname \par}
1178 %%      \@endparpenalty\@M
1179       \@title\\
1180       \@author\\
1181       \@advisor\\
1182     \end{center}
1183   \end{spacing}
1184   \blanklines{2}
1185   \begin{spacing}{\@dsp}
1186   \@nobreaktrue
1187   \@afterindentfalse
1188   \@afterheading
1189 }{%
1190   \end{spacing}
1191 }
1192 %    \end{macrocode}
1193 % \end{environment}
1194 %
1195 % \begin{environment}{thesis}
1196 % From the Manual 3.10 p11
1197 % \begin{itemize}
1198 %   \item The pages are counted and numbered in Arabic numerals.
1199 % \end{itemize}
1200 %    \begin{macrocode}
1201 \newenvironment{thesis}{%
1202   \mainmatter
1203   \begin{spacing}{\@dsp}
1204 }{%
1205   \end{spacing}
1206   \clearpage
1207   \ifpdf
1208     \phantomsection
1209     \pdfbookmark[-1]{Backmatter}{backmatter}
1210   \fi
1211 }
1212 %    \end{macrocode}
1213 % \end{environment}
1214 %
1215 % \begin{environment}{vita}
1216 % From the Manual 3.15 p13
1217 % \begin{itemize}
1218 %   \item The heading |Vita| must appear at the top of the page.  The
1219 %   heading must be bold, centered, and without punctuation.
1220 %   \item The Vita text should begin four spaces below the heading.
1221 %   \item List the Vita separately in the Table of Contents.
1222 %   \item The page is counted and numbered in Arabic numerals.
1223 % \end{itemize}
1224 %    \begin{macrocode}
1225 \newenvironment{vita}{%
1226   \clearpage
1227   \phantomsection
1228   \addcontentsline{toc}{chapter}{\vitaname}
1229   \chapter*{\vitaname}
1230   \blanklines{1}
1231   \begin{spacing}{\@dsp}
1232 }{%
1233   \end{spacing}
1234 }
1235 %    \end{macrocode}
1236 % \end{environment}
1237 %
1238 %
1239 % \subsection{Adjust from the \LaTeX/\cls{book} defaults}
1240 %
1241 %
1242 % |\intextsep| sets the space left on top and bottom of an in-text
1243 % float (see
1244 % \href{http://www.eng.cam.ac.uk/help/tpl/textprocessing/squeeze.html}{here}).
1245 %    \begin{macrocode}
1246 \setlength\intextsep{30pt}
1247 %    \end{macrocode}
1248 %
1249 %
1250 % \subsubsection{Part and chapter headings}
1251 %
1252 % Override \cls{book}'s |\makechapterhead|.
1253 % From the Manual 3.11 p11.
1254 % \begin{quote}
1255 %   Chapter headings must be bold and centered.
1256 %   The chapter number and title must be on the same line, separated
1257 %   by a colon or period, as shown in the example below:
1258 %   \begin{center}
1259 %     CHAPTER 1: INTRODUCTION
1260 %   \end{center}
1261 %   Headings must not be larger than 12 points.
1262 %   Headings must be single spaced.
1263 % \end{quote}
1264 %    \begin{macrocode}
1265 \def\@makechapterhead#1{%
1266   \vspace*{50\p@}%
1267 %    \end{macrocode}
1268 % Replaced |\normalfont| with |\reset@font| (TODO: why?).
1269 %    \begin{macrocode}
1270   {\parindent \z@ \raggedright \reset@font
1271     \ifnum \c@secnumdepth >\m@ne
1272 %    \end{macrocode}
1273 % Removed |\if@mainmatter| conditional guarding this indented section
1274 % (TODO: why?).
1275 %    \begin{macrocode}
1276         \par\nobreak
1277         \vskip 20\p@
1278     \fi
1279     \interlinepenalty\@M
1280 %    \end{macrocode}
1281 % Ensure single spacing, and ensure the chapter heading will have a
1282 % centered, |\large|, bold \emph{Chapter \#: Title} or \emph{Appendix
1283 % \#: Title} format (as opposed to \cls{book}'s unaligned, |\Huge|,
1284 % bold \emph{Title}).
1285 %    \begin{macrocode}
1286     \begin{spacing}{\@ssp}
1287     \center \large \bfseries \@chapapp{} \thechapter: #1\par\nobreak
1288     \blanklines{2}
1289     \end{spacing}
1290   }
1291 }
1292 %    \end{macrocode}
1293 %
1294 % Override \cls{book}'s |\@makeschapterhead|.  TODO: Why?
1295 %    \begin{macrocode}
1296 \def\@makeschapterhead#1{%
1297   \vspace*{50\p@}%
1298    {\parindent \z@ \raggedright
1299 %    \end{macrocode}
1300 % Replaced |\normalfont| with |\reset@font| (TODO: why?).
1301 %    \begin{macrocode}
1302     \reset@font
1303     \interlinepenalty\@M
1304 %    \end{macrocode}
1305 % Ensure single spacing.
1306 %    \begin{macrocode}
1307     \begin{spacing}{\@ssp}
1308 %    \end{macrocode}
1309 % Replaced |\Huge| with |\center \large|
1310 %    \begin{macrocode}
1311     \center \large \bfseries  #1\par\nobreak
1312 %    \end{macrocode}
1313 % Replaced |\vskip 40\p@| with |\blanklines{2}|
1314 %    \begin{macrocode}
1315     \blanklines{2}
1316     \end{spacing}
1317   }
1318 }
1319 %    \end{macrocode}
1320 %
1321 % Override \cls{book}'s |\section|, replacing |\Large| with |\large|.
1322 %    \begin{macrocode}
1323 \renewcommand\section{\@startsection {section}{1}{\z@}%
1324                                      {-3.5ex \@plus -1ex \@minus -.2ex}%
1325                                      {2.3ex \@plus.2ex}%
1326                                      {\normalfont\large\bfseries}}
1327 %    \end{macrocode}
1328 %
1329 % Fix |\@ssect| and |\@sect| from |latex.ltx| to give single spaced
1330 % headings.  These macros are defined in |ltsect.dtx|
1331 % (\href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{\LaTeX\ base}})),
1332 % but the documentation there is not great.
1333 % \begin{command}
1334 %    `\cs{@ssect}\bracearg{INDENT}\bracearg{BEFORESKIP}\bracearg{AFTERSKIP}'
1335 %    `~~\bracearg{STYLE}\bracearg{ARG}'
1336 %    `\cs{@sect}\bracearg{NAME}\bracearg{LEVEL}\bracearg{INDENT}\bracearg{BEFORESKIP}'
1337 %    `~~\bracearg{AFTERSKIP}\bracearg{STYLE}\brackarg{ARG1}\bracearg{ARG2}'
1338 % \end{command}
1339 % By comparison to \cls{book}'s |\@part| and |\@spart| (see below), I
1340 % imagine they have something to do with formatting section names.
1341 %    \begin{macrocode}
1342 \def\@ssect#1#2#3#4#5{%
1343   \@tempskipa #3\relax
1344   \ifdim \@tempskipa>\z@
1345     \begingroup
1346     \begin{spacing}{\@ssp}
1347       #4{%
1348         \@hangfrom{\hskip #1}%
1349           \interlinepenalty \@M #5\@@par}%
1350     \endgroup
1351     \end{spacing}
1352   \else
1353     \def\@svsechd{#4{\hskip #1\relax #5}}%
1354   \fi
1355   \@xsect{#3}}
1356 %    \end{macrocode}
1357 % Now for |\@sect|.
1358 %    \begin{macrocode}
1359 \def\@sect#1#2#3#4#5#6[#7]#8{%
1360   \ifnum #2>\c@secnumdepth
1361     \let\@svsec\@empty
1362   \else
1363     \refstepcounter{#1}%
1364     \protected@edef\@svsec{\@seccntformat{#1}\relax}%
1365   \fi
1366   \@tempskipa #5\relax
1367   \ifdim \@tempskipa>\z@
1368     \begingroup
1369     \begin{spacing}{\@ssp}
1370       #6{%
1371         \@hangfrom{\hskip #3\relax\@svsec}%
1372           \interlinepenalty \@M #8\@@par}%
1373     \end{spacing}
1374     \endgroup
1375     \csname #1mark\endcsname{#7}%
1376     \addcontentsline{toc}{#1}{%
1377       \ifnum #2>\c@secnumdepth \else
1378         \protect\numberline{\csname the#1\endcsname}%
1379       \fi
1380       #7}%
1381   \else
1382     \def\@svsechd{%
1383       #6{\hskip #3\relax
1384       \@svsec #8}%
1385       \csname #1mark\endcsname{#7}%
1386       \addcontentsline{toc}{#1}{%
1387         \ifnum #2>\c@secnumdepth \else
1388           \protect\numberline{\csname the#1\endcsname}%
1389         \fi
1390         #7}}%
1391   \fi
1392   \@xsect{#5}}
1393 %    \end{macrocode}
1394 %
1395 % Override \cls{book}'s |\@part| and |\@spart|, replacing |\Huge| with
1396 % |\large|.  From |classes.dtx|, |\@part| formats the title of the part,
1397 % and |\@spart| formats the title of a starred part.
1398 %    \begin{macrocode}
1399 \def\@part[#1]#2{%
1400     \ifnum \c@secnumdepth >-2\relax
1401       \refstepcounter{part}%
1402       \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
1403     \else
1404       \addcontentsline{toc}{part}{#1}%
1405     \fi
1406     \markboth{}{}%
1407     {\centering
1408      \interlinepenalty \@M
1409      \normalfont
1410      \ifnum \c@secnumdepth >-2\relax
1411        \large\bfseries \partname\nobreakspace\thepart
1412        \par
1413        \vskip 20\p@
1414      \fi
1415      \large \bfseries #2\par}%
1416     \@endpart}
1417 \def\@spart#1{%
1418     {\centering
1419      \interlinepenalty \@M
1420      \normalfont
1421      \large \bfseries #1\par}%
1422     \@endpart}
1423 %    \end{macrocode}
1424 %
1425 %
1426 % \subsubsection{Adding TOC entries and blank pages}
1427 %
1428 % Override \cls{book}'s |\listoftables|, selecting the false branch
1429 % of the |\if@twocolumn| conditionals, adding a line to the table of
1430 % contents, and clearing the page.
1431 % From the Manual 3.6 p10
1432 % \begin{quote}
1433 %   The heading |List of Tables| must appear at the top of the first
1434 %   page.
1435 %   The heading must be bold, centered, and without punctuation.
1436 %   List table captions exactly as they appear above the tables in
1437 %   the text.
1438 %   Single space each entry, but double-space between entries.
1439 %   Separate table captions from page numbers with right-justified
1440 %   tabs and dot leaders.
1441 %   Do not use periods to separate captions and page numbers.
1442 %   These pages are counted and numbered in lowercase Roman numerals.
1443 % \end{quote}
1444 %    \begin{macrocode}
1445 \renewcommand\listoftables{%
1446   \clearpage
1447   \phantomsection
1448   \addcontentsline{toc}{chapter}{\listtablename}
1449   \chapter*{\listtablename}%
1450   \@mkboth{\MakeUppercase\listtablename}%
1451           {\MakeUppercase\listtablename}%
1452   \@starttoc{lot}%
1453 }
1454 %    \end{macrocode}
1455 %
1456 % Override \cls{book}'s |\listoffigures|, selecting the false branch
1457 % of the |\if@twocolumn| conditionals, adding a line to the table of
1458 % contents, and clearing the page.
1459 % From the Manual 3.7 p10
1460 % \begin{quote}
1461 %   The heading |List of Figures| must appear at the top of the first
1462 %   page.
1463 %   The heading must be bold, centered, and without punctuation.
1464 %   List figure captions exactly as they appear below the figures in
1465 %   the text.
1466 %   Single space each entry, but double-space between entries.
1467 %   Separate figure captions from page numbers with right-justified
1468 %   tabs and dot leaders.
1469 %   Do not use periods to separate captions and page numbers.
1470 %   These pages are counted and numbered in lowercase Roman numerals.
1471 % \end{quote}
1472 %    \begin{macrocode}
1473 \renewcommand\listoffigures{%
1474   \clearpage
1475   \phantomsection
1476   \addcontentsline{toc}{chapter}{\listfigurename}
1477   \chapter*{\listfigurename}%
1478   \@mkboth{\MakeUppercase\listfigurename}%
1479           {\MakeUppercase\listfigurename}%
1480   \@starttoc{lof}%
1481 }
1482 %    \end{macrocode}
1483 %
1484 % Override |latex.ltx|'s |\bibliography|, adding a line to the table
1485 % of contents.
1486 %    \begin{macrocode}
1487 \def\bibliography#1{%
1488   \addcontentsline{toc}{chapter}{\bibname}
1489   \if@filesw
1490     \immediate\write\@auxout{\string\bibdata{#1}}%
1491   \fi
1492   \@input@{\jobname.bbl}
1493 }
1494 %    \end{macrocode}
1495 %
1496 % Add a terminal blank page (when |\if@final| is true)
1497 % From the Manual 3.16 p13
1498 % \begin{quote}
1499 %   Include a blank page (with no page number) at the end of the
1500 %   thesis or dissertation.  The blank page is neither counted nor
1501 %   numbered.
1502 % \end{quote}
1503 %    \begin{macrocode}
1504 \AtEndDocument{\blankpage}
1505 %    \end{macrocode}
1506 %
1507 %
1508 % \subsubsection{Captioning}
1509 %
1510 % These are to get spacing right after table captions and make the
1511 % spacing around floats symmetrical.  First, set |\if@table| in the
1512 % |table| environments.
1513 %    \begin{macrocode}
1514 \newif\if@table \@tablefalse
1515 \renewenvironment{table}
1516                  {\@tabletrue\@float{table}}
1517                  {\end@float\@tablefalse}
1518 \renewenvironment{table*}
1519                  {\@tabletrue\@dblfloat{table}}
1520                  {\end@dblfloat\@tablefalse}
1521 %    \end{macrocode}
1522 % Now override \cls{book}'s |\@makecaption|, adding two |\if@table|
1523 % conditionals, which swap |\abovecaptionskip| and |\belowcaptionskip|
1524 % for tables (where the caption is above the float body).  With our
1525 % implementation, |\belowcaptionskip| \emph{always} gives the distance
1526 % between the caption and the text, and |\abovecaptionskip|
1527 % \emph{always} gives the distance between the caption and the float
1528 % body.
1529 %
1530 % We also replace the caption lead-in |#1: #2| with
1531 % |\small{\bfseries#1:} #2|.
1532 %    \begin{macrocode}
1533 \newlength\@tempcapskip
1534 \long\def\@makecaption#1#2{%
1535   \if@table
1536     \@tempcapskip\abovecaptionskip
1537     \abovecaptionskip\belowcaptionskip
1538     \belowcaptionskip\@tempcapskip
1539   \fi
1540   \vskip\abovecaptionskip
1541   \sbox\@tempboxa{\small{\bfseries#1:} #2}%
1542   \ifdim \wd\@tempboxa >\hsize
1543     {\small{\bfseries#1:} #2\par}
1544   \else
1545     \global \@minipagefalse
1546     \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
1547   \fi
1548   \vskip\belowcaptionskip
1549   \if@table
1550     \@tempcapskip\belowcaptionskip
1551     \belowcaptionskip\abovecaptionskip
1552     \abovecaptionskip\@tempcapskip
1553   \fi
1554 }
1555 %    \end{macrocode}
1556 %
1557
1558 % \subsubsection{Adjust table of contents}
1559 %
1560 % From the \LaTeX\ base class documentation (|classes.dtx| in
1561 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{\LaTeX\ base}})
1562 % \begin{quote}
1563 %    The command |\contentsline{|\meta{name}|}| expands to
1564 %    |\l@|\meta{name}.  So, to specify the table of contents, we must
1565 %    define |\l@chapter|, \ldots
1566 % \end{quote}
1567 %
1568 % Override \cls{book}'s |\l@chapter| for printing TOC entries, adding
1569 % |spacing| environments to ensure single spacing, only using bold if
1570 % |\if@boldchapter| is true, handling |\if@dottedchapter|.
1571 %    \begin{macrocode}
1572 \renewcommand*\l@chapter[2]{%
1573   \begin{spacing}{\@ssp}
1574     \ifnum \c@tocdepth >\m@ne
1575       \addpenalty{-\@highpenalty}%
1576 %    \end{macrocode}
1577 % Don't handle spacing here; use the spacing environment at the end of
1578 % the macro.
1579 %    \begin{macrocode}
1580 %      \vskip 1.0em \@plus\p@
1581       \setlength\@tempdima{1.5em}%
1582       \begingroup
1583         \parindent \z@ \rightskip \@pnumwidth
1584         \parfillskip -\@pnumwidth
1585         \leavevmode 
1586         \if@boldchapter
1587           \bfseries
1588         \fi
1589         \advance\leftskip\@tempdima
1590         \hskip -\leftskip
1591 %    \end{macrocode}
1592 % Insert |\if@dottedchapter| block into |#1\nobreak\hfil \nobreak...|.
1593 %    \begin{macrocode}
1594         #1\nobreak
1595         \if@dottedchapter
1596           \leaders\hbox{$\m@th
1597             \mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}
1598           \else\fi
1599 %    \end{macrocode}
1600 % Insert |\if@dottedchapter| block into |#1\nobreak\hfil \nobreak...|.
1601 %    \begin{macrocode}
1602         \hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
1603         \penalty\@highpenalty
1604 %    \end{macrocode}
1605 % Add a content-page-spacing blank after this entry.
1606 %    \begin{macrocode}
1607         \begin{spacing}{\@csp}\par\end{spacing}
1608       \endgroup
1609     \fi
1610   \end{spacing}
1611 }
1612 %    \end{macrocode}
1613 %
1614 % Add |\l@appendix|, identical to our |\l@chapter|, except for
1615 % setting |\@tempdima| to 6.5em rather than 1.5em.  TODO: Why?
1616 % TODO: Consolidate to \l@chapapp[3] calls.
1617 %    \begin{macrocode}
1618 \newcommand*\l@appendix[2]{%
1619   \begin{spacing}{\@ssp}
1620     \ifnum \c@tocdepth >\m@ne
1621       \addpenalty{-\@highpenalty}%
1622 %      \vskip 1.0em \@plus\p@
1623       \setlength\@tempdima{6.5em}%
1624       \begingroup
1625         \parindent \z@ \rightskip \@pnumwidth
1626         \parfillskip -\@pnumwidth
1627         \leavevmode 
1628         \if@boldchapter
1629           \bfseries
1630         \fi
1631         \advance\leftskip\@tempdima
1632         \hskip -\leftskip
1633         #1\nobreak
1634         \if@dottedchapter
1635           \leaders\hbox{$\m@th
1636             \mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}
1637           \else\fi
1638         \hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
1639         \penalty\@highpenalty
1640         \begin{spacing}{\@csp}\par\end{spacing}
1641       \endgroup
1642     \fi
1643   \end{spacing}
1644 }
1645 %    \end{macrocode}
1646 %
1647 % Add |\l@part|, identical to our |\l@chapter|, except for
1648 % setting |\@tempdima| to 6.5em rather than 1.5em.  TODO: Why?
1649 % TODO: Consolidate to \l@chapapp[3] calls.
1650 %    \begin{macrocode}
1651 \renewcommand*\l@part[2]{%
1652   \begin{spacing}{\@ssp}
1653     \ifnum \c@tocdepth >-2\relax
1654       \addpenalty{-\@highpenalty}%
1655 %    \end{macrocode}
1656 % Don't handle spacing here; use the spacing environment at the end of
1657 % the macro.
1658 %    \begin{macrocode}
1659 %    \addvspace{2.25em \@plus\p@}%
1660       \setlength\@tempdima{3em}%
1661       \begingroup
1662         \parindent \z@ \rightskip \@pnumwidth
1663         \parfillskip -\@pnumwidth
1664         {\leavevmode
1665 %    \end{macrocode}
1666 % Replace |\large \bfseries| with |\if@boldpart...|, so the parts are
1667 % the same size as the other entries, and bolding obeys |if@boldpart|.
1668 %    \begin{macrocode}
1669          \if@boldpart
1670            \bfseries
1671          \fi
1672          #1
1673 %    \end{macrocode}
1674 % Insert |\if@dottedpart| between |#1| and |\hfil|.
1675 %    \begin{macrocode}
1676          \if@dottedpart
1677            \leaders\hbox{$\m@th
1678              \mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}
1679          \fi
1680          \hfil \hb@xt@\@pnumwidth{\hss #2}}\par
1681          \nobreak
1682            \global\@nobreaktrue
1683            \everypar{\global\@nobreakfalse\everypar{}}%
1684 %    \end{macrocode}
1685 % Add a content-page-spacing blank after this entry.
1686 %    \begin{macrocode}
1687            \begin{spacing}{\@csp}\par\end{spacing}
1688       \endgroup
1689     \fi
1690   \end{spacing}
1691 }
1692 %    \end{macrocode}
1693 %
1694 % Override |latex.ltx|'s |\dottedtocline|, adding some |spacing|
1695 % environments.  TODO: reasoning.
1696 %    \begin{macrocode}
1697 \def\@dottedtocline#1#2#3#4#5{%
1698   \begin{spacing}{\@ssp}
1699   \ifnum #1>\c@tocdepth \else
1700     \vskip \z@ \@plus.2\p@
1701     {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
1702      \parindent #2\relax\@afterindenttrue
1703      \interlinepenalty\@M
1704      \leavevmode
1705      \@tempdima #3\relax
1706      \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
1707      {#4}\nobreak
1708      \leaders\hbox{$\m@th
1709         \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
1710         mu$}\hfill
1711      \nobreak
1712      \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}%
1713      \par\begin{spacing}{\@csp}\par\end{spacing}}%
1714   \fi
1715   \end{spacing}
1716 }
1717 %    \end{macrocode}
1718 %
1719 % Override \cls{book}'s (or \pkg{hyperref}'s) |\appendix|, adding
1720 % |\@appendixtrue|.  This gets |\if@appendix| working in our
1721 % |\chapter| definition below.
1722 %    \begin{macrocode}
1723 \let\DUT@appendix\appendix
1724 \renewcommand\appendix{%
1725   \@appendixtrue%
1726   \DUT@appendix
1727 }
1728 %    \end{macrocode}
1729 %
1730 % Override \cls{book}'s |\chapter|, selecting the false branch of the
1731 % |\if@twocolumn| conditional and adding an |\if@appendix|
1732 % conditional.  After |\appendix| (when |\if@mainmatter| and
1733 % |\if@appendix| are both true), we generate table of content entries
1734 % such as \emph{Appendix A: Chapter Title} rather than the standard
1735 % \emph{Chapter Title}.  |\thechapter| (defined in \cls{book}) is the
1736 % appendix letter (e.g.\ |A|).  |\@chapapp{}| (also defined in
1737 % \cls{book}) Was redefined in |\appendix| (above) as |\appendixname|.
1738 % Before |\appendix|, we reproduce the \cls{book} behavior.
1739 %    \begin{macrocode}
1740 \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
1741                        \if@mainmatter
1742                          \refstepcounter{chapter}%
1743                          \typeout{\@chapapp\space\thechapter.}%
1744                          \if@appendix
1745                            \addcontentsline{toc}{appendix}%
1746                                      {\protect\numberline{\@chapapp{} \thechapter:}#1}%
1747                          \else
1748                            \addcontentsline{toc}{chapter}%
1749                                      {\protect\numberline{\thechapter}#1}%
1750                          \fi
1751                        \else
1752                          \addcontentsline{toc}{chapter}{#1}%
1753                        \fi
1754                     \else
1755                       \addcontentsline{toc}{chapter}{#1}%
1756                     \fi
1757                     \chaptermark{#1}%
1758                     \addtocontents{lof}{\protect\addvspace{10\p@}}%
1759                     \addtocontents{lot}{\protect\addvspace{10\p@}}%
1760                     \@makechapterhead{#2}%
1761                     \@afterheading}
1762 %    \end{macrocode}
1763 %
1764 %
1765 % \iffalse meta-comment
1766 %</class>
1767 % \fi
1768 %
1769 %
1770 % \section{Templates}
1771 %
1772 % \subsection{Simple}
1773 %
1774 % \subsubsection{Main}
1775 %
1776 % \iffalse meta-comment
1777 %<*template-main>
1778 % \fi
1779 % \begin{quote} \hrule \begin{verbatim}
1780 %% See drexel-thesis.pdf for details.
1781 \documentclass{drexel-thesis}
1782
1783 %% Enter the appropriate information here
1784 \author{Johny Henry} % Fullname
1785 \title{Inadequacies of Steam-Driven Boring Machines}  % Title Of Thesis
1786 \defmonth{July}  % Name of the month of you defense
1787 \defyear{1872}   % Year you are defending
1788 \degree{Doctor of Philosophy} % Should be fine
1789 \advisor{C \& O Railroad, Ph.D.}   % Put Advisor's full name, degree
1790
1791 \usepackage{graphicx}   % to include images
1792
1793 \begin{document}
1794 \begin{preamble}
1795
1796 \begin{dedications} % OPTIONAL
1797 Type dedications here
1798 \end{dedications}
1799
1800 \begin{acknowledgments} % OPTIONAL
1801 Type acknowledgments here
1802 \end{acknowledgments}
1803
1804 \tableofcontents
1805 %% Include these following commands only if you have tables or figures.
1806 %% Tables should come before figures.
1807 \listoftables
1808 \listoffigures
1809
1810 \begin{abstract}
1811 Type abstract here
1812 \end{abstract}
1813 \end{preamble}
1814
1815 \begin{thesis}
1816 %% Use include statements to include your main thesis code
1817 %% from seperate files.
1818 \include{part1}
1819 \end{thesis}
1820
1821 %% unsrt style give references in order of citation
1822 \bibliographystyle{unsrt}
1823 \phantomsection
1824 \addcontentsline{toc}{chapter}{\bibname}
1825 \begin{thebibliography}{9}
1826 % widest label (above "9"), when printed, as wide as widest entry label.
1827 \bibitem{lamport94}
1828   Leslie Lamport,
1829   \emph{\LaTeX: A Document Preparation System}.
1830   Addison Wesley, Massachusetts,
1831   2nd Edition,
1832   1994.
1833 %...
1834 \end{thebibliography}
1835
1836 \appendix
1837 %% include files with your appendicies (if any) here
1838 \include{appendixA}
1839
1840 \begin{vita} % Ph.D. only.  See Thesis Manual for details.
1841 Vita text.
1842 \end{vita}
1843
1844 \end{document}
1845 % \end{verbatim} \hrule \end{quote}
1846 % \iffalse meta-comment
1847 %</template-main>
1848 % \fi
1849 %
1850 % \subsubsection{Part}
1851 %
1852 % \iffalse meta-comment
1853 %<*template-part>
1854 % \fi
1855 % \begin{quote} \hrule \begin{verbatim}
1856 \part{A Part Heading}
1857 \chapter{A Chapter Heading}
1858 \section{A Section Heading}
1859 The following sectioning commands are available:
1860 \begin{quote}
1861  part \\
1862  chapter \\
1863  section \\
1864  subsection \\ 
1865  subsubsection \\ 
1866  paragraph \\ 
1867  subparagraph 
1868 \end{quote}
1869 \begin{table}
1870   \caption{A table float}
1871   \begin{center}
1872   \begin{tabular}{r@{.}l r@{.}l r@{.}l}
1873     \multicolumn{2}{c}{Time (s)} &
1874       \multicolumn{2}{c}{John Henry (m)} &
1875       \multicolumn{2}{c}{Steam drill (m)} \\
1876     0&0 & 0&0 & 0&0 \\
1877     10&0 & 4&3 & 3&75 \\
1878     30&0 & 11&9 & 10&1 \\
1879     \ldots
1880   \end{tabular}
1881   \end{center}
1882 \end{table}
1883 Bla bla bla (text to test table/figure spacing)
1884
1885 Bla bla bla
1886
1887 Bla bla bla
1888
1889 Bla bla bla
1890
1891 Bla bla bla
1892
1893 Bla bla bla
1894
1895 Bla bla bla
1896 \begin{figure}
1897   \begin{center}
1898     \includegraphics[width=0.4\textwidth]{drexel-logo}
1899   \end{center}
1900   \caption{A figure float}
1901 \end{figure}
1902 Bla bla bla (text to test table/figure spacing)
1903
1904 Bla bla bla
1905
1906 Bla bla bla
1907
1908 Bla bla bla
1909
1910 Bla bla bla
1911
1912 Bla bla bla
1913
1914 Bla bla bla
1915 % \end{verbatim} \hrule \end{quote}
1916 % \iffalse meta-comment
1917 %</template-part>
1918 % \fi
1919 %
1920 % Note the strange |r@{.}l| notation in the |\tabular| column
1921 % definition.  This allows for numbers aligned at the decimal point
1922 % (see \href{http://www.stat.unipg.it/tex-man/ltx-68.html}{here}).
1923 %
1924 % |\multicolumn{num_cols}{alignment}{contents}| allows the headings
1925 % to span the pre- and post-decimal columns.
1926 %
1927 %
1928 % \subsubsection{Appendix}
1929 %
1930 % \iffalse meta-comment
1931 %<*template-appendix>
1932 % \fi
1933 % \begin{quote} \hrule \begin{verbatim}
1934 \chapter{Some Appendix Heading}
1935 Bla Bla Bla
1936 \chapter{Another Appendix Heading}
1937 Bla Bla Bla
1938 % \end{verbatim} \hrule \end{quote}
1939 % \iffalse meta-comment
1940 %</template-appendix>
1941 % \fi
1942 %
1943 %
1944 % \subsection{\BibTeX/\pkg{natbib}}
1945 % \label{sec:natbib-example}
1946 %
1947 % \subsubsection{Main}
1948 %
1949 % \iffalse meta-comment
1950 %<*template-bibtex-main>
1951 % \fi
1952 % \begin{quote} \hrule \begin{verbatim}
1953 %% See drexel-thesis.pdf for details.
1954 \documentclass{drexel-thesis}
1955
1956 %% Enter the appropriate information here
1957 \author{Johny Henry} % Fullname
1958 \title{Inadequacies of Steam-Driven Boring Machines}  % Title Of Thesis
1959 \defmonth{July}  % Name of the month of you defense
1960 \defyear{1872}   % Year you are defending
1961 \degree{Doctor of Philosophy} % Should be fine
1962 \advisor{C \& O Railroad, Ph.D.}   % Put Advisor's full name, degree
1963
1964 \usepackage[super,sort&compress]{natbib} % fancy citation extensions
1965 %% super selects citations in superscript mode.
1966 %% sort&compress automatically sorts and compresses compound citations:
1967 %%   \pcite{a,b,...}
1968 \bibliographystyle{plainnat}
1969
1970 \begin{document}
1971 \begin{preamble}
1972
1973 \begin{dedications} % OPTIONAL
1974 Type dedications here
1975 \end{dedications}
1976
1977 \begin{acknowledgments} % OPTIONAL
1978 Type acknowledgments here
1979 \end{acknowledgments}
1980
1981 \tableofcontents
1982 %% Include these following commands only if you have tables or figures.
1983 %% Tables should come before figures.
1984 \listoftables
1985 \listoffigures
1986
1987 \begin{abstract}
1988 Type abstract here
1989 \end{abstract}
1990 \end{preamble}
1991
1992 \begin{thesis}
1993 %% Use include statements to include your main thesis code
1994 %% from seperate files.
1995 \include{bibpart1}
1996 \end{thesis}
1997
1998 \bibliography{references}
1999
2000 \appendix
2001 %% include files with your appendicies (if any) here
2002 \include{appendixA}
2003
2004 \begin{vita} % Ph.D. only.  See Thesis Manual for details.
2005 Vita text.
2006 \end{vita}
2007
2008 \end{document}
2009 % \end{verbatim} \hrule \end{quote}
2010 % \iffalse meta-comment
2011 %</template-bibtex-main>
2012 % \fi
2013 %
2014 % \subsubsection{Part}
2015 %
2016 % You can cite your references with \pkg{natbib}'s |\citet| and
2017 % |\citep| macros.  See
2018 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}{the \pkg{natbib} manual}
2019 % for details.
2020 %
2021 % \iffalse meta-comment
2022 %<*template-bibtex-part>
2023 % \fi
2024 % \begin{quote} \hrule \begin{verbatim}
2025 \part{A Part Heading}
2026 \chapter{A Chapter Heading}
2027 \section{A Section Heading}
2028 Here we have a text citation \citet{rief97} followed by a
2029 parenthetical citation\citep{rief97}.
2030 % \end{verbatim} \hrule \end{quote}
2031 % \iffalse meta-comment
2032 %</template-bibtex-part>
2033 % \fi
2034 %
2035 % \subsubsection{Bib}
2036 %
2037 % What goes into the \BibTeX\ file |references.bib|?
2038 % For more information, check out this 
2039 % \href{http://cmtw.harvard.edu/Documentation/TeX/Bibtex/Example.html}{basic tutorial}.
2040 % If you want to get deeper, take a look at
2041 % \href{http://www.ctan.org/tex-archive/info/bibtex/tamethebeast/}{Tame the BeaST}.
2042 % Other resources:
2043 % \href{http://www.andy-roberts.net/misc/latex/latextutorial3.html}{how the process works},
2044 %   \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node6.html}{entry types},
2045 %   \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node7.html}{fields},
2046 %   \href{http://en.wikipedia.org/wiki/BibTeX}{entries and fields},
2047 %   \href{http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html}{assorted style examples}, and
2048 %   \href{http://liinwww.ira.uka.de/bibliography/Bib.Format.html}{assorted \BibTeX tools}.
2049 %
2050 % Here is an example \BibTeX\ file to get you started.  We define
2051 % strings for the publishers, journals, and authors to avoid
2052 % duplication and minimize the risk of typos, etc.
2053 %
2054 % \iffalse meta-comment
2055 %<*template-bibtex-refs>
2056 % \fi
2057 % \begin{quote} \hrule \begin{verbatim}
2058 %% Publishers
2059 @String{APS = "American Physical Society"}
2060
2061 %% Journals
2062 @String{SCI = "Science"}
2063
2064 %% Authors
2065 @String{MRief = "Rief, Matthias"}
2066 @String{MGautel = "Gautel, Mathias"}
2067 @String{FOesterhelt = "Oesterhelt, Filipp"}
2068 @String{JFernandez = "Fernandez, Julio M."}
2069 @String{HGaub = "Gaub, Hermann E."}
2070
2071 %% Articles
2072 @Article{rief97,
2073   author = MRief #" and "# MGautel #" and "# FOesterhelt #" and "#
2074            JFernandez #" and "# HGaub,
2075   title = "Reversible Unfolding of Individual Titin Immunoglobulin
2076            Domains by {AFM}",
2077   journal = SCI,
2078   volume =  276,
2079   number =  5315,
2080   pages =   "1109--1112",
2081   year =    1997,
2082   doi =     "10.1126/science.276.5315.1109",
2083   URL =     "http://www.sciencemag.org/cgi/content/abstract/276/5315/1109",
2084   eprint =  "http://www.sciencemag.org/cgi/reprint/276/5315/1109.pdf",
2085   mynote = "Seminal paper for force spectroscopy on Titin. Cited by
2086            Dietz '04 (ref 9) as an example of how unfolding large
2087            proteins is easily interpreted (vs.\ confusing unfolding in
2088            bulk), but Titin is a rather simple example of that, because
2089            of its globular-chain structure.",
2090 }
2091 %% ...
2092 % \end{verbatim} \hrule \end{quote}
2093 % \iffalse meta-comment
2094 %</template-bibtex-refs>
2095 % \fi
2096 %
2097 % \Finale
2098 \endinput