Fix \makecopyrightCC implementation
[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 % \DescribeMacros{\makecopyright,\makecopyrightCC}
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     \vspace*{\fill}
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     \vspace*{\fill}
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   \vspace*{\fill}
982   \begin{center}
983     \copyright~Copyright \def@year\\
984     \@author.  #1
985   \end{center}
986   \vspace*{\fill}
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   \m@kecopyright{
1009     \begin{quote}
1010       This work is licensed under the terms of the Creative Commons
1011       Attribution-ShareAlike license.  The license is available at \\
1012       \url{http://creativecommons.org/licenses/by-sa/2.0/}.
1013     \end{quote}
1014   }
1015 }
1016 %    \end{macrocode}
1017 % \end{macro}
1018 %
1019 % \begin{macro}{\tableofcontents}
1020 % Automate the creation of the table of contents.
1021 % From Manual 3.5 p9, ``Table of Contents'', and the example on p17.
1022 % \begin{itemize}
1023 %   \item Do not list any sections that precede the
1024 %   |Table of Contents| (e.g.\ |Dedications|, |Acknowledgments|).  Do
1025 %   not list the |Table of Contents| itself.
1026 %   \item These pages are counted and numbered in lowercase Roman numerals.
1027 % \end{itemize}
1028 % Override \cls{book}'s definition.
1029 %    \begin{macrocode}
1030 \renewcommand\tableofcontents{%
1031   \clearpage
1032   \ifpdf
1033     \phantomsection
1034     \pdfbookmark[0]{\contentsname}{tableofcontents}
1035   \fi
1036   \chapter*{\contentsname}
1037   \@mkboth{\MakeUppercase\contentsname}%
1038           {\MakeUppercase\contentsname}%
1039   \@starttoc{toc}%
1040 }
1041 %    \end{macrocode}
1042 % \end{macro}
1043 %
1044 %
1045 % \subsection{Environments}
1046 %
1047 % \begin{environment}{preamble}
1048 %    \begin{macrocode}
1049 \newenvironment{preamble}{%
1050   \cleardoublepage
1051   \@mainmatterfalse
1052   \pagenumbering{roman}
1053 %    \end{macrocode}
1054 % From Manual 3.1 p8, ``Title Page''.
1055 %    \begin{macrocode}
1056   \maketitle
1057 %    \end{macrocode}
1058 % From Manual 3.2 p9, ``Copyright Page''.
1059 %    \begin{macrocode}
1060   \makecopyright
1061 }{%
1062 %    \end{macrocode}
1063 % From the Manual 3.9, p11:
1064 % \begin{quote}
1065 %   Include a blank page (with no page number) before the first page
1066 %   of text.  The blank page is neither numbered nor counted.
1067 % \end{quote}
1068 %    \begin{macrocode}
1069   \blankpage
1070 }
1071 %    \end{macrocode}
1072 % \end{environment}
1073 %
1074 % \begin{environment}{dedications}
1075 % From the Manual 3.3 p9
1076 % \begin{itemize}
1077 %   \item The heading |Dedications| must appear at the top of the
1078 %   page.  The heading must be bold, centered, and without
1079 %   punctuation.
1080 %   \item This page is counted and numbered in lowercase Roman numerals.
1081 % \end{itemize}
1082 %    \begin{macrocode}
1083 \newenvironment{dedications}{%
1084   \clearpage
1085   \ifpdf
1086     \phantomsection
1087     \pdfbookmark[0]{\dedicationsname}{dedications}
1088   \fi
1089   \chapter*{\dedicationsname}
1090   \begin{spacing}{\@dsp}
1091 }{%
1092   \end{spacing}
1093 }
1094 %    \end{macrocode}
1095 % \end{environment}
1096 %
1097 % \begin{environment}{acknowledgments}
1098 % From the Manual 3.4 p9
1099 % \begin{itemize}
1100 %   \item The heading |Acknowledgments| must appear at the top of the
1101 %   page.  The heading must be bold, centered, and without
1102 %   punctuation.
1103 %   \item This page is counted and numbered in lowercase Roman numerals.
1104 % \end{itemize}
1105 %    \begin{macrocode}
1106 \newenvironment{acknowledgments}{%
1107   \clearpage
1108   \ifpdf
1109     \phantomsection
1110     \pdfbookmark[0]{\acknowledgmentsname}{acknowledgments}
1111   \fi
1112   \chapter*{\acknowledgmentsname}
1113   \begin{spacing}{\@dsp}
1114 }{%
1115   \end{spacing}
1116 }
1117 %    \end{macrocode}
1118 % \end{environment}
1119 %
1120 % \begin{environment}{abstract}
1121 %    \begin{macrocode}
1122 \newenvironment{abstract}{%
1123   \clearpage
1124   \thispagestyle{plain}%
1125   \global\@topnum\z@
1126   \phantomsection
1127   \addcontentsline{toc}{chapter}{\abstractname}
1128   \vspace*{50\p@}%
1129 %    \end{macrocode}
1130 % From the Manual 3.9 p10 ``The following heading must be centered at
1131 % the top of the page'':
1132 % \begin{center}
1133 %   Abstract \\
1134 %   Full Title of Dissertation or Thesis \\
1135 %   Author's Name as it appears on the Dissertation or Thesis
1136 % \end{center}
1137 % In the example on p20, they list the advisor's name after the
1138 % author, but that is not specified in the text on p10.
1139 %
1140 % On p20, ``These pages are numbered using lowercase Roman numerals.
1141 % Note that the heading is single spaced, but the abstract is double
1142 % spaced.''
1143 %    \begin{macrocode}
1144   \begin{spacing}{\@ssp}
1145     \begin{center}
1146       {\large \bfseries \abstractname \par}
1147 %%      \@endparpenalty\@M
1148       \@title\\
1149       \@author\\
1150       \@advisor\\
1151     \end{center}
1152   \end{spacing}
1153   \blanklines{2}
1154   \begin{spacing}{\@dsp}
1155   \@nobreaktrue
1156   \@afterindentfalse
1157   \@afterheading
1158 }{%
1159   \end{spacing}
1160 }
1161 %    \end{macrocode}
1162 % \end{environment}
1163 %
1164 % \begin{environment}{thesis}
1165 % From the Manual 3.10 p11
1166 % \begin{itemize}
1167 %   \item The pages are counted and numbered in Arabic numerals.
1168 % \end{itemize}
1169 %    \begin{macrocode}
1170 \newenvironment{thesis}{%
1171   \mainmatter
1172   \begin{spacing}{\@dsp}
1173 }{%
1174   \end{spacing}
1175   \clearpage
1176   \ifpdf
1177     \phantomsection
1178     \pdfbookmark[-1]{Backmatter}{backmatter}
1179   \fi
1180 }
1181 %    \end{macrocode}
1182 % \end{environment}
1183 %
1184 % \begin{environment}{vita}
1185 % From the Manual 3.15 p13
1186 % \begin{itemize}
1187 %   \item The heading |Vita| must appear at the top of the page.  The
1188 %   heading must be bold, centered, and without punctuation.
1189 %   \item The Vita text should begin four spaces below the heading.
1190 %   \item List the Vita separately in the Table of Contents.
1191 %   \item The page is counted and numbered in Arabic numerals.
1192 % \end{itemize}
1193 %    \begin{macrocode}
1194 \newenvironment{vita}{%
1195   \clearpage
1196   \phantomsection
1197   \addcontentsline{toc}{chapter}{\vitaname}
1198   \chapter*{\vitaname}
1199   \blanklines{1}
1200   \begin{spacing}{\@dsp}
1201 }{%
1202   \end{spacing}
1203 }
1204 %    \end{macrocode}
1205 % \end{environment}
1206 %
1207 %
1208 % \subsection{Adjust from the \LaTeX/\cls{book} defaults}
1209 %
1210 %
1211 % |\intextsep| sets the space left on top and bottom of an in-text
1212 % float (see
1213 % \href{http://www.eng.cam.ac.uk/help/tpl/textprocessing/squeeze.html}{here}).
1214 %    \begin{macrocode}
1215 \setlength\intextsep{30pt}
1216 %    \end{macrocode}
1217 %
1218 %
1219 % \subsubsection{Part and chapter headings}
1220 %
1221 % Override \cls{book}'s |\makechapterhead|.
1222 % From the Manual 3.11 p11.
1223 % \begin{quote}
1224 %   Chapter headings must be bold and centered.
1225 %   The chapter number and title must be on the same line, separated
1226 %   by a colon or period, as shown in the example below:
1227 %   \begin{center}
1228 %     CHAPTER 1: INTRODUCTION
1229 %   \end{center}
1230 %   Headings must not be larger than 12 points.
1231 %   Headings must be single spaced.
1232 % \end{quote}
1233 %    \begin{macrocode}
1234 \def\@makechapterhead#1{%
1235   \vspace*{50\p@}%
1236 %    \end{macrocode}
1237 % Replaced |\normalfont| with |\reset@font| (TODO: why?).
1238 %    \begin{macrocode}
1239   {\parindent \z@ \raggedright \reset@font
1240     \ifnum \c@secnumdepth >\m@ne
1241 %    \end{macrocode}
1242 % Removed |\if@mainmatter| conditional guarding this indented section
1243 % (TODO: why?).
1244 %    \begin{macrocode}
1245         \par\nobreak
1246         \vskip 20\p@
1247     \fi
1248     \interlinepenalty\@M
1249 %    \end{macrocode}
1250 % Ensure single spacing, and ensure the chapter heading will have a
1251 % centered, |\large|, bold \emph{Chapter \#: Title} or \emph{Appendix
1252 % \#: Title} format (as opposed to \cls{book}'s unaligned, |\Huge|,
1253 % bold \emph{Title}).
1254 %    \begin{macrocode}
1255     \begin{spacing}{\@ssp}
1256     \center \large \bfseries \@chapapp{} \thechapter: #1\par\nobreak
1257     \blanklines{2}
1258     \end{spacing}
1259   }
1260 }
1261 %    \end{macrocode}
1262 %
1263 % Override \cls{book}'s |\@makeschapterhead|.  TODO: Why?
1264 %    \begin{macrocode}
1265 \def\@makeschapterhead#1{%
1266   \vspace*{50\p@}%
1267    {\parindent \z@ \raggedright
1268 %    \end{macrocode}
1269 % Replaced |\normalfont| with |\reset@font| (TODO: why?).
1270 %    \begin{macrocode}
1271     \reset@font
1272     \interlinepenalty\@M
1273 %    \end{macrocode}
1274 % Ensure single spacing.
1275 %    \begin{macrocode}
1276     \begin{spacing}{\@ssp}
1277 %    \end{macrocode}
1278 % Replaced |\Huge| with |\center \large|
1279 %    \begin{macrocode}
1280     \center \large \bfseries  #1\par\nobreak
1281 %    \end{macrocode}
1282 % Replaced |\vskip 40\p@| with |\blanklines{2}|
1283 %    \begin{macrocode}
1284     \blanklines{2}
1285     \end{spacing}
1286   }
1287 }
1288 %    \end{macrocode}
1289 %
1290 % Override \cls{book}'s |\section|, replacing |\Large| with |\large|.
1291 %    \begin{macrocode}
1292 \renewcommand\section{\@startsection {section}{1}{\z@}%
1293                                      {-3.5ex \@plus -1ex \@minus -.2ex}%
1294                                      {2.3ex \@plus.2ex}%
1295                                      {\normalfont\large\bfseries}}
1296 %    \end{macrocode}
1297 %
1298 % Fix |\@ssect| and |\@sect| from |latex.ltx| to give single spaced
1299 % headings.  These macros are defined in |ltsect.dtx|
1300 % (\href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{\LaTeX\ base}})),
1301 % but the documentation there is not great.
1302 % \begin{command}
1303 %    `\cs{@ssect}\bracearg{INDENT}\bracearg{BEFORESKIP}\bracearg{AFTERSKIP}'
1304 %    `~~\bracearg{STYLE}\bracearg{ARG}'
1305 %    `\cs{@sect}\bracearg{NAME}\bracearg{LEVEL}\bracearg{INDENT}\bracearg{BEFORESKIP}'
1306 %    `~~\bracearg{AFTERSKIP}\bracearg{STYLE}\brackarg{ARG1}\bracearg{ARG2}'
1307 % \end{command}
1308 % By comparison to \cls{book}'s |\@part| and |\@spart| (see below), I
1309 % imagine they have something to do with formatting section names.
1310 %    \begin{macrocode}
1311 \def\@ssect#1#2#3#4#5{%
1312   \@tempskipa #3\relax
1313   \ifdim \@tempskipa>\z@
1314     \begingroup
1315     \begin{spacing}{\@ssp}
1316       #4{%
1317         \@hangfrom{\hskip #1}%
1318           \interlinepenalty \@M #5\@@par}%
1319     \endgroup
1320     \end{spacing}
1321   \else
1322     \def\@svsechd{#4{\hskip #1\relax #5}}%
1323   \fi
1324   \@xsect{#3}}
1325 %    \end{macrocode}
1326 % Now for |\@sect|.
1327 %    \begin{macrocode}
1328 \def\@sect#1#2#3#4#5#6[#7]#8{%
1329   \ifnum #2>\c@secnumdepth
1330     \let\@svsec\@empty
1331   \else
1332     \refstepcounter{#1}%
1333     \protected@edef\@svsec{\@seccntformat{#1}\relax}%
1334   \fi
1335   \@tempskipa #5\relax
1336   \ifdim \@tempskipa>\z@
1337     \begingroup
1338     \begin{spacing}{\@ssp}
1339       #6{%
1340         \@hangfrom{\hskip #3\relax\@svsec}%
1341           \interlinepenalty \@M #8\@@par}%
1342     \end{spacing}
1343     \endgroup
1344     \csname #1mark\endcsname{#7}%
1345     \addcontentsline{toc}{#1}{%
1346       \ifnum #2>\c@secnumdepth \else
1347         \protect\numberline{\csname the#1\endcsname}%
1348       \fi
1349       #7}%
1350   \else
1351     \def\@svsechd{%
1352       #6{\hskip #3\relax
1353       \@svsec #8}%
1354       \csname #1mark\endcsname{#7}%
1355       \addcontentsline{toc}{#1}{%
1356         \ifnum #2>\c@secnumdepth \else
1357           \protect\numberline{\csname the#1\endcsname}%
1358         \fi
1359         #7}}%
1360   \fi
1361   \@xsect{#5}}
1362 %    \end{macrocode}
1363 %
1364 % Override \cls{book}'s |\@part| and |\@spart|, replacing |\Huge| with
1365 % |\large|.  From |classes.dtx|, |\@part| formats the title of the part,
1366 % and |\@spart| formats the title of a starred part.
1367 %    \begin{macrocode}
1368 \def\@part[#1]#2{%
1369     \ifnum \c@secnumdepth >-2\relax
1370       \refstepcounter{part}%
1371       \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
1372     \else
1373       \addcontentsline{toc}{part}{#1}%
1374     \fi
1375     \markboth{}{}%
1376     {\centering
1377      \interlinepenalty \@M
1378      \normalfont
1379      \ifnum \c@secnumdepth >-2\relax
1380        \large\bfseries \partname\nobreakspace\thepart
1381        \par
1382        \vskip 20\p@
1383      \fi
1384      \large \bfseries #2\par}%
1385     \@endpart}
1386 \def\@spart#1{%
1387     {\centering
1388      \interlinepenalty \@M
1389      \normalfont
1390      \large \bfseries #1\par}%
1391     \@endpart}
1392 %    \end{macrocode}
1393 %
1394 %
1395 % \subsubsection{Adding TOC entries and blank pages}
1396 %
1397 % Override \cls{book}'s |\listoftables|, selecting the false branch
1398 % of the |\if@twocolumn| conditionals, adding a line to the table of
1399 % contents, and clearing the page.
1400 % From the Manual 3.6 p10
1401 % \begin{quote}
1402 %   The heading |List of Tables| must appear at the top of the first
1403 %   page.
1404 %   The heading must be bold, centered, and without punctuation.
1405 %   List table captions exactly as they appear above the tables in
1406 %   the text.
1407 %   Single space each entry, but double-space between entries.
1408 %   Separate table captions from page numbers with right-justified
1409 %   tabs and dot leaders.
1410 %   Do not use periods to separate captions and page numbers.
1411 %   These pages are counted and numbered in lowercase Roman numerals.
1412 % \end{quote}
1413 %    \begin{macrocode}
1414 \renewcommand\listoftables{%
1415   \clearpage
1416   \phantomsection
1417   \addcontentsline{toc}{chapter}{\listtablename}
1418   \chapter*{\listtablename}%
1419   \@mkboth{\MakeUppercase\listtablename}%
1420           {\MakeUppercase\listtablename}%
1421   \@starttoc{lot}%
1422 }
1423 %    \end{macrocode}
1424 %
1425 % Override \cls{book}'s |\listoffigures|, selecting the false branch
1426 % of the |\if@twocolumn| conditionals, adding a line to the table of
1427 % contents, and clearing the page.
1428 % From the Manual 3.7 p10
1429 % \begin{quote}
1430 %   The heading |List of Figures| must appear at the top of the first
1431 %   page.
1432 %   The heading must be bold, centered, and without punctuation.
1433 %   List figure captions exactly as they appear below the figures in
1434 %   the text.
1435 %   Single space each entry, but double-space between entries.
1436 %   Separate figure captions from page numbers with right-justified
1437 %   tabs and dot leaders.
1438 %   Do not use periods to separate captions and page numbers.
1439 %   These pages are counted and numbered in lowercase Roman numerals.
1440 % \end{quote}
1441 %    \begin{macrocode}
1442 \renewcommand\listoffigures{%
1443   \clearpage
1444   \phantomsection
1445   \addcontentsline{toc}{chapter}{\listfigurename}
1446   \chapter*{\listfigurename}%
1447   \@mkboth{\MakeUppercase\listfigurename}%
1448           {\MakeUppercase\listfigurename}%
1449   \@starttoc{lof}%
1450 }
1451 %    \end{macrocode}
1452 %
1453 % Override |latex.ltx|'s |\bibliography|, adding a line to the table
1454 % of contents.
1455 %    \begin{macrocode}
1456 \def\bibliography#1{%
1457   \addcontentsline{toc}{chapter}{\bibname}
1458   \if@filesw
1459     \immediate\write\@auxout{\string\bibdata{#1}}%
1460   \fi
1461   \@input@{\jobname.bbl}
1462 }
1463 %    \end{macrocode}
1464 %
1465 % Add a terminal blank page (when |\if@final| is true)
1466 % From the Manual 3.16 p13
1467 % \begin{quote}
1468 %   Include a blank page (with no page number) at the end of the
1469 %   thesis or dissertation.  The blank page is neither counted nor
1470 %   numbered.
1471 % \end{quote}
1472 %    \begin{macrocode}
1473 \AtEndDocument{\blankpage}
1474 %    \end{macrocode}
1475 %
1476 %
1477 % \subsubsection{Captioning}
1478 %
1479 % These are to get spacing right after table captions and make the
1480 % spacing around floats symmetrical.  First, set |\if@table| in the
1481 % |table| environments.
1482 %    \begin{macrocode}
1483 \newif\if@table \@tablefalse
1484 \renewenvironment{table}
1485                  {\@tabletrue\@float{table}}
1486                  {\end@float\@tablefalse}
1487 \renewenvironment{table*}
1488                  {\@tabletrue\@dblfloat{table}}
1489                  {\end@dblfloat\@tablefalse}
1490 %    \end{macrocode}
1491 % Now override \cls{book}'s |\@makecaption|, adding two |\if@table|
1492 % conditionals, which swap |\abovecaptionskip| and |\belowcaptionskip|
1493 % for tables (where the caption is above the float body).  With our
1494 % implementation, |\belowcaptionskip| \emph{always} gives the distance
1495 % between the caption and the text, and |\abovecaptionskip|
1496 % \emph{always} gives the distance between the caption and the float
1497 % body.
1498 %
1499 % We also replace the caption lead-in |#1: #2| with
1500 % |\small{\bfseries#1:} #2|.
1501 %    \begin{macrocode}
1502 \newlength\@tempcapskip
1503 \long\def\@makecaption#1#2{%
1504   \if@table
1505     \@tempcapskip\abovecaptionskip
1506     \abovecaptionskip\belowcaptionskip
1507     \belowcaptionskip\@tempcapskip
1508   \fi
1509   \vskip\abovecaptionskip
1510   \sbox\@tempboxa{\small{\bfseries#1:} #2}%
1511   \ifdim \wd\@tempboxa >\hsize
1512     {\small{\bfseries#1:} #2\par}
1513   \else
1514     \global \@minipagefalse
1515     \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
1516   \fi
1517   \vskip\belowcaptionskip
1518   \if@table
1519     \@tempcapskip\belowcaptionskip
1520     \belowcaptionskip\abovecaptionskip
1521     \abovecaptionskip\@tempcapskip
1522   \fi
1523 }
1524 %    \end{macrocode}
1525 %
1526
1527 % \subsubsection{Adjust table of contents}
1528 %
1529 % From the \LaTeX\ base class documentation (|classes.dtx| in
1530 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{\LaTeX\ base}})
1531 % \begin{quote}
1532 %    The command |\contentsline{|\meta{name}|}| expands to
1533 %    |\l@|\meta{name}.  So, to specify the table of contents, we must
1534 %    define |\l@chapter|, \ldots
1535 % \end{quote}
1536 %
1537 % Override \cls{book}'s |\l@chapter| for printing TOC entries, adding
1538 % |spacing| environments to ensure single spacing, only using bold if
1539 % |\if@boldchapter| is true, handling |\if@dottedchapter|.
1540 %    \begin{macrocode}
1541 \renewcommand*\l@chapter[2]{%
1542   \begin{spacing}{\@ssp}
1543     \ifnum \c@tocdepth >\m@ne
1544       \addpenalty{-\@highpenalty}%
1545 %    \end{macrocode}
1546 % Don't handle spacing here; use the spacing environment at the end of
1547 % the macro.
1548 %    \begin{macrocode}
1549 %      \vskip 1.0em \@plus\p@
1550       \setlength\@tempdima{1.5em}%
1551       \begingroup
1552         \parindent \z@ \rightskip \@pnumwidth
1553         \parfillskip -\@pnumwidth
1554         \leavevmode 
1555         \if@boldchapter
1556           \bfseries
1557         \fi
1558         \advance\leftskip\@tempdima
1559         \hskip -\leftskip
1560 %    \end{macrocode}
1561 % Insert |\if@dottedchapter| block into |#1\nobreak\hfil \nobreak...|.
1562 %    \begin{macrocode}
1563         #1\nobreak
1564         \if@dottedchapter
1565           \leaders\hbox{$\m@th
1566             \mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}
1567           \else\fi
1568 %    \end{macrocode}
1569 % Insert |\if@dottedchapter| block into |#1\nobreak\hfil \nobreak...|.
1570 %    \begin{macrocode}
1571         \hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
1572         \penalty\@highpenalty
1573 %    \end{macrocode}
1574 % Add a content-page-spacing blank after this entry.
1575 %    \begin{macrocode}
1576         \begin{spacing}{\@csp}\par\end{spacing}
1577       \endgroup
1578     \fi
1579   \end{spacing}
1580 }
1581 %    \end{macrocode}
1582 %
1583 % Add |\l@appendix|, identical to our |\l@chapter|, except for
1584 % setting |\@tempdima| to 6.5em rather than 1.5em.  TODO: Why?
1585 % TODO: Consolidate to \l@chapapp[3] calls.
1586 %    \begin{macrocode}
1587 \newcommand*\l@appendix[2]{%
1588   \begin{spacing}{\@ssp}
1589     \ifnum \c@tocdepth >\m@ne
1590       \addpenalty{-\@highpenalty}%
1591 %      \vskip 1.0em \@plus\p@
1592       \setlength\@tempdima{6.5em}%
1593       \begingroup
1594         \parindent \z@ \rightskip \@pnumwidth
1595         \parfillskip -\@pnumwidth
1596         \leavevmode 
1597         \if@boldchapter
1598           \bfseries
1599         \fi
1600         \advance\leftskip\@tempdima
1601         \hskip -\leftskip
1602         #1\nobreak
1603         \if@dottedchapter
1604           \leaders\hbox{$\m@th
1605             \mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}
1606           \else\fi
1607         \hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
1608         \penalty\@highpenalty
1609         \begin{spacing}{\@csp}\par\end{spacing}
1610       \endgroup
1611     \fi
1612   \end{spacing}
1613 }
1614 %    \end{macrocode}
1615 %
1616 % Add |\l@part|, identical to our |\l@chapter|, except for
1617 % setting |\@tempdima| to 6.5em rather than 1.5em.  TODO: Why?
1618 % TODO: Consolidate to \l@chapapp[3] calls.
1619 %    \begin{macrocode}
1620 \renewcommand*\l@part[2]{%
1621   \begin{spacing}{\@ssp}
1622     \ifnum \c@tocdepth >-2\relax
1623       \addpenalty{-\@highpenalty}%
1624 %    \end{macrocode}
1625 % Don't handle spacing here; use the spacing environment at the end of
1626 % the macro.
1627 %    \begin{macrocode}
1628 %    \addvspace{2.25em \@plus\p@}%
1629       \setlength\@tempdima{3em}%
1630       \begingroup
1631         \parindent \z@ \rightskip \@pnumwidth
1632         \parfillskip -\@pnumwidth
1633         {\leavevmode
1634 %    \end{macrocode}
1635 % Replace |\large \bfseries| with |\if@boldpart...|, so the parts are
1636 % the same size as the other entries, and bolding obeys |if@boldpart|.
1637 %    \begin{macrocode}
1638          \if@boldpart
1639            \bfseries
1640          \fi
1641          #1
1642 %    \end{macrocode}
1643 % Insert |\if@dottedpart| between |#1| and |\hfil|.
1644 %    \begin{macrocode}
1645          \if@dottedpart
1646            \leaders\hbox{$\m@th
1647              \mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}
1648          \fi
1649          \hfil \hb@xt@\@pnumwidth{\hss #2}}\par
1650          \nobreak
1651            \global\@nobreaktrue
1652            \everypar{\global\@nobreakfalse\everypar{}}%
1653 %    \end{macrocode}
1654 % Add a content-page-spacing blank after this entry.
1655 %    \begin{macrocode}
1656            \begin{spacing}{\@csp}\par\end{spacing}
1657       \endgroup
1658     \fi
1659   \end{spacing}
1660 }
1661 %    \end{macrocode}
1662 %
1663 % Override |latex.ltx|'s |\dottedtocline|, adding some |spacing|
1664 % environments.  TODO: reasoning.
1665 %    \begin{macrocode}
1666 \def\@dottedtocline#1#2#3#4#5{%
1667   \begin{spacing}{\@ssp}
1668   \ifnum #1>\c@tocdepth \else
1669     \vskip \z@ \@plus.2\p@
1670     {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
1671      \parindent #2\relax\@afterindenttrue
1672      \interlinepenalty\@M
1673      \leavevmode
1674      \@tempdima #3\relax
1675      \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
1676      {#4}\nobreak
1677      \leaders\hbox{$\m@th
1678         \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
1679         mu$}\hfill
1680      \nobreak
1681      \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}%
1682      \par\begin{spacing}{\@csp}\par\end{spacing}}%
1683   \fi
1684   \end{spacing}
1685 }
1686 %    \end{macrocode}
1687 %
1688 % Override \cls{book}'s (or \pkg{hyperref}'s) |\appendix|, adding
1689 % |\@appendixtrue|.  This gets |\if@appendix| working in our
1690 % |\chapter| definition below.
1691 %    \begin{macrocode}
1692 \let\DUT@appendix\appendix
1693 \renewcommand\appendix{%
1694   \@appendixtrue%
1695   \DUT@appendix
1696 }
1697 %    \end{macrocode}
1698 %
1699 % Override \cls{book}'s |\chapter|, selecting the false branch of the
1700 % |\if@twocolumn| conditional and adding an |\if@appendix|
1701 % conditional.  After |\appendix| (when |\if@mainmatter| and
1702 % |\if@appendix| are both true), we generate table of content entries
1703 % such as \emph{Appendix A: Chapter Title} rather than the standard
1704 % \emph{Chapter Title}.  |\thechapter| (defined in \cls{book}) is the
1705 % appendix letter (e.g.\ |A|).  |\@chapapp{}| (also defined in
1706 % \cls{book}) Was redefined in |\appendix| (above) as |\appendixname|.
1707 % Before |\appendix|, we reproduce the \cls{book} behavior.
1708 %    \begin{macrocode}
1709 \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
1710                        \if@mainmatter
1711                          \refstepcounter{chapter}%
1712                          \typeout{\@chapapp\space\thechapter.}%
1713                          \if@appendix
1714                            \addcontentsline{toc}{appendix}%
1715                                      {\protect\numberline{\@chapapp{} \thechapter:}#1}%
1716                          \else
1717                            \addcontentsline{toc}{chapter}%
1718                                      {\protect\numberline{\thechapter}#1}%
1719                          \fi
1720                        \else
1721                          \addcontentsline{toc}{chapter}{#1}%
1722                        \fi
1723                     \else
1724                       \addcontentsline{toc}{chapter}{#1}%
1725                     \fi
1726                     \chaptermark{#1}%
1727                     \addtocontents{lof}{\protect\addvspace{10\p@}}%
1728                     \addtocontents{lot}{\protect\addvspace{10\p@}}%
1729                     \@makechapterhead{#2}%
1730                     \@afterheading}
1731 %    \end{macrocode}
1732 %
1733 %
1734 % \iffalse meta-comment
1735 %</class>
1736 % \fi
1737 %
1738 %
1739 % \section{Templates}
1740 %
1741 % \subsection{Simple}
1742 %
1743 % \subsubsection{Main}
1744 %
1745 % \iffalse meta-comment
1746 %<*template-main>
1747 % \fi
1748 % \begin{quote} \hrule \begin{verbatim}
1749 %% See drexel-thesis.pdf for details.
1750 \documentclass{drexel-thesis}
1751
1752 %% Enter the appropriate information here
1753 \author{Johny Henry} % Fullname
1754 \title{Inadequacies of Steam-Driven Boring Machines}  % Title Of Thesis
1755 \defmonth{July}  % Name of the month of you defense
1756 \defyear{1872}   % Year you are defending
1757 \degree{Doctor of Philosophy} % Should be fine
1758 \advisor{C \& O Railroad, Ph.D.}   % Put Advisor's full name, degree
1759
1760 \usepackage{graphicx}   % to include images
1761
1762 \begin{document}
1763 \begin{preamble}
1764
1765 \begin{dedications} % OPTIONAL
1766 Type dedications here
1767 \end{dedications}
1768
1769 \begin{acknowledgments} % OPTIONAL
1770 Type acknowledgments here
1771 \end{acknowledgments}
1772
1773 \tableofcontents
1774 %% Include these following commands only if you have tables or figures.
1775 %% Tables should come before figures.
1776 \listoftables
1777 \listoffigures
1778
1779 \begin{abstract}
1780 Type abstract here
1781 \end{abstract}
1782 \end{preamble}
1783
1784 \begin{thesis}
1785 %% Use include statements to include your main thesis code
1786 %% from seperate files.
1787 \include{part1}
1788 \end{thesis}
1789
1790 %% unsrt style give references in order of citation
1791 \bibliographystyle{unsrt}
1792 \phantomsection
1793 \addcontentsline{toc}{chapter}{\bibname}
1794 \begin{thebibliography}{9}
1795 % widest label (above "9"), when printed, as wide as widest entry label.
1796 \bibitem{lamport94}
1797   Leslie Lamport,
1798   \emph{\LaTeX: A Document Preparation System}.
1799   Addison Wesley, Massachusetts,
1800   2nd Edition,
1801   1994.
1802 %...
1803 \end{thebibliography}
1804
1805 \appendix
1806 %% include files with your appendicies (if any) here
1807 \include{appendixA}
1808
1809 \begin{vita} % Ph.D. only.  See Thesis Manual for details.
1810 Vita text.
1811 \end{vita}
1812
1813 \end{document}
1814 % \end{verbatim} \hrule \end{quote}
1815 % \iffalse meta-comment
1816 %</template-main>
1817 % \fi
1818 %
1819 % \subsubsection{Part}
1820 %
1821 % \iffalse meta-comment
1822 %<*template-part>
1823 % \fi
1824 % \begin{quote} \hrule \begin{verbatim}
1825 \part{A Part Heading}
1826 \chapter{A Chapter Heading}
1827 \section{A Section Heading}
1828 The following sectioning commands are available:
1829 \begin{quote}
1830  part \\
1831  chapter \\
1832  section \\
1833  subsection \\ 
1834  subsubsection \\ 
1835  paragraph \\ 
1836  subparagraph 
1837 \end{quote}
1838 \begin{table}
1839   \caption{A table float}
1840   \begin{center}
1841   \begin{tabular}{r@{.}l r@{.}l r@{.}l}
1842     \multicolumn{2}{c}{Time (s)} &
1843       \multicolumn{2}{c}{John Henry (m)} &
1844       \multicolumn{2}{c}{Steam drill (m)} \\
1845     0&0 & 0&0 & 0&0 \\
1846     10&0 & 4&3 & 3&75 \\
1847     30&0 & 11&9 & 10&1 \\
1848     \ldots
1849   \end{tabular}
1850   \end{center}
1851 \end{table}
1852 Bla bla bla (text to test table/figure spacing)
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
1864 Bla bla bla
1865 \begin{figure}
1866   \begin{center}
1867     \includegraphics[width=0.4\textwidth]{drexel-logo}
1868   \end{center}
1869   \caption{A figure float}
1870 \end{figure}
1871 Bla bla bla (text to test table/figure spacing)
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
1883 Bla bla bla
1884 % \end{verbatim} \hrule \end{quote}
1885 % \iffalse meta-comment
1886 %</template-part>
1887 % \fi
1888 %
1889 % Note the strange |r@{.}l| notation in the |\tabular| column
1890 % definition.  This allows for numbers aligned at the decimal point
1891 % (see \href{http://www.stat.unipg.it/tex-man/ltx-68.html}{here}).
1892 %
1893 % |\multicolumn{num_cols}{alignment}{contents}| allows the headings
1894 % to span the pre- and post-decimal columns.
1895 %
1896 %
1897 % \subsubsection{Appendix}
1898 %
1899 % \iffalse meta-comment
1900 %<*template-appendix>
1901 % \fi
1902 % \begin{quote} \hrule \begin{verbatim}
1903 \chapter{Some Appendix Heading}
1904 Bla Bla Bla
1905 \chapter{Another Appendix Heading}
1906 Bla Bla Bla
1907 % \end{verbatim} \hrule \end{quote}
1908 % \iffalse meta-comment
1909 %</template-appendix>
1910 % \fi
1911 %
1912 %
1913 % \subsection{\BibTeX/\pkg{natbib}}
1914 % \label{sec:natbib-example}
1915 %
1916 % \subsubsection{Main}
1917 %
1918 % \iffalse meta-comment
1919 %<*template-bibtex-main>
1920 % \fi
1921 % \begin{quote} \hrule \begin{verbatim}
1922 %% See drexel-thesis.pdf for details.
1923 \documentclass{drexel-thesis}
1924
1925 %% Enter the appropriate information here
1926 \author{Johny Henry} % Fullname
1927 \title{Inadequacies of Steam-Driven Boring Machines}  % Title Of Thesis
1928 \defmonth{July}  % Name of the month of you defense
1929 \defyear{1872}   % Year you are defending
1930 \degree{Doctor of Philosophy} % Should be fine
1931 \advisor{C \& O Railroad, Ph.D.}   % Put Advisor's full name, degree
1932
1933 \usepackage[super,sort&compress]{natbib} % fancy citation extensions
1934 %% super selects citations in superscript mode.
1935 %% sort&compress automatically sorts and compresses compound citations:
1936 %%   \pcite{a,b,...}
1937 \bibliographystyle{plainnat}
1938
1939 \begin{document}
1940 \begin{preamble}
1941
1942 \begin{dedications} % OPTIONAL
1943 Type dedications here
1944 \end{dedications}
1945
1946 \begin{acknowledgments} % OPTIONAL
1947 Type acknowledgments here
1948 \end{acknowledgments}
1949
1950 \tableofcontents
1951 %% Include these following commands only if you have tables or figures.
1952 %% Tables should come before figures.
1953 \listoftables
1954 \listoffigures
1955
1956 \begin{abstract}
1957 Type abstract here
1958 \end{abstract}
1959 \end{preamble}
1960
1961 \begin{thesis}
1962 %% Use include statements to include your main thesis code
1963 %% from seperate files.
1964 \include{bibpart1}
1965 \end{thesis}
1966
1967 \bibliography{references}
1968
1969 \appendix
1970 %% include files with your appendicies (if any) here
1971 \include{appendixA}
1972
1973 \begin{vita} % Ph.D. only.  See Thesis Manual for details.
1974 Vita text.
1975 \end{vita}
1976
1977 \end{document}
1978 % \end{verbatim} \hrule \end{quote}
1979 % \iffalse meta-comment
1980 %</template-bibtex-main>
1981 % \fi
1982 %
1983 % \subsubsection{Part}
1984 %
1985 % You can cite your references with \pkg{natbib}'s |\citet| and
1986 % |\citep| macros.  See
1987 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}{the \pkg{natbib} manual}
1988 % for details.
1989 %
1990 % \iffalse meta-comment
1991 %<*template-bibtex-part>
1992 % \fi
1993 % \begin{quote} \hrule \begin{verbatim}
1994 \part{A Part Heading}
1995 \chapter{A Chapter Heading}
1996 \section{A Section Heading}
1997 Here we have a text citation \citet{rief97} followed by a
1998 parenthetical citation\citep{rief97}.
1999 % \end{verbatim} \hrule \end{quote}
2000 % \iffalse meta-comment
2001 %</template-bibtex-part>
2002 % \fi
2003 %
2004 % \subsubsection{Bib}
2005 %
2006 % What goes into the \BibTeX\ file |references.bib|?
2007 % For more information, check out this 
2008 % \href{http://cmtw.harvard.edu/Documentation/TeX/Bibtex/Example.html}{basic tutorial}.
2009 % If you want to get deeper, take a look at
2010 % \href{http://www.ctan.org/tex-archive/info/bibtex/tamethebeast/}{Tame the BeaST}.
2011 % Other resources:
2012 % \href{http://www.andy-roberts.net/misc/latex/latextutorial3.html}{how the process works},
2013 %   \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node6.html}{entry types},
2014 %   \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node7.html}{fields},
2015 %   \href{http://en.wikipedia.org/wiki/BibTeX}{entries and fields},
2016 %   \href{http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html}{assorted style examples}, and
2017 %   \href{http://liinwww.ira.uka.de/bibliography/Bib.Format.html}{assorted \BibTeX tools}.
2018 %
2019 % Here is an example \BibTeX\ file to get you started.  We define
2020 % strings for the publishers, journals, and authors to avoid
2021 % duplication and minimize the risk of typos, etc.
2022 %
2023 % \iffalse meta-comment
2024 %<*template-bibtex-refs>
2025 % \fi
2026 % \begin{quote} \hrule \begin{verbatim}
2027 %% Publishers
2028 @String{APS = "American Physical Society"}
2029
2030 %% Journals
2031 @String{SCI = "Science"}
2032
2033 %% Authors
2034 @String{MRief = "Rief, Matthias"}
2035 @String{MGautel = "Gautel, Mathias"}
2036 @String{FOesterhelt = "Oesterhelt, Filipp"}
2037 @String{JFernandez = "Fernandez, Julio M."}
2038 @String{HGaub = "Gaub, Hermann E."}
2039
2040 %% Articles
2041 @Article{rief97,
2042   author = MRief #" and "# MGautel #" and "# FOesterhelt #" and "#
2043            JFernandez #" and "# HGaub,
2044   title = "Reversible Unfolding of Individual Titin Immunoglobulin
2045            Domains by {AFM}",
2046   journal = SCI,
2047   volume =  276,
2048   number =  5315,
2049   pages =   "1109--1112",
2050   year =    1997,
2051   doi =     "10.1126/science.276.5315.1109",
2052   URL =     "http://www.sciencemag.org/cgi/content/abstract/276/5315/1109",
2053   eprint =  "http://www.sciencemag.org/cgi/reprint/276/5315/1109.pdf",
2054   mynote = "Seminal paper for force spectroscopy on Titin. Cited by
2055            Dietz '04 (ref 9) as an example of how unfolding large
2056            proteins is easily interpreted (vs.\ confusing unfolding in
2057            bulk), but Titin is a rather simple example of that, because
2058            of its globular-chain structure.",
2059 }
2060 %% ...
2061 % \end{verbatim} \hrule \end{quote}
2062 % \iffalse meta-comment
2063 %</template-bibtex-refs>
2064 % \fi
2065 %
2066 % \Finale
2067 \endinput