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