1 % \def\fileversion{0.9}
2 % \def\filedate{2010/05/21}
3 % \iffalse meta-comment
5 \ProvidesFile{drexel-thesis.dtx}
10 \def\filedate{2010/05/21}
13 % Copyright (C) 2010 C.Y. Ip
24 % Vincent A. Cicirello
26 % -------------------------------------------------------
28 % This file may be distributed and/or modified under the
29 % conditions of the LaTeX Project Public License, either version 1.3
30 % of this license or (at your option) any later version.
31 % The latest version of this license is in:
33 % http://www.latex-project.org/lppl.txt
35 % and version 1.3 or later is part of all distributions of LaTeX
36 % version 2003/12/01 or later.
38 % Docstrip formatting initially based on Scott Pakin's
39 % dtxtut/cskeleton.dtx
40 % http://www.ctan.org/tex-archive/info/dtxtut/
44 % \iffalse meta-comment
45 %<class>\NeedsTeXFormat{LaTeX2e}
46 %<class>\ProvidesClass{drexel-thesis}
47 %<class> [\filedate\ \fileversion\ Drexel Thesis]
49 % Code for the .ini driver, see \S 2.1 ``The driver file'' of doc.dtx.
51 \usepackage[colorlinks=true,]{hyperref}
52 \hypersetup{pdfauthor={W. Trevor King et al.}}
53 \hypersetup{pdftitle={drexel-thesis \fileversion\ documentation}}
55 % Include some useful commands from |xkeyval|'s |<preamble>|.
59 \lstnewenvironment{command}{%
60 \lstset{columns=flexible,frame=single,backgroundcolor=\color{blue!20},%
61 xleftmargin=\fboxsep,xrightmargin=\fboxsep,escapeinside=`',gobble=1}}{}
62 \lstnewenvironment{example}{%
63 \lstset{basicstyle=\footnotesize\ttfamily,columns=flexible,frame=single,%
64 backgroundcolor=\color{yellow!20},xleftmargin=\fboxsep,%
65 xrightmargin=\fboxsep,gobble=1}}{}
67 % Define a quick and dirty version of |xkeyval|'s |\DescribeOptions|.
69 \newenvironment{option}[1]{\begin{macro}{#1}}
72 % Some commonly used abbreviations from |classes.dtx|.
74 \newcommand*{\Lopt}[1]{\textsf {#1}}
75 \newcommand*{\file}[1]{\texttt {#1}}
76 \newcommand*{\Lcount}[1]{\textsl {\small#1}}
77 \newcommand*{\pstyle}[1]{\textsl {#1}}
79 % Provide easy access to the @ character. Note that this, like the
80 % short-verbatim markers ||, does not work in |\changes| sections
81 % because of the way they are cached to the glossary file. If you
82 % find a way to make them work there, let me know :).
84 \newcommand*{\textat}{\makeatletter @ \makeatother}
88 \def\DescribeOption#1{\leavevmode\@bsphack
89 \marginpar{\raggedleft\PrintDescribeOption{#1}}%
90 \SpecialOptionIndex{#1}\@esphack\ignorespaces}
91 \def\PrintDescribeOption#1{\strut\emph{option}\\\MacroFont #1\ }
92 \def\SpecialOptionIndex#1{\@bsphack
93 \index{#1\actualchar{\protect\ttfamily#1}
94 (option)\encapchar usage}%
95 \index{options:\levelchar#1\actualchar{\protect\ttfamily#1}\encapchar
97 \def\DescribeOptions#1{\leavevmode\@bsphack
98 \marginpar{\raggedleft\strut\emph{options}%
100 \\\strut\MacroFont\@tempa\SpecialOptionIndex\@tempa
101 }}\@esphack\ignorespaces}
109 \DocInput{drexel-thesis.dtx}
117 % {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
118 % 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
119 % Digits \0\1\2\3\4\5\6\7\8\9
120 % Exclamation \! Double quote \" Hash (number) \#
121 % Dollar \$ Percent \% Ampersand \&
122 % Acute accent \' Left paren \( Right paren \)
123 % Asterisk \* Plus \+ Comma \,
124 % Minus \- Point \. Solidus \/
125 % Colon \: Semicolon \; Less than \<
126 % Equals \= Greater than \> Question mark \?
127 % Commercial at \@ Left bracket \[ Backslash \\
128 % Right bracket \] Circumflex \^ Underscore \_
129 % Grave accent \` Left brace \{ Vertical bar \|
130 % Right brace \} Tilde \~}
133 % \changes{0.1}{2006/01/18}{Rewrite by Daniel J.~Cross}
134 % \changes{0.2}{2010/01/09}{W.~Trevor King transitioned from thesis.cls
135 % to drexel-thesis.dtx and did a good deal of reorganizing.}
136 % \changes{0.3}{2010/01/13}{W.~Trevor King merged drexelthesis.cls
137 % developed in the Comp.~Sci.~Department by Jeff Abrahamson,
138 % Evan Sultanik, C.Y.~Ip, Christopher S.~Dahn, Christopher D.~Cera,
139 % Mitchell Peabody, David T.~McWherter, and Vincent A.~Cicirello.
140 % Based on the University of Toronto Thesis \LaTeXe\ Class. Also
141 % greatly improved the documentation by incorperating bits of
142 % the base/*.dtx files.}
143 % \changes{0.4}{2010/02/23}{W.~Trevor King repositioned hyperref
144 % inclusion for proper hyperref overriding. The previous
145 % implementation couldn't handle $\backslash$label for
146 % $\backslash$paragraph and some other section levels. The page
147 % number for the reference was correct, but the link went to the
148 % label's parent chapter.}
149 % \changes{0.5}{2010/03/03}{W.~Trevor King use hypcap for better
150 % caption hyperlink anchor placement.}
151 % \changes{0.6}{2010/03/11}{W.~Trevor King fixed
152 % $\backslash$if$@$final handling. Previous versions used
153 % it more like a hypothetical $\backslash$if$@$finalspace.
154 % Also adjusted theindex to use a listed$@$schapter.}
157 % \newcommand{\pkg}[1]{\textsf{#1}}
158 % \newcommand{\cls}[1]{\textsf{#1}}
159 % ^^A\newcommand{\BibTeX}{{\scshape Bib}\TeX}
161 % \title{The \textsf{drexel-thesis} class\thanks{This document
162 % corresponds to \textsf{drexel-thesis}~\fileversion, dated \filedate.}}
163 % \author{W.~Trevor King \\\texttt{wking@drexel.edu}
164 % \and Daniel J.~Cross \and T.~Tsankov \and R.~Rojas.}
170 % \section{Introduction}
172 % This package defines a \LaTeX\ thesis class for Drexel University
174 % \href{http://www.library.drexel.edu/files/services_documents/thesismanual.pdf}
175 % {Drexel University Thesis Manual version 2009/06/01}.
179 % To write a thesis, you load the Drexel thesis definitions by loading
180 % the \pkg{drexel-thesis} class at the beginning of your
181 % \LaTeX\ document with the |\documentclass| command. For example,
183 % \documentclass{drexel-thesis}
186 % \subsection{Options}
188 % \DescribeOptions{final,draft}
189 % The default option (selected if not options are passed) is
190 % \Lopt{final} mode, which has all the proper formatting and spacing
191 % for your final product. The other main option is \Lopt{draft} mode,
192 % which reduces all the spacing in the document, so might be helpful
193 % when printing out drafts (saves paper).
195 % \Lopt{final} mode corresponds to (with Thesis Manual chapter and
197 % \begin{tabular}{r p{0.8\textwidth}}
198 % \Lopt{oneside} & 1.5 Library Submission Information, Print
199 % Version: ``All copies must be: \ldots Typed/printed on only one
200 % side of the page (not double-sided).'' \\
201 % \Lopt{finalspace} & Assorted single, double, and triple spacing
203 % \Lopt{dottedtoc} & From the example on p17.
206 % \Lopt{draft} mode corresponds to \\
207 % \begin{tabular}{r p{0.8\textwidth}}
208 % \Lopt{twoside} & Save space. \\
209 % \Lopt{draftspace} & Save space. \\
210 % \Lopt{dottedtoc} & Might as well be consistent with \Lopt{final}. \\
211 % \Lopt{mydraftwatermark} & It's good to have a timestamp. \\
214 % \DescribeOption{subfig}
215 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/subfig/}{\pkg{subfig}}
216 % makes it easy to include and caption multi-part figures. However,
217 % getting \pkg{subfig} to cooperate with \pkg{floatrow} and
218 % \pkg{tocloft} can be tricky. If you want to use \pkg{subfig}, just
219 % pass the \Lopt{subfig} option to \cls{drexel-thesis}, and all the
220 % pesky details will be taken care of. See \S
221 % \ref{sec:better-example} for an example.
223 % \DescribeOption{finalspace}
226 % \DescribeOption{draftspace}
229 % \DescribeOptions{dottedtoc,boldtoc,
230 % dottedpart,boldpart,
231 % dottedchapter,boldchapter}
232 % These options change how the relevant table of contents lines are
233 % printed. \LaTeX\ defaults to bold but not dots. The \Lopt{*toc}
234 % options set all of the types. For example, \Lopt{boldtoc} is
235 % equivalent to \Lopt{boldchapter,boldpart}.
237 % \DescribeOption{indenttoc}
238 % The example table of contents in the Manual p17 does not indent
239 % section entries, etc., so neither does \cls{drexel-thesis}. If you
240 % \emph{do} want pretty, indented TOCs, like the \LaTeX\ defaults pass
241 % \Lopt{indenttoc} to \cls{drexel-thesis}.
243 % \DescribeOption{draftwatermark}
244 % \Lopt{draftwatermark} adds ``DRAFT \meta{date}'' watermarks to each
245 % page. A useful way to remember that the version you're looking at
246 % is not final. Also helps reviewers tell you what version they're
247 % correcting. Requires the \pkg{draftmark} package.
249 % \DescribeOption{mydraftwatermark}
250 % \Lopt{mydraftwatermark} is similar to \Lopt{draftwatermark} but
251 % depends on the possibly more common \pkg{xcolor}, \pkg{eso-pic},
252 % and \pkg{graphicx}.
254 % \DescribeOption{indentfirst}
255 % \Lopt{indentfirst} indents the first paragraph after sections etc.
258 % \subsubsection{Interesting \cls{book} options}
260 % \DescribeOption{oneside}
261 % Setup output for one-sided printing.
263 % \DescribeOption{twoside}
264 % Setup output for two-sided printing.
266 % \DescribeOption{leqno}
267 % \Lopt{leqno} places the numbering of formulae on the left hand side
268 % instead of the right.
270 % \DescribeOption{fleqn}
271 % \Lopt{fleqn} typesets displayed formulae left-aligned instead of
275 % \subsection{Macros}
278 % `\cs{author}\marg{name}'
280 % \DescribeMacro{\author}
281 % Use this macro to set your full name to \meta{name}, including
282 % your middle initial or name. For example
284 % \name{Richard P. Feynman}
286 % See the Manual \S 3.1 p8.
289 % `\cs{title}\marg{title}'
291 % \DescribeMacro{\title}
292 % Use this macro to set your thesis title to \meta{name}. For example
294 % \title{A New Approach to Quantum Theory}
296 % See the Manual p16.
299 % `\cs{advisor}\marg{name}'
301 % \DescribeMacro{\advisor}
302 % Use this macro to set your advisor's name to \meta{name}. For
305 % \advisor{John A. Wheeler, Ph.D.}
307 % You can set multiple advisors, if appropriate, by calling |\advisor|
310 % \advisor{John A. Wheeler, Ph.D.}
311 % \advisor{Advisor 2}
313 % See the Manual \S 3.1 p8.
316 % `\cs{defmonth}\marg{month}'
317 % `\cs{defyear}\marg{year}'
319 % \DescribeMacro{\defmonth}
320 % \DescribeMacro{\defyear}
321 % Use these macros to set the month with \meta{month} (spelled out)
322 % and year with \meta{year} (four digits) of your thesis defense. For
328 % See the Manual \S 3.1 p8.
329 % The |def| in |\def*| avoids collisions with the plain \TeX\
330 % |\month| and |\year| (see the
331 % \href{http://www.tug.org/utilities/plain/cseq.html#month-rp}{month}
333 % \href{http://www.tug.org/utilities/plain/cseq.html#year-rp}{year}
334 % entries in the HTML version of David Bausum's \emph{TeX Reference
338 % `\cs{degree}\marg{degree}'
340 % \DescribeMacro{\degree}
341 % Set your target degree with \meta{degree}. From the Manual \S 3.1
344 % Write out the name of the degree for which you are a candidate.
345 % All Ph.D.\ candidates must use |Doctor of Philosophy|. All
346 % Master's degree candidates should use the precise degree name
347 % (e.g., |Master of Science in Mechanical Engineering|).
349 % So, for a Ph.D candidate,
351 % \degree{Doctor of Philosophy}
355 % `\cs{copyrighttext}\marg{text}'
357 % \DescribeMacro{\copyrighttext}
358 % Use this macro to set the copyright text to \meta{text}.
359 % The default value is ``All Rights Reserved.''.
361 % \copyrighttext{Released to the Public Domain.}
363 % See the Manual \S 3.2 p9.
366 % `\cs{copyrighttextCCBYSA}'
368 % There are a number of predefined copyright messages for ease of use \\
369 % \begin{tabular}{l l}
370 % |\copyrighttextCCBYSA| &
371 % Creative Commons Attribution-ShareAlike License Version 3.0.\\
375 % `\cs{tableofcontents}'
377 % \DescribeMacro{\tableofcontents}
378 % Write the table of contents (Manual \S 3.5 p9). You can control the
379 % verbosity by setting |\tocdepth| according to the following table
380 % (\href{http://www.image.ufl.edu/help/latex/intext.shtml}{source}). \\
381 % \begin{tabular}{l l l}
382 % Depth in document & Section Command & Depth for |\secnumdepth| Command \\
383 % -1 & |\part| & 1 \\
384 % 0 & |\chapter| & 2 \\
385 % 1 & |\section| & 3 \\
386 % 2 & |\subsection| & 4 \\
387 % 3 & |\subsubsection| & 5 \\
388 % 4 & |\paragraph| & 6 \\
389 % 5 & |\subparagraph| & 7
391 % For example, to expose everything down to and including the
392 % |\subsection| level, you would add
394 % \setcounter{tocdepth}{2}
396 % to your preamble (the section before |\begin{document}|, not the
397 % |preamble| environment discussed below).
399 % Note that the Manual \S 3.5 p9 requires ``List chapter titles and at
400 % least the first and second order subdivisions.'', which corresponds
401 % to a |\tocdepth| of at least 2.
404 % `\cs{listoftables}'
406 % \DescribeMacro{\listoftables}
407 % Write the List of Tables page (Manual \S 3.6 p10).
408 % Skip if you have no tables in your thesis.
411 % `\cs{listoffigures}'
413 % \DescribeMacro{\listoffigures}
414 % Write the List of Figures page (Manual \S 3.7 p10).
415 % Skip if you have no figures in your thesis.
418 % `\cs{blanklines}\marg{num}'
420 % \DescribeMacro{\blanklines}
421 % Insert \meta{num} blank lines. For example
425 % The skipped lines are always \emph{single spaced} lines, regardless
426 % of the current line spacing in the environment calling this macro.
429 % `\cs{iffinal}\marg{final-mode-action}\marg{draft-mode-action}'
431 % \DescribeMacro{\iffinal}
432 % Include \Lopt{final}- or \Lopt{draft}-specific code.
434 % We're in \iffinal{final}{draft} mode!
438 % \subsection{Environments}
440 % \DescribeEnv{preamble}
441 % Generalize the |\frontmatter| for the thesis, setting up page
442 % numbering, including the title page, copyright page etc. The
443 % |preamble| environment should contain the following elements
444 % (in order, see the Manual p8)
446 % \item |dedication| environment (optional)
447 % \item |acknowledgments| environment (optional)
448 % \item |\tableofcontents|
449 % \item |\listoftables|
450 % \item |\listoffigures|
451 % \item |abstract| environment
453 % This will take care of everything from the title page (Manual \S 3.1),
454 % up through the blank page before the text (Manual \S 3.9).
456 % \DescribeEnv{dedications}
457 % Set the dedications text.
458 % Highlights from the Manual \S 3.3 p9:
460 % The |Dedications| page is optional.
463 % \DescribeEnv{acknowledgments}
464 % Set the acknowledgments text.
465 % Highlights from the Manual \S 3.4 p9:
467 % The |Acknowledgments| page is optional, but most theses do
468 % include a brief statement of thanks or recognition of any special
472 % \DescribeEnv{abstract}
473 % Set the thesis abstract text. In the Thesis Manual, see \S 3.8
474 % Abstract (p10) for details, p20 for an example.
476 % Highlights from the Manual:
478 % The abstract is a summary that allows readers to determine the
479 % value of reading the full thesis. It should include a statement
480 % of the problem, an outline of procedures or methods, and a summary
481 % of results and conclusions.
484 % \item Word limits: 600 for a Master's thesis, 350 for a Ph.D.\ thesis.
487 % \DescribeEnv{thesis}
488 % Set the thesis text. In the Thesis Manual, see \S 3.10 Thesis (p11)
491 % Highlights from the Manual:
493 % Divide the text into its major parts/chapters/subsections. No
494 % fixed arrangement is necessary. The major parts may contain such
495 % subjects as introduction, general argument, description of
496 % experimental procedures, research methods, discussion, summary,
497 % conclusions, recommendations, and other pertinent topics that are
498 % necessary for a complete understanding on the part of a
499 % sophisticated or professional reader.
503 % Set the thesis vita text (Ph.D.\ only). See the Manual \S 3.15 p12,
504 % ``Vita'', for details.
506 % Highlights from the Manual:
508 % The Vita is a biography of the student written in the third person
509 % in either essay or outline form. It should include the full name,
510 % place and date of birth (optional), country of citizenship
511 % (optional), institutions attended, degrees and honors received,
512 % titles of publications, teaching and professional experience, and
513 % other pertinent data. The Vita must be one page or less.
520 % \subsubsection{Package installation}
521 % \label{sec:dependencies}
523 % All the packages this class depends on must be installed somewhere
524 % in your texmf tree (they probably already are). If not, you will
525 % recieve warning messages on compilation such as
527 % ! LaTeX Error: File `missing-package.sty' not found.
529 % You should then install the missing package(s) using your operating
530 % systems package manager, or grab the missing package from
531 % \href{http://www.ctan.org/}{CTAN}, and install them following TODO.
534 % \subsubsection{Tables and Figures}
536 % \pkg{drexel-thesis} loads
537 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
538 % to define the |\includegraphics| macro,
539 % \href{http://www.ctan.org/tex-archive/macros/latex/required/caption/}{\pkg{caption}}
540 % for pretty caption formatting,
541 % \href{http://www.ctan.org/tex-archive/macros/latex/required/floatrow/}{\pkg{floatrow}}
542 % for placing captions, and
543 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{hypcap}}
544 % for placing caption anchors.
546 % Simple float definitions will look like
549 % \caption{Some caption text}
550 % \begin{tabular}{...}
558 % \includegraphics{...}
559 % \caption{Some caption text}
562 % For more useful float information, see the examples in \S
563 % \ref{sec:better-example-part} and the
564 % \href{http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions}
565 % {\LaTeX\ wikibook page}.
568 % \subsubsection{Citations}
570 % I highly recommend using \BibTeX\ and
571 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}{\pkg{natbib}}.
572 % See \S \ref{sec:better-example} for a simple example.
574 % Suggested options:\\
575 % \begin{tabular}{r p{0.8\textwidth}}
576 % |super| & selects citations in superscript mode. \\
577 % |sort&compress| & automatically sorts and compresses compound
578 % citations (|\pcite{a,b,...}|).
582 % \subsubsection{References}
584 % Easier cross referencing with
585 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/cleveref/}{\pkg{cleveref}}.
586 % Is a wonderful tool for easy, consistent crosslinking via |\cref|,
587 % |\Cref|, etc.. The manual is also very good.
588 % Note that if you use |\part|s in your document, you need to tell
589 % \pkg{cleveref} how to deal with them:
591 % \usepackage{cleveref}
592 % \crefname{part}{part}{parts}
596 % \subsubsection{Hyperlinks}
598 % \cls{drexel-thesis} loads
599 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{\pkg{hyperref}}.
600 % with the options:\\
601 % \begin{tabular}{r p{0.8\textwidth}}
602 % |colorlinks| & color the link letters instead of drawing colored boxes. \\
605 % If running with a pdftex-based driver, |\author|, |\title|, and
606 % |\degree| automatically set |pdfauthor|, |pdftitle|, and
607 % |pdfsubject| respectively. You can use the |\hypersetup| macro to
608 % set options overriding these defaults.
611 % \subsubsection{Developing large \LaTeX\ documents}
613 % A thesis may take a while to compile, especially if it contains
614 % lots of images, etc.. One way to save time, is to use |\includeonly|
615 % when including chapter \file{*.tex} files (see
616 % \href{http://en.wikibooks.org/wiki/TeX/includeonly}{the \TeX\ Wikibook}).
617 % Usage would be something like
619 % \documentclass{drexel-thesis}
621 % \includeonly{chapter2.tex,chapter3.tex}
625 % \include{chapter1.tex}
626 % \include{chapter2.tex}
627 % \include{chapter3.tex}
628 % \include{chapter4.tex}
633 % which would only compile chapters two and three. Don't confuse the
634 % similar commands |\include| and |\input|. The more fundamental
635 % |\input| just inserts the file contents at that point, while
638 % \item may only be used after |\begin{document}|
639 % \item acts like |\clearpage \input{} \clearpage|
640 % \item will not crash on nonexistent files
644 % \StopEventually{\pagebreak\PrintChanges}
647 % \section{Implementation}
652 % For simplicity, we'll derive everything from the standard \cls{book}
656 % \subsection{Option Processing}
659 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xkeyval/}{\pkg{xkeyval}}
660 % for easier option parsing. If the package is not installed on your system,
661 % see \S \ref{sec:dependencies} for installation instructions.
663 \RequirePackage{xkeyval}
666 % Define some booleans to store option states
668 \newif\if@mainmatter \@mainmattertrue
669 \newif\if@DUT@subfigopt
670 \newif\if@dottedchapter
671 \newif\if@boldchapter
675 \newif\if@draftwatermark
676 \newif\if@mydraftwatermark
677 \newif\if@indentfirst
681 % \begin{macro}{\iffinal}
682 % Setup a user-friendly means for including \Lopt{final}- or
683 % \Lopt{draft}-specific code.
684 % \changes{0.7}{2010/03/14}{W.~Trevor King added macro.}
686 \newcommand\iffinal[2]{\if@final #1\else #2\fi}
690 % \begin{option}{subfig}
691 % Set \Lopt{subfig} flag
693 \DeclareOptionX{subfig}{\@DUT@subfigopttrue}
697 % \begin{option}{finalspace}
699 \DeclareOptionX{finalspace}{
700 \setlength\overfullrule{0pt}
701 \def\@cont@sep{1} % content page separation (# blanklines between entries)
702 \def\@ssp{1} % single space
703 \def\@dsp{2} % double space
704 \def\@tsp{3} % triple space
708 % \begin{option}{draftspace}
710 \DeclareOptionX{draftspace}{
711 \setlength\overfullrule{5pt}
712 \def\@cont@sep{0} % content page separation (# blanklines between entries)
713 \def\@ssp{1} % single space
714 \def\@dsp{1} % double space
715 \def\@tsp{2} % triple space
717 % Don't force chapters onto right-hand pages.
719 \PassOptionsToClass{openany}{book}
724 % \begin{option}{dottedpart}
726 \DeclareOptionX{dottedpart}{\@dottedparttrue}
729 % \begin{option}{dottedchapter}
731 \DeclareOptionX{dottedchapter}{\@dottedchaptertrue}
734 % \begin{option}{boldpart}
736 \DeclareOptionX{boldpart}{\@boldparttrue}
739 % \begin{option}{boldchapter}
741 \DeclareOptionX{boldchapter}{\@boldchaptertrue}
744 % \begin{option}{dottedtoc}
746 \DeclareOptionX{dottedtoc}{
747 \setkeys{drexel-thesis.cls}{dottedpart}
748 \setkeys{drexel-thesis.cls}{dottedchapter}
752 % \begin{option}{boldtoc}
754 \DeclareOptionX{boldtoc}{
755 \setkeys{drexel-thesis.cls}{boldpart}
756 \setkeys{drexel-thesis.cls}{boldchapter}
761 % \begin{option}{indenttoc}
762 % Set \Lopt{indenttoc} flag
764 \DeclareOptionX{indenttoc}{\@indenttoctrue}
768 % \begin{option}{draftwatermark}
769 % Set \Lopt{draftwatermark} flag
771 \DeclareOptionX{draftwatermark}{%
773 \@mydraftwatermarkfalse}
777 % \begin{option}{mydraftwatermark}
778 % Set \Lopt{mydraftwatermark} flag
780 \DeclareOptionX{mydraftwatermark}{%
781 \@mydraftwatermarktrue
782 \@draftwatermarkfalse}
786 % \begin{option}{indentfirst}
787 % Set \Lopt{indentfirst} flag
789 \DeclareOptionX{indentfirst}{\@indentfirsttrue}
793 % Define the book options that \Lopt{final} and \Lopt{draft} need to
795 % \begin{option}{oneside}
797 \DeclareOptionX{oneside}{\PassOptionsToClass{oneside}{book}}
801 % \begin{option}{twoside}
803 \DeclareOptionX{twoside}{\PassOptionsToClass{twoside}{book}}
807 % \begin{option}{final}
809 \DeclareOptionX{final}{
811 \setkeys{drexel-thesis.cls}{oneside}
812 \setkeys{drexel-thesis.cls}{finalspace}
813 \setkeys{drexel-thesis.cls}{dottedtoc}
818 % \begin{option}{draft}
820 \DeclareOptionX{draft}{
822 \setkeys{drexel-thesis.cls}{twoside}
823 \setkeys{drexel-thesis.cls}{draftspace}
824 \setkeys{drexel-thesis.cls}{dottedtoc}
825 \setkeys{drexel-thesis.cls}{mydraftwatermark}
830 % Use the default \cls{book} implementation for any remaining options
831 % including \Lopt{oneside}, \Lopt{twoside}, \Lopt{leqno}, \Lopt{fleqn},
834 \DeclareOptionX*{\PassOptionsToClass{\CurrentOption}{book}}
837 % Execute the default options
839 \ExecuteOptionsX{final}
842 % Process options and load the book class
844 \ProcessOptionsX\relax
849 % \subsection{Internal package includes}
852 % Include some other packages we'll need. If the package is not
853 % installed on your system, see \S \ref{sec:dependencies} for
854 % installation instructions.
856 % For many packages, we want the same functionality for both
857 % \Lopt{final} and \Lopt{draft} modes. We pass \Lopt{final} to most
858 % of those packages to override a possible \Lopt{draft} option passed
859 % to \pkg{drexel-thesis}.
862 % \subsubsection{\pkg{setspace}}
864 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/setspace/}{\pkg{setspace}}
865 % for double spacing.
867 \RequirePackage{setspace}
871 % \subsubsection{\pkg{calc}}
873 % \href{http://www.ctan.org/tex-archive/macros/latex/required/tools/}{\pkg{calc}}
874 % for |\set@lines@length| macro (page
875 % \pageref{sec:implement-line-spacing}).
877 \RequirePackage{calc}
881 % \subsubsection{\pkg{graphicx}}
883 % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}}
884 % for |\includegraphics|. Not strictly necessary, but I can't imagine
885 % a thesis without figures.
887 \RequirePackage[final]{graphicx}
890 % We include the graphicx package now so we can
891 % pass \Lopt{final}, because some later packages include it with no options,
892 % and a \Lopt{final} include after that produces errors like
894 % l.104 \RequirePackage
896 % The package graphicx has already been loaded with options:
898 % There has now been an attempt to load it with options
903 % \subsubsection{\pkg{draftmark}}
905 % The Comp.~Sci.\ class used
906 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftcopy/}{\pkg{draftcopy}}
907 % to add their watermarks, but as of the current 2002/02/25 v2.16, it
908 % uses postscript specials, and so doesn't work with pdf\LaTeX.
909 % Instead we use the recent (catalogued 2009/11/03)
910 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/draftmark/}{\pkg{draftmark}}
911 % which unfortunately has a number of apparently non-standard dependencies
912 % (\href{http://www.ctan.org/tex-archive/macros/latex/contrib/etextools/}{\pkg{etextools}},
913 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/etoolbox/}{\pkg{etoolbox}},
914 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/lastpage/}{\pkg{lastpage}},
915 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/ltxnew/}{\pkg{ltxnew}},
916 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/pagerange/}{\pkg{pagerange}},
917 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/xifthen/}{\pkg{xifthen}},
918 % if only I had the space to install |texlive-latexextra| |:p|).
919 % The output is, however, very flexible, and it \emph{does} work with
920 % both \LaTeX\ and pdf\LaTeX. If you don't like the default watermark,
921 % you can also adjust the particulars with |\draftmarksetup|.
924 \RequirePackage[draft,allpages,mark={DRAFT \today},
925 fontsize=2cm,grayness=0.9]{draftmark}
929 % Here is Evan's alternative implementation This will not look right
930 % as a DVI, but it'll look fine once rendered to either a PS or PDF.
934 % Use \pkg{eso-pic} for |\AddToShipoutPicture|.
936 \RequirePackage{eso-pic}
938 % Use \pkg{xcolor} for |\definecolor|.
940 \RequirePackage{xcolor}
941 \definecolor{watermark}{rgb}{0.9,0.9,0.9}
943 % Set the font explicitly to avoid being effected by the last text on
944 % the page having some strange font. |\sffamily| sets a sans serif
947 \newcommand{\watermarkfont}{%
948 \color{watermark}}%\fontfamily{phv}\selectfont\sffamily}
949 \newcommand{\watermark}{%
950 \rule{4.25in}{0pt}\raisebox{5.5in}{%
953 % |\rotatebox| and |\resizebox| from \pkg{graphicx}.
955 \rotatebox[origin=c]{45}{%
956 \resizebox{!}{1.5in}{%
957 {\watermarkfont DRAFT}%
961 \rotatebox[origin=c]{45}{%
962 \resizebox{!}{.6in}{%
963 {\watermarkfont \qquad\today}%
965 \AddToShipoutPicture{\watermark{}}
970 % \subsubsection{\pkg{indentfirst}}
972 % Indent the first paragraph after sections etc.\ with
973 % \href{http://www.ctan.org/tex-archive/macros/latex/required/tools/}{\pkg{indentfirst}}.
976 \RequirePackage{indentfirst}
981 % \subsubsection{\pkg{geometry}}
983 % Setup page margins with
984 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/geometry/}{\pkg{geometry}}.
985 % From the Manual p5:
987 % \item The left margin must be at least 1 1/2'' (1.5 inches)
988 % throughout the document.
989 % \item All other margins (top, bottom, and right) must be at least 1''.
991 % And from the Manual \S 1.5 p4, Print Version:
993 % The paper size must be 8 1/2'' x 11''.
996 \RequirePackage[letterpaper,margin=1in,bindingoffset=0.5in]{geometry}
998 % Note that we include the \pkg{geometry} package after loading \cls{book} to
999 % override the margin manipulation that takes place in \cls{book}.
1002 % \subsubsection{\pkg{tocloft}}
1004 % Typeset the table of contents, etc., with
1005 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/tocloft/}{\pkg{tocloft}}.
1008 \RequirePackage[subfigure]{tocloft}
1010 \RequirePackage{tocloft}
1013 % The \Lopt{subfigure} option sets up \pkg{tocloft} for
1014 % \pkg{subfig}/\pkg{subfigure} compatibility. See the
1015 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/tocloft/tocloft.pdf}{%
1016 % \pkg{tocloft} manual \S 2.1}
1019 % The configuration of \pkg{tocloft} takes place in \S
1020 % \ref{sec:implement-toc}, \S \ref{sec:implement-lof}, and \S
1021 % \ref{sec:implement-lot}.
1024 % \subsubsection{\pkg{caption}}
1026 % Get nice caption formatting with
1027 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/caption/}{\pkg{caption}}.
1028 % From the Manual p5:
1030 % \item The left margin must be at least 1 1/2'' (1.5 inches)
1031 % throughout the document.
1032 % \item All other margins (top, bottom, and right) must be at least 1''.
1035 \RequirePackage[margin=10pt,labelfont=bf,labelsep=colon]{caption}
1037 % You can change these settings if you like using |\captionsetup|.
1040 % \subsubsection{\pkg{floatrow}}
1041 % \label{sec:floatrow}
1043 % Enforce caption placement with
1044 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/floatrow/}{\pkg{floatrow}}.
1045 % From the Manual \S 2.3 p6, ``Tables and Figures'',
1048 % \item Place figure captions below figures.
1049 % \item Place table captions above tables.
1053 \RequirePackage{floatrow}
1054 \floatsetup[table]{style=plaintop}
1055 \floatsetup{captionskip=10pt}
1056 \floatsetup[table]{captionskip=10pt}
1058 % Use \pkg{fr-subfig} for \pkg{floatrow}/\pkg{subfig} compatibility.
1059 % See the \pkg{floatrow} documentation (Sec.~7.1, ``The \pkg{subfig}
1060 % package'') and \pkg{subfig} documentation (Sec.~4.3,
1061 % ``\pkg{FloatRow} Package'') for details.
1064 \RequirePackage{fr-subfig}
1067 % We set up the three-line surrounding spaces in \S
1068 % \ref{sec:implement-floats}.
1070 % You can change these settings using |\floatsetup|, but you probably
1074 % \subsubsection{\pkg{subfig}}
1075 % \label{sec:subfig}
1077 % Allow multi-part figures with
1078 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/subfig/}{\pkg{subfig}}.
1081 \RequirePackage{subfig}
1086 % \subsubsection{\pkg{fancyhdr}}
1087 % \label{sec:fancyhdr}
1089 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/}{\pkg{fancyhdr}}
1090 % for correct page numbering and fancy headers.
1091 % From the Manual \S 2.3 p5, ``Pagination''
1093 % Place page numbers in the upper right-hand corner of the page,
1094 % 3/4'' from the top.
1097 \RequirePackage{fancyhdr}
1099 % Setup the standard |fancy| format.
1104 % Turn off the header rule by setting its width to $0$.
1106 \renewcommand{\headrulewidth}{0pt}
1108 % 0.4 pt is \pkg{fancyhdr}'s default |\headrulewidth|, so we'll
1109 % recycle the value.
1111 \renewcommand{\footrulewidth}{0.4pt}
1113 % |\leftmark| is the higher level mark, see |\chaptermark| below.
1114 % |\rightmark| is the lower level mark, see |\sectionmark| below.
1115 % We put the lower level mark to the outside because it changes more
1116 % often. Page numbers also go on the outside.
1118 \fancyfoot[RE,LO]{\scshape\leftmark}
1119 \fancyfoot[LE,RO]{\scshape\rightmark}
1120 \fancyhead[LE,RO]{\thepage}
1122 % Override the |plain| format (for part pages, etc.).
1124 \fancypagestyle{plain}{
1126 \renewcommand{\footrulewidth}{0pt}
1127 \fancyhead[LE,RO]{\thepage}
1130 % Keep the |empty| format at its default.
1132 \fancypagestyle{empty}{
1134 \renewcommand{\footrulewidth}{0pt}
1138 % Note that the chapter/section footer is not required. You can
1139 % remove the footer text and rule entirely with.
1141 % \renewcommand{\footrulewidth}{0pt}
1142 % \fancyfoot[RE,LO]{}
1143 % \fancyfoot[LE,RO]{}
1147 % \subsubsection{\pkg{ifpdf}}
1149 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{ifpdf}}
1150 % for detecting PDF drivers. We use it to configure \pkg{hyperref} below.
1152 \RequirePackage{ifpdf}
1155 % \subsubsection{\pkg{hyperref}}
1156 % \label{sec:hyperref}
1158 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/}{\pkg{hyperref}}
1159 % for hyperlinks. Not strictly necessary, but I can't imagine a
1160 % thesis without it. We actually include this later (\S
1161 % \ref{sec:hyperref-inclusion}), because \pkg{hyperref} sticks its
1162 % fingers into \emph{everything} and we want it to use our versions of
1163 % some macros (e.g. |\@sect|) but not others (e.g. |thebibliography|).
1166 % \subsubsection{\pkg{hypcap}}
1167 % \label{sec:hypcap}
1169 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{hypcap}}
1170 % for placing caption hyperlink anchors. Must be included after
1171 % \pkg{hypercap}, so the actual inclusion is in \S
1172 % \ref{sec:hypcap-inclusion}).
1175 % \subsection{\LaTeX\ overrides and extensions}
1177 % Here we change the behavior of a bunch of macros and environments
1178 % from \file{latex.ltx} (generated by \file{format.ins} in
1179 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{base}}).
1180 % We'll copy in their original notes along with their code, following
1181 % the relevant documentation an order given in \file{format.ins} and
1182 % the associated \file{*.dtx} files.
1185 % \subsubsection{\file{ltsect.dtx}}
1187 % \begin{macro}{\title}
1188 % |\title| for use in |\maketitle|. If not given |\maketitle| will
1189 % produce a warning message (\file{ltsect.dtx}, L117).
1191 % We extend |\title| to set \pkg{hyperref}'s |pdftitle|.
1192 % (\file{ltsect.dtx}, L117).
1194 \let\DUT@title\title
1195 \renewcommand{\title}[1]{
1197 \ifpdf \hypersetup{pdftitle={\@title}} \fi
1202 % \begin{macro}{\author}
1203 % |\author| for use in |\maketitle|. If not given |\maketitle| will
1204 % produce a warning message (\file{ltsect.dtx}, L129).
1206 % We extend |\author| to set \pkg{hyperref}'s |pdfauthor| if we're
1207 % writing a PDF to avoid using |\AtBeginDocument| or some such.
1208 % (\file{ltsect.dtx}, L129).
1210 \let\DUT@author\author
1211 \renewcommand{\author}[1]{
1213 \ifpdf \hypersetup{pdfauthor={\@author}} \fi
1218 % In a similar vein, we some additional meta-info macros.
1220 % \begin{macro}{\defmonth}
1221 % \begin{macro}{\@defmonth}
1222 % |\defmonth| (defense month) for use in |\maketitle|. If not given
1223 % |\maketitle| will produce an error message.
1225 \def\defmonth#1{\gdef\def@month{#1}}
1226 \def\def@month{\@latex@error{No \noexpand\defmonth given}\@ehc}
1231 % \begin{macro}{\defyear}
1232 % \begin{macro}{\@defyear}
1233 % |\defyear| (defense year) for use in |\maketitle|. If not given
1234 % |\maketitle| will produce an error message.
1236 \def\defyear#1{\gdef\def@year{#1}}
1237 \def\def@year{\@latex@error{No \noexpand\defyear given}\@ehc}
1242 % \begin{macro}{\degree}
1243 % \begin{macro}{\@degree}
1244 % |\degree| for use in |\maketitle|. If not given |\maketitle| will
1245 % produce an error message.
1247 \def\degree#1{\gdef\@degree{#1}
1248 \ifpdf \hypersetup{pdfsubject={\@degree}} \fi}
1249 \def\@degree{\@latex@error{No \noexpand\degree given}\@ehc}
1254 % \begin{macro}{\copyrighttext}
1255 % \begin{macro}{\@copyrighttext}
1256 % |\copyrighttext| for use in |\makecopyright|. There are a number of
1257 % blurbs predefined in \S \ref{sec:implement-copyright}.
1259 \def\copyrighttext#1{\gdef\@copyrighttext{#1}}
1260 \def\@copyrighttext{All Rights Reserved.}
1265 % \begin{macro}{\advisor}
1266 % \begin{macro}{\@advisor}
1267 % |\advisor| stores advisor names, and |\@advisor| prints them out
1268 % nicely for the |abstract| environment. If no advisors are given
1269 % |\@advisor| will produce an error message. We get a bit fancier
1270 % here to support multiple advisors.
1272 \newcounter{advisors}
1273 \setcounter{advisors}{0}
1275 % Store a new advisor name.
1277 \newcommand\advisor[1]{%
1280 % If |#1| is |\empty|, this call is a no-op.
1285 % Save the advisors to |\@advisor@a|, |\@advisor@b|, \ldots.
1286 % |\alph{|\Lcount{COUNTER}|}| (\file{ltcounts.dtx}, L319) prints the
1287 % value of \Lcount{COUNTER} as a lowercase letter: $1 =$~a, $2 =$~
1290 \stepcounter{advisors}
1291 \expandafter\gdef\csname @advisor@\alph{advisors}\endcsname{#1}
1294 % Format and print a list of advisor names.
1296 \newcommand\@advisor{%
1297 \ifnum\c@advisors=0%
1298 \@latex@error{No \noexpand\advisor given}\@ehc%
1301 % Start a group so the scratch counter \Lcount{count\textat} is restored
1302 % afterwards\footnote{See the discussion in
1303 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/localloc/}{%
1305 % for some points on counter allocation.}.
1309 % Because \Lcount{count\textat} is a \TeX\ counter register not
1310 % wrapped by \LaTeX's counter sugar, we don't use \LaTeX's
1311 % |\setcounter| to set \Lcount{count\textat} to one.
1315 % Print the first advisor, using \TeX's |\@alph| macro instead of
1319 \csname @advisor@\@alph\count@\endcsname\relax%
1321 % For any remaining advisors\ldots
1323 \loop\ifnum\count@<\c@advisors%
1325 % Advance \Lcount{count\textat} using \TeX's |\advance| macro instead
1326 % of \LaTeX's |\stepcounter|.
1330 % Print the connecting text.
1332 \ifnum\count@=\c@advisors%
1333 \ifnum\c@advisors=2%
1335 % The next advisor if the last of two.
1340 % The next advisor if the last of many.
1346 % The next advisor is not the last.
1351 % Print the advisor's name.
1353 \csname @advisor@\@alph\count@\endcsname\relax%
1361 % \paragraph{baselineskip}
1362 % \label{sec:implement-line-spacing}
1364 % \begin{macro}{\DUT@baselineskip}
1365 % Since we'll be messing with the spacing, save the single-spaced
1367 % \changes{0.3}{2010/01/13}{Use $\backslash$setlength to store the
1368 % value at the default font. The previous version used
1369 % $\backslash$let, which made $\backslash$DUT\@baselineskip a
1370 % synonym for $\backslash$baselineskip that changed with font
1373 \newlength\DUT@baselineskip
1374 \setlength\DUT@baselineskip\baselineskip
1379 % `\cs{set@lines@length}\marg{length}\marg{N}'
1381 % \begin{macro}{\set@lines@length}
1382 % Many specifications in the Manual refer to ``\meta{N} blank lines''.
1383 % |\set@lines@length| allows you to set a length to a given number of
1384 % lines, protecting against external |spacing| environments. It
1385 % requires \pkg{calc} for the multiplication.
1387 \newcommand{\set@lines@length}[2]{%
1388 \setlength{#1}{\DUT@baselineskip * {#2}}}
1393 % Fix |\@ssect| and |\@sect| from \file{latex.ltx} to give single
1396 % \begin{macro}{\@sect}
1397 % Pseudocode for the |\@sect| command
1399 % \@sect{NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}[ARG1]{ARG2}
1402 % IF LEVEL > \c@secnumdepth
1403 % THEN \@svsec :=L null
1404 % ELSE \refstepcounter{NAME}
1405 % \@svsec :=L BEGIN \@seccntformat{#1}\relax END
1410 % \@hangfrom{\hskip INDENT\@svsec}
1411 % {\interlinepenalty 10000 ARG2\par}
1414 % \addcontentsline{toc}{NAME}
1415 % { IF LEVEL > \c@secnumdepth
1416 % ELSE \protect\numberline{\theNAME} FI
1418 % ELSE \@svsechd == BEGIN STYLE
1419 % \hskip INDENT\@svsec
1422 % \addcontentsline{toc}{NAME}
1423 % { IF LEVEL > \c@secnumdepth
1425 % \protect\numberline{\theNAME}
1430 % \@xsect{AFTERSKIP}
1433 % (\file{ltsect.dtx}, L295).
1435 \def\@sect#1#2#3#4#5#6[#7]#8{%
1436 \ifnum #2>\c@secnumdepth
1439 \refstepcounter{#1}%
1440 \protected@edef\@svsec{\@seccntformat{#1}\relax}%
1442 \@tempskipa #5\relax
1443 \ifdim \@tempskipa>\z@
1446 % Here we deviate from \file{ltsect.dtx} to ensure single spacing for
1447 % the section title.
1451 \@hangfrom{\hskip #3\relax\@svsec}%
1452 \interlinepenalty \@M #8\@@par}%
1454 \csname #1mark\endcsname{#7}%
1455 \addcontentsline{toc}{#1}{%
1456 \ifnum #2>\c@secnumdepth \else
1457 \protect\numberline{\csname the#1\endcsname}%
1464 \csname #1mark\endcsname{#7}%
1465 \addcontentsline{toc}{#1}{%
1466 \ifnum #2>\c@secnumdepth \else
1467 \protect\numberline{\csname the#1\endcsname}%
1475 % \begin{macro}{\@ssect}
1476 % Pseudocode for the |\@ssect| command
1478 % \@ssect{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}{ARG} ==
1483 % \@hangfrom{\hskip INDENT}{\interlinepenalty 10000 ARG\par}
1485 % ELSE \@svsechd == BEGIN STYLE
1490 % \@xsect{AFTERSKIP}
1493 % (\file{ltsect.dtx}, L521).
1495 \def\@ssect#1#2#3#4#5{%
1496 \@tempskipa #3\relax
1497 \ifdim \@tempskipa>\z@
1500 % Here we deviate from \file{ltsect.dtx} to ensure single spacing for
1501 % the section title.
1505 \@hangfrom{\hskip #1}%
1506 \interlinepenalty \@M #5\@@par}%
1509 \def\@svsechd{#4{\hskip #1\relax #5}}%
1516 % \subsubsection{\file{ltbibl.dtx}}
1518 % \DescribeMacro{\bibliography}
1519 % \DescribeEnv{thebibliography}
1520 % A bibliography is created by the |thebibliography| environment, which
1521 % generates a title such as ``Bibliography'', and a list of entries.
1522 % The \BibTeX\ program will create a file containing such an
1523 % environment, which will be read in by the |\bibliography| command.
1524 % With \BibTeX, the following commands will be used.
1526 % The document class must define the thebibliography environment. This
1527 % environment has a single argument, which is the widest bibliography
1528 % label-- e.g., if the [Knuth67] is the widest entry, then this
1529 % argument will be Knuth67. The |\thebibliography| command must begin
1530 % a list environment, which the |\endthebibliography| command ends.
1532 % \begin{macro}{\bibliography}
1533 % |\bibliography|\marg{file1,file2,\ldots,filen} : specifies
1534 % the bibdata files. Writes a |\bibdata| entry on the |.aux| file
1535 % and tries to read in |mainfile.bbl|.
1537 % We don't need to change it, but it explains why we need to override
1538 % |thebibliography| even when we don't use it directly.
1539 % (\file{ltbibl.dtx}, L284).
1541 %\def\bibliography#1{%
1543 % \immediate\write\@auxout{\string\bibdata{#1}}%
1545 % \@input@{\jobname.bbl}
1551 % \subsubsection{\file{ltoutput.dtx}}
1553 % \begin{macro}{\DUT@clearpage}
1554 % \begin{macro}{\DUT@cleardoublepage}
1555 % Versions of |\clear*page| that only work when |\if@final| is true
1556 % (\file{ltoutput.dtx}, L877 and L904).
1558 \newcommand\DUT@clearpage{\if@final \clearpage \fi}
1559 \newcommand\DUT@cleardoublepage{\if@final \cleardoublepage \fi}
1564 % \begin{macro}{\blankpage}
1565 % Add a useful extension to insert a blank page without numbering.
1566 % In draft mode, this macro is a no-op.
1568 \newcommand\blankpage{%
1571 \thispagestyle{empty}
1581 % `\cs{blanklines}\marg{N}'
1582 % `\cs{blanklines*}\marg{N}'
1584 % \begin{macro}{\blanklines}
1585 % Insert \meta{N} blank lines. The starred forms use |\vspace|, which
1586 % inserts space even at the start and end of pages. The |p| forms
1587 % add a trailing |\par|. \emph{I'm still trying to get this part working
1590 \newlength\DUT@blanklines@length
1591 \newcommand{\@blanklines@setup}[1]{%
1592 \set@lines@length{\DUT@blanklines@length}{#1}%
1593 %\typeout{BLANKLINES -- #1}%
1594 %\showthe\DUT@blanklines@length
1596 \newcommand{\blanklines}{\@ifstar\@sblanklines\@blanklines}
1597 \newcommand{\@blanklines}[1]{%
1598 \@blanklines@setup{#1}%
1599 \vspace{\DUT@blanklines@length}}
1600 \newcommand{\@sblanklines}[1]{%
1601 \@blanklines@setup{#1}%
1602 \vspace*{\DUT@blanklines@length}}
1603 \newcommand{\blanklinesp}{\@ifstar\@sblanklines\@blanklines}
1604 \newcommand{\@blanklinesp}[1]{%
1605 \@blanklines@setup{#1}%
1606 \vspace{\DUT@blanklines@length}\par}
1607 \newcommand{\@sblanklinesp}[1]{%
1608 \@blanklines@setup{#1}%
1609 \vspace*{\DUT@blanklines@length}\par}
1614 % \subsection{\pkg{hyperref} inclusion}
1615 % \label{sec:hyperref-inclusion}
1617 % This is the awkward \pkg{hyperref} inclusion. See \S
1618 % \ref{sec:hyperref} for an explanation of why we stash it here.
1620 \RequirePackage[final]{hyperref}
1622 % Nobody likes the default colored boxes. Color the text itself.
1624 \hypersetup{colorlinks}
1627 % \subsubsection{\pkg{hypcap}}
1628 % \label{sec:hypcap-inclusion}
1630 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{hypcap}}
1631 % for placing caption hyperlink anchors. Not strictly necessary, but
1632 % we're using \pkg{hyperref}, and the poor link targets are annoying.
1634 \RequirePackage[all]{hypcap}
1636 % \Lopt{all} redefines the figure and table environments to
1637 % place the anchor at the start of the float.
1640 % \subsection{\cls{book} overrides and extensions}
1642 % Here we change the behavior of a bunch of macros and environments from
1643 % \cls{book} (generated by \file{classes.ins} from \file{classes.dtx}) in
1644 % \href{http://www.ctan.org/tex-archive/macros/latex/base/}{\pkg{base}}).
1645 % We'll copy in their original notes along with their code, following
1646 % the relevant documentation an order given in \file{classes.dtx}.
1649 % \subsubsection{Floats on a text page}
1650 % \label{sec:implement-floats}
1652 % \begin{macro}{\floatsep}
1653 % \begin{macro}{\textfloatsep}
1654 % When a floating object is placed on a page with text, these
1655 % parameters control the separation between the float and the other
1656 % objects on the page.
1658 % |\floatsep| is the space between adjacent floats that are moved
1659 % to the top or bottom of the text page.
1661 % |\textfloatsep| is the space between the main text and floats
1662 % at the top or bottom of the page.
1664 % |\intextsep| is the space between in-text floats and the text. We
1665 % don't bother overriding this one, because we've handled it with
1666 % \pkg{floatrow} in \S \ref{sec:floatrow}.
1668 % From the Manual \S 2.3 p6, ``Tables and Figures''
1670 % Insert at least 3 single-spaced lines of space above table
1671 % captions and figures and below figure captions, tables, and other
1674 % (\file{classes.dtx}, L1426)
1676 \set@lines@length{\floatsep}{\@ssp}
1677 \set@lines@length{\textfloatsep}{\@tsp}
1683 % \subsubsection{The title}
1685 % \begin{macro}{\maketitle}
1686 % Automate the creation of the title page.
1687 % From Manual \S 3.1 p8, ``Title Page'', and the example on p16.
1689 % \item This page is counted but not numbered (it counts as page i,
1690 % but should not have a page number). TODO: How is this implemented?
1692 % Our definition simplifies \cls{book}'s by ignoring footnotes.
1693 % (\file{classes.dtx}, L1796)
1695 \renewcommand\maketitle{
1698 % Add some bookmarks if we're using pdf\LaTeX. The |frontmatter|
1699 % bookmark is set at the \emph{part} level (-1) to hold all bookmarks
1700 % from the |preamble| environment, since those entries are all
1702 % \changes{0.8}{2010/05/20}{W.~Trevor King replaced Titlepage with
1703 % Title Page for consistency with \LaTeX's book class.}
1706 \pdfbookmark[-1]{Front Matter}{Front Matter}
1707 \pdfbookmark[0]{Title Page}{Title Page}
1710 % Add some stretchy space to center the title vertically if we're not
1713 \if@final \vspace*{\fill} \fi
1715 % Here is the title text itself.
1718 {\setstretch{\@tsp} \bfseries \@title \par}%
1720 % We want two blank lines (triple spacing) between the title and the
1721 % remaining material, so add three but don't end the paragraph.
1726 Submitted to the Faculty\\
1731 in partial fulfillment of the\\
1732 requirements for the degree\\
1735 \def@month\ \def@year
1738 % Some more stretchy space for the bottom if we're not in draft mode.
1741 % Add some stretchy space to center the title vertically if we're not
1744 \if@final \vspace*{\fill} \fi
1747 % And that's it. We reset the footnote counter for the rest of the
1748 % document and save space by freeing the memory associated with the
1749 % |\maketitle| and |\and| macros (by setting them equal to |\relax|).
1751 \setcounter{footnote}{0}%
1752 \global\let\maketitle\relax
1753 \global\let\and\relax
1759 % \subsubsection{Copyright pages}
1760 % \label{sec:implement-copyright}
1762 % \begin{macro}{\makecopyright}
1763 % The Manual allows for the selection of different copyrights, so we
1764 % define a base macro that generates a proper copyright page
1765 % containing |\@copyrighttext|, which the user can set with
1767 % From Manual \S 3.2 p9, ``Copyright Page''.
1769 % \item Include a copyright page with the following information: a
1770 % copyright notice, full legal name of author, and date of
1771 % publication on file.
1772 % \item This page is neither counted nor numbered.
1774 % In final mode, we start off on a new page and center the blurb.
1775 % In draft mode, we dive right into the text.
1777 \newcommand\makecopyright{%
1780 % If we're using pdf\LaTeX, add a bookmark.
1782 \ifpdf \pdfbookmark[0]{Copyright Page}{Copyright Page} \fi
1783 \if@final \vspace*{\fill} \fi
1785 \copyright~Copyright \def@year\\
1786 \@author. \@copyrighttext
1788 \if@final \vspace*{\fill} \else \blanklinesp{2} \fi
1790 % Turn off page numbering for this page.
1792 \thispagestyle{empty}
1797 % \begin{macro}{\copyrighttextCCBYSA}
1798 % The Creative Commons Attribution-ShareAlike License.
1799 % \changes{0.4}{2010/02/23}{W.~Trevor King renamed from
1800 % $\backslash$copyrighttextCC, and made specific to Creative Commons
1801 % Attribution-ShareAlike Version 3.0.}
1803 \newcommand\copyrighttextCCBYSA{
1805 This work is licensed under the terms of the Creative Commons
1806 Attribution-ShareAlike license Version 3.0. The license is
1808 \url{http://creativecommons.org/licenses/by-sa/3.0/}.
1815 % \subsubsection{Mark commands}
1817 % Default initializations of |\*mark| commands. These commands
1818 % are used in the definition of the page styles.
1820 % \begin{macro}{\chaptermark}
1821 % Setup colon rather than period separated chapter marks.
1822 % (\file{classes.dtx}, L2053)
1824 \renewcommand\chaptermark[1]{%
1826 \ifnum \c@secnumdepth >\m@ne
1828 \@chapapp\ \thechapter: \ %
1835 % \begin{macro}{\schaptermark}
1836 % Setup unnumbered chapter marks for \pkg{fancyhdr}.
1838 \newcommand\schaptermark[1]{\markboth{#1}{}}
1842 % \begin{macro}{\sectionmark}
1843 % Setup space rather than period separated section marks.
1844 % (\file{classes.dtx}, L2054)
1846 \renewcommand{\sectionmark}[1]{%
1848 \ifnum \c@secnumdepth >\z@
1856 % \subsubsection{Front Matter, Main Matter, and Back Matter}
1858 % A book contains these three (logical) sections. The switch
1859 % |\@mainmatter| is true if and only if we are processing main
1861 % \href{http://en.wikipedia.org/wiki/Book_design}{Wikipedia}
1862 % suggests \emph{body matter} for the main content, but
1863 % \href{http://mirror.ctan.org/macros/latex/base/classes.dtx}{\LaTeX's
1864 % \cls{book}} uses \emph{Main Matter}. We're a \LaTeX\ class, so
1865 % we'll stick with ``main matter'' for consistency.
1866 % }. When this switch is false, the
1867 % |\chapter| command does not print chapter numbers.
1869 % \begin{macro}{\mainmatter}
1870 % This command clears the page (in final mode), starts arabic page
1871 % numbering and turns on chapter numbering. Since this restarts the
1872 % page numbering from 1, it should also ensure that a recto page is
1875 % We replace \cls{book}'s |\clear*page| calls with |\DUT@clearpage| calls.
1876 % (\file{classes.dtx}, L2211)
1878 \renewcommand\mainmatter{%
1879 \DUT@cleardoublepage
1881 \pagenumbering{arabic}}
1886 % \subsubsection{Parts}
1888 % \begin{macro}{\part}
1889 % The command to start a new part of our document.
1891 % We start a new (righthand) page and use the \pstyle{plain}
1892 % pagestyle, replacing \cls{book}'s |\clear*page| calls with
1893 % |\DUT@clearpage| calls and dropping twopage code.
1894 % (\file{classes.dtx}, L2249)
1896 \renewcommand\part{%
1898 \DUT@cleardoublepage
1902 \thispagestyle{plain}%
1905 % Add some stretchy space for vertical centering if we're in final mode.
1907 \if@final \null\vfil \fi
1909 % Here we use |\secdef| to indicate which commands to use to make
1910 % the actual heading.
1912 \secdef\@part\@spart}
1916 % \begin{macro}{\@part}
1917 % This macro does the actual formatting of the title of the part. We
1918 % replace \cls{book}'s |\Huge| with |\large|, and make use of
1919 % |\numberline| for consistent spacing.
1921 % When \Lcount{secnumdepth} is larger than $-2$, we have a numbered
1922 % part, otherwise it is unnumbered.
1923 % (\file{classes.dtx}, L2310)
1926 \ifnum \c@secnumdepth >-2\relax
1927 \refstepcounter{part}%
1928 \addcontentsline{toc}{part}%
1929 {\protect\numberline{\thepart}#1}%
1931 \addcontentsline{toc}{part}{#1}%
1934 % We empty the mark registers and center the title on the page.
1935 % Also we prevent breaking between lines and reset the font.
1939 \interlinepenalty \@M
1942 % When this is a numbered part we have to print the number.
1944 \ifnum \c@secnumdepth >-2\relax
1945 \large\bfseries \partname\nobreakspace\thepart
1948 % We leave some space before we print the title and leave the
1949 % finishing up to |\@endpart|.
1953 \large \bfseries #2\par}%
1958 % \begin{macro}{\@spart}
1959 % This macro does the actual formatting of the title of the part
1960 % when the star form of the user command was used. In this case we
1961 % \emph{never} print a number. Otherwise the formatting is the
1963 % (\file{classes.dtx}, L2402)
1967 \interlinepenalty \@M
1969 \large \bfseries #1\par}%
1974 % \begin{macro}{\@endpart}
1975 % This macro finishes the part page, for both |\@part| and |\@spart|.
1976 % We drop \cls{book}'s twoside handling.
1977 % If |\if@final| is true, we fill the current page.
1978 % (\file{classes.dtx}, L2435)
1981 \if@final \vfil\newpage \fi
1983 % Then, when we are in twosided mode and the chapters are supposed to
1984 % be on the right hand sides, we produce a completely blank page. We
1985 % don't need to check |\if@final| here, because \Lopt{draftspace} set
1986 % |\@openrighttrue|.
1991 \thispagestyle{empty}%
1999 % \subsubsection{Chapters}
2000 % \label{sec:implement-chapters}
2002 % \begin{macro}{\chapter}
2003 % \cls{book} always starts a chapter on a new page, but we don't want
2004 % to do that if we're in draft mode.
2005 % (\file{classes.dtx}, L2472).
2007 \renewcommand\chapter{%
2008 \if@openright\DUT@cleardoublepage\else\DUT@clearpage\fi
2009 \thispagestyle{plain}%
2011 % Then we prevent floats from appearing at the top of this page
2012 % because it looks weird to see a floating object above a chapter
2017 % Then we suppress the indentation of the first paragraph by
2018 % setting the switch |\@afterindent| to false. We use |\secdef|
2019 % to specify the macros to use for actually setting the chapter
2023 \secdef\@chapter\@schapter}
2027 % \begin{macro}{\listed@schapter}
2028 % |\chapter| declares numbered chapters, which are listed in the table
2030 % |\chapter*| declares unnumbered chapters, which are \emph{not}
2031 % listed in the TOC.
2032 % |\listed@schapter| declares an unnumbered chapter that \emph{is}
2033 % listed in the TOC.
2035 \newcommand\listed@schapter[1]{%
2036 \if@openright\DUT@cleardoublepage\else\DUT@clearpage\fi
2037 \thispagestyle{plain}%
2040 \addcontentsline{toc}{chapter}{#1}
2046 % \begin{macro}{\@chapter}
2047 % This macro is called when we have a numbered chapter. When
2048 % \Lcount{secnumdepth} is larger than $-1$ and |\@mainmatter| is true,
2049 % we display the chapter number.
2050 % We drop \cls{book}'s \Lopt{twocolumn} code.
2051 % (\file{classes.dtx}, L2496).
2053 \def\@chapter[#1]#2{
2055 % Inform the user that a new chapter is about to be typeset by writing
2056 % a message to the terminal.
2057 % \changes{0.9}{2010/05/21}{W.~Trevor King disabled the label macro
2059 % Some users place |\label| in their chapter argument:
2061 % \chapter{Bla bla\label{x}}
2063 % rather than after (as recommended by
2064 % \href{http://en.wikibooks.org/wiki/LaTeX/Labels_and_Cross-referencing#Sections}%
2065 % {the \LaTeX\ Wikibook} and
2066 % \href{http://www.ctan.org/tex-archive/info/lshort/english/lshort.pdf}%
2067 % {The Not So Short Introduction to \LaTeXe\ (\S 2.8, p36)}):
2072 % The embedded |\label| chokes |\typeout| so we temporarily redefine
2073 % |\label| to just gobble its contents. |\DUT@label| stores the
2074 % original definition.
2076 \let\DUT@label=\label%
2077 \renewcommand{\label}[1]{}%
2078 \typeout{\@chapapp\space\thechapter. #1}%
2080 % Restore |\label| to its previous glory.
2082 \let\label=\DUT@label%
2084 % Now we can get on with the real work.
2086 \ifnum \c@secnumdepth >\m@ne
2088 \refstepcounter{chapter}%
2089 \addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}#1}%
2091 \addcontentsline{toc}{chapter}{#1}%
2094 \addcontentsline{toc}{chapter}{#1}%
2097 % After having written an entry to the table of contents we store
2098 % the (alternative) title of this chapter with |\chaptermark|.
2102 % For nicer lists of figures and tables, we could add some white space
2103 % to separate the chapters. However, nice lists $\neq$~Manual
2106 % \addtocontents{lof}{\protect\addvspace{10\p@}}%
2107 % \addtocontents{lot}{\protect\addvspace{10\p@}}%
2109 % Then we call upon |\@makechapterhead| to format the actual chapter
2110 % title. |\@afterheading| which takes care of suppressing the
2113 \@makechapterhead{#2}%
2118 % \begin{macro}{\@makechapterhead}
2119 % The |\@chapter| macro uses |\@makechapterhead|\meta{text} to format
2120 % the heading of the chapter.
2121 % From the Manual \S 3.11 p11.
2123 % Chapter headings must be bold and centered.
2124 % The chapter number and title must be on the same line, separated
2125 % by a colon or period, as shown in the example below:
2127 % CHAPTER 1: INTRODUCTION
2129 % Headings must not be larger than 12 points.
2130 % Headings must be single spaced.
2132 % \cls{book} sets |\@chapapp| and |\thechapter| (e.g.\ ``Chapter 5'')
2133 % on a line above the chapter title, but that doesn't match the
2134 % Manual's specification.
2136 % We begin by leaving some white space. The we open a group in which
2137 % we have a paragraph indent of 0pt, and in which we have the text set
2138 % ragged right. We also reset the font.
2139 % (\file{classes.dtx}, L2540).
2141 \def\@makechapterhead#1{%
2143 % Adding even a \vspace*{0\p@} here seems to increase the vertical
2144 % space above the chapter heading by two lines. I'm not sure why.
2145 % Workaround is to pass the ``value of blanklines you want minus two''
2146 % to |\blanklines*|. HACK!
2148 \blanklines*{-1}% HACK!
2149 {\parindent \z@ \raggedright \normalfont
2151 % Ensure single spacing.
2155 % Prevent a pagebreak from occuring in the middle of or after the title.
2157 \interlinepenalty\@M
2159 % Check whether the number of the chapter has to be printed.
2161 \ifnum \c@secnumdepth >\m@ne
2163 % Check whether there \emph{is} a number to be printed.
2167 % Setup a ``Chapter \#: Title'' heading.
2169 \center \large \bfseries \@chapapp{} \thechapter: #1\par\nobreak
2172 % Setup a ``Title'' heading.
2174 \center \large \bfseries #1\par\nobreak
2177 \center \large \bfseries #1\par\nobreak
2180 % Put a little space before the chapter body. We use four blank lines
2181 % to comply with the Manual \S 3.13 p12
2183 % Begin the list of sources four spaces below the heading.
2192 % \begin{macro}{\@schapter}
2193 % This macro is called when we have an unnumbered chapter. We drop
2194 % \file{classes.dtx}'s \Lopt{twocolumn} code and set marks for
2196 % (\file{classes.dtx}, L2582).
2200 % Inform the user that a new chapter is about to be typeset by writing
2201 % a message to the terminal.
2203 \typeout{\@chapapp\space #1}%
2205 \@makeschapterhead{#1}%
2210 % \begin{macro}{\@makeschapterhead}
2211 % The macro above uses |\@makeschapterhead|\meta{text} to format
2212 % the heading of the chapter. It is similar to |\@makechapterhead|
2213 % except that it never has to print a chapter number.
2214 % (\file{classes.dtx}, L2595).
2216 \def\@makeschapterhead#1{%
2217 \blanklines*{-1}% HACK!
2218 {\parindent \z@ \raggedright \normalfont
2220 \interlinepenalty\@M
2221 \center \large \bfseries #1\par\nobreak
2229 % \subsubsection{Lower level headings}
2231 % \begin{macro}{\section}
2232 % Setup section headings in |\large| rather than \cls{book}'s
2234 % (\file{classes.dtx}, L2623).
2236 \renewcommand\section{%
2237 \@startsection {section}{1}{\z@}%
2238 {-3.5ex \@plus -1ex \@minus -.2ex}%
2240 {\normalfont\large\bfseries}}
2245 % \subsubsection{Defining new environments}
2247 % We don't override any of \cls{book}'s environments, but this is
2248 % where \file{classes.dtx} defines its environments (L2996), so we'll put
2251 % \begin{environment}{preamble}
2253 \newenvironment{preamble}{%
2256 \pagenumbering{roman}
2258 % From Manual \S 3.1 p8, ``Title Page''.
2262 % From Manual \S 3.2 p9, ``Copyright Page''.
2267 % From the Manual \S 3.9, p11:
2269 % Include a blank page (with no page number) before the first page
2270 % of text. The blank page is neither numbered nor counted.
2278 % \begin{environment}{dedications}
2279 % From the Manual \S 3.3 p9
2281 % \item The heading |Dedications| must appear at the top of the
2282 % page. The heading must be bold, centered, and without
2284 % \item This page is counted and numbered in lowercase Roman numerals.
2287 \newenvironment{dedications}{%
2291 \pdfbookmark[0]{\dedicationsname}{\dedicationsname}
2293 \chapter*{\dedicationsname}
2301 % \begin{environment}{acknowledgments}
2302 % From the Manual \S 3.4 p9
2304 % \item The heading |Acknowledgments| must appear at the top of the
2305 % page. The heading must be bold, centered, and without
2307 % \item This page is counted and numbered in lowercase Roman numerals.
2310 \newenvironment{acknowledgments}{%
2314 \pdfbookmark[0]{\acknowledgmentsname}{\acknowledgmentsname}
2316 \chapter*{\acknowledgmentsname}
2324 % \begin{environment}{abstract}
2326 \newenvironment{abstract}{%
2327 \listed@schapter{\abstractname}%
2329 % Suck up some blank space to position the rest of the header right
2330 % under the chapter title.
2334 % From the Manual \S 3.9 p10
2337 % \item The following heading must be centered at the top of the page
2340 % Full Title of Dissertation or Thesis \\
2341 % Author's Name as it appears on the Dissertation or Thesis
2343 % In the example on p20, they list the advisor's name after the
2344 % author, but that is not specified in the text on p10.
2345 % \item The text begins four lines below this heading.
2351 % \item These pages are numbered using lowercase Roman numerals.
2352 % \item Note that the heading is single spaced, but the abstract
2374 % \begin{environment}{thesis}
2375 % From the Manual \S 3.10 p11
2377 % \item The pages are counted and numbered in Arabic numerals.
2380 \newenvironment{thesis}{%
2387 % \changes{0.8}{2010/05/20}{W.~Trevor King replaced Titlepage with
2388 % Title Page for consistency with \LaTeX's book class.}
2392 \pdfbookmark[-1]{Back Matter}{Back Matter}
2399 % \label{sec:implement-vita}
2401 % \begin{environment}{vita}
2402 % From the Manual \S 3.15 p13
2404 % \item The heading |Vita| must appear at the top of the page. The
2405 % heading must be bold, centered, and without punctuation.
2406 % \item The Vita text should begin four spaces below the heading.
2407 % \item List the Vita separately in the Table of Contents.
2408 % \item The page is counted and numbered in Arabic numerals.
2411 \newenvironment{vita}{%
2412 \listed@schapter{\vitaname}
2421 % \subsubsection{Titlepage}
2423 % \begin{environment}{titlepage}
2424 % In the normal environments, the titlepage environment does nothing
2425 % but start and end a page, and inhibit page numbers. We inhibit the
2426 % paging in draft mode, since it seems silly to waste a whole page on
2427 % the title. We also drop the \Lopt{twocolumn} code.
2428 % (\file{classes.dtx}, L3111)
2430 \renewenvironment{titlepage}{\thispagestyle{empty}%
2431 \setcounter{page}\z@}%
2432 {\if@final \newpage \else \blanklinesp{2} \par \fi}
2437 % \subsubsection{Appendix}
2438 % \label{sec:implement-appendix}
2440 % \begin{macro}{\appendix}
2441 % The |\appendix| command is not really an environment, it is a
2442 % macro that makes some changes in the way things are done.
2444 % In the article document class the |\appendix| command must do the
2447 % \item reset the section and subsection counters to zero,
2448 % \item redefine |\thesection| to produce alphabetic appendix
2449 % numbers. This redefinition is done globally to ensure that it
2450 % survives even if |\appendix| is issued within an environment such
2451 % as \texttt{multicols}.
2454 % In addition to \cls{book}'s (or \pkg{hyperref}'s) activity, we
2455 % fiddle with the \pkg{tocloft} chapter settings add switch to global
2457 % (\file{classes.dtx}, L3177)
2459 \let\DUT@appendix\appendix
2460 \renewcommand\appendix{%
2463 % Setup TOC entries like
2465 % Appendix A: Chapter Title
2467 % We don't need to worry about the |vita| environment (page
2468 % \pageref{sec:implement-vita}), because it is a |\listed@schapter|,
2469 % and therefore lacks a |\numberline| section in its \file{*.toc}
2472 % We increase |numwidth| to 6.5em to make room for |Appendix~| before
2473 % the chapter number/letter, and add a colon after it.
2475 % The |\protect| calls get the macros into \file{*.toc} unexpanded, so
2476 % they function correctly when \LaTeX\ parses \file{*.toc}.
2478 \addtocontents{toc}{%
2479 \protect\cftsetindents{chapter}{0pt}{6.5em}
2480 \protect\renewcommand{\protect\cftchappresnum}{\protect\appendixname~}
2481 \protect\renewcommand{\protect\cftchapaftersnum}{:}}
2483 % We also turn on double spacing by default, since we're no longer
2484 % wrapped in the |thesis| environment.
2492 % \subsubsection{Table of Contents}
2493 % \label{sec:implement-toc}
2495 % From Manual \S 3.5 p9, ``Table of Contents'', and the example on p17.
2498 % \item Do not list any sections that precede the
2499 % |Table of Contents| (e.g.\ |Dedications|, |Acknowledgments|). Do
2500 % not list the |Table of Contents| itself.
2501 % \item These pages are counted and numbered in lowercase Roman numerals.
2505 % \begin{macro}{\cfttoctitlefont}
2506 % Take advantange of \pkg{tocloft}'s TOC title code.
2507 % (\file{tocloft.dtx}, L1501)
2509 % \cfttoctitlefont\contentsname}{\cftaftertoctitle}
2511 % by setting it equal to something ending in |\chapter*|. That way
2512 % \LaTeX parses the whole thing as
2514 % ...\chapter*\contentsname}{\cftaftertoctitle}
2516 % which will set up the TOC page correctly.
2518 \renewcommand\cfttoctitlefont{%
2520 % Start a new page in \Lopt{final} mode
2524 % Add a bookmark if we're using pdf\LaTeX.
2528 \pdfbookmark[0]{\contentsname}{\contentsname}
2531 % |\chapter*| to gobble and format the next token (|\contentsname|).
2537 % \begin{macro}{\aftertoctitleskip}
2538 % Don't add any extra space after the title (the chapter will take
2541 \setlength\cftaftertoctitleskip{0pt}
2545 % \begin{macro}{\l@cont@sep}
2546 % Define a length for TOC/LOF/LOT spacing.
2548 \newlength\l@cont@sep
2549 \set@lines@length{\l@cont@sep}{\@cont@sep}
2553 % \begin{macro}{\@cont@font}
2554 % Define a font for high level (part, chapter) entries.
2556 \newcommand{\@cont@font}{\normalsize\scshape}
2560 % \begin{macro}{\cftbeforepartskip}
2561 % \begin{macro}{\cftpartfont}
2562 % \begin{macro}{\cftpartleader}
2563 % \begin{macro}{\cftpartdotsep}
2564 % \begin{macro}{\cftpartpagefont}
2565 % Setup parts. See the \pkg{tocloft} manual for a description of the
2568 \setlength\cftbeforepartskip{\l@cont@sep}
2569 \cftsetindents{part}{0pt}{3em}
2570 \if@boldpart \renewcommand{\cftpartfont}{\bfseries\@cont@font}
2571 \else \renewcommand{\cftpartfont}{\@cont@font}
2572 \renewcommand{\cftpartleader}{\cftdotfill{\cftpartdotsep}}
2573 \if@dottedpart \renewcommand{\cftpartdotsep}{\cftdotsep}
2574 \else \renewcommand{\cftpartdotsep}{\cftnodots} \fi
2575 \renewcommand{\cftpartpagefont}{\normalfont}
2583 % \begin{macro}{\cftbeforechapskip}
2584 % \begin{macro}{\cftchapaftersnum}
2585 % \begin{macro}{\cftchapfont}
2586 % \begin{macro}{\cftchapleader}
2587 % \begin{macro}{\cftchapdotsep}
2588 % \begin{macro}{\cftchappagefont}
2589 % Setup chapters and appendicies. Some of these settings are adjusted
2590 % for appendicies in particular by |\appendix|
2591 % (Sec.~\ref{sec:implement-appendix}).
2593 \setlength\cftbeforechapskip{\l@cont@sep}
2594 \cftsetindents{chapter}{0pt}{1.5em}
2595 \renewcommand{\cftchapaftersnum}{.}
2596 \if@boldchapter \renewcommand{\cftchapfont}{\bfseries\@cont@font}
2597 \else \renewcommand{\cftchapfont}{\@cont@font} \fi
2598 \renewcommand{\cftchapleader}{\cftdotfill{\cftchapdotsep}}
2599 \if@dottedchapter \renewcommand{\cftchapdotsep}{\cftdotsep}
2600 \else \renewcommand{\cftchapdotsep}{\cftnodots} \fi
2601 \renewcommand{\cftchappagefont}{\normalfont}
2610 % \begin{macro}{\cftbeforesecskip}
2611 % \begin{macro}{\cftsecfont}
2612 % \begin{macro}{\cftbeforesubsecskip}
2613 % \begin{macro}{\cftsubsecfont}
2614 % \begin{macro}{\cftbeforesubsubsecskip}
2615 % \begin{macro}{\cftsubsubsecfont}
2616 % Setup sections, subsections, etc.
2618 %\cftsetindents{chap}{0pt}{1.5em}
2619 \setlength\cftbeforesecskip{\l@cont@sep}
2620 \cftsetindents{section}{0pt}{3em}
2621 \renewcommand{\cftsecfont}{\normalsize}
2622 \setlength\cftbeforesubsecskip{\l@cont@sep}
2623 \cftsetindents{subsection}{0pt}{4.5em}
2624 \renewcommand{\cftsubsecfont}{\cftsecfont}
2625 \setlength\cftbeforesubsubsecskip{\l@cont@sep}
2626 \cftsetindents{subsubsection}{0pt}{6em}
2627 \renewcommand{\cftsubsubsecfont}{\cftsecfont}
2636 % The default indents above are all |0pt|. If \Lopt{indenttoc} was
2637 % given, override this, restoring the \pkg{tocloft} defaults, see the
2638 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/tocloft/tocloft.pdf}{%
2639 % \pkg{tocloft} manual, Table 1}.
2642 \cftsetindents{chapter}{0pt}{1.5em}
2643 \cftsetindents{section}{1.5em}{2.3em}
2644 \cftsetindents{subsection}{3.8em}{3.2em}
2645 \cftsetindents{subsubsection}{7.0em}{4.1em}
2650 % \subsubsection{List of figures}
2651 % \label{sec:implement-lof}
2653 % From the Manual \S 3.7 p10
2656 % \item The heading |List of Figures| must appear at the top of
2658 % \item The heading must be bold, centered, and without
2659 % punctuation. List figure captions exactly as they appear
2660 % below the figures in the text.
2661 % \item Single space each entry, but double-space between entries.
2662 % \item Separate figure captions from page numbers with
2663 % right-justified tabs and dot leaders.
2664 % \item Do not use periods to separate captions and page numbers.
2665 % \item These pages are counted and numbered in lowercase Roman
2670 % \begin{macro}{\cftloftitlefont}
2671 % Much like our |\cfttoctitlefont|, but the list of figures gets
2672 % listed in the TOC.
2674 \renewcommand\cftloftitlefont{\listed@schapter}
2678 % \begin{macro}{\afterloftitleskip}
2679 % Don't add any extra space after the title (the chapter will take
2680 % care of that). Actually we make a one-line correction so the first
2681 % line matches the first line in the TOC. HACK!
2683 \setlength\cftafterloftitleskip{-12pt}
2687 % \begin{macro}{\cftbeforefigskip}
2688 % \begin{macro}{\cftfigindent}
2689 % \begin{macro}{\cftfigfont}
2690 % Setup figure entries.
2692 \setlength{\cftbeforefigskip}{\l@cont@sep}
2693 \setlength{\cftfigindent}{0pt}
2694 \renewcommand{\cftfigfont}{\normalsize\singlespace}
2701 % \subsubsection{List of tables}
2702 % \label{sec:implement-lot}
2704 % From the Manual \S 3.6 p10
2707 % \item The heading |List of Tables| must appear at the top of the
2709 % \item The heading must be bold, centered, and without
2711 % \item List table captions exactly as they appear above the
2712 % tables in the text.
2713 % \item Single space each entry, but double-space between entries.
2714 % \item Separate table captions from page numbers with
2715 % right-justified tabs and dot leaders.
2716 % \item Do not use periods to separate captions and page numbers.
2717 % These pages are counted and numbered in lowercase Roman
2722 % \begin{macro}{\cftlottitlefont}
2723 % Much like our |\cfttoctitlefont|, but the list of tables gets
2724 % listed in the TOC.
2726 \renewcommand\cftlottitlefont{\listed@schapter}
2730 % \begin{macro}{\afterlottitleskip}
2731 % Don't add any extra space after the title (the chapter will take
2732 % care of that). Actually we make a one-line correction so the first
2733 % line matches the first line in the TOC. HACK!
2735 \setlength\cftafterlottitleskip{-12pt}
2739 % \begin{macro}{\cftbeforetabskip}
2740 % \begin{macro}{\cfttabindent}
2741 % \begin{macro}{\cfttabfont}
2742 % Setup table entries.
2744 \setlength{\cfttabindent}{0pt}
2745 \setlength{\cftbeforetabskip}{\l@cont@sep}
2746 \renewcommand{\cfttabfont}{\normalsize\singlespace}
2753 % \subsubsection{Bibliography}
2755 % \begin{environment}{thebibliography}
2756 % The |thebibliography| environment is a list environment. To save the
2757 % use of an extra counter, it should use |enumiv| as the item
2759 % Instead of using |\item|, items in the bibliography are produced by
2760 % the following commands:\\
2761 % |\bibitem|\marg{name} : Produces a numbered entry cited as
2763 % |\bibitem|\oarg{label}\marg{name} : Produces an entry labeled by
2764 % \meta{Label} and cited by \meta{name}.
2766 % Override \cls{book}'s version, adding a line to the table of
2767 % contents. We split out the section-creation code into
2768 % |\bib@heading| for \pkg{natbib} compatibility.
2769 % (\file{classes.dtx}, L4063).
2771 \renewenvironment{thebibliography}[1]
2773 \list{\@biblabel{\@arabic\c@enumiv}}%
2774 {\settowidth\labelwidth{\@biblabel{#1}}%
2775 \leftmargin\labelwidth
2776 \advance\leftmargin\labelsep
2778 \usecounter{enumiv}%
2779 \let\p@enumiv\@empty
2780 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
2782 % Because it's hard to do line breaks in bibliographies.
2786 % This is setting the normal (non-infinite) value of
2787 % |\clubpenalty| for the whole of this environment,
2788 % so we must reset its stored value also. (Why is there a |%| after
2789 % the second 4000 below?)
2792 \@clubpenalty \clubpenalty
2795 % Cause a `.' (period) not to produce an end-of-sentence space.
2799 % Warn if an empty `thebibliography' environment is found.
2802 {\@latex@warning{Empty `thebibliography' environment}}%
2807 % \begin{macro}{\bib@heading}
2808 % \pkg{natbib} messes with |thebibliography|. We setup |\bib@heading|
2809 % so we will still get our table of contents entry.
2811 \newcommand{\bib@heading}{%
2812 \listed@schapter{\bibname}%
2818 % \subsubsection{Index}
2820 % \begin{environment}{theindex}
2821 % The environment |theindex| can be used for indices. It makes an
2822 % index with two columns, with each entry a separate paragraph. At
2823 % the user level the commands |\item|, |\subitem| and |\subsubitem|
2824 % are used to produce index entries of various levels. When a new
2825 % letter of the alphabet is encountered an amount of |\indexspace|
2826 % white space can be added.
2828 % Override \cls{book}'s version, adding a line to the table of
2829 % contents. We split out the section-creation code into
2830 % |\bib@heading| for \pkg{natbib} compatibility.
2831 % (\file{classes.dtx}, L4107).
2833 \renewenvironment{theindex}
2840 % Here we add our TOC entry, and setup two-columness by hand
2841 % to avoid the |\clearpage| in \LaTeX's default |\twocolumn|.
2843 \listed@schapter{\indexname}
2844 \global\columnwidth\textwidth
2845 \global\advance\columnwidth-\columnsep
2846 \global\divide\columnwidth\tw@
2847 \global\hsize\columnwidth
2848 \global\linewidth\columnwidth
2849 \global\@twocolumntrue
2850 \global\@firstcolumntrue
2853 % Parameter changes to |\columnseprule| and |\columnsep| have to be
2854 % done after |\twocolumn| has acted. Otherwise they can affect the
2855 % last page before the index.
2858 \parskip\z@ \@plus .3\p@\relax
2863 % When the document continues after the index and it was a one
2864 % column document we have to switch back to one column after the
2867 {\if@restonecol\onecolumn\else\DUT@clearpage\fi}
2872 % \subsubsection{Words}
2875 % Set the official names of the various sections encountered. Some of
2876 % these are not defined in \file{classes.dtx} but are close analogs of
2879 % \begin{macro}{\dedicationsname}
2880 % From the Manual \S 3.3 p9, ``The heading |Dedications| must appear at
2881 % the top of the page.''
2883 \newcommand\dedicationsname{Dedications}
2887 % \begin{macro}{\acknowledgmentsname}
2888 % From the Manual \S 3.4 p9, ``The heading |Acknowledgments| must appear
2889 % at the top of the page.''
2891 \newcommand\acknowledgmentsname{Acknowledgments}
2895 % \begin{macro}{\contentsname}
2896 % From the Manual \S 3.5 p9, ``The heading |Table of Contents| must
2897 % appear at the top of the page.'' (\file{classes.dtx}, L4331)
2899 \renewcommand\contentsname{Table of Contents}
2903 % \begin{macro}{\listtablename}
2904 % From the Manual \S 3.6 p10, ``The heading |List of Tables| must appear
2905 % at the top of the page.'' (\file{classes.dtx}, L4333)
2907 \renewcommand\listtablename{List of Tables}
2911 % \begin{macro}{\listfigurename}
2912 % From the Manual \S 3.7 p10, ``The heading |List of Figures| must appear
2913 % at the top of the page.'' (\file{classes.dtx}, L4332)
2915 \renewcommand\listfigurename{List of Figures}
2919 % \begin{macro}{\abstractname}
2920 % From the Manual \S 3.8 p10, ``The following heading must be centered at
2921 % the top of the first page: |Abstract|\ldots.''
2922 % (\file{classes.dtx}, L4367)
2924 \newcommand\abstractname{Abstract}
2928 % \begin{macro}{\bibname}
2929 % From the Manual \S 3.13 p12, ``The heading |Bibliography| (or
2930 % |List of References|) must appear at the top of first page.''
2931 % (\file{classes.dtx}, L4344)
2933 \renewcommand\bibname{Bibliography}
2937 % \begin{macro}{\appendixname}
2938 % From the Manual \S 3.14 p12, ``Number the appendicies consecutively
2939 % either alphabetically or numerically (|Appendix A|, |Appendix B|\ldots
2940 % or |Appendix 1|, |Appendix 2|\ldots).''
2941 % (\file{classes.dtx}, L4366)
2943 \renewcommand\appendixname{Appendix}
2947 % \begin{macro}{\vitaname}
2948 % From the Manual \S 3.15 p13, ``The heading |Vita| must appear at the
2949 % top of the page.''
2951 \newcommand\vitaname{Vita}
2956 % \subsection{Remaining details}
2959 % \subsubsection{Terminal blank page}
2961 % Add a terminal blank page (when |\if@final| is true)
2962 % From the Manual \S 3.16 p13
2964 % Include a blank page (with no page number) at the end of the
2965 % thesis or dissertation. The blank page is neither counted nor
2969 \AtEndDocument{\blankpage}
2978 % \section{Examples}
2981 % \subsubsection{Template}
2985 % See drexel-thesis.pdf for details.
2986 \documentclass{drexel-thesis}
2988 %% Enter the appropriate information here
2989 \author{} % Fullname
2990 \title{} % Title Of Thesis
2991 \defmonth{} % Name of the month of you defense
2992 \defyear{} % Year you are defending
2993 \degree{} % Your target degree, spelled out
2994 \advisor{} % Advisor's full name, degree
2995 \copyrighttext{} % If not "All Rights Reserved."
2997 %% unsrt style give references in order of citation
2998 \bibliographystyle{unsrt}
3003 \begin{dedications} % OPTIONAL
3004 %% Type dedications here
3007 \begin{acknowledgments} % OPTIONAL
3008 %% Type acknowledgments here
3009 \end{acknowledgments}
3012 \listoftables % If you have tables
3013 \listoffigures % If you have figures
3016 %% Type abstract here
3021 %% If your thesis does not use \part{}s, you may want to add a
3022 %% part-level PDF bookmark to set the main matter of from the front
3024 %%\pdfbookmark[-1]{Main Matter}{Main Matter}
3026 %% Use include statements to include your main thesis code
3027 %% from seperate files.
3032 \bibliography{references} % Include references.bib BibTeX
3034 \appendix % If you have appendices
3035 %% include files with your appendicies (if any) here
3036 %%\include{appendixA}
3039 \begin{vita} % Ph.D. only.
3048 % \subsection{A better example}
3049 % \label{sec:better-example}
3051 % \subsubsection{Main}
3054 %<*example|example-draft>
3055 %% See drexel-thesis.pdf for details.
3056 %<example>\documentclass[subfig]{drexel-thesis}
3057 %<example-draft>\documentclass[draft,subfig]{drexel-thesis}
3059 %% Enter the appropriate information here
3060 \author{Johny Henry}
3061 \title{Inadequacies of Steam-Driven Boring Machines}
3064 \degree{Doctor of Philosophy}
3065 \advisor{Collis Potter Huntington, R.R.D.}
3066 \advisor{Advisor 2, Ph.D.}
3067 \advisor{Advisor 3, Ph.D.}
3068 \copyrighttext{\copyrighttextCCBYSA}
3070 \usepackage[super,sort&compress]{natbib} % fancy citation extensions
3071 \bibliographystyle{unsrtnat}
3073 \usepackage{fancyvrb} % nicer verbatim handling
3074 \DefineShortVerb{\|} % \verb+TEXT+ -> |TEXT|
3078 % \href{http://www.ctan.org/tex-archive/macros/latex/contrib/blindtext/}%
3080 % for dummy text creation. \pkg{blindtext} requires
3081 % \href{http://www.ctan.org/tex-archive/macros/latex/required/babel/}%
3084 \usepackage[english]{babel} % English blindtext
3085 \usepackage{blindtext} % macros for producing dummy output
3087 % \pkg{babel} messes with some of our words (\S \ref{sec:words}), so
3088 % we have to reset them. See the
3089 % \href{http://www.tex.ac.uk/cgi-bin/texfaq2html?label=latexwords}{\TeX\ FAQ}
3092 \addto\captionsenglish{%
3093 \renewcommand\dedicationsname{Dedications}%
3094 \renewcommand\acknowledgmentsname{Acknowledgments}%
3095 \renewcommand\contentsname{Table of Contents}%
3096 \renewcommand\listtablename{List of Tables}%
3097 \renewcommand\listfigurename{List of Figures}%
3098 \renewcommand\abstractname{Abstract}%
3099 \renewcommand\bibname{Bibliography}%
3100 \renewcommand\appendixname{Appendix}%
3101 \renewcommand\vitaname{Vita}%
3108 We're in \iffinal{final}{draft} mode!
3113 \begin{acknowledgments}
3115 \end{acknowledgments}
3130 \bibliography{example-ref}
3140 %</example|example-draft>
3144 % \subsubsection{Part}
3145 % \label{section:better-example-part}
3149 \part{A Part Heading}
3150 \chapter{A Chapter Heading}
3151 \section{A Section Heading}
3152 The following sectioning commands are available:
3164 You can cite your references with |natbib|'s |\citet| and |\citep|
3166 \href{http://www.ctan.org/tex-archive/macros/latex/contrib/natbib/}
3167 {the natbib manual} for details.
3169 Here we have a text citation \citet{rief97} followed by a
3170 parenthetical citation\citep{rief97}.
3172 \subsubsection{Tables and Figures}
3176 \begin{tabular}{r@{.}l r@{.}l r@{.}l}
3177 \multicolumn{2}{c}{Time (s)} &
3178 \multicolumn{2}{c}{John Henry (m)} &
3179 \multicolumn{2}{c}{Steam drill (m)} \\
3181 10&0 & 4&3 & 3&75 \\
3182 30&0 & 11&9 & 10&1 \\
3185 \caption{A table float.} % low caption allowed with floatrow
3186 %% Note the strange |r@{.}l| notation in the |\tabular| column
3187 %% definition. This allows for numbers aligned at the decimal point
3188 %% (see \href{http://www.stat.unipg.it/tex-man/ltx-68.html}{here}).
3190 %% |\multicolumn{num_cols}{alignment}{contents}| allows the headings
3191 %% to span the pre- and post-decimal columns.
3196 \caption{A figure float. \blindtext} % high caption allowed with floatrow
3198 \includegraphics[width=0.4\textwidth]{drexel-logo}
3205 \includegraphics[width=0.2\textwidth]{drexel-logo}%
3208 \includegraphics[width=0.2\textwidth]{drexel-logo}%
3210 \caption{(a) One subfig float. (b) Another subfig float.%
3214 You can reference the subfig floats individually (\ref{fig:sub-a}) or
3215 together (\ref{fig:both}).
3220 \chapter{Another Chapter}
3222 \chapter{A Long Title Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla
3223 Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla}
3229 % \subsubsection{\BibTeX}
3231 % What goes into the \BibTeX\ file |example-ref.bib|?
3232 % For more information, check out this
3233 % \href{http://cmtw.harvard.edu/Documentation/TeX/Bibtex/Example.html}{basic tutorial}.
3234 % If you want to get deeper, take a look at
3235 % \href{http://www.ctan.org/tex-archive/info/bibtex/tamethebeast/}{Tame the BeaST}.
3237 % \href{http://www.andy-roberts.net/misc/latex/latextutorial3.html}{how the process works},
3238 % \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node6.html}{entry types},
3239 % \href{http://newton.ex.ac.uk/tex/pack/bibtex/btxdoc/node7.html}{fields},
3240 % \href{http://en.wikipedia.org/wiki/BibTeX}{entries and fields},
3241 % \href{http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html}{assorted style examples}, and
3242 % \href{http://liinwww.ira.uka.de/bibliography/Bib.Format.html}{assorted \BibTeX tools}.
3244 % Here is an example \BibTeX\ file to get you started. We define
3245 % strings for the publishers, journals, and authors to avoid
3246 % duplication, minimize the risk of typos, etc.
3249 %<*example-bibtex-refs>
3251 @String{APS = "American Physical Society"}
3254 @String{SCI = "Science"}
3257 @String{MRief = "Rief, Matthias"}
3258 @String{MGautel = "Gautel, Mathias"}
3259 @String{FOesterhelt = "Oesterhelt, Filipp"}
3260 @String{JFernandez = "Fernandez, Julio M."}
3261 @String{HGaub = "Gaub, Hermann E."}
3265 author = MRief #" and "# MGautel #" and "# FOesterhelt #" and "#
3266 JFernandez #" and "# HGaub,
3267 title = "Reversible Unfolding of Individual Titin Immunoglobulin
3272 pages = "1109--1112",
3274 doi = "10.1126/science.276.5315.1109",
3275 URL = "http://www.sciencemag.org/cgi/content/abstract/276/5315/1109",
3276 eprint = "http://www.sciencemag.org/cgi/reprint/276/5315/1109.pdf",
3277 mynote = "Seminal paper for force spectroscopy on Titin. Cited by
3278 Dietz '04 (ref 9) as an example of how unfolding large
3279 proteins is easily interpreted (vs.\ confusing unfolding in
3280 bulk), but Titin is a rather simple example of that, because
3281 of its globular-chain structure.",
3284 %</example-bibtex-refs>
3288 % \subsubsection{Appendix}
3291 %<*example-appendix>
3292 \chapter{Some Appendix Heading}
3294 \chapter{Another Appendix Heading}
3296 %</example-appendix>
3300 % \section{Known bugs and issues}
3303 % \subsection{Hacks}
3306 % \item |\vspace*{0\p@}| space between page top and chapter
3307 % headings (|\@makechapterhead| and |\@makeschapterhead|,
3308 % Sec.~\ref{sec:implement-chapters}).
3309 % \item Extra space under LOT and LOF titles compared to TOC.
3310 % (Secs.~\ref{sec:implement-lof} and \ref{sec:implement-lot}).
3317 % \item Different space between chapter heading and section heading,
3318 % vs.\ chapter heading and text. Compare \emph{A Chapter Heading}
3319 % and \emph{Another Chapter} in \file{example.pdf}. This is a
3320 % problem (although with opposite order) in the \cls{book} class
3321 % itself. For example, compile
3323 %\documentclass{book}
3325 %\chapter{Chapter with text}
3327 %\chapter{Chapter with section}
3332 % \item Footer overlap if chapter/section names are particularly long.
3333 % See \emph{Section in long-titled chapter} in \file{example.pdf}.
3334 % Workaround: turn off sections in the footer:
3336 % \fancyfoot[RE,LO]{\scshape\leftmark}
3337 % \fancyfoot[LE,RO]{}
3339 % For more header or footer manipulation ideas, see \S \ref{sec:fancyhdr}.