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