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 % Define a quick and dirty version of |xkeyval|'s |\DescribeOptions|.
53 \newenvironment{option}[1]{\begin{macro}{#1}}
56 % Some commonly used abbreviations from |classes.dtx|.
58 \newcommand*{\Lopt}[1]{\textsf {#1}}
59 \newcommand*{\file}[1]{\texttt {#1}}
60 \newcommand*{\Lcount}[1]{\textsl {\small#1}}
61 \newcommand*{\pstyle}[1]{\textsl {#1}}
65 \def\DescribeOption#1{\leavevmode\@bsphack
66 \marginpar{\raggedleft\PrintDescribeOption{#1}}%
67 \SpecialOptionIndex{#1}\@esphack\ignorespaces}
68 \def\PrintDescribeOption#1{\strut\emph{option}\\\MacroFont #1\ }
69 \def\SpecialOptionIndex#1{\@bsphack
70 \index{#1\actualchar{\protect\ttfamily#1}
71 (option)\encapchar usage}%
72 \index{options:\levelchar#1\actualchar{\protect\ttfamily#1}\encapchar
74 \def\DescribeOptions#1{\leavevmode\@bsphack
75 \marginpar{\raggedleft\strut\emph{options}%
77 \\\strut\MacroFont\@tempa\SpecialOptionIndex\@tempa
78 }}\@esphack\ignorespaces}
86 \DocInput{drexel-thesis.dtx}
94 % {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
95 % 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
96 % Digits \0\1\2\3\4\5\6\7\8\9
97 % Exclamation \! Double quote \" Hash (number) \#
98 % Dollar \$ Percent \% Ampersand \&
99 % Acute accent \' Left paren \( Right paren \)
100 % Asterisk \* Plus \+ Comma \,
101 % Minus \- Point \. Solidus \/
102 % Colon \: Semicolon \; Less than \<
103 % Equals \= Greater than \> Question mark \?
104 % Commercial at \@ Left bracket \[ Backslash \\
105 % Right bracket \] Circumflex \^ Underscore \_
106 % Grave accent \` Left brace \{ Vertical bar \|
107 % Right brace \} Tilde \~}
110 % \changes{0.1}{2006/01/18}{Rewrite by Daniel J.~Cross}
111 % \changes{0.2}{2010/01/09}{W.~Trevor King transitioned from thesis.cls
112 % to drexel-thesis.dtx and did a good deal of reorganizing.}
113 % \changes{0.3}{2010/01/11}{W.~Trevor King merged drexelthesis.cls
114 % developed in the Comp.~Sci.~Department by Jeff Abrahamson,
115 % Evan Sultanik, C.Y.~Ip, Christopher S.~Dahn, Christopher D.~Cera,
116 % Mitchell Peabody, David T.~McWherter, and Vincent A.~Cicirello.
117 % Based on the University of Toronto Thesis \LaTeXe\ Class. Also
118 % greatly improved the documentation by incorperating bits of
119 % the base/*.dtx files.}
122 % \newcommand{\pkg}[1]{\textsf{#1}}
123 % \newcommand{\cls}[1]{\textsf{#1}}
124 % ^^A\newcommand{\BibTeX}{{\sc Bib}\TeX}
126 % \title{The \textsf{drexel-thesis} class\thanks{This document
127 % corresponds to \textsf{drexel-thesis}~\fileversion, dated \filedate.}}
128 % \author{W.~Trevor King \\\texttt{wking@drexel.edu}
129 % \and Daniel J.~Cross \and T.~Tsankov \and R.~Rojas.}
135 % \section{Introduction}
137 % This package defines a \LaTeX\ thesis class for Drexel University
139 % \href{http://www.library.drexel.edu/files/services_documents/thesismanual.pdf}
140 % {Drexel University Thesis Manual version 2009/06/01}.
144 % To write a thesis, you load the Drexel thesis definitions by loading
145 % the \pkg{drexel-thesis} class at the beginning of your
146 % \LaTeX\ document with the |\documentclass| command. For example,
148 % \documentclass{drexel-thesis}
151 % \subsection{Options}
153 % \DescribeOptions{final,draft}
154 % The default option (selected if not options are passed) is
155 % \Lopt{final} mode, which has all the proper formatting and spacing
156 % for your final product. The other main option is \Lopt{draft} mode,
157 % which reduces all the spacing in the document, so might be helpful
158 % when printing out drafts (saves paper).
160 % \Lopt{final} mode corresponds to (with Thesis Manual chapter and
162 % \begin{tabular}{r p{0.8\textwidth}}
163 % \Lopt{oneside} & 1.5 Library Submission Information, Print
164 % Version: ``All copies must be: \ldots Typed/printed on only one
165 % side of the page (not double-sided).'' \\
166 % \Lopt{finalspace} & Assorted single, double, and triple spacing
168 % \Lopt{dottedtoc} & From the example on p17.
171 % \Lopt{draft} mode corresponds to \\
172 % \begin{tabular}{r p{0.8\textwidth}}
173 % \Lopt{twoside} & Save space. \\
174 % \Lopt{draftspace} & Save space. \\
175 % \Lopt{dottedtoc} & Might as well be consistent with \Lopt{final}. \\
176 % \Lopt{draftwatermark} & It's good to have a timestamp. \\
179 % \DescribeOption{finalspace}
182 % \DescribeOption{draftspace}
185 % \DescribeOptions{dottedtoc,boldtoc,
186 % dottedpart,boldpart,
187 % dottedchapter,boldchapter}
188 % These options change how the relevant TOC lines are printed
189 % \LaTeX\ defaults to bold but not dots. The \Lopt{*toc} options set
190 % all of the types. For example, \Lopt{boldtoc} is equivalent to
191 % \Lopt{boldchapter,boldpart}.
193 % \DescribeOption{draftwatermark}
194 % \Lopt{draftwatermark} adds ``DRAFT \meta{date}'' watermarks to each
195 % page. A useful way to remember that the version you're looking at
196 % is not final. Also helps reviewers tell you what version they're
199 % \DescribeOption{indentfirst}
200 % \Lopt{indentfirst} indents the first paragraph after sections etc.
203 % \subsubsection{Interesting \cls{book} options}
205 % \DescribeOption{oneside}
206 % Setup output for one-sided printing.
208 % \DescribeOption{twoside}
209 % Setup output for two-sided printing.
211 % \DescribeOption{leqno}
212 % \Lopt{leqno} places the numbering of formulae on the left hand side
213 % instead of the right.
215 % \DescribeOption{fleqn}
216 % \Lopt{fleqn} typesets displayed formulae left-aligned instead of
220 % \subsection{Macros}
223 % `\cs{author}\marg{name}'
225 % \DescribeMacro{\author}
226 % Use this macro to set your full name to \meta{name}, including
227 % your middle initial or name. For example
229 % \name{Richard P. Feynman}
231 % See the Manual 3.1 p8.
234 % `\cs{title}\marg{title}'
236 % \DescribeMacro{\title}
237 % Use this macro to set your thesis title to \meta{name}. For example
239 % \title{A New Approach to Quantum Theory}
241 % See the Manual p16.
244 % `\cs{advisor}\marg{name}'
246 % \DescribeMacro{\advisor}
247 % Use this macro to set your advisor's name to \meta{name}. For
250 % \advisor{John A. Wheeler, Ph.D.}
252 % You can set multiple advisors, if appropriate, by calling |\advisor|
255 % \advisor{John A. Wheeler, Ph.D.}
256 % \advisor{Advisor 2}
258 % See the Manual 3.1 p8.
261 % `\cs{defmonth}\marg{month}'
262 % `\cs{defyear}\marg{year}'
264 % \DescribeMacro{\defmonth}
265 % \DescribeMacro{\defyear}
266 % Use these macros to set the month with \meta{month} (spelled out)
267 % and year with \meta{year} (four digits) of your thesis defense. For
273 % See the Manual 3.1 p8.
274 % The |def| in |\def*| avoids collisions with the plain \TeX\
275 % |\month| and |\year| (see the
276 % \href{http://www.tug.org/utilities/plain/cseq.html#month-rp}{month}
278 % \href{http://www.tug.org/utilities/plain/cseq.html#year-rp}{year}
279 % entries in the HTML version of David Bausum's \emph{TeX Reference
283 % `\cs{degree}\marg{degree}'
285 % \DescribeMacro{\degree}
286 % Set your target degree with \meta{degree}. From the Manual 3.1 p8.
288 % Write out the name of the degree for which you are a candidate.
289 % All Ph.D.\ candidates must use |Doctor of Philosophy|. All
290 % Master's degree candidates should use the precise degree name
291 % (e.g., |Master of Science in Mechanical Engineering|).
293 % So, for a Ph.D candidate,
295 % \degree{Doctor of Philosophy}
299 % `\cs{copyrighttext}\marg{text}'
301 % \DescribeMacro{\copyrighttext}
302 % Use this macro to set the copyright text to \meta{text}.
303 % The default value is ``All Rights Reserved.''.
305 % \copyrighttext{Released to the Public Domain.}
307 % See the Manual 3.2 p9.
310 % `\cs{copyrighttextCC}'
312 % There are a number of predefined copyright messages for ease of use \\
313 % \begin{tabular}{l l}
314 % |\copyrighttextCC| & Creative Commons copyright \\
318 % `\cs{tableofcontents}'
320 % \DescribeMacro{\tableofcontents}
321 % Write the table of contents (Manual 3.5 p9). You can control the
322 % verbosity by setting |\tocdepth| according to the following table
323 % (\href{http://www.image.ufl.edu/help/latex/intext.shtml}{source}). \\
324 % \begin{tabular}{l l l}
325 % Depth in document & Section Command & Depth for |\secnumdepth| Command \\
326 % -1 & |\part| & 1 \\
327 % 0 & |\chapter| & 2 \\
328 % 1 & |\section| & 3 \\
329 % 2 & |\subsection| & 4 \\
330 % 3 & |\subsubsection| & 5 \\
331 % 4 & |\paragraph| & 6 \\
332 % 5 & |\subparagraph| & 7
334 % For example, to expose everything down to and including the
335 % |\subsection| level, you would add
337 % \setcounter{tocdepth}{2}
339 % to your preamble (the section before |\begin{document}|, not the
340 % |preamble| environment discussed below).
342 % Note that the Manual 3.5 p9 requires ``List chapter titles and at
343 % least the first and second order subdivisions.'', which corresponds
344 % to a |\tocdepth| of at least 2.
347 % `\cs{listoftables}'
349 % \DescribeMacro{\listoftables}
350 % Write the List of Tables page (Manual 3.7 p10).
351 % Skip if you have no tables in your thesis.
354 % `\cs{listoffigures}'
356 % \DescribeMacro{\listoffigures}
357 % Write the List of Figures page (Manual 3.7 p10).
358 % Skip if you have no figures in your thesis.
361 % `\cs{blanklines}\marg{num}'
363 % \DescribeMacro{\blanklines}
364 % Insert \meta{num} blank lines. For example
368 % The skipped lines are always \emph{single spaced} lines, regardless
369 % of the current line spacing in the environment calling this macro.
372 % \subsection{Environments}
374 % \DescribeEnv{preamble}
375 % Generalize the |\frontmatter| for the thesis, setting up page
376 % numbering, including the title page, copyright page etc. The
377 % |preamble| environment should contain the following elements
378 % (in order, see the Manual p8)
380 % \item |dedication| environment (optional)
381 % \item |acknowledgments| environment (optional)
382 % \item |\tableofcontents|
383 % \item |\listoftables|
384 % \item |\listoffigures|
385 % \item |abstract| environment
387 % This will take care of everything from the title page (Manual 3.1),
388 % up through the blank page before the text (Manual 3.9).
390 % \DescribeEnv{dedications}
391 % Set the dedications text.
392 % Highlights from the Manual 3.3 p9:
394 % The |Dedications| page is optional.
397 % \DescribeEnv{acknowledgments}
398 % Set the acknowledgments text.
399 % Highlights from the Manual 3.4 p9:
401 % The |Acknowledgments| page is optional, but most theses do
402 % include a brief statement of thanks or recognition of any special
406 % \DescribeEnv{abstract}
407 % Set the thesis abstract text. In the Thesis Manual, see section 3.8
408 % Abstract (p10) for details, p20 for an example.
410 % Highlights from the Manual:
412 % The abstract is a summary that allows readers to determine the
413 % value of reading the full thesis. It should include a statement
414 % of the problem, an outline of procedures or methods, and a summary
415 % of results and conclusions.
418 % \item Word limits: 600 for a Master's thesis, 350 for a Ph.D.\ thesis.
421 % \DescribeEnv{thesis}
422 % Set the thesis text. In the Thesis Manual, see section 3.10 Thesis
425 % Highlights from the Manual:
427 % Divide the text into its major parts/chapters/subsections. No
428 % fixed arrangement is necessary. The major parts may contain such
429 % subjects as introduction, general argument, description of
430 % experimental procedures, research methods, discussion, summary,
431 % conclusions, recommendations, and other pertinent topics that are
432 % necessary for a complete understanding on the part of a
433 % sophisticated or professional reader.
437 % Set the thesis vita text (Ph.D.\ only). See the Manual 3.15 p12,
438 % ``Vita'', for details.
440 % Highlights from the Manual:
442 % The Vita is a biography of the student written in the third person
443 % in either essay or outline form. It should include the full name,
444 % place and date of birth (optional), country of citizenship
445 % (optional), institutions attended, degrees and honors received,
446 % titles of publications, teaching and professional experience, and
447 % other pertinent data. The Vita must be one page or less.
454 % \subsubsection{Package installation}
455 % \label{sec:dependencies}
457 % All the packages this class depends on must be installed somewhere
458 % in your texmf tree (they probably already are). If not, you will
459 % recieve warning messages on compilation such as
461 % ! LaTeX Error: File `missing-package.sty' not found.
463 % You should then install the missing package(s) using your operating
464 % systems package manager, or grab the missing package from
465 % \href{http://www.ctan.org/}{CTAN}, and install them following TODO.
468 % \subsubsection{Tables and Figures}
470 % From the Manual 2.3 p6, ``Tables and Figures'',
472 % Place figure captions below figures.
473 % Place table captions above tables.
475 % so make sure the |\caption| command is in the appropriate location.
479 % \caption{Some caption text}
480 % \begin{tabular}{...}
488 % \includegraphics{...}
489 % \caption{Some caption text}
492 % \pkg{drexel-thesis} loads
493 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
494 % to define the |\includegraphics| macro. For more useful
495 % float information, see the
496 % \href{http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions}
497 % {\LaTeX\ wikibook page}.
500 % \subsubsection{Citations}
502 % I highly recommend using \BibTeX\ and
503 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}{\pkg{natbib}}.
504 % See Section \ref{sec:better-example} for a simple example.
506 % Suggested options:\\
507 % \begin{tabular}{r p{0.8\textwidth}}
508 % |super| & selects citations in superscript mode. \\
509 % |sort&compress| & automatically sorts and compresses compound
510 % citations (|\pcite{a,b,...}|).
514 % \subsubsection{References}
516 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/cleveref/}{\pkg{cleveref}}.
517 % Is a wonderful tool for easy, consistent crosslinking. The manual is also very good.
520 % \subsubsection{Hyperlinks}
522 % \cls{drexel-thesis} loads
523 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{\pkg{hyperref}}.
524 % with the options:\\
525 % \begin{tabular}{r p{0.8\textwidth}}
526 % |colorlinks| & color the link letters instead of drawing colored boxes. \\
529 % If running with a pdftex-based driver, |\author|, |\title|, and
530 % |\degree| automatically set |pdfauthor|, |pdftitle|, and
531 % |pdfsubject| respectively. You can use the |\hypersetup| macro to
532 % set options overriding these defaults.
535 % \StopEventually{\pagebreak\PrintChanges}
538 % \section{Implementation}
543 % For simplicity, we'll derive everything from the standard \cls{book}
547 % \subsection{Option Processing}
550 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xkeyval/}{\pkg{xkeyval}}
551 % for easier option parsing. If the package is not installed on your system,
552 % see Section \ref{sec:dependencies} for installation instructions.
554 \RequirePackage{xkeyval}
557 % Define some booleans to store option states
559 \newif\if@mainmatter \@mainmattertrue
560 \newif\if@dottedchapter
561 \newif\if@boldchapter
564 \newif\if@draftwatermark
565 \newif\if@indentfirst
567 \newif\if@final \@finalfalse
570 % \begin{option}{finalspace}
572 \DeclareOptionX{finalspace}{
573 \setlength\overfullrule{0pt}
574 \def\@cont@sep{1} % content page separation (# blanklines between entries)
575 \def\@ssp{1} % single space
576 \def\@dsp{2} % double space
577 \def\@tsp{3} % triple space
582 % \begin{option}{draftspace}
584 \DeclareOptionX{draftspace}{
585 \setlength\overfullrule{5pt}
586 \def\@cont@sep{0} % content page separation (# blanklines between entries)
587 \def\@ssp{1} % single space
588 \def\@dsp{1} % double space
589 \def\@tsp{2} % triple space
591 % Don't force chapters onto right-hand pages.
593 \PassOptionsToClass{openany}{book}
599 % \begin{option}{dottedpart}
601 \DeclareOptionX{dottedpart}{\@dottedparttrue}
604 % \begin{option}{dottedchapter}
606 \DeclareOptionX{dottedchapter}{\@dottedchaptertrue}
609 % \begin{option}{boldpart}
611 \DeclareOptionX{boldpart}{\@boldparttrue}
614 % \begin{option}{boldchapter}
616 \DeclareOptionX{boldchapter}{\@boldchaptertrue}
619 % \begin{option}{dottedtoc}
621 \DeclareOptionX{dottedtoc}{
622 \setkeys{drexel-thesis.cls}{dottedpart}
623 \setkeys{drexel-thesis.cls}{dottedchapter}
627 % \begin{option}{boldtoc}
629 \DeclareOptionX{boldtoc}{
630 \setkeys{drexel-thesis.cls}{boldpart}
631 \setkeys{drexel-thesis.cls}{boldchapter}
636 % \begin{option}{draftwatermark}
637 % Set \Lopt{draftwatermark} flag
639 \DeclareOptionX{draftwatermark}{\@draftwatermarktrue}
643 % \begin{option}{indentfirst}
644 % Set \Lopt{indentfirst} flag
646 \DeclareOptionX{indentfirst}{\@indentfirsttrue}
650 % Define the book options that \Lopt{final} and \Lopt{draft} need to
652 % \begin{option}{oneside}
654 \DeclareOptionX{oneside}{\PassOptionsToClass{oneside}{book}}
658 % \begin{option}{twoside}
660 \DeclareOptionX{twoside}{\PassOptionsToClass{twoside}{book}}
664 % \begin{option}{final}
666 \DeclareOptionX{final}{
667 \setkeys{drexel-thesis.cls}{oneside}
668 \setkeys{drexel-thesis.cls}{finalspace}
669 \setkeys{drexel-thesis.cls}{dottedtoc}
674 % \begin{option}{draft}
676 \DeclareOptionX{draft}{
677 \setkeys{drexel-thesis.cls}{twoside}
678 \setkeys{drexel-thesis.cls}{draftspace}
679 \setkeys{drexel-thesis.cls}{dottedtoc}
680 \setkeys{drexel-thesis.cls}{draftwatermark}
685 % Use the default \cls{book} implementation for any remaining options
686 % including \Lopt{oneside}, \Lopt{twoside}, \Lopt{leqno}, \Lopt{fleqn},
689 \DeclareOptionX*{\PassOptionsToClass{\CurrentOption}{book}}
692 % Execute the default options
694 \ExecuteOptionsX{final}
697 % Process options and load the book class
699 \ProcessOptionsX\relax
704 % \subsection{Internal package includes}
707 % Include some other packages we'll need. If the package is not
708 % installed on your system, see Section \ref{sec:dependencies} for
709 % installation instructions.
711 % For many packages, we want the same functionality for both
712 % \Lopt{final} and \Lopt{draft} modes. We pass \Lopt{final} to most
713 % of those packages to override a possible \Lopt{draft} option passed
714 % to \pkg{drexel-thesis}.
717 % \subsubsection{\pkg{setspace}}
719 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/setspace/}{\pkg{setspace}}
720 % for double spacing.
722 \RequirePackage{setspace}
726 % \subsubsection{\pkg{calc}}
728 % \href{http://www.ctan.org/tex-archive/macros/latex/required/tools/}{\pkg{calc}}
729 % for |\blanklines| macro.
731 \RequirePackage{calc}
735 % \subsubsection{\pkg{graphicx}}
737 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
738 % for |\includegraphics|. Not strictly necessary, but I can't imagine
739 % a thesis without figures.
741 \RequirePackage[final]{graphicx}
744 % We include the graphicx package now so we can
745 % pass \Lopt{final}, because some later packages include it with no options,
746 % and a \Lopt{final} include after that produces errors like
748 % l.104 \RequirePackage
750 % The package graphicx has already been loaded with options:
752 % There has now been an attempt to load it with options
757 % \subsubsection{\pkg{draftmark}}
759 % The Comp.~Sci.\ class used
760 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftcopy/}{\pkg{draftcopy}}
761 % to add their watermarks, but as of the current 2002/02/25 v2.16, it
762 % uses postscript specials, and so doesn't work with pdf\LaTeX.
763 % Instead we use the recent (catalogued 2009/11/03)
764 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftmark/}{\pkg{draftmark}}
765 % which unfortunately has a number of apparently non-standard dependencies
766 % (\href{http://www.ctan.org/tex-archive/macros/latex/contrib/etextools/}{\pkg{etextools}},
767 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/etoolbox/}{\pkg{etoolbox}},
768 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/lastpage/}{\pkg{lastpage}},
769 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/ltxnew/}{\pkg{ltxnew}},
770 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/pagerange/}{\pkg{pagerange}},
771 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xifthen/}{\pkg{xifthen}},
772 % if only I had the space to install |texlive-latexextra| |:p|).
773 % The output is, however, very flexible, and it \emph{does} work with
774 % both \LaTeX\ and pdf\LaTeX. If you don't like the default watermark,
775 % you can also adjust the particulars with |\draftmarksetup|.
778 \RequirePackage[draft,allpages,mark={DRAFT \today},
779 fontsize=2cm,grayness=0.9]{draftmark}
784 % \subsubsection{\pkg{indentfirst}}
788 \RequirePackage{indentfirst}
793 % \subsubsection{\pkg{geometry}}
795 % Setup page margins with the
796 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/geometry/}{\pkg{geometry}}
797 % package. From the Manual p5:
799 % \item The left margin must be at least 1 1/2'' (1.5 inches)
800 % throughout the document.
801 % \item All other margins (top, bottom, and right) must be at least 1''.
803 % And from the Manual 1.5 p4, Print Version:
805 % The paper size must be 8 1/2'' x 11''.
808 \RequirePackage[letterpaper,margin=1in,bindingoffset=0.5in]{geometry}
810 % Note that we include the \pkg{geometry} package after loading \cls{book} to
811 % override the margin manipulation that takes place in \cls{book}.
814 % \subsubsection{\pkg{fancyhdr}}
816 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/}{\pkg{fancyhdr}}
817 % for correct page numbering and fancy headers.
818 % From the Manual 2.3 p5, ``Pagination''
820 % Place page numbers in the upper right-hand corner of the page,
821 % 3/4'' from the top.
824 \RequirePackage{fancyhdr}
826 % Setup the standard |fancy| format. |\leftmark| is the higher level
827 % mark, see |\chaptermark| below. |\rightmark| is the lower level
828 % mark, see |\sectionmark| below.
832 \fancyhead[LE,RO]{\slshape\rightmark}
833 \fancyhead[LO,RE]{\thepage}
835 % Override the |plain| format (for chapter pages, etc.).
837 \fancypagestyle{plain}{
839 \renewcommand{\headrulewidth}{0pt}
840 \fancyfoot[LE,RO]{\thepage}
845 % \subsubsection{\pkg{ifpdf}}
847 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{ifpdf}}
848 % for detecting PDF drivers. We use it to configure \pkg{hyperref} below.
850 \RequirePackage{ifpdf}
853 % \subsubsection{\pkg{hyperref}}
855 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{\pkg{hyperref}}
856 % for hyperlinks. Not strictly necessary, but I can't imagine a
859 \RequirePackage[final]{hyperref}
861 % Nobody likes the default colored boxes. Color the text itself.
863 \hypersetup{colorlinks}
865 % If we're writing a PDF, we set the |pdfauthor|, etc.\ arguments in
866 % |\author|, etc.\ to avoid using |\AtBeginDocument| or some such.
869 % \subsection{\LaTeX\ overrides and extensions}
871 % Here we change the behavior of a bunch of macros and environments
872 % from \file{latex.ltx} (generated by \file{format.ins} in
873 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{base}}).
874 % We'll copy in their original notes along with their code, following
875 % the relevant documentation an order given in \file{format.ins} and
876 % the associated \file{*.dtx} files.
879 % \subsubsection{\file{ltsect.dtx}}
881 % \begin{macro}{\title}
882 % |\title| for use in |\maketitle|. If not given |\maketitle| will
883 % produce a warning message (\file{ltsect.dtx}, L117).
885 % We extend |\title| to set \pkg{hyperref}'s |pdftitle|.
886 % (\file{ltsect.dtx}, L117).
889 \renewcommand{\title}[1]{
891 \ifpdf \hypersetup{pdftitle={\@title}} \fi
896 % \begin{macro}{\author}
897 % |\author| for use in |\maketitle|. If not given |\maketitle| will
898 % produce a warning message (\file{ltsect.dtx}, L129).
900 % We extend |\author| to set \pkg{hyperref}'s |pdfauthor|.
901 % (\file{ltsect.dtx}, L129).
903 \let\DUT@author\author
904 \renewcommand{\author}[1]{
906 \ifpdf \hypersetup{pdfauthor={\@author}} \fi
911 % In a similar vein, we some additional meta-info macros.
913 % \begin{macro}{\defmonth}
914 % \begin{macro}{\@defmonth}
915 % |\defmonth| (defense month) for use in |\maketitle|. If not given
916 % |\maketitle| will produce an error message.
918 \def\defmonth#1{\gdef\def@month{#1}}
919 \def\def@month{\@latex@error{No \noexpand\defmonth given}\@ehc}
924 % \begin{macro}{\defyear}
925 % \begin{macro}{\@defyear}
926 % |\defyear| (defense year) for use in |\maketitle|. If not given
927 % |\maketitle| will produce an error message.
929 \def\defyear#1{\gdef\def@year{#1}}
930 \def\def@year{\@latex@error{No \noexpand\defyear given}\@ehc}
935 % \begin{macro}{\degree}
936 % \begin{macro}{\@degree}
937 % |\degree| for use in |\maketitle|. If not given |\maketitle| will
938 % produce an error message.
940 \def\degree#1{\gdef\@degree{#1}
941 \ifpdf \hypersetup{pdfsubject={\@degree}} \fi}
942 \def\@degree{\@latex@error{No \noexpand\degree given}\@ehc}
947 % \begin{macro}{\copyrighttext}
948 % \begin{macro}{\@copyrighttext}
949 % |\copyrighttext| for use in |\makecopyright|. There are a number of
950 % blurbs predefined in Section \ref{sec:implement-copyright}.
952 \def\copyrighttext#1{\gdef\@copyrighttext{#1}}
953 \def\@copyrighttext{All Rights Reserved.}
958 % \begin{macro}{\advisor}
959 % \begin{macro}{\@advisor}
960 % |\advisor| for use in |\maketitle|. If not given |\maketitle| will
961 % produce an error message. We get a bit fancier here to support
964 \newcounter{advisors}
965 \setcounter{advisors}{0}
966 \newcommand\advisor[1]{%
969 % If |#1| is |\empty|, this call is a no-op.
974 % Save the advisors to |\@advisor@a|, |\@advisor@b|, \ldots.
975 % |\alph{|\Lcount{COUNTER}|}| (\file{ltcounts.dtx}, L319) prints the
976 % value of \Lcount{COUNTER} as a lowercase letter: $1 =$~a, $2 =$~
979 \stepcounter{advisors}
980 \expandafter\gdef\csname @advisor@\alph{advisors}\endcsname{#1}
982 \newcommand\@advisor{%
984 \@latex@error{No \noexpand\advisor given}\@ehc%
987 % Start a group so \Lcount{advisor@loop} is released afterwards to
991 \newcounter{advisor@loop}%
992 \setcounter{advisor@loop}{1}%
994 % Print the first advisor.
996 \csname @advisor@\alph{advisor@loop}\endcsname\relax%
998 % For any remaining advisors\ldots
1000 \loop\ifnum\c@advisor@loop<\c@advisors%
1001 \stepcounter{advisor@loop}%
1003 % Print the connecting text.
1005 \ifnum\c@advisor@loop=\c@advisors%
1006 \ifnum\c@advisors=2%
1008 % The next advisor if the last of two.
1013 % The next advisor if the last of many.
1019 % The next advisor is not the last.
1024 % Print the advisor's name.
1026 \csname @advisor@\alph{advisor@loop}\endcsname\relax%
1036 % `\cs{AddContentsLine}\marg{table}\marg{type}\marg{notcap}\marg{entry}'
1038 % \begin{macro}{\AddContentsLine}
1039 % Define a version of |\addcontentsline| that capitalizes \meta{entry}.
1040 % \meta{notcap} allows for |\numberline| bits, etc.
1042 \newcommand{\AddContentsLine}{\@ifstar
1043 \@AddContentsLine\@sAddContentsLine}
1044 \newcommand{\@AddContentsLine}[4]{%
1045 % \addcontentsline{#1}{#2}{#3#4}}
1046 \addcontentsline{#1}{#2}{#3\uppercase{#4}}}
1047 \newcommand{\@sAddContentsLine}[4]{%
1048 % \addcontentsline{#1}{#2}{#3#4}}
1049 \addcontentsline{#1}{#2}{#3\uppercase{#4}}}
1050 % \addcontentsline{#1}{#2}{#3\MakeUppercase{#4}}}
1055 % \begin{macro}{\@dottedtocline}
1056 % |\@dottedtocline{|\meta{level}|}{|\meta{indent}|}{|\meta{numwidth}%
1057 % |}{|\meta{title}|}{|\meta{page}|}|:
1058 % Macro to produce a table of contents line with the following
1060 % \begin{description}
1061 % \item[level] If \meta{level} $>$ |\c@tocdepth|, then no line
1063 % \item[indent] Total indentation from the left margin.
1064 % \item[numwidth] Width of box for number if the \meta{title} has a
1065 % |\numberline| command. This is also the amount of extra
1066 % indentation added to second and later lines of a
1067 % multiple line entry.
1068 % \item[title] Contents of entry.
1069 % \item[page] Page number.
1072 % Uses the following parameters, which must be set by the document
1073 % style. They should be defined with |\def|'s.
1074 % \begin{description}
1075 % \item[|\@pnumwidth|] Width of box in which page number is set.
1076 % \item[|\@tocrmarg|] Right margin indentation for all but last line
1077 % of multiple-line entries.
1078 % \item[|\@dotsep|] Separation between dots, in mu units.
1079 % Should be |\def|'d to a number like 2 or 1.7
1082 % We just add |spacing| environments to \cls{book}'s version.
1083 % (\file{ltsect.dtx}, L804).
1085 \def\@dottedtocline#1#2#3#4#5{%
1086 \begin{spacing}{\@ssp}
1087 \ifnum #1>\c@tocdepth \else
1088 \vskip \z@ \@plus.2\p@
1089 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
1090 \parindent #2\relax\@afterindenttrue
1091 \interlinepenalty\@M
1094 \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
1096 \leaders\hbox{$\m@th
1097 \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
1100 \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}%
1102 \blanklines{\@cont@sep}
1110 % Fix |\@ssect| and |\@sect| from \file{latex.ltx} to give single
1113 % \begin{macro}{\@sect}
1114 % Pseudocode for the |\@sect| command
1116 % \@sect{NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}[ARG1]{ARG2}
1119 % IF LEVEL > \c@secnumdepth
1120 % THEN \@svsec :=L null
1121 % ELSE \refstepcounter{NAME}
1122 % \@svsec :=L BEGIN \@seccntformat{#1}\relax END
1127 % \@hangfrom{\hskip INDENT\@svsec}
1128 % {\interlinepenalty 10000 ARG2\par}
1131 % \addcontentsline{toc}{NAME}
1132 % { IF LEVEL > \c@secnumdepth
1133 % ELSE \protect\numberline{\theNAME} FI
1135 % ELSE \@svsechd == BEGIN STYLE
1136 % \hskip INDENT\@svsec
1139 % \addcontentsline{toc}{NAME}
1140 % { IF LEVEL > \c@secnumdepth
1142 % \protect\numberline{\theNAME}
1147 % \@xsect{AFTERSKIP}
1150 % (\file{ltsect.dtx}, L295).
1152 \def\@sect#1#2#3#4#5#6[#7]#8{%
1153 \ifnum #2>\c@secnumdepth
1156 \refstepcounter{#1}%
1157 \protected@edef\@svsec{\@seccntformat{#1}\relax}%
1159 \@tempskipa #5\relax
1160 \ifdim \@tempskipa>\z@
1163 % Here we deviate from \file{ltsect.dtx} to ensure single spacing for
1164 % the section title.
1166 \begin{spacing}{\@ssp}
1168 \@hangfrom{\hskip #3\relax\@svsec}%
1169 \interlinepenalty \@M #8\@@par}%
1172 \csname #1mark\endcsname{#7}%
1173 \addcontentsline{toc}{#1}{%
1174 \ifnum #2>\c@secnumdepth \else
1175 \protect\numberline{\csname the#1\endcsname}%
1182 \csname #1mark\endcsname{#7}%
1183 \addcontentsline{toc}{#1}{%
1184 \ifnum #2>\c@secnumdepth \else
1185 \protect\numberline{\csname the#1\endcsname}%
1193 % \begin{macro}{\@ssect}
1194 % Pseudocode for the |\@ssect| command
1196 % \@ssect{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}{ARG} ==
1201 % \@hangfrom{\hskip INDENT}{\interlinepenalty 10000 ARG\par}
1203 % ELSE \@svsechd == BEGIN STYLE
1208 % \@xsect{AFTERSKIP}
1211 % (\file{ltsect.dtx}, L521).
1213 \def\@ssect#1#2#3#4#5{%
1214 \@tempskipa #3\relax
1215 \ifdim \@tempskipa>\z@
1218 % Here we deviate from \file{ltsect.dtx} to ensure single spacing for
1219 % the section title.
1221 \begin{spacing}{\@ssp}
1223 \@hangfrom{\hskip #1}%
1224 \interlinepenalty \@M #5\@@par}%
1228 \def\@svsechd{#4{\hskip #1\relax #5}}%
1235 % \subsubsection{\file{ltbibl.dtx}}
1237 % \DescribeMacro{\bibliography}
1238 % \DescribeEnv{thebibliography}
1239 % A bibliography is created by the |thebibliography| environment, which
1240 % generates a title such as ``Bibliography'', and a list of entries.
1241 % The \BibTeX\ program will create a file containing such an
1242 % environment, which will be read in by the |\bibliography| command.
1243 % With \BibTeX, the following commands will be used.
1245 % The document class must define the thebibliography environment. This
1246 % environment has a single argument, which is the widest bibliography
1247 % label-- e.g., if the [Knuth67] is the widest entry, then this
1248 % argument will be Knuth67. The |\thebibliography| command must begin
1249 % a list environment, which the |\endthebibliography| command ends.
1251 % \begin{macro}{\bibliography}
1252 % |\bibliography|\marg{file1,file2,\ldots,filen} : specifies
1253 % the bibdata files. Writes a |\bibdata| entry on the |.aux| file
1254 % and tries to read in |mainfile.bbl|.
1256 % We don't need to change it, but it explains why we need to override
1257 % |thebibliography| even when we don't use it directly.
1258 % (\file{ltbibl.dtx}, L284).
1260 %\def\bibliography#1{%
1262 % \immediate\write\@auxout{\string\bibdata{#1}}%
1264 % \@input@{\jobname.bbl}
1270 % \subsubsection{\file{ltoutput.dtx}}
1272 % \begin{macro}{\DUT@clearpage}
1273 % \begin{macro}{\DUT@cleardoublepage}
1274 % Versions of |\clear*page| that only work when |\if@final| is true
1275 % (\file{ltoutput.dtx}, L877 and L904).
1277 \newcommand\DUT@clearpage{\if@final \clearpage \fi}
1278 \newcommand\DUT@cleardoublepage{\if@final \cleardoublepage \fi}
1283 % \begin{macro}{\blankpage}
1284 % Add a useful extension to insert a blank page without numbering.
1285 % In draft mode, this macro is a no-op.
1287 \newcommand\blankpage{%
1290 \thispagestyle{empty}
1299 % `\cs{set@lines@length}\marg{length}\marg{N}'
1301 % \begin{macro}{\set@lines@length}
1302 % Many specifications in the Manual refer to ``\meta{N} blank lines''.
1303 % |\set@lines@length| allows you to set a length to a given number of
1304 % lines, protecting against external |spacing| environments. It
1305 % requires \pkg{calc} for the multiplication.
1307 \let\DUT@baselineskip\baselineskip
1308 \newcommand{\set@lines@length}[2]{%
1309 \setlength{#1}{\DUT@baselineskip * {#2}}
1315 % `\cs{blanklines}\marg{N}'
1317 % \begin{macro}{\blanklines}
1318 % Insert \meta{N} blank lines.
1320 \newlength\DUT@blanklines@length
1321 \newcommand{\blanklines}[1]{%
1323 \set@lines@length{\DUT@blanklines@length}{#1}%
1324 \vspace{\DUT@blanklines@length}
1331 % \subsection{\cls{book} overrides and extensions}
1333 % Here we change the behavior of a bunch of macros and environments from
1334 % \cls{book} (generated by \file{classes.ins} from \file{classes.dtx}) in
1335 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{base}}).
1336 % We'll copy in their original notes along with their code, following
1337 % the relevant documentation an order given in \file{classes.dtx}.
1340 % \subsubsection{Floats on a text page}
1342 % \begin{macro}{\floatsep}
1343 % \begin{macro}{\textfloatsep}
1344 % \begin{macro}{\intextsep}
1345 % When a floating object is placed on a page with text, these
1346 % parameters control the separation between the float and the other
1347 % objects on the page.
1349 % |\floatsep| is the space between adjacent floats that are moved
1350 % to the top or bottom of the text page.
1352 % |\textfloatsep| is the space between the main text and floats
1353 % at the top or bottom of the page.
1355 % |\intextsep| is the space between in-text floats and the text.
1357 % From the Manual 2.3 p6, ``Tables and Figures''
1359 % Insert at least 3 single-spaced lines of space above table
1360 % captions and figures and below figure captions, tables, and other
1363 % (\file{classes.dtx}, L1426)
1365 \set@lines@length{\floatsep}{\@ssp}
1366 \set@lines@length{\textfloatsep}{\@tsp}
1367 \set@lines@length{\intextsep}{\@tsp}
1374 % \subsubsection{The title}
1376 % \begin{macro}{\maketitle}
1377 % Automate the creation of the title page.
1378 % From Manual 3.1 p8, ``Title Page'', and the example on p16.
1380 % \item This page is counted but not numbered (it counts as page i,
1381 % but should not have a page number). TODO: How is this implemented?
1383 % Our definition simplifies \cls{book}'s by ignoring footnotes.
1384 % (\file{classes.dtx}, L1796)
1386 \renewcommand\maketitle{
1389 % Add some bookmarks if we're using pdf\LaTeX. The |frontmatter|
1390 % bookmark is set at the \emph{part} level (-1) to hold all bookmarks
1391 % from the |preamble| environment, since those entries are all
1395 \pdfbookmark[-1]{Frontmatter}{frontmatter}
1396 \pdfbookmark[0]{Title Page}{title}
1399 % Add some stretchy space to center the title vertically if we're not
1402 \if@final \vspace*{\fill} \fi
1404 % Here is the title text itself.
1407 \begin{spacing}{\@tsp}
1410 \begin{spacing}{\@dsp}
1412 Submitted to the Faculty\\
1417 in partial fulfillment of the\\
1418 requirements for the degree\\
1421 \def@month\ \def@year
1425 % Some more stretchy space for the bottom if we're not in draft mode.
1428 % Add some stretchy space to center the title vertically if we're not
1431 \if@final \vspace*{\fill} \fi
1434 % And that's it. We reset the footnote counter for the rest of the
1435 % document and save space by freeing the memory associated with the
1436 % |\maketitle| and |\and| macros (by setting them equal to |\relax|).
1438 \setcounter{footnote}{0}%
1439 \global\let\maketitle\relax
1440 \global\let\and\relax
1446 % \subsubsection{Copyright pages}
1447 % \label{sec:implement-copyright}
1449 % \begin{macro}{\makecopyright}
1450 % The Manual allows for the selection of different copyrights, so we
1451 % define a base macro that generates a proper copyright page
1452 % containing |\@copyrighttext|, which the user can set with
1454 % From Manual 3.2 p9, ``Copyright Page''.
1456 % \item Include a copyright page with the following information: a
1457 % copyright notice, full legal name of author, and date of
1458 % publication on file.
1459 % \item This page is neither counted nor numbered.
1461 % In final mode, we start off on a new page and center the blurb.
1462 % In draft mode, we dive right into the text.
1464 \newcommand\makecopyright{%
1467 % If we're using pdf\LaTeX, add a bookmark.
1469 \ifpdf \pdfbookmark[0]{Copyright Page}{copyright} \fi
1470 \if@final \vspace*{\fill} \fi
1472 \copyright~Copyright \def@year\\
1473 \@author. \@copyrighttext
1475 \if@final \vspace*{\fill} \else \blanklines{2} \fi
1477 % Turn off page numbering for this page.
1479 \thispagestyle{empty}
1484 % \begin{macro}{\copyrighttextCC}
1485 % The Creative Commons license.
1487 \newcommand\copyrighttextCC{
1489 This work is licensed under the terms of the Creative Commons
1490 Attribution-ShareAlike license. The license is available at \\
1491 \url{http://creativecommons.org/licenses/by-sa/2.0/}.
1498 % \subsubsection{Mark commands}
1500 % Default initializations of |\...mark| commands. These commands
1501 % are used in the definition of the page styles.
1503 % \begin{macro}{\chaptermark}
1504 % Setup colon rather than period separated chapter marks.
1505 % (\file{classes.dtx}, L2053)
1507 \renewcommand\chaptermark[1]{%
1508 \markboth {\MakeUppercase{%
1509 \ifnum \c@secnumdepth >\m@ne
1511 \@chapapp\ \thechapter: \ %
1518 % \begin{macro}{\chaptermark}
1519 % Setup space rather than period separated section marks.
1520 % (\file{classes.dtx}, L2054)
1522 \renewcommand{\sectionmark}[1]{%
1523 \markright {\MakeUppercase{%
1524 \ifnum \c@secnumdepth >\z@
1532 % \subsubsection{Front Matter, Main Matter, and Back Matter}
1534 % A book contains these three (logical) sections. The switch
1535 % |\@mainmatter| is true iff we are processing Main Matter. When this
1536 % switch is false, the |\chapter| command does not print chapter
1539 % \begin{macro}{\mainmatter}
1540 % This command clears the page (in final mode), starts arabic page
1541 % numbering and turns on chapter numbering. Since this restarts the
1542 % page numbering from 1, it should also ensure that a recto page is
1545 % We replace \cls{book}'s |\clear*page| calls with |\DUT@clearpage| calls.
1546 % (\file{classes.dtx}, L2211)
1548 \renewcommand\mainmatter{%
1549 \DUT@cleardoublepage
1551 \pagenumbering{arabic}}
1556 % \subsubsection{Parts}
1558 % \begin{macro}{\part}
1559 % The command to start a new part of our document.
1561 % We start a new (righthand) page and use the \pstyle{plain}
1562 % pagestyle, replacing \cls{book}'s |\clear*page| calls with
1563 % |\DUT@clearpage| calls and dropping twopage code.
1564 % (\file{classes.dtx}, L2249)
1566 \renewcommand\part{%
1568 \DUT@cleardoublepage
1572 \thispagestyle{plain}%
1575 % Add some stretchy space for vertical centering if we're in final mode.
1577 \if@final \null\vfil \fi
1579 % Here we use |\secdef| to indicate which commands to use to make
1580 % the actual heading.
1582 \secdef\@part\@spart}
1586 % \begin{macro}{\@part}
1587 % This macro does the actual formatting of the title of the part. We
1588 % replace \cls{book}'s |\Huge| with |\large|, and make use of
1589 % |\numberline| for consistent spacing.
1591 % When \Lcount{secnumdepth} is larger than $-2$, we have a numbered
1592 % part, otherwise it is unnumbered.
1593 % (\file{classes.dtx}, L2310)
1596 \ifnum \c@secnumdepth >-2\relax
1597 \refstepcounter{part}%
1598 \AddContentsLine{toc}{part}%
1599 {\protect\numberline{\thepart}}{#1}%
1601 \AddContentsLine{toc}{part}{}{#1}%
1604 % We empty the mark registers and center the title on the page.
1605 % Also we prevent breaking between lines and reset the font.
1609 \interlinepenalty \@M
1612 % When this is a numbered part we have to print the number.
1614 \ifnum \c@secnumdepth >-2\relax
1615 \large\bfseries \partname\nobreakspace\thepart
1618 % We leave some space before we print the title and leave the
1619 % finishing up to |\@endpart|.
1623 \large \bfseries #2\par}%
1628 % \begin{macro}{\@spart}
1629 % This macro does the actual formatting of the title of the part
1630 % when the star form of the user command was used. In this case we
1631 % \emph{never} print a number. Otherwise the formatting is the
1633 % (\file{classes.dtx}, L2402)
1637 \interlinepenalty \@M
1639 \large \bfseries #1\par}%
1644 % \begin{macro}{\@endpart}
1645 % This macro finishes the part page, for both |\@part| and |\@spart|.
1646 % We drop \cls{book}'s twoside handling.
1647 % If |\if@final| is true, we fill the current page.
1648 % (\file{classes.dtx}, L2435)
1651 \if@final \vfil\newpage \fi
1653 % Then, when we are in twosided mode and the chapters are supposed to
1654 % be on the right hand sides, we produce a completely blank page. We
1655 % don't need to check |\if@final| here, because \Lopt{draftspace} set
1656 % |\@openrighttrue|.
1661 \thispagestyle{empty}%
1669 % \subsubsection{Chapters}
1670 % \label{sec:implement-chapters}
1672 % \begin{macro}{\chapter}
1673 % \cls{book} always starts a chapter on a new page, but we don't want
1674 % to do that if we're in draft mode.
1675 % (\file{classes.dtx}, L2472).
1677 \renewcommand\chapter{%
1678 \if@openright\DUT@cleardoublepage\else\DUT@clearpage\fi
1679 \thispagestyle{plain}%
1681 % Then we prevent floats from appearing at the top of this page
1682 % because it looks weird to see a floating object above a chapter
1687 % Then we suppress the indentation of the first paragraph by
1688 % setting the switch |\@afterindent| to false. We use |\secdef|
1689 % to specify the macros to use for actually setting the chapter
1693 \secdef\@chapter\@schapter}
1697 % \begin{macro}{\@chapter}
1698 % This macro is called when we have a numbered chapter. When
1699 % \Lcount{secnumdepth} is larger than $-1$ and |\@mainmatter| is true,
1700 % we display the chapter number.
1701 % We drop \cls{book}'s \Lopt{twocolumn} code.
1702 % (\file{classes.dtx}, L2496).
1704 \def\@chapter[#1]#2{
1705 \ifnum \c@secnumdepth >\m@ne
1707 \refstepcounter{chapter}%
1709 % Inform the user that a new chapter is about to be typeset by writing
1710 % a message to the terminal.
1712 \typeout{\@chapapp\space\thechapter.}%
1715 % We're in the appendix (when |\if@mainmatter| and
1716 % |\if@appendix| are both true), add a TOC line like
1718 % Appendix A: Chapter Title
1720 % |\thechapter| (defined in \cls{book}) is the text representation of
1721 % the chapter number (e.g.\ |1| or, for an appendix, |A|).
1722 % |\@chapapp{}| (also defined in \cls{book}) was redefined in
1723 % |\appendix| (Sec. \ref{sec:implement-appendix}) as |\appendixname|.
1725 \AddContentsLine{toc}{appendix}%
1726 {\protect\numberline{\@chapapp{} \thechapter:}}{#1}%
1729 % We're in the pre-appendix mainmatter, so add a TOC line like
1734 \AddContentsLine{toc}{chapter}%
1735 {\protect\numberline{\thechapter}}{#1}%
1739 % We're in the pre-mainmatter, so add a TOC line like
1744 \AddContentsLine{toc}{chapter}{}{#1}%
1747 \AddContentsLine{toc}{chapter}{}{#1}%
1750 % After having written an entry to the table of contents we store
1751 % the (alternative) title of this chapter with |\chaptermark| and
1752 % add some white space to the lists of figures and tables.
1755 \addtocontents{lof}{\protect\addvspace{10\p@}}%
1756 \addtocontents{lot}{\protect\addvspace{10\p@}}%
1758 % Then we call upon |\@makechapterhead| to format the actual chapter
1759 % title. |\@afterheading| which takes care of suppressing the
1762 \@makechapterhead{#2}%
1767 % \begin{macro}{\@makechapterhead}
1768 % The |\@chapter| macro uses |\@makechapterhead|\meta{text} to format
1769 % the heading of the chapter.
1770 % From the Manual 3.11 p11.
1772 % Chapter headings must be bold and centered.
1773 % The chapter number and title must be on the same line, separated
1774 % by a colon or period, as shown in the example below:
1776 % CHAPTER 1: INTRODUCTION
1778 % Headings must not be larger than 12 points.
1779 % Headings must be single spaced.
1781 % \cls{book} sets |\@chapapp| and |\thechapter| (e.g.\ ``Chapter 5'')
1782 % on a line above the chapter title, but that doesn't match the
1783 % Manual's specification.
1785 % We begin by leaving some white space. The we open a group in which
1786 % we have a paragraph indent of 0pt, and in which we have the text set
1787 % ragged right. We also reset the font.
1788 % (\file{classes.dtx}, L2540).
1790 \def\@makechapterhead#1{%
1792 {\parindent \z@ \raggedright \normalfont
1794 % Ensure single spacing.
1796 \begin{spacing}{\@ssp}
1798 % Prevent a pagebreak from occuring in the middle of or after the title.
1800 \interlinepenalty\@M
1802 % Check whether the number of the chapter has to be printed.
1804 \ifnum \c@secnumdepth >\m@ne
1806 % Check whether there \emph{is} a number to be printed.
1810 % Setup a ``Chapter \#: Title'' heading.
1812 \center \large \bfseries \@chapapp{} \thechapter: #1\par\nobreak
1815 % Setup a ``Title'' heading.
1817 \center \large \bfseries #1\par\nobreak
1820 \center \large \bfseries #1\par\nobreak
1824 % Put a little space before the chapter body.
1832 % \begin{macro}{\@schapter}
1833 % We don't have to worry about |\@schapter|, since it is very simple.
1834 % In onecolumn mode it's just
1835 % (\file{classes.dtx}, L2582).
1837 %\def\@schapter#1{\@makeschapterhead{#1}%
1842 % \begin{macro}{\@makeschapterhead}
1843 % The macro above uses |\@makeschapterhead|\meta{text} to format
1844 % the heading of the chapter. It is similar to |\@makechapterhead|
1845 % except that it never has to print a chapter number.
1846 % (\file{classes.dtx}, L2595).
1848 \def\@makeschapterhead#1{%
1850 {\parindent \z@ \raggedright
1852 \interlinepenalty\@M
1853 \begin{spacing}{\@ssp}
1854 \center \large \bfseries #1\par\nobreak
1863 % \begin{macro}{\toclevel@appendix}
1864 % We've added a new TOC entry type with the
1866 % \AddContentsLine{toc}{appendix}{...}{...}
1868 % calls above, and \pkg{hyperref} needs to know what level they belong
1869 % to. Obviously they belong to the chapter level ($0$).
1871 \providecommand*{\toclevel@appendix}{0}
1876 % \subsubsection{Lower level headings}
1878 % \begin{macro}{\section}
1879 % Setup section headings in |\large| rather than \cls{book}'s
1881 % (\file{classes.dtx}, L2623).
1883 \renewcommand\section{%
1884 \@startsection {section}{1}{\z@}%
1885 {-3.5ex \@plus -1ex \@minus -.2ex}%
1887 {\normalfont\large\bfseries}}
1892 % \subsubsection{Defining new environments}
1894 % We don't override any of \cls{book}'s environments, but this is
1895 % where \file{classes.dtx} defines its environments (L2996), so we'll put
1898 % \begin{environment}{preamble}
1900 \newenvironment{preamble}{%
1903 \pagenumbering{roman}
1905 % From Manual 3.1 p8, ``Title Page''.
1909 % From Manual 3.2 p9, ``Copyright Page''.
1914 % From the Manual 3.9, p11:
1916 % Include a blank page (with no page number) before the first page
1917 % of text. The blank page is neither numbered nor counted.
1925 % \begin{environment}{dedications}
1926 % From the Manual 3.3 p9
1928 % \item The heading |Dedications| must appear at the top of the
1929 % page. The heading must be bold, centered, and without
1931 % \item This page is counted and numbered in lowercase Roman numerals.
1934 \newenvironment{dedications}{%
1938 \pdfbookmark[0]{\dedicationsname}{dedications}
1940 \chapter*{\dedicationsname}
1941 \begin{spacing}{\@dsp}
1948 % \begin{environment}{acknowledgments}
1949 % From the Manual 3.4 p9
1951 % \item The heading |Acknowledgments| must appear at the top of the
1952 % page. The heading must be bold, centered, and without
1954 % \item This page is counted and numbered in lowercase Roman numerals.
1957 \newenvironment{acknowledgments}{%
1961 \pdfbookmark[0]{\acknowledgmentsname}{acknowledgments}
1963 \chapter*{\acknowledgmentsname}
1964 \begin{spacing}{\@dsp}
1971 % \begin{environment}{abstract}
1973 \newenvironment{abstract}{%
1975 \thispagestyle{plain}%
1978 \AddContentsLine*{toc}{chapter}{}{\abstractname}
1981 % From the Manual 3.9 p10 ``The following heading must be centered at
1982 % the top of the page'':
1985 % Full Title of Dissertation or Thesis \\
1986 % Author's Name as it appears on the Dissertation or Thesis
1988 % In the example on p20, they list the advisor's name after the
1989 % author, but that is not specified in the text on p10.
1991 % On p20, ``These pages are numbered using lowercase Roman numerals.
1992 % Note that the heading is single spaced, but the abstract is double
1995 \begin{spacing}{\@ssp}
1997 {\large \bfseries \abstractname \par}
1998 %% \@endparpenalty\@M
2005 \begin{spacing}{\@dsp}
2015 % \begin{environment}{thesis}
2016 % From the Manual 3.10 p11
2018 % \item The pages are counted and numbered in Arabic numerals.
2021 \newenvironment{thesis}{%
2023 \begin{spacing}{\@dsp}
2029 \pdfbookmark[-1]{Backmatter}{backmatter}
2035 % \begin{environment}{vita}
2036 % From the Manual 3.15 p13
2038 % \item The heading |Vita| must appear at the top of the page. The
2039 % heading must be bold, centered, and without punctuation.
2040 % \item The Vita text should begin four spaces below the heading.
2041 % \item List the Vita separately in the Table of Contents.
2042 % \item The page is counted and numbered in Arabic numerals.
2045 \newenvironment{vita}{%
2048 \AddContentsLine*{toc}{chapter}{}{\vitaname}
2049 \chapter*{\vitaname}
2051 \begin{spacing}{\@dsp}
2059 % \subsubsection{Titlepage}
2061 % \begin{environment}{titlepage}
2062 % In the normal environments, the titlepage environment does nothing
2063 % but start and end a page, and inhibit page numbers. We inhibit the
2064 % paging in draft mode, since it seems silly to waste a whole page on
2065 % the title. We also drop the \Lopt{twocolumn} code.
2066 % (\file{classes.dtx}, L3111)
2068 \renewenvironment{titlepage}{\thispagestyle{empty}%
2069 \setcounter{page}\z@}%
2070 {\if@final \newpage \else \blanklines{2} \fi}
2075 % \subsubsection{Appendix}
2077 % \begin{macro}{\appendix}
2078 % The |\appendix| command is not really an environment, it is a
2079 % macro that makes some changes in the way things are done.
2081 % In the article document class the |\appendix| command must do the
2084 % \item reset the section and subsection counters to zero,
2085 % \item redefine |\thesection| to produce alphabetic appendix
2086 % numbers. This redefinition is done globally to ensure that it
2087 % survives even if |\appendix| is issued within an environment such
2088 % as \texttt{multicols}.
2091 % In addition to \cls{book}'s (or \pkg{hyperref}'s) activity, we add
2092 % |\@appendixtrue|. This gets |\if@appendix| working in our
2093 % |\chapter| definition (Sec.~\ref{sec:implement-chapters}).
2094 % (\file{classes.dtx}, L3177)
2096 \let\DUT@appendix\appendix
2097 \renewcommand\appendix{%
2101 % We also turn on double spacing by default, since we're no longer
2102 % wrapped in the |thesis| environment.
2110 % \subsubsection{Table}
2111 % \label{sec:implement-tables}
2113 % \begin{environment}{table}
2114 % \begin{environment}{table*}
2115 % To help symmetrize the spacing around tables and figures, we set
2116 % |\if@table| in the |table| environments. The remainder of the
2117 % code comes in Section \ref{sec:implement-captions}.
2118 % (\file{classes.dtx}, L3491)
2120 \newif\if@table \@tablefalse
2121 \renewenvironment{table}
2122 {\@tabletrue\@float{table}}
2123 {\end@float\@tablefalse}
2124 \renewenvironment{table*}
2125 {\@tabletrue\@dblfloat{table}}
2126 {\end@dblfloat\@tablefalse}
2132 % \subsubsection{Captions}
2133 % \label{sec:implement-captions}
2135 % \begin{macro}{\@makecaption}
2136 % The |\caption| command calls |\@makecaption| to format the
2137 % caption of floating objects. It gets two arguments,
2138 % \meta{number}, the number of the floating object and \meta{text},
2139 % the text of the caption. Usually \meta{number} contains a string
2140 % such as ``Figure 3.2''. The macro can assume it is called inside a
2141 % |\parbox| of right width, with |\normalsize|.
2143 % We override \cls{book}'s |\@makecaption|, adding two |\if@table|
2144 % conditionals, which swap |\abovecaptionskip| and |\belowcaptionskip|
2145 % for tables (where the caption is above the float body). With our
2146 % implementation, |\belowcaptionskip| \emph{always} gives the distance
2147 % between the caption and the text, and |\abovecaptionskip|
2148 % \emph{always} gives the distance between the caption and the float
2149 % body. See Section \ref{sec:implement-tables} for our |\if@table|
2152 % We also replace the caption lead-in |#1: #2| with
2153 % |\small{\bfseries#1:} #2|.
2154 % (\file{classes.dtx}, L3508)
2157 % Define a temporary length for swapping.
2159 \newlength\@tempcapskip
2161 % The definition of this macro is |\long| in order to allow more
2162 % then one paragraph in a caption.
2164 \long\def\@makecaption#1#2{%
2167 % Swap |\abovecaptionskip| and |\belowcaptionskip|.
2169 \@tempcapskip\abovecaptionskip
2170 \abovecaptionskip\belowcaptionskip
2171 \belowcaptionskip\@tempcapskip
2173 \vskip\abovecaptionskip
2175 % We want to see if the caption fits on one line on the page,
2176 % therefore we first typeset it in a temporary box.
2178 \sbox\@tempboxa{\small{\bfseries#1:} #2}%
2180 % We can the measure its width. It that is larger than the current
2181 % |\hsize| we typeset the caption as an ordinary paragraph.
2183 \ifdim \wd\@tempboxa >\hsize
2184 {\small{\bfseries#1:} #2\par}
2187 % If the caption fits, we center it. Because this uses an |\hbox|
2188 % directly in vertical mode, it does not execute the |\everypar|
2189 % tokens; the only thing that could be needed here is resetting the
2190 % `minipage flag' so we do this explicitly.
2192 \global \@minipagefalse
2193 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
2195 \vskip\belowcaptionskip
2197 % Restore |\abovecaptionskip| and |\belowcaptionskip|.
2200 \@tempcapskip\belowcaptionskip
2201 \belowcaptionskip\abovecaptionskip
2202 \abovecaptionskip\@tempcapskip
2208 % \begin{macro}{\abovecaptionskip}
2209 % \begin{macro}{\belowcaptionskip}
2210 % For \cls{book}, these lengths contain the amount of white space to
2211 % leave above and below the caption. However, because of our work
2212 % with |\@makecaption| (above), |\belowcaptionskip| \emph{always}
2213 % gives the distance between the caption and the text, and
2214 % |\abovecaptionskip| \emph{always} gives the distance between the
2215 % caption and the float.
2216 % (\file{classes.dtx}, L3516)
2218 \set@lines@length{\abovecaptionskip}{\@ssp}
2219 \set@lines@length{\belowcaptionskip}{\@tsp}
2225 % \subsubsection{Table of Contents}
2227 % \begin{macro}{\tableofcontents}
2228 % Automate the creation of the table of contents.
2229 % From Manual 3.5 p9, ``Table of Contents'', and the example on p17.
2231 % \item Do not list any sections that precede the
2232 % |Table of Contents| (e.g.\ |Dedications|, |Acknowledgments|). Do
2233 % not list the |Table of Contents| itself.
2234 % \item These pages are counted and numbered in lowercase Roman numerals.
2236 % We inhibit the paging in draft mode and drop the \Lopt{twocolumn} code.
2237 % (\file{classes.dtx}, L3728)
2239 \renewcommand\tableofcontents{%
2242 % If we're using pdf\LaTeX, add a bookmark.
2246 \pdfbookmark[0]{\contentsname}{tableofcontents}
2248 \chapter*{\contentsname}
2250 % Set the marks for \cls{fancyhdr}'s fancy header.
2252 \@mkboth{\MakeUppercase\contentsname}%
2253 {\MakeUppercase\contentsname}%
2259 % The command |\contentsline{|\meta{name}|}| expands to
2260 % |\l@|\meta{name}. So, to specify the table of contents, we must
2261 % define |\l@chapter|, |\l@section|, |\l@subsection|, ... ; to
2262 % specify the list of figures, we must define |\l@figure|; and so
2266 % `\cs{l@DUT@major}\marg{title}\marg{page}\marg{inset}'
2268 % \begin{macro}{\l@DUT@major}
2269 % Define a wrapper class for printing TOC entries for parts, chapters,
2270 % and appendicies, since they should all have the same formatting.
2271 % \meta{title} and \meta{page} are the first two arguments passed to
2272 % the outer |\l@*| macro. \meta{inset} gives the distance that the
2273 % title text is offset from the left margin (|\@tempdima|), with any
2274 % |\numberline| text (e.g.\ part or chapter numbers) being printed
2275 % flush on the left margin.
2277 \newif\if@bold@DUT@major
2278 \newif\if@dotted@DUT@major
2279 \newcommand\l@DUT@major[3]{%
2280 \begin{spacing}{\@ssp}
2281 \ifnum \c@tocdepth >\m@ne
2283 % Make sure that if a pagebreak should occur, it occurs \emph{before}
2286 \addpenalty{-\@highpenalty}%
2288 % The macro |\numberline| requires that the width of the box that
2289 % holds the part number is stored in \LaTeX's scratch register
2290 % |\@tempdima|. Therefore we initialize it there even though we may
2291 % not use |\numberline| internally.
2293 \setlength\@tempdima{#3}%
2296 % We set |\parindent| to 0pt and use |\rightskip| to leave
2297 % enough room for the pagenumbers.\footnote{^^A
2298 % We use \file{classes.dtx} suggested \cs{@tocrmarg} for
2299 % \cs{rightskip}, which they're delaying until \LaTeX3.}
2300 % To prevent overfull box messages the |\parfillskip| is set to a
2303 \parindent \z@ \rightskip \@tocrmarg \parfillskip -\rightskip
2305 % Leave vertical mode.
2309 % Switch to bold font if appropriate.
2315 % Manuever to place the part number flush left, with the part title
2316 % inset by |\@tempdima|.
2318 \advance\leftskip\@tempdima
2321 % Set the part title.
2325 % Draw a dotted line if appropriate.
2327 \if@dotted@DUT@major
2328 \leaders\hbox{$\m@th
2329 \mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}
2332 % Wrap up with the page entry, set flush right.
2334 \hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
2336 % Prevent a pagebreak immediately after this entry.
2340 % Add a content-page-spacing blank after this entry.
2342 \blanklines{\@cont@sep}
2344 % Discourage page breaking.
2346 \penalty\@highpenalty
2354 % \begin{macro}{\l@part}
2355 % Override \cls{book}'s |\l@part|.
2356 % (\file{classes.dtx}, L3775)
2358 \renewcommand*\l@part[2]{%
2360 \@bold@DUT@majortrue
2362 \@bold@DUT@majorfalse
2365 \@dotted@DUT@majortrue
2367 \@dotted@DUT@majorfalse
2369 \l@DUT@major{#1}{#2}{3em}}
2373 % \begin{macro}{\l@chapter}
2374 % Override \cls{book}'s |\l@chapter|.
2375 % (\file{classes.dtx}, L3847)
2377 \renewcommand*\l@chapter[2]{%
2379 \@bold@DUT@majortrue
2381 \@bold@DUT@majorfalse
2384 \@dotted@DUT@majortrue
2386 \@dotted@DUT@majorfalse
2388 \l@DUT@major{#1}{#2}{1.5em}}
2393 % \begin{macro}{\l@appendix}
2394 % Add |\l@appendix|, which is identical to our |\l@chapter| except
2395 % for setting |\@tempdima| to 8em rather than 1.5em, because the word
2396 % |Appendix| takes up a bunch of space.
2398 \newcommand*\l@appendix[2]{%
2400 \@bold@DUT@majortrue
2402 \@bold@DUT@majorfalse
2405 \@dotted@DUT@majortrue
2407 \@dotted@DUT@majorfalse
2409 \l@DUT@major{#1}{#2}{8em}}
2414 % \subsubsection{List of figures}
2416 % \begin{macro}{\listoffigures}
2417 % This macro is used to request that \LaTeX\ produces a list of
2418 % figures. It is very similar to |\tableofcontents|.
2420 % From the Manual 3.7 p10
2422 % The heading |List of Figures| must appear at the top of the first
2424 % The heading must be bold, centered, and without punctuation.
2425 % List figure captions exactly as they appear below the figures in
2427 % Single space each entry, but double-space between entries.
2428 % Separate figure captions from page numbers with right-justified
2429 % tabs and dot leaders.
2430 % Do not use periods to separate captions and page numbers.
2431 % These pages are counted and numbered in lowercase Roman numerals.
2434 % We drop the \Lopt{twocolumn} code, add a line to the table of
2435 % contents, and adjust paging.
2436 % (\file{classes.dtx}, L3981).
2438 \renewcommand\listoffigures{%
2441 \AddContentsLine*{toc}{chapter}{}{\listfigurename}
2442 \chapter*{\listfigurename}%
2443 \@mkboth{\MakeUppercase\listfigurename}%
2444 {\MakeUppercase\listfigurename}%
2451 % \subsubsection{List of tables}
2453 % \begin{macro}{\listoftables}
2454 % This macro is used to request that \LaTeX\ produces a list of
2455 % tables. It is very similar to |\tableofcontents|.
2457 % From the Manual 3.6 p10
2459 % The heading |List of Tables| must appear at the top of the first
2461 % The heading must be bold, centered, and without punctuation.
2462 % List table captions exactly as they appear above the tables in
2464 % Single space each entry, but double-space between entries.
2465 % Separate table captions from page numbers with right-justified
2466 % tabs and dot leaders.
2467 % Do not use periods to separate captions and page numbers.
2468 % These pages are counted and numbered in lowercase Roman numerals.
2471 % We drop the \Lopt{twocolumn} code, add a line to the table of
2472 % contents, and adjust paging.
2473 % (\file{classes.dtx}, L4017).
2475 \renewcommand\listoftables{%
2478 \AddContentsLine*{toc}{chapter}{}{\listtablename}
2479 \chapter*{\listtablename}%
2480 \@mkboth{\MakeUppercase\listtablename}%
2481 {\MakeUppercase\listtablename}%
2488 % \subsubsection{Bibliography}
2490 % \begin{environment}{thebibliography}
2491 % The |thebibliography| environment is a list environment. To save the
2492 % use of an extra counter, it should use |enumiv| as the item
2494 % Instead of using |\item|, items in the bibliography are produced by
2495 % the following commands:\\
2496 % |\bibitem|\marg{name} : Produces a numbered entry cited as
2498 % |\bibitem|\oarg{label}\marg{name} : Produces an entry labeled by
2499 % \meta{Label} and cited by \meta{name}.
2501 % Override \cls{book}'s version, adding a line to the table of
2502 % contents. We split out the section-creation code into
2503 % |\bib@heading| for \pkg{natbib} compatibility.
2504 % (\file{classes.dtx}, L4063).
2506 \renewenvironment{thebibliography}[1]
2508 \list{\@biblabel{\@arabic\c@enumiv}}%
2509 {\settowidth\labelwidth{\@biblabel{#1}}%
2510 \leftmargin\labelwidth
2511 \advance\leftmargin\labelsep
2513 \usecounter{enumiv}%
2514 \let\p@enumiv\@empty
2515 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
2517 % Because it's hard to do line breaks in bibliographies.
2521 % This is setting the normal (non-infinite) value of
2522 % |\clubpenalty| for the whole of this environment,
2523 % so we must reset its stored value also. (Why is there a |%| after
2524 % the second 4000 below?)
2527 \@clubpenalty \clubpenalty
2530 % Cause a `.' (period) not to produce an end-of-sentence space.
2534 % Warn if an empty `thebibliography' environment is found.
2537 {\@latex@warning{Empty `thebibliography' environment}}%
2542 % \begin{macro}{\bib@heading}
2543 % \pkg{natbib} messes with |thebibliography|. We setup |\bib@heading|
2544 % so we will still get our table of contents entry.
2546 \newcommand{\bib@heading}{%
2548 \AddContentsLine*{toc}{chapter}{}{\bibname}%
2549 \chapter*{\bibname}%
2550 \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
2555 % \subsubsection{Words}
2557 % Set the official names of the various sections encountered. Some of
2558 % these are not defined in \file{classes.dtx} but are close analogs of
2561 % \begin{macro}{\dedicationsname}
2562 % From the Manual 3.3 p9, ``The heading |Dedications| must appear at
2563 % the top of the page.''
2565 \newcommand\dedicationsname{Dedications}
2569 % \begin{macro}{\acknowledgmentsname}
2570 % From the Manual 3.4 p9, ``The heading |Acknowledgments| must appear
2571 % at the top of the page.''
2573 \newcommand\acknowledgmentsname{Acknowledgments}
2577 % \begin{macro}{\contentsname}
2578 % From the Manual 3.5 p9, ``The heading |Table of Contents| must
2579 % appear at the top of the page.'' (\file{classes.dtx}, L4331)
2581 \renewcommand\contentsname{Table of Contents}
2585 % \begin{macro}{\listtablename}
2586 % From the Manual 3.6 p10, ``The heading |List of Tables| must appear
2587 % at the top of the page.'' (\file{classes.dtx}, L4333)
2589 \renewcommand\listtablename{List of Tables}
2593 % \begin{macro}{\listfigurename}
2594 % From the Manual 3.7 p10, ``The heading |List of Figures| must appear
2595 % at the top of the page.'' (\file{classes.dtx}, L4332)
2597 \renewcommand\listfigurename{List of Figures}
2601 % \begin{macro}{\abstractname}
2602 % From the Manual 3.8 p10, ``The following heading must be centered at
2603 % the top of the first page: |Abstract|\ldots.''
2604 % (\file{classes.dtx}, L4367)
2606 \newcommand\abstractname{Abstract}
2610 % \begin{macro}{\bibname}
2611 % From the Manual 3.13 p12, ``The heading |Bibliography| (or
2612 % |List of References|) must appear at the top of first page.''
2613 % (\file{classes.dtx}, L4344)
2615 \renewcommand\bibname{Bibliography}
2619 % \begin{macro}{\appendixname}
2620 % From the Manual 3.14 p12, ``Number the appendicies consecutively
2621 % either alphabetically or numerically (|Appendix A|, |Appendix B|\ldots
2622 % or |Appendix 1|, |Appendix 2|\ldots).''
2623 % (\file{classes.dtx}, L4366)
2625 \renewcommand\appendixname{Appendix}
2629 % \begin{macro}{\vitaname}
2630 % From the Manual 3.15 p13, ``The heading |Vita| must appear at the
2631 % top of the page.''
2633 \newcommand\vitaname{Vita}
2638 % \subsection{Remaining details}
2641 % \subsubsection{Terminal blank page}
2643 % Add a terminal blank page (when |\if@final| is true)
2644 % From the Manual 3.16 p13
2646 % Include a blank page (with no page number) at the end of the
2647 % thesis or dissertation. The blank page is neither counted nor
2651 \AtEndDocument{\blankpage}
2660 % \subsection{Caveats and bugs}
2663 % \subsubsection{\pkg{hyperref} and uppercase}
2665 % In order to comply with the Manual's specifications,
2666 % part and chapter entries to the table of contents need
2667 % to be uppercased, which we do via |\AddContentsLine|.
2668 % This generates some whining from \pkg{hyperref}
2670 % Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding),
2671 % (hyperref) removing `\uppercase' on input line 72.
2673 % This is because |\uppercase| is parsed in \TeX's stomach, but
2674 % \pkg{hyperref} deals with code in \TeX's mouth, so \pkg{hyperref} is
2675 % drops the token and complains. Which is fine, since the titles
2676 % don't actually need to be uppercased in the bookmark, but the
2677 % error messages are still produced. If anyone knows of a good way
2678 % to either fix the problem or silence these particular error messages,
2679 % please let me know. Otherwise, just ignore the errors.
2682 % \section{Examples}
2685 % \subsubsection{Template}
2689 % See drexel-thesis.pdf for details.
2690 \documentclass{drexel-thesis}
2692 %% Enter the appropriate information here
2693 \author{} % Fullname
2694 \title{} % Title Of Thesis
2695 \defmonth{} % Name of the month of you defense
2696 \defyear{} % Year you are defending
2697 \degree{} % Your target degree, spelled out
2698 \advisor{} % Advisor's full name, degree
2699 \copyrighttext{} % If not "All Rights Reserved."
2701 %% unsrt style give references in order of citation
2702 \bibliographystyle{unsrt}
2707 \begin{dedications} % OPTIONAL
2708 %% Type dedications here
2711 \begin{acknowledgments} % OPTIONAL
2712 %% Type acknowledgments here
2713 \end{acknowledgments}
2716 \listoftables % If you have tables
2717 \listoffigures % If you have figures
2720 %% Type abstract here
2725 %% Use include statements to include your main thesis code
2726 %% from seperate files.
2731 \bibliography{references} % Include references.bib BibTeX
2733 \appendix % If you have appendices
2734 %% include files with your appendicies (if any) here
2735 %%\include{appendixA}
2738 \begin{vita} % Ph.D. only.
2747 % \subsection{A better example}
2748 % \label{sec:better-example}
2750 % \subsubsection{Main}
2753 %<*example|example-draft>
2754 %% See drexel-thesis.pdf for details.
2755 %<example>\documentclass{drexel-thesis}
2756 %<example-draft>\documentclass[draft]{drexel-thesis}
2758 %% Enter the appropriate information here
2759 \author{Johny Henry}
2760 \title{Inadequacies of Steam-Driven Boring Machines}
2763 \degree{Doctor of Philosophy}
2764 \advisor{Collis Potter Huntington, R.R.D.}
2765 \advisor{Advisor 2, Ph.D.}
2766 \advisor{Advisor 3, Ph.D.}
2767 \copyrighttext{\copyrighttextCC}
2769 \usepackage[super,sort&compress]{natbib} % fancy citation extensions
2770 \bibliographystyle{unsrtnat}
2772 \usepackage{fancyvrb} % nicer verbatim handling
2773 \DefineShortVerb{\|} % \verb+TEXT+ -> |TEXT|
2775 \usepackage{blabla} % \blabla macro for producing dummy output
2784 \begin{acknowledgments}
2786 \end{acknowledgments}
2801 \bibliography{example-ref}
2811 %</example|example-draft>
2815 % \subsubsection{Part}
2819 \part{A Part Heading}
2820 \chapter{A Chapter Heading}
2821 \section{A Section Heading}
2822 The following sectioning commands are available:
2834 You can cite your references with |natbib|'s |\citet| and |\citep|
2836 \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}
2837 {the natbib manual} for details.
2839 Here we have a text citation \citet{rief97} followed by a
2840 parenthetical citation\citep{rief97}.
2842 \subsubsection{Tables and Figures}
2845 \caption{A table float}
2847 \begin{tabular}{r@{.}l r@{.}l r@{.}l}
2848 \multicolumn{2}{c}{Time (s)} &
2849 \multicolumn{2}{c}{John Henry (m)} &
2850 \multicolumn{2}{c}{Steam drill (m)} \\
2852 10&0 & 4&3 & 3&75 \\
2853 30&0 & 11&9 & 10&1 \\
2856 %% Note the strange |r@{.}l| notation in the |\tabular| column
2857 %% definition. This allows for numbers aligned at the decimal point
2858 %% (see \href{http://www.stat.unipg.it/tex-man/ltx-68.html}{here}).
2860 %% |\multicolumn{num_cols}{alignment}{contents}| allows the headings
2861 %% to span the pre- and post-decimal columns.
2867 \includegraphics[width=0.4\textwidth]{drexel-logo}
2869 \caption{A figure float}
2874 \chapter{Another Chapter}
2876 \chapter{Yet another Chapter}
2882 % \subsubsection{\BibTeX}
2884 % What goes into the \BibTeX\ file |example-ref.bib|?
2885 % For more information, check out this
2886 % \href{http://cmtw.harvard.edu/Documentation/TeX/Bibtex/Example.html}{basic tutorial}.
2887 % If you want to get deeper, take a look at
2888 % \href{http://www.ctan.org/tex-archive/info/bibtex/tamethebeast/}{Tame the BeaST}.
2890 % \href{http://www.andy-roberts.net/misc/latex/latextutorial3.html}{how the process works},
2891 % \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node6.html}{entry types},
2892 % \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node7.html}{fields},
2893 % \href{http://en.wikipedia.org/wiki/BibTeX}{entries and fields},
2894 % \href{http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html}{assorted style examples}, and
2895 % \href{http://liinwww.ira.uka.de/bibliography/Bib.Format.html}{assorted \BibTeX tools}.
2897 % Here is an example \BibTeX\ file to get you started. We define
2898 % strings for the publishers, journals, and authors to avoid
2899 % duplication, minimize the risk of typos, etc.
2902 %<*example-bibtex-refs>
2904 @String{APS = "American Physical Society"}
2907 @String{SCI = "Science"}
2910 @String{MRief = "Rief, Matthias"}
2911 @String{MGautel = "Gautel, Mathias"}
2912 @String{FOesterhelt = "Oesterhelt, Filipp"}
2913 @String{JFernandez = "Fernandez, Julio M."}
2914 @String{HGaub = "Gaub, Hermann E."}
2918 author = MRief #" and "# MGautel #" and "# FOesterhelt #" and "#
2919 JFernandez #" and "# HGaub,
2920 title = "Reversible Unfolding of Individual Titin Immunoglobulin
2925 pages = "1109--1112",
2927 doi = "10.1126/science.276.5315.1109",
2928 URL = "http://www.sciencemag.org/cgi/content/abstract/276/5315/1109",
2929 eprint = "http://www.sciencemag.org/cgi/reprint/276/5315/1109.pdf",
2930 mynote = "Seminal paper for force spectroscopy on Titin. Cited by
2931 Dietz '04 (ref 9) as an example of how unfolding large
2932 proteins is easily interpreted (vs.\ confusing unfolding in
2933 bulk), but Titin is a rather simple example of that, because
2934 of its globular-chain structure.",
2937 %</example-bibtex-refs>
2941 % \subsubsection{Appendix}
2944 %<*example-appendix>
2945 \chapter{Some Appendix Heading}
2947 \chapter{Another Appendix Heading}
2949 %</example-appendix>
2953 % \subsubsection{\pkg{blabla}}
2955 % Define the \pkg{blabla} package for generating dummy text. This
2956 % will make it easier to generate reasonable exampes.
2959 \ProvidesPackage{blabla} [2010/01/11 1.0 Dummy text generation]
2962 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/forloop/}{\pkg{foorloop}}
2965 % `\cs{forloop}\oarg{step}\marg{counter}\marg{initial value}\marg{condition}\marg{code}'
2968 \RequirePackage{forloop}[2006/09/18]
2970 \newcounter{blabla@i}
2971 \newcounter{blabla@j}
2972 \newcommand{\blabla}[2]{
2973 \forloop{blabla@i}{0}{\value{blabla@i} < #1}{
2975 \forloop{blabla@j}{0}{\value{blabla@j} < #2}{ bla }