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. \\
174 % \DescribeOption{finalspace}
177 % \DescribeOption{draftspace}
180 % \DescribeOptions{dottedtoc,boldtoc,
181 % dottedpart,boldpart,
182 % dottedchapter,boldchapter}
183 % These options change how the relevant TOC lines are printed
184 % \LaTeX\ defaults to bold but not dots. The |*toc| options set all
185 % of the types. For example, |boldtoc| is equivalent to
186 % |boldchapter,boldpart|.
188 % \DescribeOption{draftwatermark}
189 % |draftwatermark| adds ``DRAFT \meta{date}'' watermarks to each page.
190 % A useful way to remember that the version you're looking at is not final.
191 % Also helps reviewers tell you what version they're correcting.
194 % \subsubsection{Interesting \cls{book} options}
196 % \DescribeOption{oneside}
197 % Setup output for one-sided printing.
199 % \DescribeOption{twoside}
200 % Setup output for two-sided printing.
202 % \DescribeOption{leqno}
203 % |leqno| places the numbering of formulae on the left hand side
204 % instead of the right.
206 % \DescribeOption{fleqn}
207 % |fleqn| typesets displayed formulae left-aligned instead of
211 % \subsection{Macros}
214 % `\cs{author}\marg{name}'
216 % \DescribeMacro{\author}
217 % Use this macro to set your full name to \meta{name}, including
218 % your middle initial or name. For example
220 % \name{Richard P. Feynman}
222 % See the Manual 3.1 p8.
225 % `\cs{title}\marg{title}'
227 % \DescribeMacro{\title}
228 % Use this macro to set your thesis title to \meta{name}. For example
230 % \title{A New Approach to Quantum Theory}
232 % See the Manual p16.
235 % `\cs{advisor}\marg{name}'
237 % \DescribeMacro{\advisor}
238 % Use this macro to set your advisor's name to \meta{name}. For
241 % \advisor{John A. Wheeler, Ph.D.}
243 % See the Manual 3.1 p8.
246 % `\cs{defmonth}\marg{month}'
247 % `\cs{defyear}\marg{year}'
249 % \DescribeMacro{\defmonth}
250 % \DescribeMacro{\defyear}
251 % Use these macros to set the month with \meta{month} (spelled out)
252 % and year with \meta{year} (four digits) of your thesis defense. For
258 % See the Manual 3.1 p8.
259 % The |def| in |\def*| avoids collisions with the plain \TeX\
260 % |\month| and |\year| (see the
261 % \href{http://www.tug.org/utilities/plain/cseq.html#month-rp}{month}
263 % \href{http://www.tug.org/utilities/plain/cseq.html#year-rp}{year}
264 % entries in the HTML version of David Bausum's \emph{TeX Reference
268 % `\cs{degree}\marg{degree}'
270 % \DescribeMacro{\degree}
271 % Set your target degree with \meta{degree}. From the Manual 3.1 p8.
273 % Write out the name of the degree for which you are a candidate.
274 % All Ph.D.\ candidates must use |Doctor of Philosophy|. All
275 % Master's degree candidates should use the precise degree name
276 % (e.g., |Master of Science in Mechanical Engineering|).
278 % So, for a Ph.D candidate,
280 % \degree{Doctor of Philosophy}
284 % `\cs{makecopyright}'
285 % `\cs{makecopyrightCC}'
287 % \DescribeMacros{\makecopyright,\makecopyrightCC}
288 % Write the copyright page (Manual 3.2 p9).
289 % Use |\makecopyright| to reserve all rights or |\makecopyrightCC| for
290 % a Creative Commons copyright.
293 % `\cs{tableofcontents}'
295 % \DescribeMacro{\tableofcontents}
296 % Write the table of contents (Manual 3.5 p9). You can control the
297 % verbosity by setting |\tocdepth| according to the following table
298 % (\href{http://www.image.ufl.edu/help/latex/intext.shtml}{source}). \\
299 % \begin{tabular}{l l l}
300 % Depth in document & Section Command & Depth for |\secnumdepth| Command \\
301 % -1 & |\part| & 1 \\
302 % 0 & |\chapter| & 2 \\
303 % 1 & |\section| & 3 \\
304 % 2 & |\subsection| & 4 \\
305 % 3 & |\subsubsection| & 5 \\
306 % 4 & |\paragraph| & 6 \\
307 % 5 & |\subparagraph| & 7
309 % For example, to expose everything down to and including the
310 % |\subsection| level, you would add
312 % \setcounter{tocdepth}{2}
314 % to your preamble (the section before |\begin{document}|, not the
315 % |preamble| environment discussed below).
317 % Note that the Manual 3.5 p9 requires ``List chapter titles and at
318 % least the first and second order subdivisions.'', which corresponds
319 % to a |\tocdepth| of at least 2.
322 % `\cs{listoftables}'
324 % \DescribeMacro{\listoftables}
325 % Write the List of Tables page (Manual 3.7 p10).
326 % Skip if you have no tables in your thesis.
329 % `\cs{listoffigures}'
331 % \DescribeMacro{\listoffigures}
332 % Write the List of Figures page (Manual 3.7 p10).
333 % Skip if you have no figures in your thesis.
336 % `\cs{blanklines}\marg{num}'
338 % \DescribeMacro{\blanklines}
339 % Insert \meta{num} blank lines. For example
343 % The skipped lines are always \emph{single spaced} lines, regardless
344 % of the current line spacing in the environment calling this macro.
347 % \subsection{Environments}
349 % \DescribeEnv{preamble}
350 % Generalize the |\frontmatter| for the thesis, setting up page
351 % numbering, including the title page, copyright page etc. The
352 % |preamble| environment should contain the following elements
353 % (in order, see the Manual p8)
355 % \item |dedication| environment (optional)
356 % \item |acknowledgments| environment (optional)
357 % \item |\tableofcontents|
358 % \item |\listoftables|
359 % \item |\listoffigures|
360 % \item |abstract| environment
362 % This will take care of everything from the title page (Manual 3.1),
363 % up through the blank page before the text (Manual 3.9).
365 % \DescribeEnv{dedications}
366 % Set the dedications text.
367 % Highlights from the Manual 3.3 p9:
369 % The |Dedications| page is optional.
372 % \DescribeEnv{acknowledgments}
373 % Set the acknowledgments text.
374 % Highlights from the Manual 3.4 p9:
376 % The |Acknowledgments| page is optional, but most theses do
377 % include a brief statement of thanks or recognition of any special
381 % \DescribeEnv{abstract}
382 % Set the thesis abstract text. In the Thesis Manual, see section 3.8
383 % Abstract (p10) for details, p20 for an example.
385 % Highlights from the Manual:
387 % The abstract is a summary that allows readers to determine the
388 % value of reading the full thesis. It should include a statement
389 % of the problem, an outline of procedures or methods, and a summary
390 % of results and conclusions.
393 % \item Word limits: 600 for a Master's thesis, 350 for a Ph.D.\ thesis.
396 % \DescribeEnv{thesis}
397 % Set the thesis text. In the Thesis Manual, see section 3.10 Thesis
400 % Highlights from the Manual:
402 % Divide the text into its major parts/chapters/subsections. No
403 % fixed arrangement is necessary. The major parts may contain such
404 % subjects as introduction, general argument, description of
405 % experimental procedures, research methods, discussion, summary,
406 % conclusions, recommendations, and other pertinent topics that are
407 % necessary for a complete understanding on the part of a
408 % sophisticated or professional reader.
412 % Set the thesis vita text (Ph.D.\ only). See the Manual 3.15 p12,
413 % ``Vita'', for details.
415 % Highlights from the Manual:
417 % The Vita is a biography of the student written in the third person
418 % in either essay or outline form. It should include the full name,
419 % place and date of birth (optional), country of citizenship
420 % (optional), institutions attended, degrees and honors received,
421 % titles of publications, teaching and professional experience, and
422 % other pertinent data. The Vita must be one page or less.
429 % \subsubsection{Package installation}
430 % \label{sec:dependencies}
432 % All the packages this class depends on must be installed somewhere
433 % in your texmf tree (they probably already are). If not, you will
434 % recieve warning messages on compilation such as
436 % ! LaTeX Error: File `missing-package.sty' not found.
438 % You should then install the missing package(s) using your operating
439 % systems package manager, or grab the missing package from
440 % \href{http://www.ctan.org/}{CTAN}, and install them following TODO.
443 % \subsubsection{Tables and Figures}
445 % From the Manual 2.3 p6, ``Tables and Figures'',
447 % Place figure captions below figures.
448 % Place table captions above tables.
450 % so make sure the |\caption| command is in the appropriate location.
454 % \caption{Some caption text}
455 % \begin{tabular}{...}
463 % \includegraphics{...}
464 % \caption{Some caption text}
467 % Note that you'll want to use the
468 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
469 % package to define the |\includegraphics| macro. For more useful
470 % float information, see the
471 % \href{http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions}{\LaTeX wikibook page}.
474 % \subsubsection{Citations}
476 % I highly recommend using \BibTeX\ and
477 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}{\pkg{natbib}}.
478 % See Section \ref{sec:natbib-example} for a simple example.
480 % Suggested options:\\
481 % \begin{tabular}{r p{0.8\textwidth}}
482 % |super| & selects citations in superscript mode. \\
483 % |sort&compress| & automatically sorts and compresses compound
484 % citations (|\pcite{a,b,...}|).
488 % \subsubsection{References}
490 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/cleveref/}{\pkg{cleveref}}.
491 % Is a wonderful tool for easy, consistent crosslinking. The manual is also very good.
494 % \subsubsection{Hyperlinks}
496 % \cls{drexel-thesis} loads
497 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{\pkg{hyperref}}.
498 % with the options:\\
499 % \begin{tabular}{r p{0.8\textwidth}}
500 % |colorlinks| & color the link letters instead of drawing colored boxes. \\
503 % If running with a pdftex-based driver, |\author|, |\title|, and
504 % |\degree| automatically set |pdfauthor|, |pdftitle|, and
505 % |pdfsubject| respectively. You can use the |\hypersetup| macro to
506 % set options overriding these defaults.
509 % \StopEventually{\pagebreak\PrintChanges}
512 % \section{Implementation}
513 % \iffalse meta-comment
517 % For simplicity, we'll derive everything from the standard \cls{book}
521 % \subsection{Option Processing}
524 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xkeyval/}{\pkg{xkeyval}}
525 % for easier option parsing. If the package is not installed on your system,
526 % see Section \ref{sec:dependencies} for installation instructions.
528 \RequirePackage{xkeyval}
531 % Define some booleans to store option states
533 \newif\if@mainmatter \@mainmattertrue
534 \newif\if@dottedchapter
535 \newif\if@boldchapter
538 \newif\if@draftwatermark
540 \newif\if@final \@finalfalse
543 % Define some strings to store option arguments
545 \newcommand{\@advisor}{ }
546 \newcommand{\def@month}{ }
547 \newcommand{\def@year}{ }
548 \newcommand{\@degree}{ }
550 % \begin{option}{finalspace}
552 \DeclareOptionX{finalspace}{
553 \setlength\overfullrule{0pt}
554 \def\@csp{2} % content page spacing
555 \def\@ssp{1} % single space
556 \def\@dsp{2} % double space
557 \def\@tsp{3} % triple space
562 % \begin{option}{draftspace}
564 \DeclareOptionX{draftspace}{
565 \setlength\overfullrule{5pt}
566 \def\@csp{1} % content page spacing
567 \def\@ssp{1} % single space
568 \def\@dsp{1} % double space
569 \def\@tsp{2} % triple space
575 % \begin{option}{dottedpart}
577 \DeclareOptionX{dottedpart}{\@dottedparttrue}
580 % \begin{option}{dottedchapter}
582 \DeclareOptionX{dottedchapter}{\@dottedchaptertrue}
585 % \begin{option}{boldpart}
587 \DeclareOptionX{boldpart}{\@boldparttrue}
590 % \begin{option}{boldchapter}
592 \DeclareOptionX{boldchapter}{\@boldchaptertrue}
595 % \begin{option}{dottedtoc}
597 \DeclareOptionX{dottedtoc}{
598 \setkeys{drexel-thesis.cls}{dottedpart}
599 \setkeys{drexel-thesis.cls}{dottedchapter}
603 % \begin{option}{boldtoc}
605 \DeclareOptionX{boldtoc}{
606 \setkeys{drexel-thesis.cls}{boldpart}
607 \setkeys{drexel-thesis.cls}{boldchapter}
612 % \begin{option}{draftwatermark}
613 % Set draft watermark flag
615 \DeclareOptionX{draftwatermark}{\@draftwatermarktrue}
619 % Define the book options that |final| and |draft| need to access.
620 % \begin{option}{oneside}
622 \DeclareOptionX{oneside}{\PassOptionsToClass{oneside}{book}}
626 % \begin{option}{twoside}
628 \DeclareOptionX{twoside}{\PassOptionsToClass{twoside}{book}}
632 % \begin{option}{final}
634 \DeclareOptionX{final}{
635 \setkeys{drexel-thesis.cls}{oneside}
636 \setkeys{drexel-thesis.cls}{finalspace}
637 \setkeys{drexel-thesis.cls}{dottedtoc}
642 % \begin{option}{draft}
644 \DeclareOptionX{draft}{
645 \setkeys{drexel-thesis.cls}{twoside}
646 \setkeys{drexel-thesis.cls}{draftspace}
647 \setkeys{drexel-thesis.cls}{dottedtoc}
648 \setkeys{drexel-thesis.cls}{draftwatermark}
653 % Use the default \cls{book} implementation for any remaining options
654 % including |oneside|, |twoside|, |leqno|, |fleqn|,
657 \DeclareOptionX*{\PassOptionsToClass{\CurrentOption}{book}}
660 % Execute the default options
662 \ExecuteOptionsX{final}
665 % Process options and load the book class
667 \ProcessOptionsX\relax
672 % \subsection{Internal package includes}
674 % Include some other packages we'll need. If the package is not
675 % installed on your system, see Section \ref{sec:dependencies} for
676 % installation instructions.
678 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/setspace/}{\pkg{setspace}}
679 % for double spacing.
681 \RequirePackage{setspace}
684 % \href{http://www.ctan.org/tex-archive/macros/latex/required/tools/}{\pkg{calc}}
685 % for |\blanklines| macro.
687 \RequirePackage{calc}
690 % The Comp.~Sci.\ class used
691 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftcopy/}{\pkg{draftcopy}}
692 % to add their watermarks, but as of the current 2002/02/25 v2.16, it
693 % uses postscript specials, and so doesn't work with pdf\LaTeX.
694 % Instead we use the recent (catalogued 2009/11/03)
695 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftmark/}{\pkg{draftmark}}
696 % which unfortunately has a number of apparently non-standard dependencies
697 % (\href{http://www.ctan.org/tex-archive/macros/latex/contrib/etextools/}{\pkg{etextools}},
698 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/etoolbox/}{\pkg{etoolbox}},
699 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xifthen/}{\pkg{xifthen}},
700 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/ltxnew/}{\pkg{ltxnew}},
701 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/pagerange/}{\pkg{pagerange}},
702 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/lastpage/}{\pkg{lastpage}},
703 % if only I had the space to install |texlive-latexextra| |:p|).
704 % The output is, however, very flexible, and it \emph{does} work with
705 % both \LaTeX and pdf\LaTeX. If you don't like the default watermark,
706 % you can also adjust the particulars with |\draftmarksetup|.
709 \RequirePackage[draft,allpages,mark={DRAFT \today},
710 fontsize=2cm,grayness=0.9]{draftmark}
714 % Setup page margins with the
715 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/geometry/}{\pkg{geometry}}
716 % package. From the Manual p5:
718 % \item The left margin must be at least 1 1/2'' (1.5 inches)
719 % throughout the document.
720 % \item All other margins (top, bottom, and right) must be at least 1''.
722 % And from the Manual 1.5 p4, Print Version:
723 % ``The paper size must be 8 1/2'' x 11''{}''.
725 \RequirePackage[letterpaper,margin=1in,bindingoffset=0.5in]{geometry}
727 % Note that we include the \pkg{geometry} package after loading \cls{book} to
728 % override the margin manipulation that takes place in \cls{book}.
730 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/}{\pkg{fancyhdr}}
731 % for correct page numbering and fancy headers.
733 \RequirePackage{fancyhdr}
735 % Setup the standard |fancy| format. |\leftmark| is the higher level
736 % mark, see |\chaptermark| below. |\rightmark| is the lower level
737 % mark, see |\sectionmark| below.
741 \fancyhead[LE,RO]{\slshape\rightmark}
742 \fancyhead[LO,RE]{\slshape\leftmark}
743 \fancyfoot[LE,RO]{\thepage}
745 % Override the |plain| format (for chapter pages, etc.).
747 \fancypagestyle{plain}{
749 \renewcommand{\headrulewidth}{0pt}
750 \fancyfoot[LE,RO]{\thepage}
754 % Setup colon rather than period separated chapter marks, overriding
755 % \cls{book}'s |\chaptermark|.
757 \renewcommand\chaptermark[1]{%
758 \markboth {\MakeUppercase{%
759 \ifnum \c@secnumdepth >\m@ne
761 \@chapapp\ \thechapter: \ %
767 % Setup space rather than period separated section marks, overriding
768 % \cls{book}'s |\sectionmark|.
770 \renewcommand{\sectionmark}[1]{%
771 \markright {\MakeUppercase{%
772 \ifnum \c@secnumdepth >\z@
778 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
779 % for |\includegraphics|. Not strictly necessary, but I can't imagine
780 % a thesis without figures.
782 \RequirePackage{graphicx}
785 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{ifpdf}}
786 % for detecting PDF drivers. We use it to configure \pkg{hyperref} below.
788 \RequirePackage{ifpdf}
791 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{\pkg{hyperref}}
792 % for hyperlinks. Not strictly necessary, but I can't imagine a
795 \RequirePackage{hyperref}
797 % Nobody likes the default colored boxes. Color the text itself.
799 \hypersetup{colorlinks}
801 % If we're writing a PDF, we set the |pdfauthor|, etc.\ arguments in
802 % |\author|, etc.\ to avoid using |\AtBeginDocument| or some such.
805 % \subsection{Macros}
807 % \begin{macro}{\author}
808 % Override |latex.ltx|'s |\author| to set \pkg{hyperref}'s |pdfauthor|.
810 \renewcommand{\author}[1]{
812 \ifpdf \hypersetup{pdfauthor={\@author}} \fi
816 % \begin{macro}{\title}
817 % Override |latex.ltx|'s |\title| to set \pkg{hyperref}'s |pdftitle|.
819 \renewcommand{\title}[1]{
821 \ifpdf \hypersetup{pdftitle={\@title}} \fi
825 % \begin{macro}{\advisor}
827 \newcommand{\advisor}[1]{\renewcommand{\@advisor}{#1}}
830 % \begin{macro}{\defmonth}
832 \newcommand{\defmonth}[1]{\renewcommand{\def@month}{#1}}
835 % \begin{macro}{\defyear}
837 \newcommand{\defyear}[1]{\renewcommand{\def@year}{#1}}
840 % \begin{macro}{\degree}
842 \newcommand{\degree}[1]{
843 \renewcommand{\@degree}{#1}
844 \ifpdf \hypersetup{pdfsubject={\@degree}} \fi
846 % \hypersetup{pdfauthor={\@author}}
847 % \hypersetup{pdftitle={\@title}}
848 % \hypersetup{pdfstartview=FitH}
853 % Set the official names of the various sections encountered
854 % \begin{macro}{\dedicationsname}
855 % From the Manual 3.3 p9, ``The heading |Dedications| must appear at
856 % the top of the page.''
858 \newcommand\dedicationsname{Dedications}
861 % \begin{macro}{\acknowledgmentsname}
862 % From the Manual 3.4 p9, ``The heading |Acknowledgments| must appear
863 % at the top of the page.''
865 \newcommand\acknowledgmentsname{Acknowledgments}
868 % \begin{macro}{\contentsname}
869 % From the Manual 3.5 p9, ``The heading |Table of Contents| must
870 % appear at the top of the page.'' Override \cls{book}'s definition.
872 \renewcommand\contentsname{Table of Contents}
875 % \begin{macro}{\listtablename}
876 % From the Manual 3.6 p10, ``The heading |List of Tables| must appear
877 % at the top of the page.''
878 % Override \cls{book}'s definition.
880 \renewcommand\listtablename{List of Tables}
883 % \begin{macro}{\listfigurename}
884 % From the Manual 3.7 p10, ``The heading |List of Figures| must appear
885 % at the top of the page.''
886 % Override \cls{book}'s definition.
888 \renewcommand\listfigurename{List of Figures}
891 % \begin{macro}{\abstractname}
892 % From the Manual 3.8 p10, ``The following heading must be centered at
893 % the top of the first page: |Abstract|\ldots''
895 \newcommand\abstractname{Abstract}
898 % \begin{macro}{\bibname}
899 % From the Manual 3.13 p12, ``The heading |Bibliography| (or
900 % |List of References|) must appear at the top of first page.''
901 % Override \cls{book}'s definition.
903 \renewcommand\bibname{Bibliography}
906 % \begin{macro}{\appendixname}
907 % From the Manual 3.14 p12, ``Number the appendicies consecutively
908 % either alphabetically or numerically (|Appendix A|, |Appendix B|\ldots
909 % or |Appendix 1|, |Appendix 2|\ldots).''
910 % Override \cls{book}'s definition.
912 \renewcommand\appendixname{Appendix}
915 % \begin{macro}{\vitaname}
916 % From the Manual 3.15 p13, ``The heading |Vita| must appear at the
919 \newcommand\vitaname{Vita}
923 % \begin{macro}{\blankpage}
924 % Insert a blank page without numbering (except in draft mode).
926 \newcommand\blankpage{%
929 \thispagestyle{empty}
937 % \begin{macro}{\blanklines}
938 % Insert number of blank lines, protecting against external |spacing|
939 % environments. Requires \pkg{calc} for the multiplication.
941 \newlength\blanklines@length
942 \newcommand{\blanklines}[1]{%
944 \setlength{\blanklines@length}{\baselineskip * {#1}}
945 \vspace{\blanklines@length}
951 % \begin{macro}{\maketitle}
952 % Automate the creation of the title page.
953 % From Manual 3.1 p8, ``Title Page'', and the example on p16.
955 % \item This page is counted but not numbered (it counts as page i,
956 % but should not have a page number). TODO: How is this implemented?
958 % Override \cls{book}'s definition.
960 \renewcommand\maketitle{
961 \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
962 \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
963 \long\def\@makefntext##1{\parindent 1em\noindent
965 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
968 \pdfbookmark[-1]{Frontmatter}{frontmatter}
969 \pdfbookmark[0]{Title Page}{title}
973 \begin{spacing}{\@tsp}
976 \begin{spacing}{\@dsp}
978 Submitted to the Faculty\\
983 in partial fulfillment of the\\
984 requirements for the degree\\
987 \def@month\ \def@year
992 \setcounter{footnote}{0}%
993 \global\let\maketitle\relax
994 \global\let\and\relax
999 % \begin{macro}{\m@kecopyright}
1000 % Automate the creation of the copyright page.
1001 % From Manual 3.2 p9, ``Copyright Page''.
1003 % \item Include a copyright page with the following information: a
1004 % copyright notice, full legal name of author, and date of
1005 % publication on file.
1006 % \item This page is neither counted nor numbered.
1009 \newcommand\m@kecopyright[1]{%
1011 \ifpdf \pdfbookmark[0]{Copyright Page}{copyright} \fi
1014 \copyright~Copyright \def@year\\
1019 % |\thispagestyle{empty}| turns off page numbering for the current
1021 % \href{http://www.personal.ceu.hu/tex/pagestyl.htm#pgstyle}{here}.
1023 \thispagestyle{empty}
1028 % \begin{macro}{\makecopyright}
1030 \newcommand\makecopyright{%
1031 \m@kecopyright{All Rights Reserved.}
1036 % \begin{macro}{\makecopyrightCC}
1038 \newcommand\makecopyrightCC{
1041 This work is licensed under the terms of the Creative Commons
1042 Attribution-ShareAlike license. The license is available at \\
1043 \url{http://creativecommons.org/licenses/by-sa/2.0/}.
1050 % \begin{macro}{\tableofcontents}
1051 % Automate the creation of the table of contents.
1052 % From Manual 3.5 p9, ``Table of Contents'', and the example on p17.
1054 % \item Do not list any sections that precede the
1055 % |Table of Contents| (e.g.\ |Dedications|, |Acknowledgments|). Do
1056 % not list the |Table of Contents| itself.
1057 % \item These pages are counted and numbered in lowercase Roman numerals.
1059 % Override \cls{book}'s definition.
1061 \renewcommand\tableofcontents{%
1065 \pdfbookmark[0]{\contentsname}{tableofcontents}
1067 \chapter*{\contentsname}
1068 \@mkboth{\MakeUppercase\contentsname}%
1069 {\MakeUppercase\contentsname}%
1076 % \subsection{Environments}
1078 % \begin{environment}{preamble}
1080 \newenvironment{preamble}{%
1083 \pagenumbering{roman}
1085 % From Manual 3.1 p8, ``Title Page''.
1089 % From Manual 3.2 p9, ``Copyright Page''.
1094 % From the Manual 3.9, p11:
1096 % Include a blank page (with no page number) before the first page
1097 % of text. The blank page is neither numbered nor counted.
1105 % \begin{environment}{dedications}
1106 % From the Manual 3.3 p9
1108 % \item The heading |Dedications| must appear at the top of the
1109 % page. The heading must be bold, centered, and without
1111 % \item This page is counted and numbered in lowercase Roman numerals.
1114 \newenvironment{dedications}{%
1118 \pdfbookmark[0]{\dedicationsname}{dedications}
1120 \chapter*{\dedicationsname}
1121 \begin{spacing}{\@dsp}
1128 % \begin{environment}{acknowledgments}
1129 % From the Manual 3.4 p9
1131 % \item The heading |Acknowledgments| must appear at the top of the
1132 % page. The heading must be bold, centered, and without
1134 % \item This page is counted and numbered in lowercase Roman numerals.
1137 \newenvironment{acknowledgments}{%
1141 \pdfbookmark[0]{\acknowledgmentsname}{acknowledgments}
1143 \chapter*{\acknowledgmentsname}
1144 \begin{spacing}{\@dsp}
1151 % \begin{environment}{abstract}
1153 \newenvironment{abstract}{%
1155 \thispagestyle{plain}%
1158 \addcontentsline{toc}{chapter}{\abstractname}
1161 % From the Manual 3.9 p10 ``The following heading must be centered at
1162 % the top of the page'':
1165 % Full Title of Dissertation or Thesis \\
1166 % Author's Name as it appears on the Dissertation or Thesis
1168 % In the example on p20, they list the advisor's name after the
1169 % author, but that is not specified in the text on p10.
1171 % On p20, ``These pages are numbered using lowercase Roman numerals.
1172 % Note that the heading is single spaced, but the abstract is double
1175 \begin{spacing}{\@ssp}
1177 {\large \bfseries \abstractname \par}
1178 %% \@endparpenalty\@M
1185 \begin{spacing}{\@dsp}
1195 % \begin{environment}{thesis}
1196 % From the Manual 3.10 p11
1198 % \item The pages are counted and numbered in Arabic numerals.
1201 \newenvironment{thesis}{%
1203 \begin{spacing}{\@dsp}
1209 \pdfbookmark[-1]{Backmatter}{backmatter}
1215 % \begin{environment}{vita}
1216 % From the Manual 3.15 p13
1218 % \item The heading |Vita| must appear at the top of the page. The
1219 % heading must be bold, centered, and without punctuation.
1220 % \item The Vita text should begin four spaces below the heading.
1221 % \item List the Vita separately in the Table of Contents.
1222 % \item The page is counted and numbered in Arabic numerals.
1225 \newenvironment{vita}{%
1228 \addcontentsline{toc}{chapter}{\vitaname}
1229 \chapter*{\vitaname}
1231 \begin{spacing}{\@dsp}
1239 % \subsection{Adjust from the \LaTeX/\cls{book} defaults}
1242 % |\intextsep| sets the space left on top and bottom of an in-text
1244 % \href{http://www.eng.cam.ac.uk/help/tpl/textprocessing/squeeze.html}{here}).
1246 \setlength\intextsep{30pt}
1250 % \subsubsection{Part and chapter headings}
1252 % Override \cls{book}'s |\makechapterhead|.
1253 % From the Manual 3.11 p11.
1255 % Chapter headings must be bold and centered.
1256 % The chapter number and title must be on the same line, separated
1257 % by a colon or period, as shown in the example below:
1259 % CHAPTER 1: INTRODUCTION
1261 % Headings must not be larger than 12 points.
1262 % Headings must be single spaced.
1265 \def\@makechapterhead#1{%
1268 % Replaced |\normalfont| with |\reset@font| (TODO: why?).
1270 {\parindent \z@ \raggedright \reset@font
1271 \ifnum \c@secnumdepth >\m@ne
1273 % Removed |\if@mainmatter| conditional guarding this indented section
1279 \interlinepenalty\@M
1281 % Ensure single spacing, and ensure the chapter heading will have a
1282 % centered, |\large|, bold \emph{Chapter \#: Title} or \emph{Appendix
1283 % \#: Title} format (as opposed to \cls{book}'s unaligned, |\Huge|,
1284 % bold \emph{Title}).
1286 \begin{spacing}{\@ssp}
1287 \center \large \bfseries \@chapapp{} \thechapter: #1\par\nobreak
1294 % Override \cls{book}'s |\@makeschapterhead|. TODO: Why?
1296 \def\@makeschapterhead#1{%
1298 {\parindent \z@ \raggedright
1300 % Replaced |\normalfont| with |\reset@font| (TODO: why?).
1303 \interlinepenalty\@M
1305 % Ensure single spacing.
1307 \begin{spacing}{\@ssp}
1309 % Replaced |\Huge| with |\center \large|
1311 \center \large \bfseries #1\par\nobreak
1313 % Replaced |\vskip 40\p@| with |\blanklines{2}|
1321 % Override \cls{book}'s |\section|, replacing |\Large| with |\large|.
1323 \renewcommand\section{\@startsection {section}{1}{\z@}%
1324 {-3.5ex \@plus -1ex \@minus -.2ex}%
1326 {\normalfont\large\bfseries}}
1329 % Fix |\@ssect| and |\@sect| from |latex.ltx| to give single spaced
1330 % headings. These macros are defined in |ltsect.dtx|
1331 % (\href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{\LaTeX\ base}})),
1332 % but the documentation there is not great.
1334 % `\cs{@ssect}\bracearg{INDENT}\bracearg{BEFORESKIP}\bracearg{AFTERSKIP}'
1335 % `~~\bracearg{STYLE}\bracearg{ARG}'
1336 % `\cs{@sect}\bracearg{NAME}\bracearg{LEVEL}\bracearg{INDENT}\bracearg{BEFORESKIP}'
1337 % `~~\bracearg{AFTERSKIP}\bracearg{STYLE}\brackarg{ARG1}\bracearg{ARG2}'
1339 % By comparison to \cls{book}'s |\@part| and |\@spart| (see below), I
1340 % imagine they have something to do with formatting section names.
1342 \def\@ssect#1#2#3#4#5{%
1343 \@tempskipa #3\relax
1344 \ifdim \@tempskipa>\z@
1346 \begin{spacing}{\@ssp}
1348 \@hangfrom{\hskip #1}%
1349 \interlinepenalty \@M #5\@@par}%
1353 \def\@svsechd{#4{\hskip #1\relax #5}}%
1359 \def\@sect#1#2#3#4#5#6[#7]#8{%
1360 \ifnum #2>\c@secnumdepth
1363 \refstepcounter{#1}%
1364 \protected@edef\@svsec{\@seccntformat{#1}\relax}%
1366 \@tempskipa #5\relax
1367 \ifdim \@tempskipa>\z@
1369 \begin{spacing}{\@ssp}
1371 \@hangfrom{\hskip #3\relax\@svsec}%
1372 \interlinepenalty \@M #8\@@par}%
1375 \csname #1mark\endcsname{#7}%
1376 \addcontentsline{toc}{#1}{%
1377 \ifnum #2>\c@secnumdepth \else
1378 \protect\numberline{\csname the#1\endcsname}%
1385 \csname #1mark\endcsname{#7}%
1386 \addcontentsline{toc}{#1}{%
1387 \ifnum #2>\c@secnumdepth \else
1388 \protect\numberline{\csname the#1\endcsname}%
1395 % Override \cls{book}'s |\@part| and |\@spart|, replacing |\Huge| with
1396 % |\large|. From |classes.dtx|, |\@part| formats the title of the part,
1397 % and |\@spart| formats the title of a starred part.
1400 \ifnum \c@secnumdepth >-2\relax
1401 \refstepcounter{part}%
1402 \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
1404 \addcontentsline{toc}{part}{#1}%
1408 \interlinepenalty \@M
1410 \ifnum \c@secnumdepth >-2\relax
1411 \large\bfseries \partname\nobreakspace\thepart
1415 \large \bfseries #2\par}%
1419 \interlinepenalty \@M
1421 \large \bfseries #1\par}%
1426 % \subsubsection{Adding TOC entries and blank pages}
1428 % Override \cls{book}'s |\listoftables|, selecting the false branch
1429 % of the |\if@twocolumn| conditionals, adding a line to the table of
1430 % contents, and clearing the page.
1431 % From the Manual 3.6 p10
1433 % The heading |List of Tables| must appear at the top of the first
1435 % The heading must be bold, centered, and without punctuation.
1436 % List table captions exactly as they appear above the tables in
1438 % Single space each entry, but double-space between entries.
1439 % Separate table captions from page numbers with right-justified
1440 % tabs and dot leaders.
1441 % Do not use periods to separate captions and page numbers.
1442 % These pages are counted and numbered in lowercase Roman numerals.
1445 \renewcommand\listoftables{%
1448 \addcontentsline{toc}{chapter}{\listtablename}
1449 \chapter*{\listtablename}%
1450 \@mkboth{\MakeUppercase\listtablename}%
1451 {\MakeUppercase\listtablename}%
1456 % Override \cls{book}'s |\listoffigures|, selecting the false branch
1457 % of the |\if@twocolumn| conditionals, adding a line to the table of
1458 % contents, and clearing the page.
1459 % From the Manual 3.7 p10
1461 % The heading |List of Figures| must appear at the top of the first
1463 % The heading must be bold, centered, and without punctuation.
1464 % List figure captions exactly as they appear below the figures in
1466 % Single space each entry, but double-space between entries.
1467 % Separate figure captions from page numbers with right-justified
1468 % tabs and dot leaders.
1469 % Do not use periods to separate captions and page numbers.
1470 % These pages are counted and numbered in lowercase Roman numerals.
1473 \renewcommand\listoffigures{%
1476 \addcontentsline{toc}{chapter}{\listfigurename}
1477 \chapter*{\listfigurename}%
1478 \@mkboth{\MakeUppercase\listfigurename}%
1479 {\MakeUppercase\listfigurename}%
1484 % Override |latex.ltx|'s |\bibliography|, adding a line to the table
1487 \def\bibliography#1{%
1488 \addcontentsline{toc}{chapter}{\bibname}
1490 \immediate\write\@auxout{\string\bibdata{#1}}%
1492 \@input@{\jobname.bbl}
1496 % Add a terminal blank page (when |\if@final| is true)
1497 % From the Manual 3.16 p13
1499 % Include a blank page (with no page number) at the end of the
1500 % thesis or dissertation. The blank page is neither counted nor
1504 \AtEndDocument{\blankpage}
1508 % \subsubsection{Captioning}
1510 % These are to get spacing right after table captions and make the
1511 % spacing around floats symmetrical. First, set |\if@table| in the
1512 % |table| environments.
1514 \newif\if@table \@tablefalse
1515 \renewenvironment{table}
1516 {\@tabletrue\@float{table}}
1517 {\end@float\@tablefalse}
1518 \renewenvironment{table*}
1519 {\@tabletrue\@dblfloat{table}}
1520 {\end@dblfloat\@tablefalse}
1522 % Now override \cls{book}'s |\@makecaption|, adding two |\if@table|
1523 % conditionals, which swap |\abovecaptionskip| and |\belowcaptionskip|
1524 % for tables (where the caption is above the float body). With our
1525 % implementation, |\belowcaptionskip| \emph{always} gives the distance
1526 % between the caption and the text, and |\abovecaptionskip|
1527 % \emph{always} gives the distance between the caption and the float
1530 % We also replace the caption lead-in |#1: #2| with
1531 % |\small{\bfseries#1:} #2|.
1533 \newlength\@tempcapskip
1534 \long\def\@makecaption#1#2{%
1536 \@tempcapskip\abovecaptionskip
1537 \abovecaptionskip\belowcaptionskip
1538 \belowcaptionskip\@tempcapskip
1540 \vskip\abovecaptionskip
1541 \sbox\@tempboxa{\small{\bfseries#1:} #2}%
1542 \ifdim \wd\@tempboxa >\hsize
1543 {\small{\bfseries#1:} #2\par}
1545 \global \@minipagefalse
1546 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
1548 \vskip\belowcaptionskip
1550 \@tempcapskip\belowcaptionskip
1551 \belowcaptionskip\abovecaptionskip
1552 \abovecaptionskip\@tempcapskip
1558 % \subsubsection{Adjust table of contents}
1560 % From the \LaTeX\ base class documentation (|classes.dtx| in
1561 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{\LaTeX\ base}})
1563 % The command |\contentsline{|\meta{name}|}| expands to
1564 % |\l@|\meta{name}. So, to specify the table of contents, we must
1565 % define |\l@chapter|, \ldots
1568 % Override \cls{book}'s |\l@chapter| for printing TOC entries, adding
1569 % |spacing| environments to ensure single spacing, only using bold if
1570 % |\if@boldchapter| is true, handling |\if@dottedchapter|.
1572 \renewcommand*\l@chapter[2]{%
1573 \begin{spacing}{\@ssp}
1574 \ifnum \c@tocdepth >\m@ne
1575 \addpenalty{-\@highpenalty}%
1577 % Don't handle spacing here; use the spacing environment at the end of
1580 % \vskip 1.0em \@plus\p@
1581 \setlength\@tempdima{1.5em}%
1583 \parindent \z@ \rightskip \@pnumwidth
1584 \parfillskip -\@pnumwidth
1589 \advance\leftskip\@tempdima
1592 % Insert |\if@dottedchapter| block into |#1\nobreak\hfil \nobreak...|.
1596 \leaders\hbox{$\m@th
1597 \mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}
1600 % Insert |\if@dottedchapter| block into |#1\nobreak\hfil \nobreak...|.
1602 \hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
1603 \penalty\@highpenalty
1605 % Add a content-page-spacing blank after this entry.
1607 \begin{spacing}{\@csp}\par\end{spacing}
1614 % Add |\l@appendix|, identical to our |\l@chapter|, except for
1615 % setting |\@tempdima| to 6.5em rather than 1.5em. TODO: Why?
1616 % TODO: Consolidate to \l@chapapp[3] calls.
1618 \newcommand*\l@appendix[2]{%
1619 \begin{spacing}{\@ssp}
1620 \ifnum \c@tocdepth >\m@ne
1621 \addpenalty{-\@highpenalty}%
1622 % \vskip 1.0em \@plus\p@
1623 \setlength\@tempdima{6.5em}%
1625 \parindent \z@ \rightskip \@pnumwidth
1626 \parfillskip -\@pnumwidth
1631 \advance\leftskip\@tempdima
1635 \leaders\hbox{$\m@th
1636 \mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}
1638 \hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
1639 \penalty\@highpenalty
1640 \begin{spacing}{\@csp}\par\end{spacing}
1647 % Add |\l@part|, identical to our |\l@chapter|, except for
1648 % setting |\@tempdima| to 6.5em rather than 1.5em. TODO: Why?
1649 % TODO: Consolidate to \l@chapapp[3] calls.
1651 \renewcommand*\l@part[2]{%
1652 \begin{spacing}{\@ssp}
1653 \ifnum \c@tocdepth >-2\relax
1654 \addpenalty{-\@highpenalty}%
1656 % Don't handle spacing here; use the spacing environment at the end of
1659 % \addvspace{2.25em \@plus\p@}%
1660 \setlength\@tempdima{3em}%
1662 \parindent \z@ \rightskip \@pnumwidth
1663 \parfillskip -\@pnumwidth
1666 % Replace |\large \bfseries| with |\if@boldpart...|, so the parts are
1667 % the same size as the other entries, and bolding obeys |if@boldpart|.
1674 % Insert |\if@dottedpart| between |#1| and |\hfil|.
1677 \leaders\hbox{$\m@th
1678 \mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}
1680 \hfil \hb@xt@\@pnumwidth{\hss #2}}\par
1682 \global\@nobreaktrue
1683 \everypar{\global\@nobreakfalse\everypar{}}%
1685 % Add a content-page-spacing blank after this entry.
1687 \begin{spacing}{\@csp}\par\end{spacing}
1694 % Override |latex.ltx|'s |\dottedtocline|, adding some |spacing|
1695 % environments. TODO: reasoning.
1697 \def\@dottedtocline#1#2#3#4#5{%
1698 \begin{spacing}{\@ssp}
1699 \ifnum #1>\c@tocdepth \else
1700 \vskip \z@ \@plus.2\p@
1701 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
1702 \parindent #2\relax\@afterindenttrue
1703 \interlinepenalty\@M
1706 \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
1708 \leaders\hbox{$\m@th
1709 \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
1712 \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}%
1713 \par\begin{spacing}{\@csp}\par\end{spacing}}%
1719 % Override \cls{book}'s (or \pkg{hyperref}'s) |\appendix|, adding
1720 % |\@appendixtrue|. This gets |\if@appendix| working in our
1721 % |\chapter| definition below.
1723 \let\DUT@appendix\appendix
1724 \renewcommand\appendix{%
1730 % Override \cls{book}'s |\chapter|, selecting the false branch of the
1731 % |\if@twocolumn| conditional and adding an |\if@appendix|
1732 % conditional. After |\appendix| (when |\if@mainmatter| and
1733 % |\if@appendix| are both true), we generate table of content entries
1734 % such as \emph{Appendix A: Chapter Title} rather than the standard
1735 % \emph{Chapter Title}. |\thechapter| (defined in \cls{book}) is the
1736 % appendix letter (e.g.\ |A|). |\@chapapp{}| (also defined in
1737 % \cls{book}) Was redefined in |\appendix| (above) as |\appendixname|.
1738 % Before |\appendix|, we reproduce the \cls{book} behavior.
1740 \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
1742 \refstepcounter{chapter}%
1743 \typeout{\@chapapp\space\thechapter.}%
1745 \addcontentsline{toc}{appendix}%
1746 {\protect\numberline{\@chapapp{} \thechapter:}#1}%
1748 \addcontentsline{toc}{chapter}%
1749 {\protect\numberline{\thechapter}#1}%
1752 \addcontentsline{toc}{chapter}{#1}%
1755 \addcontentsline{toc}{chapter}{#1}%
1758 \addtocontents{lof}{\protect\addvspace{10\p@}}%
1759 \addtocontents{lot}{\protect\addvspace{10\p@}}%
1760 \@makechapterhead{#2}%
1765 % \iffalse meta-comment
1770 % \section{Templates}
1772 % \subsection{Simple}
1774 % \subsubsection{Main}
1776 % \iffalse meta-comment
1779 % \begin{quote} \hrule \begin{verbatim}
1780 %% See drexel-thesis.pdf for details.
1781 \documentclass{drexel-thesis}
1783 %% Enter the appropriate information here
1784 \author{Johny Henry} % Fullname
1785 \title{Inadequacies of Steam-Driven Boring Machines} % Title Of Thesis
1786 \defmonth{July} % Name of the month of you defense
1787 \defyear{1872} % Year you are defending
1788 \degree{Doctor of Philosophy} % Should be fine
1789 \advisor{C \& O Railroad, Ph.D.} % Put Advisor's full name, degree
1791 \usepackage{graphicx} % to include images
1796 \begin{dedications} % OPTIONAL
1797 Type dedications here
1800 \begin{acknowledgments} % OPTIONAL
1801 Type acknowledgments here
1802 \end{acknowledgments}
1805 %% Include these following commands only if you have tables or figures.
1806 %% Tables should come before figures.
1816 %% Use include statements to include your main thesis code
1817 %% from seperate files.
1821 %% unsrt style give references in order of citation
1822 \bibliographystyle{unsrt}
1824 \addcontentsline{toc}{chapter}{\bibname}
1825 \begin{thebibliography}{9}
1826 % widest label (above "9"), when printed, as wide as widest entry label.
1829 \emph{\LaTeX: A Document Preparation System}.
1830 Addison Wesley, Massachusetts,
1834 \end{thebibliography}
1837 %% include files with your appendicies (if any) here
1840 \begin{vita} % Ph.D. only. See Thesis Manual for details.
1845 % \end{verbatim} \hrule \end{quote}
1846 % \iffalse meta-comment
1850 % \subsubsection{Part}
1852 % \iffalse meta-comment
1855 % \begin{quote} \hrule \begin{verbatim}
1856 \part{A Part Heading}
1857 \chapter{A Chapter Heading}
1858 \section{A Section Heading}
1859 The following sectioning commands are available:
1870 \caption{A table float}
1872 \begin{tabular}{r@{.}l r@{.}l r@{.}l}
1873 \multicolumn{2}{c}{Time (s)} &
1874 \multicolumn{2}{c}{John Henry (m)} &
1875 \multicolumn{2}{c}{Steam drill (m)} \\
1877 10&0 & 4&3 & 3&75 \\
1878 30&0 & 11&9 & 10&1 \\
1883 Bla bla bla (text to test table/figure spacing)
1898 \includegraphics[width=0.4\textwidth]{drexel-logo}
1900 \caption{A figure float}
1902 Bla bla bla (text to test table/figure spacing)
1915 % \end{verbatim} \hrule \end{quote}
1916 % \iffalse meta-comment
1920 % Note the strange |r@{.}l| notation in the |\tabular| column
1921 % definition. This allows for numbers aligned at the decimal point
1922 % (see \href{http://www.stat.unipg.it/tex-man/ltx-68.html}{here}).
1924 % |\multicolumn{num_cols}{alignment}{contents}| allows the headings
1925 % to span the pre- and post-decimal columns.
1928 % \subsubsection{Appendix}
1930 % \iffalse meta-comment
1931 %<*template-appendix>
1933 % \begin{quote} \hrule \begin{verbatim}
1934 \chapter{Some Appendix Heading}
1936 \chapter{Another Appendix Heading}
1938 % \end{verbatim} \hrule \end{quote}
1939 % \iffalse meta-comment
1940 %</template-appendix>
1944 % \subsection{\BibTeX/\pkg{natbib}}
1945 % \label{sec:natbib-example}
1947 % \subsubsection{Main}
1949 % \iffalse meta-comment
1950 %<*template-bibtex-main>
1952 % \begin{quote} \hrule \begin{verbatim}
1953 %% See drexel-thesis.pdf for details.
1954 \documentclass{drexel-thesis}
1956 %% Enter the appropriate information here
1957 \author{Johny Henry} % Fullname
1958 \title{Inadequacies of Steam-Driven Boring Machines} % Title Of Thesis
1959 \defmonth{July} % Name of the month of you defense
1960 \defyear{1872} % Year you are defending
1961 \degree{Doctor of Philosophy} % Should be fine
1962 \advisor{C \& O Railroad, Ph.D.} % Put Advisor's full name, degree
1964 \usepackage[super,sort&compress]{natbib} % fancy citation extensions
1965 %% super selects citations in superscript mode.
1966 %% sort&compress automatically sorts and compresses compound citations:
1968 \bibliographystyle{plainnat}
1973 \begin{dedications} % OPTIONAL
1974 Type dedications here
1977 \begin{acknowledgments} % OPTIONAL
1978 Type acknowledgments here
1979 \end{acknowledgments}
1982 %% Include these following commands only if you have tables or figures.
1983 %% Tables should come before figures.
1993 %% Use include statements to include your main thesis code
1994 %% from seperate files.
1998 \bibliography{references}
2001 %% include files with your appendicies (if any) here
2004 \begin{vita} % Ph.D. only. See Thesis Manual for details.
2009 % \end{verbatim} \hrule \end{quote}
2010 % \iffalse meta-comment
2011 %</template-bibtex-main>
2014 % \subsubsection{Part}
2016 % You can cite your references with \pkg{natbib}'s |\citet| and
2017 % |\citep| macros. See
2018 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}{the \pkg{natbib} manual}
2021 % \iffalse meta-comment
2022 %<*template-bibtex-part>
2024 % \begin{quote} \hrule \begin{verbatim}
2025 \part{A Part Heading}
2026 \chapter{A Chapter Heading}
2027 \section{A Section Heading}
2028 Here we have a text citation \citet{rief97} followed by a
2029 parenthetical citation\citep{rief97}.
2030 % \end{verbatim} \hrule \end{quote}
2031 % \iffalse meta-comment
2032 %</template-bibtex-part>
2035 % \subsubsection{Bib}
2037 % What goes into the \BibTeX\ file |references.bib|?
2038 % For more information, check out this
2039 % \href{http://cmtw.harvard.edu/Documentation/TeX/Bibtex/Example.html}{basic tutorial}.
2040 % If you want to get deeper, take a look at
2041 % \href{http://www.ctan.org/tex-archive/info/bibtex/tamethebeast/}{Tame the BeaST}.
2043 % \href{http://www.andy-roberts.net/misc/latex/latextutorial3.html}{how the process works},
2044 % \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node6.html}{entry types},
2045 % \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node7.html}{fields},
2046 % \href{http://en.wikipedia.org/wiki/BibTeX}{entries and fields},
2047 % \href{http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html}{assorted style examples}, and
2048 % \href{http://liinwww.ira.uka.de/bibliography/Bib.Format.html}{assorted \BibTeX tools}.
2050 % Here is an example \BibTeX\ file to get you started. We define
2051 % strings for the publishers, journals, and authors to avoid
2052 % duplication and minimize the risk of typos, etc.
2054 % \iffalse meta-comment
2055 %<*template-bibtex-refs>
2057 % \begin{quote} \hrule \begin{verbatim}
2059 @String{APS = "American Physical Society"}
2062 @String{SCI = "Science"}
2065 @String{MRief = "Rief, Matthias"}
2066 @String{MGautel = "Gautel, Mathias"}
2067 @String{FOesterhelt = "Oesterhelt, Filipp"}
2068 @String{JFernandez = "Fernandez, Julio M."}
2069 @String{HGaub = "Gaub, Hermann E."}
2073 author = MRief #" and "# MGautel #" and "# FOesterhelt #" and "#
2074 JFernandez #" and "# HGaub,
2075 title = "Reversible Unfolding of Individual Titin Immunoglobulin
2080 pages = "1109--1112",
2082 doi = "10.1126/science.276.5315.1109",
2083 URL = "http://www.sciencemag.org/cgi/content/abstract/276/5315/1109",
2084 eprint = "http://www.sciencemag.org/cgi/reprint/276/5315/1109.pdf",
2085 mynote = "Seminal paper for force spectroscopy on Titin. Cited by
2086 Dietz '04 (ref 9) as an example of how unfolding large
2087 proteins is easily interpreted (vs.\ confusing unfolding in
2088 bulk), but Titin is a rather simple example of that, because
2089 of its globular-chain structure.",
2092 % \end{verbatim} \hrule \end{quote}
2093 % \iffalse meta-comment
2094 %</template-bibtex-refs>