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}
7 % Copyright (C) 2010 W. Trevor King, Daniel J. Cross, T. Tsankov, and
9 % -------------------------------------------------------
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:
16 % http://www.latex-project.org/lppl.txt
18 % and version 1.3 or later is part of all distributions of LaTeX
19 % version 2003/12/01 or later.
21 % Based on Scott Pakin's dtxtut/cskeleton.dtx
22 % http://www.ctan.org/tex-archive/info/dtxtut/
26 % \iffalse meta-comment
28 \ProvidesFile{drexel-thesis.dtx}
30 %<class>\NeedsTeXFormat{LaTeX2e}
31 %<class>\ProvidesClass{drexel-thesis}
32 %<class> [\filedate\ \fileversion\ Drexel Thesis]
34 % Code for the .ini driver, see section "2.1 The driver file" of doc.dtx.
36 \documentclass{ltxdoc}
37 \usepackage[colorlinks=true]{hyperref}
39 % Include some useful commands from |xkeyval|'s |<preamble>|.
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}}{}
51 % \TeX's arguments aren't optional/mandatory, but they do use brackets
54 \newcommand{\bracearg}[1]{\marg{#1}}
55 \newcommand{\brackarg}[1]{\oarg{#1}}
57 % Define a quick and dirty version of |xkeyval|'s |\DescribeOptions|.
59 \newenvironment{option}[1]{\begin{macro}{#1}}
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
73 \def\DescribeOptions#1{\leavevmode\@bsphack
74 \marginpar{\raggedleft\strut\emph{options}%
76 \\\strut\MacroFont\@tempa\SpecialOptionIndex\@tempa
77 }}\@esphack\ignorespaces}
85 \DocInput{drexel-thesis.dtx}
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 \~}
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.}
119 % \newcommand{\pkg}[1]{\textsf{#1}}
120 % \newcommand{\cls}[1]{\textsf{#1}}
121 % ^^A\newcommand{\BibTeX}{{\sc Bib}\TeX}
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.}
131 % \section{Introduction}
133 % This package defines a \LaTeX\ thesis class for Drexel University
135 % \href{http://www.library.drexel.edu/files/services_documents/thesismanual.pdf}
136 % {Drexel University Thesis Manual version 2009/06/01}.
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,
144 % \documentclass{drexel-thesis}
147 % \subsection{Options}
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).
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
163 % |dottedtoc| & From the example on p17.
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.
175 % \DescribeOption{finalspace}
178 % \DescribeOption{draftspace}
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|.
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.
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.
200 % \subsubsection{Interesting \cls{book} options}
202 % \DescribeOption{oneside}
203 % Setup output for one-sided printing.
205 % \DescribeOption{twoside}
206 % Setup output for two-sided printing.
208 % \DescribeOption{leqno}
209 % |leqno| places the numbering of formulae on the left hand side
210 % instead of the right.
212 % \DescribeOption{fleqn}
213 % |fleqn| typesets displayed formulae left-aligned instead of
217 % \subsection{Macros}
220 % `\cs{author}\marg{name}'
222 % \DescribeMacro{\author}
223 % Use this macro to set your full name to \meta{name}, including
224 % your middle initial or name. For example
226 % \name{Richard P. Feynman}
228 % See the Manual 3.1 p8.
231 % `\cs{title}\marg{title}'
233 % \DescribeMacro{\title}
234 % Use this macro to set your thesis title to \meta{name}. For example
236 % \title{A New Approach to Quantum Theory}
238 % See the Manual p16.
241 % `\cs{advisor}\marg{name}'
243 % \DescribeMacro{\advisor}
244 % Use this macro to set your advisor's name to \meta{name}. For
247 % \advisor{John A. Wheeler, Ph.D.}
249 % See the Manual 3.1 p8.
252 % `\cs{defmonth}\marg{month}'
253 % `\cs{defyear}\marg{year}'
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
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}
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
274 % `\cs{degree}\marg{degree}'
276 % \DescribeMacro{\degree}
277 % Set your target degree with \meta{degree}. From the Manual 3.1 p8.
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|).
284 % So, for a Ph.D candidate,
286 % \degree{Doctor of Philosophy}
290 % `\cs{makecopyright}'
291 % `\cs{makecopyrightCC}'
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.
299 % `\cs{tableofcontents}'
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
315 % For example, to expose everything down to and including the
316 % |\subsection| level, you would add
318 % \setcounter{tocdepth}{2}
320 % to your preamble (the section before |\begin{document}|, not the
321 % |preamble| environment discussed below).
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.
328 % `\cs{listoftables}'
330 % \DescribeMacro{\listoftables}
331 % Write the List of Tables page (Manual 3.7 p10).
332 % Skip if you have no tables in your thesis.
335 % `\cs{listoffigures}'
337 % \DescribeMacro{\listoffigures}
338 % Write the List of Figures page (Manual 3.7 p10).
339 % Skip if you have no figures in your thesis.
342 % `\cs{blanklines}\marg{num}'
344 % \DescribeMacro{\blanklines}
345 % Insert \meta{num} blank lines. For example
349 % The skipped lines are always \emph{single spaced} lines, regardless
350 % of the current line spacing in the environment calling this macro.
353 % \subsection{Environments}
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)
361 % \item |dedication| environment (optional)
362 % \item |acknowledgments| environment (optional)
363 % \item |\tableofcontents|
364 % \item |\listoftables|
365 % \item |\listoffigures|
366 % \item |abstract| environment
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).
371 % \DescribeEnv{dedications}
372 % Set the dedications text.
373 % Highlights from the Manual 3.3 p9:
375 % The |Dedications| page is optional.
378 % \DescribeEnv{acknowledgments}
379 % Set the acknowledgments text.
380 % Highlights from the Manual 3.4 p9:
382 % The |Acknowledgments| page is optional, but most theses do
383 % include a brief statement of thanks or recognition of any special
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.
391 % Highlights from the Manual:
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.
399 % \item Word limits: 600 for a Master's thesis, 350 for a Ph.D.\ thesis.
402 % \DescribeEnv{thesis}
403 % Set the thesis text. In the Thesis Manual, see section 3.10 Thesis
406 % Highlights from the Manual:
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.
418 % Set the thesis vita text (Ph.D.\ only). See the Manual 3.15 p12,
419 % ``Vita'', for details.
421 % Highlights from the Manual:
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.
435 % \subsubsection{Package installation}
436 % \label{sec:dependencies}
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
442 % ! LaTeX Error: File `missing-package.sty' not found.
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.
449 % \subsubsection{Tables and Figures}
451 % From the Manual 2.3 p6, ``Tables and Figures'',
453 % Place figure captions below figures.
454 % Place table captions above tables.
456 % so make sure the |\caption| command is in the appropriate location.
460 % \caption{Some caption text}
461 % \begin{tabular}{...}
469 % \includegraphics{...}
470 % \caption{Some caption text}
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}.
480 % \subsubsection{Citations}
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.
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,...}|).
494 % \subsubsection{References}
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.
500 % \subsubsection{Hyperlinks}
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. \\
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.
515 % \StopEventually{\pagebreak\PrintChanges}
518 % \section{Implementation}
519 % \iffalse meta-comment
523 % For simplicity, we'll derive everything from the standard \cls{book}
527 % \subsection{Option Processing}
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.
534 \RequirePackage{xkeyval}
537 % Define some booleans to store option states
539 \newif\if@mainmatter \@mainmattertrue
540 \newif\if@dottedchapter
541 \newif\if@boldchapter
545 \newif\if@final \@finalfalse
548 % Define some strings to store option arguments
550 \newcommand{\@advisor}{ }
551 \newcommand{\def@month}{ }
552 \newcommand{\def@year}{ }
553 \newcommand{\@degree}{ }
555 % \begin{option}{finalspace}
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
567 % \begin{option}{draftspace}
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
580 % \begin{option}{dottedpart}
582 \DeclareOptionX{dottedpart}{\@dottedparttrue}
585 % \begin{option}{dottedchapter}
587 \DeclareOptionX{dottedchapter}{\@dottedchaptertrue}
590 % \begin{option}{boldpart}
592 \DeclareOptionX{boldpart}{\@boldparttrue}
595 % \begin{option}{boldchapter}
597 \DeclareOptionX{boldchapter}{\@boldchaptertrue}
600 % \begin{option}{dottedtoc}
602 \DeclareOptionX{dottedtoc}{
603 \setkeys{drexel-thesis.cls}{dottedpart}
604 \setkeys{drexel-thesis.cls}{dottedchapter}
608 % \begin{option}{boldtoc}
610 \DeclareOptionX{boldtoc}{
611 \setkeys{drexel-thesis.cls}{boldpart}
612 \setkeys{drexel-thesis.cls}{boldchapter}
617 % Define the book options that |final| and |draft| need to access.
618 % \begin{option}{oneside}
620 \DeclareOptionX{oneside}{\PassOptionsToClass{oneside}{book}}
624 % \begin{option}{twoside}
626 \DeclareOptionX{twoside}{\PassOptionsToClass{twoside}{book}}
630 % \begin{option}{final}
632 \DeclareOptionX{final}{
633 \setkeys{drexel-thesis.cls}{oneside}
634 \setkeys{drexel-thesis.cls}{finalspace}
635 \setkeys{drexel-thesis.cls}{dottedtoc}
640 % \begin{option}{draft}
642 \DeclareOptionX{draft}{
643 \setkeys{drexel-thesis.cls}{twoside}
644 \setkeys{drexel-thesis.cls}{draftspace}
645 \setkeys{drexel-thesis.cls}{dottedtoc}
650 % Use the default \cls{book} implementation for any remaining options
651 % including |oneside|, |twoside|, |leqno|, |fleqn|,
654 \DeclareOptionX*{\PassOptionsToClass{\CurrentOption}{book}}
657 % Execute the default options
659 \ExecuteOptionsX{final}
662 % Process options and load the book class
664 \ProcessOptionsX\relax
669 % \subsection{Internal package includes}
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.
675 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/setspace/}{\pkg{setspace}}
676 % for double spacing.
678 \RequirePackage{setspace}
681 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
683 % \href{http://www.ctan.org/tex-archive/macros/latex/required/tools/}{\pkg{calc}}
684 % for |\blanklines| macro.
686 \RequirePackage{calc}
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:
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''.
697 % And from the Manual 1.5 p4, Print Version:
698 % ``The paper size must be 8 1/2'' x 11''{}''.
700 \RequirePackage[letterpaper,margin=1in,bindingoffset=0.5in]{geometry}
701 % [2008/12/21 v4.2 Page Geometry]
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}.
706 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/}{\pkg{fancyhdr}}
707 % for correct page numbering and fancy headers.
709 \RequirePackage{fancyhdr}
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.
717 \fancyhead[LE,RO]{\slshape\rightmark}
718 \fancyhead[LO,RE]{\slshape\leftmark}
719 \fancyfoot[LE,RO]{\thepage}
721 % Override the |plain| format (for chapter pages, etc.).
723 \fancypagestyle{plain}{
725 \renewcommand{\headrulewidth}{0pt}
726 \fancyfoot[LE,RO]{\thepage}
730 % Setup colon rather than period separated chapter marks, overriding
731 % \cls{book}'s |\chaptermark|.
733 \renewcommand\chaptermark[1]{%
734 \markboth {\MakeUppercase{%
735 \ifnum \c@secnumdepth >\m@ne
737 \@chapapp\ \thechapter: \ %
743 % Setup space rather than period separated section marks, overriding
744 % \cls{book}'s |\sectionmark|.
746 \renewcommand{\sectionmark}[1]{%
747 \markright {\MakeUppercase{%
748 \ifnum \c@secnumdepth >\z@
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.
757 \RequirePackage{ifpdf}
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
764 \RequirePackage{hyperref}
766 % Nobody likes the default colored boxes. Color the text itself.
768 \hypersetup{colorlinks}
770 % If we're writing a PDF, we set the |pdfauthor|, etc.\ arguments in
771 % |\author|, etc.\ to avoid using |\AtBeginDocument| or some such.
774 % \subsection{Macros}
776 % \begin{macro}{\author}
777 % Override |latex.ltx|'s |\author| to set \pkg{hyperref}'s |pdfauthor|.
779 \renewcommand{\author}[1]{
781 \ifpdf \hypersetup{pdfauthor={\@author}} \fi
785 % \begin{macro}{\title}
786 % Override |latex.ltx|'s |\title| to set \pkg{hyperref}'s |pdftitle|.
788 \renewcommand{\title}[1]{
790 \ifpdf \hypersetup{pdftitle={\@title}} \fi
794 % \begin{macro}{\advisor}
796 \newcommand{\advisor}[1]{\renewcommand{\@advisor}{#1}}
799 % \begin{macro}{\defmonth}
801 \newcommand{\defmonth}[1]{\renewcommand{\def@month}{#1}}
804 % \begin{macro}{\defyear}
806 \newcommand{\defyear}[1]{\renewcommand{\def@year}{#1}}
809 % \begin{macro}{\degree}
811 \newcommand{\degree}[1]{
812 \renewcommand{\@degree}{#1}
813 \ifpdf \hypersetup{pdfsubject={\@degree}} \fi
815 % \hypersetup{pdfauthor={\@author}}
816 % \hypersetup{pdftitle={\@title}}
817 % \hypersetup{pdfstartview=FitH}
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.''
827 \newcommand\dedicationsname{Dedications}
830 % \begin{macro}{\acknowledgmentsname}
831 % From the Manual 3.4 p9, ``The heading |Acknowledgments| must appear
832 % at the top of the page.''
834 \newcommand\acknowledgmentsname{Acknowledgments}
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.
841 \renewcommand\contentsname{Table of Contents}
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.
849 \renewcommand\listtablename{List of Tables}
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.
857 \renewcommand\listfigurename{List of Figures}
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''
864 \newcommand\abstractname{Abstract}
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.
872 \renewcommand\bibname{Bibliography}
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.
881 \renewcommand\appendixname{Appendix}
884 % \begin{macro}{\vitaname}
885 % From the Manual 3.15 p13, ``The heading |Vita| must appear at the
888 \newcommand\vitaname{Vita}
892 % \begin{macro}{\blankpage}
893 % Insert a blank page without numbering (except in draft mode).
895 \newcommand\blankpage{%
898 \thispagestyle{empty}
906 % \begin{macro}{\blanklines}
907 % Insert number of blank lines, protecting against external |spacing|
908 % environments. Requires \pkg{calc} for the multiplication.
910 \newlength\blanklines@length
911 \newcommand{\blanklines}[1]{%
913 \setlength{\blanklines@length}{\baselineskip * {#1}}
914 \vspace{\blanklines@length}
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.
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?
927 % Override \cls{book}'s definition.
929 \renewcommand\maketitle{
930 \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
931 \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
932 \long\def\@makefntext##1{\parindent 1em\noindent
934 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
937 \pdfbookmark[-1]{Frontmatter}{frontmatter}
938 \pdfbookmark[0]{Title Page}{title}
942 \begin{spacing}{\@tsp}
945 \begin{spacing}{\@dsp}
947 Submitted to the Faculty\\
952 in partial fulfillment of the\\
953 requirements for the degree\\
956 \def@month\ \def@year
961 \setcounter{footnote}{0}%
962 \global\let\maketitle\relax
963 \global\let\and\relax
968 % \begin{macro}{\m@kecopyright}
969 % Automate the creation of the copyright page.
970 % From Manual 3.2 p9, ``Copyright Page''.
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.
978 \newcommand\m@kecopyright[1]{%
980 \ifpdf \pdfbookmark[0]{Copyright Page}{copyright} \fi
983 \copyright~Copyright \def@year\\
988 % |\thispagestyle{empty}| turns off page numbering for the current
990 % \href{http://www.personal.ceu.hu/tex/pagestyl.htm#pgstyle}{here}.
992 \thispagestyle{empty}
997 % \begin{macro}{\makecopyright}
999 \newcommand\makecopyright{%
1000 \m@kecopyright{All Rights Reserved.}
1005 % \begin{macro}{\makecopyrightCC}
1007 \newcommand\makecopyrightCC{
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/}.
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.
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.
1028 % Override \cls{book}'s definition.
1030 \renewcommand\tableofcontents{%
1034 \pdfbookmark[0]{\contentsname}{tableofcontents}
1036 \chapter*{\contentsname}
1037 \@mkboth{\MakeUppercase\contentsname}%
1038 {\MakeUppercase\contentsname}%
1045 % \subsection{Environments}
1047 % \begin{environment}{preamble}
1049 \newenvironment{preamble}{%
1052 \pagenumbering{roman}
1054 % From Manual 3.1 p8, ``Title Page''.
1058 % From Manual 3.2 p9, ``Copyright Page''.
1063 % From the Manual 3.9, p11:
1065 % Include a blank page (with no page number) before the first page
1066 % of text. The blank page is neither numbered nor counted.
1074 % \begin{environment}{dedications}
1075 % From the Manual 3.3 p9
1077 % \item The heading |Dedications| must appear at the top of the
1078 % page. The heading must be bold, centered, and without
1080 % \item This page is counted and numbered in lowercase Roman numerals.
1083 \newenvironment{dedications}{%
1087 \pdfbookmark[0]{\dedicationsname}{dedications}
1089 \chapter*{\dedicationsname}
1090 \begin{spacing}{\@dsp}
1097 % \begin{environment}{acknowledgments}
1098 % From the Manual 3.4 p9
1100 % \item The heading |Acknowledgments| must appear at the top of the
1101 % page. The heading must be bold, centered, and without
1103 % \item This page is counted and numbered in lowercase Roman numerals.
1106 \newenvironment{acknowledgments}{%
1110 \pdfbookmark[0]{\acknowledgmentsname}{acknowledgments}
1112 \chapter*{\acknowledgmentsname}
1113 \begin{spacing}{\@dsp}
1120 % \begin{environment}{abstract}
1122 \newenvironment{abstract}{%
1124 \thispagestyle{plain}%
1127 \addcontentsline{toc}{chapter}{\abstractname}
1130 % From the Manual 3.9 p10 ``The following heading must be centered at
1131 % the top of the page'':
1134 % Full Title of Dissertation or Thesis \\
1135 % Author's Name as it appears on the Dissertation or Thesis
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.
1140 % On p20, ``These pages are numbered using lowercase Roman numerals.
1141 % Note that the heading is single spaced, but the abstract is double
1144 \begin{spacing}{\@ssp}
1146 {\large \bfseries \abstractname \par}
1147 %% \@endparpenalty\@M
1154 \begin{spacing}{\@dsp}
1164 % \begin{environment}{thesis}
1165 % From the Manual 3.10 p11
1167 % \item The pages are counted and numbered in Arabic numerals.
1170 \newenvironment{thesis}{%
1172 \begin{spacing}{\@dsp}
1178 \pdfbookmark[-1]{Backmatter}{backmatter}
1184 % \begin{environment}{vita}
1185 % From the Manual 3.15 p13
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.
1194 \newenvironment{vita}{%
1197 \addcontentsline{toc}{chapter}{\vitaname}
1198 \chapter*{\vitaname}
1200 \begin{spacing}{\@dsp}
1208 % \subsection{Adjust from the \LaTeX/\cls{book} defaults}
1211 % |\intextsep| sets the space left on top and bottom of an in-text
1213 % \href{http://www.eng.cam.ac.uk/help/tpl/textprocessing/squeeze.html}{here}).
1215 \setlength\intextsep{30pt}
1219 % \subsubsection{Part and chapter headings}
1221 % Override \cls{book}'s |\makechapterhead|.
1222 % From the Manual 3.11 p11.
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:
1228 % CHAPTER 1: INTRODUCTION
1230 % Headings must not be larger than 12 points.
1231 % Headings must be single spaced.
1234 \def\@makechapterhead#1{%
1237 % Replaced |\normalfont| with |\reset@font| (TODO: why?).
1239 {\parindent \z@ \raggedright \reset@font
1240 \ifnum \c@secnumdepth >\m@ne
1242 % Removed |\if@mainmatter| conditional guarding this indented section
1248 \interlinepenalty\@M
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}).
1255 \begin{spacing}{\@ssp}
1256 \center \large \bfseries \@chapapp{} \thechapter: #1\par\nobreak
1263 % Override \cls{book}'s |\@makeschapterhead|. TODO: Why?
1265 \def\@makeschapterhead#1{%
1267 {\parindent \z@ \raggedright
1269 % Replaced |\normalfont| with |\reset@font| (TODO: why?).
1272 \interlinepenalty\@M
1274 % Ensure single spacing.
1276 \begin{spacing}{\@ssp}
1278 % Replaced |\Huge| with |\center \large|
1280 \center \large \bfseries #1\par\nobreak
1282 % Replaced |\vskip 40\p@| with |\blanklines{2}|
1290 % Override \cls{book}'s |\section|, replacing |\Large| with |\large|.
1292 \renewcommand\section{\@startsection {section}{1}{\z@}%
1293 {-3.5ex \@plus -1ex \@minus -.2ex}%
1295 {\normalfont\large\bfseries}}
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.
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}'
1308 % By comparison to \cls{book}'s |\@part| and |\@spart| (see below), I
1309 % imagine they have something to do with formatting section names.
1311 \def\@ssect#1#2#3#4#5{%
1312 \@tempskipa #3\relax
1313 \ifdim \@tempskipa>\z@
1315 \begin{spacing}{\@ssp}
1317 \@hangfrom{\hskip #1}%
1318 \interlinepenalty \@M #5\@@par}%
1322 \def\@svsechd{#4{\hskip #1\relax #5}}%
1328 \def\@sect#1#2#3#4#5#6[#7]#8{%
1329 \ifnum #2>\c@secnumdepth
1332 \refstepcounter{#1}%
1333 \protected@edef\@svsec{\@seccntformat{#1}\relax}%
1335 \@tempskipa #5\relax
1336 \ifdim \@tempskipa>\z@
1338 \begin{spacing}{\@ssp}
1340 \@hangfrom{\hskip #3\relax\@svsec}%
1341 \interlinepenalty \@M #8\@@par}%
1344 \csname #1mark\endcsname{#7}%
1345 \addcontentsline{toc}{#1}{%
1346 \ifnum #2>\c@secnumdepth \else
1347 \protect\numberline{\csname the#1\endcsname}%
1354 \csname #1mark\endcsname{#7}%
1355 \addcontentsline{toc}{#1}{%
1356 \ifnum #2>\c@secnumdepth \else
1357 \protect\numberline{\csname the#1\endcsname}%
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.
1369 \ifnum \c@secnumdepth >-2\relax
1370 \refstepcounter{part}%
1371 \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
1373 \addcontentsline{toc}{part}{#1}%
1377 \interlinepenalty \@M
1379 \ifnum \c@secnumdepth >-2\relax
1380 \large\bfseries \partname\nobreakspace\thepart
1384 \large \bfseries #2\par}%
1388 \interlinepenalty \@M
1390 \large \bfseries #1\par}%
1395 % \subsubsection{Adding TOC entries and blank pages}
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
1402 % The heading |List of Tables| must appear at the top of the first
1404 % The heading must be bold, centered, and without punctuation.
1405 % List table captions exactly as they appear above the tables in
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.
1414 \renewcommand\listoftables{%
1417 \addcontentsline{toc}{chapter}{\listtablename}
1418 \chapter*{\listtablename}%
1419 \@mkboth{\MakeUppercase\listtablename}%
1420 {\MakeUppercase\listtablename}%
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
1430 % The heading |List of Figures| must appear at the top of the first
1432 % The heading must be bold, centered, and without punctuation.
1433 % List figure captions exactly as they appear below the figures in
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.
1442 \renewcommand\listoffigures{%
1445 \addcontentsline{toc}{chapter}{\listfigurename}
1446 \chapter*{\listfigurename}%
1447 \@mkboth{\MakeUppercase\listfigurename}%
1448 {\MakeUppercase\listfigurename}%
1453 % Override |latex.ltx|'s |\bibliography|, adding a line to the table
1456 \def\bibliography#1{%
1457 \addcontentsline{toc}{chapter}{\bibname}
1459 \immediate\write\@auxout{\string\bibdata{#1}}%
1461 \@input@{\jobname.bbl}
1465 % Add a terminal blank page (when |\if@final| is true)
1466 % From the Manual 3.16 p13
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
1473 \AtEndDocument{\blankpage}
1477 % \subsubsection{Captioning}
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.
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}
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
1499 % We also replace the caption lead-in |#1: #2| with
1500 % |\small{\bfseries#1:} #2|.
1502 \newlength\@tempcapskip
1503 \long\def\@makecaption#1#2{%
1505 \@tempcapskip\abovecaptionskip
1506 \abovecaptionskip\belowcaptionskip
1507 \belowcaptionskip\@tempcapskip
1509 \vskip\abovecaptionskip
1510 \sbox\@tempboxa{\small{\bfseries#1:} #2}%
1511 \ifdim \wd\@tempboxa >\hsize
1512 {\small{\bfseries#1:} #2\par}
1514 \global \@minipagefalse
1515 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
1517 \vskip\belowcaptionskip
1519 \@tempcapskip\belowcaptionskip
1520 \belowcaptionskip\abovecaptionskip
1521 \abovecaptionskip\@tempcapskip
1527 % \subsubsection{Adjust table of contents}
1529 % From the \LaTeX\ base class documentation (|classes.dtx| in
1530 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{\LaTeX\ base}})
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
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|.
1541 \renewcommand*\l@chapter[2]{%
1542 \begin{spacing}{\@ssp}
1543 \ifnum \c@tocdepth >\m@ne
1544 \addpenalty{-\@highpenalty}%
1546 % Don't handle spacing here; use the spacing environment at the end of
1549 % \vskip 1.0em \@plus\p@
1550 \setlength\@tempdima{1.5em}%
1552 \parindent \z@ \rightskip \@pnumwidth
1553 \parfillskip -\@pnumwidth
1558 \advance\leftskip\@tempdima
1561 % Insert |\if@dottedchapter| block into |#1\nobreak\hfil \nobreak...|.
1565 \leaders\hbox{$\m@th
1566 \mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}
1569 % Insert |\if@dottedchapter| block into |#1\nobreak\hfil \nobreak...|.
1571 \hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
1572 \penalty\@highpenalty
1574 % Add a content-page-spacing blank after this entry.
1576 \begin{spacing}{\@csp}\par\end{spacing}
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.
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}%
1594 \parindent \z@ \rightskip \@pnumwidth
1595 \parfillskip -\@pnumwidth
1600 \advance\leftskip\@tempdima
1604 \leaders\hbox{$\m@th
1605 \mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}
1607 \hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
1608 \penalty\@highpenalty
1609 \begin{spacing}{\@csp}\par\end{spacing}
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.
1620 \renewcommand*\l@part[2]{%
1621 \begin{spacing}{\@ssp}
1622 \ifnum \c@tocdepth >-2\relax
1623 \addpenalty{-\@highpenalty}%
1625 % Don't handle spacing here; use the spacing environment at the end of
1628 % \addvspace{2.25em \@plus\p@}%
1629 \setlength\@tempdima{3em}%
1631 \parindent \z@ \rightskip \@pnumwidth
1632 \parfillskip -\@pnumwidth
1635 % Replace |\large \bfseries| with |\if@boldpart...|, so the parts are
1636 % the same size as the other entries, and bolding obeys |if@boldpart|.
1643 % Insert |\if@dottedpart| between |#1| and |\hfil|.
1646 \leaders\hbox{$\m@th
1647 \mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}
1649 \hfil \hb@xt@\@pnumwidth{\hss #2}}\par
1651 \global\@nobreaktrue
1652 \everypar{\global\@nobreakfalse\everypar{}}%
1654 % Add a content-page-spacing blank after this entry.
1656 \begin{spacing}{\@csp}\par\end{spacing}
1663 % Override |latex.ltx|'s |\dottedtocline|, adding some |spacing|
1664 % environments. TODO: reasoning.
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
1675 \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
1677 \leaders\hbox{$\m@th
1678 \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
1681 \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}%
1682 \par\begin{spacing}{\@csp}\par\end{spacing}}%
1688 % Override \cls{book}'s (or \pkg{hyperref}'s) |\appendix|, adding
1689 % |\@appendixtrue|. This gets |\if@appendix| working in our
1690 % |\chapter| definition below.
1692 \let\DUT@appendix\appendix
1693 \renewcommand\appendix{%
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.
1709 \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
1711 \refstepcounter{chapter}%
1712 \typeout{\@chapapp\space\thechapter.}%
1714 \addcontentsline{toc}{appendix}%
1715 {\protect\numberline{\@chapapp{} \thechapter:}#1}%
1717 \addcontentsline{toc}{chapter}%
1718 {\protect\numberline{\thechapter}#1}%
1721 \addcontentsline{toc}{chapter}{#1}%
1724 \addcontentsline{toc}{chapter}{#1}%
1727 \addtocontents{lof}{\protect\addvspace{10\p@}}%
1728 \addtocontents{lot}{\protect\addvspace{10\p@}}%
1729 \@makechapterhead{#2}%
1734 % \iffalse meta-comment
1739 % \section{Templates}
1741 % \subsection{Simple}
1743 % \subsubsection{Main}
1745 % \iffalse meta-comment
1748 % \begin{quote} \hrule \begin{verbatim}
1749 %% See drexel-thesis.pdf for details.
1750 \documentclass{drexel-thesis}
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
1760 \usepackage{graphicx} % to include images
1765 \begin{dedications} % OPTIONAL
1766 Type dedications here
1769 \begin{acknowledgments} % OPTIONAL
1770 Type acknowledgments here
1771 \end{acknowledgments}
1774 %% Include these following commands only if you have tables or figures.
1775 %% Tables should come before figures.
1785 %% Use include statements to include your main thesis code
1786 %% from seperate files.
1790 %% unsrt style give references in order of citation
1791 \bibliographystyle{unsrt}
1793 \addcontentsline{toc}{chapter}{\bibname}
1794 \begin{thebibliography}{9}
1795 % widest label (above "9"), when printed, as wide as widest entry label.
1798 \emph{\LaTeX: A Document Preparation System}.
1799 Addison Wesley, Massachusetts,
1803 \end{thebibliography}
1806 %% include files with your appendicies (if any) here
1809 \begin{vita} % Ph.D. only. See Thesis Manual for details.
1814 % \end{verbatim} \hrule \end{quote}
1815 % \iffalse meta-comment
1819 % \subsubsection{Part}
1821 % \iffalse meta-comment
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:
1839 \caption{A table float}
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)} \\
1846 10&0 & 4&3 & 3&75 \\
1847 30&0 & 11&9 & 10&1 \\
1852 Bla bla bla (text to test table/figure spacing)
1867 \includegraphics[width=0.4\textwidth]{drexel-logo}
1869 \caption{A figure float}
1871 Bla bla bla (text to test table/figure spacing)
1884 % \end{verbatim} \hrule \end{quote}
1885 % \iffalse meta-comment
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}).
1893 % |\multicolumn{num_cols}{alignment}{contents}| allows the headings
1894 % to span the pre- and post-decimal columns.
1897 % \subsubsection{Appendix}
1899 % \iffalse meta-comment
1900 %<*template-appendix>
1902 % \begin{quote} \hrule \begin{verbatim}
1903 \chapter{Some Appendix Heading}
1905 \chapter{Another Appendix Heading}
1907 % \end{verbatim} \hrule \end{quote}
1908 % \iffalse meta-comment
1909 %</template-appendix>
1913 % \subsection{\BibTeX/\pkg{natbib}}
1914 % \label{sec:natbib-example}
1916 % \subsubsection{Main}
1918 % \iffalse meta-comment
1919 %<*template-bibtex-main>
1921 % \begin{quote} \hrule \begin{verbatim}
1922 %% See drexel-thesis.pdf for details.
1923 \documentclass{drexel-thesis}
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
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:
1937 \bibliographystyle{plainnat}
1942 \begin{dedications} % OPTIONAL
1943 Type dedications here
1946 \begin{acknowledgments} % OPTIONAL
1947 Type acknowledgments here
1948 \end{acknowledgments}
1951 %% Include these following commands only if you have tables or figures.
1952 %% Tables should come before figures.
1962 %% Use include statements to include your main thesis code
1963 %% from seperate files.
1967 \bibliography{references}
1970 %% include files with your appendicies (if any) here
1973 \begin{vita} % Ph.D. only. See Thesis Manual for details.
1978 % \end{verbatim} \hrule \end{quote}
1979 % \iffalse meta-comment
1980 %</template-bibtex-main>
1983 % \subsubsection{Part}
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}
1990 % \iffalse meta-comment
1991 %<*template-bibtex-part>
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>
2004 % \subsubsection{Bib}
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}.
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}.
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.
2023 % \iffalse meta-comment
2024 %<*template-bibtex-refs>
2026 % \begin{quote} \hrule \begin{verbatim}
2028 @String{APS = "American Physical Society"}
2031 @String{SCI = "Science"}
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."}
2042 author = MRief #" and "# MGautel #" and "# FOesterhelt #" and "#
2043 JFernandez #" and "# HGaub,
2044 title = "Reversible Unfolding of Individual Titin Immunoglobulin
2049 pages = "1109--1112",
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.",
2061 % \end{verbatim} \hrule \end{quote}
2062 % \iffalse meta-comment
2063 %</template-bibtex-refs>