Debian Codegraph @

texmf-dist/source/latex/ucdavisthesis/ucdavisthesis.dtx

raw
1 % \iffalse meta-comment
2 %
3 % ucdavisthesis.dtx
4 %
5 % Copyright (C) Copyright 2007, 2008, 2009, 2010, 2013, 2016 by Ryan Scott
6 %
7 % Adapted from UCLA THESIS/DISSERTATION CLASS -- for LaTeX version 2e
8 % (C) Copyright 1995 by John Heidemann.
9 % Taken from UCLA THESIS/DISSERTATION CLASS (version 0.94 BETA, 5/23/91)
10 % (C) Copyright 1988 Richard B. Wales. All Rights Reserved.
11 % by Richard B. Wales.
12 % Taken from DISSERTATION style (1/10/86)
13 % by Dorab Patel and Eduardo Krell
14 %
15 % Additional features/ideas taken from ucd_dissertation_template.tex
16 % A file from the UC Davis Mathematics Department
17 % ------------------------------------------------------------
18 %
19 % This file may be distributed and/or modified under the
20 % conditions of the LaTeX Project Public License, either
21 % version 1.2 of this license or (at your option) any later
22 % version. The latest version of this license is in:
23 %
24 % http://www.latex-project.org/lppl.txt
25 %
26 % and version 1.2 or later is part of all distributions of
27 % LaTeX version 1999/12/01 or later.
28 %
29 % \fi
30 %
31 % \iffalse
32 %<*driver>
33 \ProvidesFile{ucdavisthesis.dtx}
34 %</driver>
35 %
36 %<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
37 %<class>\ProvidesClass{ucdavisthesis}
38 %<*class>
39 [2016/04/23 v1.3 UCDavis thesis class]
40 %</class>
41 %<ucd10pt>\ProvidesFile{ucdthesis10.clo}%
42 %<ucd10pt> [2009/02/22 v1.0 ucdavisthesis class 10pt size option]
43 %<ucd11pt>\ProvidesFile{ucdthesis11.clo}%
44 %<ucd11pt> [2009/02/22 v1.0 ucdavisthesis class 11pt size option]
45 %<ucd12pt>\ProvidesFile{ucdthesis12.clo}%
46 %<ucd12pt> [2009/02/22 v1.0 ucdavisthesis class 12pt size option]
47 %<ucd13pt>\ProvidesFile{ucdthesis13.clo}%
48 %<ucd13pt> [2009/02/22 v1.0 ucdavisthesis class 13pt size option]
49 %
50 %<*driver>
51 \documentclass{ltxdoc}
52 % \EnableCrossrefs
53 % \DisableCrossrefs
54 % \CodelineIndex %codelineindex or pageindex, not both
55 % \PageIndex
56 \RecordChanges
57 \begin{document}
58 \DocInput{ucdavisthesis.dtx}
59 \PrintChanges
60 \PrintIndex
61 \end{document}
62 %</driver>
63 % \fi
64 %
65 % \CheckSum{0}
66 %
67 %% \CharacterTable
68 %% {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
69 %% 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
70 %% Digits \0\1\2\3\4\5\6\7\8\9
71 %% Exclamation \! Double quote \" Hash (number) \#
72 %% Dollar \$ Percent \% Ampersand \&
73 %% Acute accent \' Left paren \( Right paren \)
74 %% Asterisk \* Plus \+ Comma \,
75 %% Minus \- Point \. Solidus \/
76 %% Colon \: Semicolon \; Less than \<
77 %% Equals \= Greater than \> Question mark \?
78 %% Commercial at \@ Left bracket \[ Backslash \\
79 %% Right bracket \] Circumflex \^ Underscore \_
80 %% Grave accent \` Left brace \{ Vertical bar \|
81 %% Right brace \} Tilde \~}
82 %
83 % \changes{v0.8}{2007/09/13}{Initial version. Still working out bugs.}
84 %
85 % \changes{v0.9}{2008/09/12}{First full implementation. Fixed UMI abstract and page number location.}
86 %
87 % \changes{v0.99}{2009/02/12}{Fixed prelim page numbering problem. Fixed typos in documentation.}
88 %
89 % \changes{v1.0}{2009/02/23}{Release version. UMI abstract left margin fixed. Added \texttt{singlespacing} and \texttt{committee} commands.}
90 %
91 % \changes{v1.1}{2010/03/11}{Updated Title page so that committee member names appear under signature lines. Fixed \texttt{singlespacing} usage in example file.}
92 %
93 % \changes{v1.2}{2013/08/18}{Updated page number location to bottom center. Set all margins to 1 inch. Simplified Abstract title.}
94 %
95 % \changes{v1.3}{2016/04/23}{Updated Title page for up to 5 committee members. Updated ucdavisthesis\_example. Deprecated UMIabstract.}
96 %
97 % \GetFileInfo{ucdavisthesis.dtx}
98 %
99 % \DoNotIndex{\{,\},\ ,\',\.,\@M,\@MM,\@@input,\@Alph,\@alph,\@addtoreset,\@arabic}
100 % \DoNotIndex{\@badmath,\@centercr,\@cite}
101 % \DoNotIndex{\@dotsep,\@empty,\@float,\@gobble,\@gobbletwo,\@ignoretrue}
102 % \DoNotIndex{\@listI,\@listi,\@listii,\@listiii,\@listiiv,\@listv,\@listvi}
103 % \DoNotIndex{\@latex@warning,\@input,\@ixpt,\@m,\@minus,\@mkboth}
104 % \DoNotIndex{\@ne,\@nil,\@nomath,\@openbib@code,\@plus,\@roman,\@Roman,\@set@topoint}
105 % \DoNotIndex{\@tempboxa,\@tempcnta,\@tempdima,\@tempdimb}
106 % \DoNotIndex{\@tempswafalse,\@tempswatrue,\@viipt,\@viiipt,\@vipt}
107 % \DoNotIndex{\@vpt,\@warning,\@xiipt,\@xipt,\@xivpt,\@xpt,\@xviipt}
108 % \DoNotIndex{\@xxpt,\@xxvpt,\\,\ ,\addpenalty,\addtolength,\addvspace}
109 % \DoNotIndex{\advance,\addcontentsline,\ast,\baselinestretch,\begin,\begingroup}
110 % \DoNotIndex{\bfseries,\bigskip,\bgroup,\box,\bullet}
111 % \DoNotIndex{\cdot,\cite,\CodelineIndex,\cr,\day,\DeclareOption}
112 % \DoNotIndex{\def,\DisableCrossrefs,\divide,\DocInput,\documentclass}
113 % \DoNotIndex{\DoNotIndex,\egroup,\ifdim,\else,\fi,\em,\endtrivlist}
114 % \DoNotIndex{\EnableCrossrefs,\end,\end@dblfloat,\end@float,\endgroup}
115 % \DoNotIndex{\endlist,\everycr,\everypar,\ExecuteOptions,\expandafter}
116 % \DoNotIndex{\fbox,\footnotesize}
117 % \DoNotIndex{\filedate,\filename,\fileversion,\fontsize,\framebox,\gdef}
118 % \DoNotIndex{\global,\halign,\hangindent,\hbox,\hfil,\hfill,\hrule}
119 % \DoNotIndex{\hsize,\hskip,\hspace,\hss,\if@tempswa,\ifcase,\or,\fi,\fi}
120 % \DoNotIndex{\ifhmode,\ifvmode,\ifnum,\iftrue,\ifx,\fi,\fi,\fi,\fi,\fi}
121 % \DoNotIndex{\input}
122 % \DoNotIndex{\jobname,\kern,\labelsep,\labelwidth,\leftmargin,\leavevmode,\let,\leftmark}
123 % \DoNotIndex{\list,\llap,\long,\m@ne,\m@th,\mark,\markboth,\markright}
124 % \DoNotIndex{\month,\newcommand,\newcounter,\newenvironment}
125 % \DoNotIndex{\NeedsTeXFormat,\newdimen,\newif}
126 % \DoNotIndex{\newlength,\newpage,\nobreak,\noindent,\normalsize,\normalfont,\null,\number}
127 % \DoNotIndex{\numberline,\OldMakeindex,\OnlyDescription,\p@}
128 % \DoNotIndex{\parindent,s\pagestyle,\par,\paragraph,\paragraphmark,\parfillskip}
129 % \DoNotIndex{\penalty,\PrintChanges,\PrintIndex,\ProcessOptions}
130 % \DoNotIndex{\protect,\ProvidesClass,\raggedbottom,\raggedright,\quad}
131 % \DoNotIndex{\refstepcounter,\relax,\renewcommand,\RequirePackage}
132 % \DoNotIndex{\rightmargin,\rightmark,\rightskip,\rlap,\rmfamily}
133 % \DoNotIndex{\secnumdepth, \secdef,\selectfont,\setbox,\setcounter,\setlength}
134 % \DoNotIndex{\settowidth,\sfcode,\skip,\sloppy,\slshape,\space}
135 % \DoNotIndex{\symbol,\the,\textsc,\textwidth,\thechapter,\thepage}
136 % \DoNotIndex{\thispagestyle,\trivlist,\typeout,\tw@}
137 % \DoNotIndex{\undefined,\uppercase,\usecounter,\usefont,\usepackage}
138 % \DoNotIndex{\vfil,\vfill,\viiipt,\viipt,\vipt,\vskip,\vspace}
139 % \DoNotIndex{\wd,\xiipt,\year,\z@}
140 %
141 % \title{The \textsf{ucdavisthesis} class\thanks{This document
142 % corresponds to \textsf{ucdavisthesis}~\fileversion,
143 % dated~\filedate.}}
144 % \author{Ryan Scott \\ \texttt{[email protected]}}
145 %
146 % \date{Printed \today}
147 %
148 % \maketitle
149 %
150 % \tableofcontents
151 %
152 % \section{Introduction} \label{sec.intro}
153 %
154 % The \textsf{ucdavisthesis} class is a \LaTeXe{} class that allows you to create a dissertation or thesis which conforms to UC Davis formatting requirements as of 2016. The output document has the necessary preliminary pages, margins, page number placement, etc. This class also provides most of the macros available in the |report| class, allowing for chapters, sections, etc. Please check the Graduate Studies web page (http://gradstudies.ucdavis.edu/students/filing.html) for any changes or updates.
155 %
156 % This manual is typeset according to the conventions of the \LaTeX{} \textsc{docstrip} utility which enables the automatic extraction of the \LaTeX{} macro source files.
157 %
158 %
159 % \section{Usage} \label{sec.usage}
160 % To create a dissertation or thesis which conforms to UC Davis requirements load the class with
161 % \begin{quote}
162 % |\documentclass|\oarg{class-options}|{ucdavisthesis}|
163 % \end{quote}
164 % at the beginning of your your \LaTeXe{} source file. The \meta{class-options}
165 % are entered as a comma separated list (no spaces). They are described in detail in
166 % Section~\ref{sec.options}. The other commands (macros) necessary to put
167 % together a complete document are explained in Section~\ref{sec.commands}.
168 %
169 % Please look through the |ucdavisthesis\_example\_main.tex| file and its subfiles for the proper macro order and helpful suggestions for formatting and organization of your thesis.
170 %
171 % \section{Class Options} \label{sec.options}
172 % The \textsf{ucdavisthesis} class is in itself an alteration of the standard \texttt{report} class, thus it keeps most of its class options except those options that would make the document non-conforming and aren't likely to be used for drafts (e.g., |twocolumn|, |notitlepage| and |a4paper|). If you find yourself wanting \texttt{report} features that are not available, please let me know.
173 %
174 % The possible options for the \textsf{ucdavisthesis} class are (default values are in angle brackets):
175 % \begin{description}
176 % \item[\texttt{MA\quad MS\quad ME\quad $\langle$PhD$\rangle$\quad DEngr}]\ \\ This option formats the title pages to conform to the requirements for a particular degree.
177 % \item[\texttt{single\quad $\langle$double$\rangle$}]\ \\ Sets the document line spacing. NOTE: single line spacing is non-conforming to the UCD format. However, even when using |double| spacing, environments like footnotes, captions and references are kept to single spacing. If there are problems with a particular environment becoming double spaced when using certain packages (e.g., \textsf{natbib} or \textsf{chapterbib}), see the |\singlespacing| command.
178 % \item[\texttt{twoside}] $\langle$\textit{false}$\rangle$\\ Two-sided printing (for a duplex printer). Adjusts margins and placement of page numbers and headers appropriately. NOTE: two-sided printing is non-conforming to the UCD Format.
179 % \item[\texttt{openright\quad $\langle$openany$\rangle$}]\ \\ This option only makes sense when using the \texttt{twoside} option. \texttt{openright} forces chapters to begin on odd (right-hand) pages only. The default, \texttt{openany} will start a chapter on the next page, whether it is even or odd.
180 % \item[\texttt{draft\quad draftcls\quad $\langle$final$\rangle$}]\ \\ \textsf{ucdavisthesis} provides two draft modes as well as the normal final mode. The \texttt{draft} and \texttt{draftcls} options provide additional information in the running header, including the text ``DRAFT'', the time and date, etc. Additionally, \texttt{draft} puts every package used in the document into draft mode (disabling rendering of figures for most graphics packages), while \texttt{draftcls} confines the draft mode behavior to just the class file.
181 % \item[\texttt{nofigureslist}] $\langle$\textit{false}$\rangle$\\ Suppress printing of the List of Figures.
182 % \item[\texttt{notableslist}] $\langle$\textit{false}$\rangle$\\ Suppress printing of the List of Tables.
183 % \item[\texttt{nohyphenatetitles\quad $\langle$hyphenatetitles$\rangle$}]\ \\ Choose whether to hyphenate section (and subsection...) titles.
184 % \item[\texttt{10pt\quad 11pt\quad $\langle$12pt$\rangle$\quad 13pt}]\ \\ Font size to use in the body of document (i.e., normalsize). Appropriate font sizes are chosen for the usual array of text size macros (e.g., |\small|, |\large|, |\Large|, etc.). Any of the four size options are acceptable according to the UCD Format.
185 % \end{description}
186 %
187 % \section{Class Commands} \label{sec.commands}
188 % This class file provides many commands that must be used to correctly format your dissertation or thesis. Some are self explanatory, others more obscure. I try to describe them all below.
189 %
190 % \subsection{Preliminary Page Commands}
191 % Use the following commands to produce all of the preliminary pages (e.g., title page, abstract, etc.). Theses should be used before the |\makeintropages{}| command is issued.
192 %
193 % \DescribeMacro{\title} This command sets the dissertation/thesis title. Formatting commands are allowed in the argument (e.g., |\textit{}|). The title must always be specified.
194 % \begin{quote}
195 % |\title|\marg{title}
196 % \end{quote}
197 %
198 %
199 % \DescribeMacro{\author} This command sets the dissertation/thesis author. Only one author is allowed. The author must always be specified.
200 % \begin{quote}
201 % |\author|\marg{author's name}
202 % \end{quote}
203 %
204 %
205 % \DescribeMacro{\authordegrees} Specify the author's previous degrees on the \textsc{Title Page}. Separate entries with the end line command |\\ |. The author's degrees must always be specified.
206 % \begin{quote}
207 % |\authordegrees|\marg{list of degrees}
208 % \end{quote}
209 % For example:
210 % \begin{quote}
211 % |\authordegrees||{B.S. (University of California, Davis) 1978||\\|
212 % | M.S. (University of California, Berkeley) 1980}|
213 % \end{quote}
214 %
215 %
216 % \DescribeMacro{\officialmajor} Set the official major name (in the degree title).
217 % e.g., Electrical and Computer Engineering, Chemistry, Russian, or Entomology.
218 % The official name of your major must always be specified.
219 % \begin{quote}
220 % |\officialmajor|\marg{major's name}
221 % \end{quote}
222 %
223 %
224 % \DescribeMacro{\graduateprogram} Set the graduate program name.
225 % It is only used on the UMI abstract page. The graduate program name may be
226 % the same as the official major.
227 % \begin{quote}
228 % |\graduateprogram|\marg{program name}
229 % \end{quote}
230 %
231 %
232 % \DescribeMacro{\thesis} Set the document type to |Thesis|, and the degree name to the command's argument. This command is normally not needed, since an |MA| or |MS| option to |\documentclass| will do the same thing in all standard situations.
233 %
234 %
235 % \DescribeMacro{\dissertation} Set the document type to |Dissertation|, and the degree name to the command's argument. This command is normally not needed, since a |PhD| or |DEngr| option to |\documentclass| will do the same thing in all standard situations.
236 %
237 %
238 % \DescribeMacro{\degreemonth} Set the month in which the degree will be \textbf{conferred}, typically, March, June, September or December. Default is the current month
239 % (this may not be correct!).
240 % \begin{quote}
241 % |\degreemonth|\marg{month}
242 % \end{quote}
243 %
244 %
245 % \DescribeMacro{\degreeyear} Set the year in which the degree will be conferred.
246 % Default is the current year.
247 % \begin{quote}
248 % |\degreeyear|\marg{year}
249 % \end{quote}
250 %
251 %
252 % \DescribeMacro{\committee} This command will place the committee members' names under the approval lines and accepts up to five committee members. ``Chair'' appears after the first member's name. Leave any unused member positions blank between the braces. Your committee member names must be specified.
253 % \begin{quote}
254 % |\committee|\marg{member 1}\marg{member 2}\marg{member 3}\marg{member 4}\marg{member 5}
255 % \end{quote}%
256 %
257 %
258 % \DescribeMacro{\copyrightyear} Set the year which appears in the copyright
259 % notice. Default is the degree year (see above).
260 % \begin{quote}
261 % |\copyrightyear|\marg{year}
262 % \end{quote}
263 %
264 %
265 % \DescribeMacro{\nocopyright} Don't include a copyright notice at all. No page
266 % will be produced in its place. Default behavior is to include a copyright page.
267 % \begin{quote}
268 % |\nocopyright|
269 % \end{quote}
270 %
271 %
272 % \DescribeMacro{\titlesize} Print the document title (on the \textsc{Title} and
273 % \textsc{Abstract} pages) at a particular size. Default is |\Large|
274 % (17-point when using 12pt option). Although any \LaTeX{} type size name will be
275 % accepted, the only other non-default value likely to give satisfactory
276 % results is |\LARGE| (20-point when using 12pt option).
277 % \begin{quote}
278 % |\titlesize|\marg{size name}
279 % \end{quote}
280 %
281 %
282 % \DescribeMacro{\dedication} The argument's text is used as the dedication (in a |\center| environment) on the \textsc{Dedication} page. Default is not to have a dedication.
283 % \begin{quote}
284 % |\dedication|\marg{text}
285 % \end{quote}
286 %
287 %
288 % \DescribeMacro{\acknowledgments} The argument's text is used for the
289 % \textsc{Acknowledgments} page. Default is not to have an \textsc{Acknowledgments} page.
290 % \begin{quote}
291 % |\acknowledgments|\marg{text}
292 % \end{quote}
293 %
294 %
295 % \DescribeMacro{\abstract} The argument's text is used as the dissertation/thesis
296 % abstract. You must include an abstract. There is no limit on length.
297 % \begin{quote}
298 % |\abstract|\marg{text}
299 % \end{quote}
300 %
301 %
302 % \DescribeMacro{\makeintropages} Generate the introductory pages in the proper
303 % sequence. This command is placed just before your first chapter or section.
304 %
305 %
306 % \subsection{UMI Abstract Formatting}
307 % This is only used in the final preparation of the dissertation.
308 % The UMI abstract is submitted online as plain text. It no longer has a word
309 % limit or specific formatting. Therefore, the |UMIabstract| command is now
310 % deprecated.
311 %
312 %
313 % \DescribeMacro{\UMIabstract} The text in the argument is used as the UMI abstract.
314 % Otherwise, it defaults to using the text from |\abstract| (hence the square brackets).
315 % However, the UMI abstract can't exceed 350 words in length. The UMI abstract is separate
316 % from the dissertation abstract and should NOT be included as part of the submitted
317 % dissertation. Normally this command is called at the end of the main file,
318 % just before |\end{document}|. The command is ignored if |twoside| is enabled.
319 % \begin{quote}
320 % |\UMIabstract|[$\langle$\textit{text}$\rangle$] $\Leftarrow\,$\textbf{Note: square brackets}
321 % \end{quote}
322 %
323 %
324 % \subsection{Text Formatting Commands}
325 % These are commands you can use to customize the fonts and font sizes used in the headings. A command is also provided to produce single spacing in certain environments.
326 %
327 %
328 % \DescribeMacro{\singlespacing} Set the line spacing to single spacing. Usually |\singlespacing|
329 % is required with packages that modify or redefine particular environments (i.e., |thebibliography|).
330 % For example, if using the |natbib| package, use the command:
331 % \begin{quote}
332 % |\renewcommand{\bibfont}{\singlespacing}|
333 % \end{quote}
334 % The |\bibfont| command will make the text \emph{within} references single spaced while
335 % there will still be double spacing between each reference. This works even if the
336 % |chapterbib| package with the |sectionbib| option is used.
337 %
338 %
339 %
340 % \DescribeMacro{\chapternamesize} Set the size of the chapter name (i.e, `Chapter').
341 % Default size is |\Huge|.
342 %
343 %
344 % \DescribeMacro{\chapternamefont} Set the font of the chapter name (i.e, `Chapter').
345 % Default font is |\bfseries|.
346 %
347 %
348 % \DescribeMacro{\chaptertitlesize} Set the size of the chapter title.
349 % Default size is |\huge|.
350 %
351 %
352 % \DescribeMacro{\chaptertitlefont} Set the font of the chapter title.
353 % Default font is |\bfseries|.
354 %
355 %
356 % \DescribeMacro{\secfontsize} Set the font type and size of the section title.
357 % Default is |\bfseries\Large|.
358 %
359 %
360 % \DescribeMacro{\subsecfontsize} Set the font type and size of the subsection title.
361 % Default is |\bfseries\large|.
362 %
363 %
364 % \DescribeMacro{\ssubsecfontsize} Set the font type and size of the subsubsection title.
365 % Default is |\bfseries\normalsize|.
366 %
367 %
368 % \StopEventually{}
369 %
370 % \section{Implementation and Source Code Listing for the Class File}
371 % This section deals with the package source code. Please, do not read this unless you really need it or have some strange fascination with inspecting \LaTeX{} internals (like me). The comments are very short and they typically just tell you where you are. If you are experiencing any problems when testing this class, please send me an email and I will try to solve it.
372 %
373 % Also, please feel free to send me emails about feature requests, improvements to the code, or changes to the formatting requirements.
374 % \bigskip
375 %
376 % Require \texttt{ifthen} package to process options.
377 % \begin{macrocode}
378 %<*class>
379 \RequirePackage{ifthen}
380 % \end{macrocode}
381 %
382 % A command to keep track of the font size option chosen.
383 % \begin{macrocode}
384 \newcommand\@ptsize{}
385 % \end{macrocode}
386 %
387 % Define some booleans to control class options like draft mode, list of figures, etc.
388 % \begin{macrocode}
389 \newif\if@openright % Set to true if openright option set
390 \newif\if@draft % Set to true if draft option set
391 \@draftfalse
392 \newif\if@draftcls % Set to true if draft class option set
393 \@draftclsfalse
394 \newif\if@figures
395 \@figurestrue % Make List of Figures
396 \newif\if@tables
397 \@tablestrue % Make List of Tables
398 % \end{macrocode}
399 %
400 % Some booleans to keep track of where we are in the document processing.
401 % \begin{macrocode}
402 \newif\if@prelimpages % Set to false after producing preliminary pages
403 \@prelimpagestrue
404 % \end{macrocode}
405 % \subsection{Title Page Macros}
406 % Define the title page macros.
407 % \begin{macrocode}
408 \def\@title{NO TITLE!?!}
409 \def\@author{NO AUTHOR!?!}
410 \def\@authordegrees{NO DEGREES!?!}
411 \def\@memberone{ }\def\@membertwo{ }\def\@memberthree{ }\def\@memberfour{ }\def\@memberfive{ }
412 \def\@titlesize{\large}
413 \renewcommand{\title}[1]{\def\@title{#1}}
414 \renewcommand{\author}[1]{\def\@author{#1}}
415 \newcommand{\titlesize}[1]{\def\@titlesize{#1}}
416 \newcommand{\authordegrees}[1]{\def\@authordegrees{#1}}
417 \newcommand{\committee}[5]{\def\@memberone{#1}\def\@membertwo{#2}\def\@memberthree{#3}\def\@memberfour{#4}\def\@memberfive{#5}}
418 % \end{macrocode}
419 %
420 % The following commands set the official major and graduate program.
421 % \begin{macrocode}
422 \def\@officialmajor{NO OFFICIAL MAJOR!?!}
423 \newcommand{\officialmajor}[1]{\def\@officialmajor{#1}}
424 \def\@graduateprogram{NO GRADUATE PROGRAM!?!}
425 \newcommand{\graduateprogram}[1]{\def\@graduateprogram{#1}}
426 % \end{macrocode}
427 %
428 % The following commands will process the |MA|, |MS|, |ME|, |PhD|, or |DEngr|
429 % option. (The default is |PhD|.)
430 % \begin{macrocode}
431 \newcommand{\thesis}[1]
432 {\def\@thesisname{thesis}
433 \def\@Thesisname{Thesis}
434 \def\@degreename{#1}
435 }
436 \newcommand{\dissertation}[1]
437 {\def\@thesisname{dissertation}
438 \def\@Thesisname{Dissertation}
439 \def\@degreename{#1}
440 }
441 \dissertation{Doctor of Philosophy} % default
442 % \end{macrocode}
443 %
444 % The following commands set the year in which the degree will be
445 % awarded, as well as the year of copyright.
446 % \begin{macrocode}
447 \def\@degreeyear{\number\year} % default is current year
448 \def\@degreemonth{\ifcase\month\or
449 January\or February\or March\or April\or May\or June\or
450 July\or August\or September\or October\or November\or December\fi}
451 \def\@copyrightyear{\number\year} % default is current year
452 \newif\if@cyrset
453 \@cyrsetfalse
454 \newcommand{\degreeyear}[1]
455 {\def\@degreeyear{#1}\if@cyrset\else\def\@copyrightyear{#1}\fi}
456 \newcommand{\degreemonth}[1]{\def\@degreemonth{#1}}
457 \newcommand{\copyrightyear}[1]{\def\@copyrightyear{#1}\@cyrsettrue}
458 % \end{macrocode}
459 % \subsection{Option Declarations}
460 % Now, we declare the class options.
461 % \begin{macrocode}
462 \DeclareOption{PhD}{} % default -- nothing more to do
463 \DeclareOption{DEngr}{\dissertation{Doctor of Engineering}}
464 \DeclareOption{MA}{\thesis{Master of Arts}}
465 \DeclareOption{MS}{\thesis{Master of Science}}
466 \DeclareOption{ME}{\thesis{Master of Engineering}}
467 %
468 \DeclareOption{10pt}{\renewcommand\@ptsize{10}}
469 \DeclareOption{11pt}{\renewcommand\@ptsize{11}}
470 \DeclareOption{12pt}{\renewcommand\@ptsize{12}} % default size
471 \DeclareOption{13pt}{\renewcommand\@ptsize{13}}
472 %
473 \DeclareOption{nofigureslist}{\@figuresfalse}
474 \DeclareOption{notableslist}{\@tablesfalse}
475 \DeclareOption{openright}{\@openrighttrue}
476 \DeclareOption{openany}{\@openrightfalse}
477 % \end{macrocode}
478 %
479 % \subsubsection{Line Spacing Definitions}
480 % The following commands will process the |single| or |double| option.
481 % (The default is |double|.) This controls inter-line spacing.
482 % \begin{macrocode}
483 \def\@singlespacing{1.0}
484 \def\@doublespacing{1.5} % see LaTeX manual for explanation of value
485 \let\@spacing=\@doublespacing
486 \newcommand{\@titlespacing}{1.2} % Spacing to use in chapter and section titles
487 \DeclareOption{single}{\let\@spacing=\@singlespacing%
488 \let\@titlespacing=\@singlespacing}
489 \DeclareOption{double}{\let\@spacing=\@doublespacing}
490 % \end{macrocode}
491 %
492 % The following definitions provide a way to get single spacing in some types
493 % of environments like |thebibliography|. Just resetting |\baselinestretch|
494 % does not seem to work with some of the packages like |natbib|. The code is
495 % taken from |setspace.sty| version 6.7 by Geoffrey Tobin.
496 %
497 % Line spacing command
498 % \begin{macrocode}
499 \newcommand{\setstretch}[1]{%
500 \def\baselinestretch{#1}%
501 \@currsize}%
502 % \end{macrocode}
503 %
504 % Allow users to modify the |\SetSinglespace| value to something slightly
505 % more or less than 1 to help with unusual font heights (when compared to
506 % their point size).
507 %
508 % \begin{macrocode}
509 \newcommand{\SetSinglespace}[1]{%
510 \def\setspace@singlespace{#1}}
511 \SetSinglespace{1}
512 % \end{macrocode}
513 %
514 % This is the command to call when you want single spacing in a particular
515 % environment.
516 %
517 % \begin{macrocode}
518 \newcommand{\singlespacing}{%
519 \setstretch {\setspace@singlespace}% normally 1
520 \vskip \baselineskip} % Correction for coming into |\singlespacing|
521 % \end{macrocode}
522 %
523 % Modification of the \LaTeX{} command |\@setsize| The meanings of the
524 % arguments to |\@setsize| appear to be (whatever these may signify):
525 % current size; font baselineskip; ignored (!); and font size.
526 %
527 % \begin{macrocode}
528 \def\@setsize#1#2#3#4{%
529 \@nomath#1%
530 \let\@currsize#1%
531 \baselineskip #2%
532 \baselineskip \baselinestretch\baselineskip
533 \parskip \baselinestretch\parskip
534 \setbox\strutbox \hbox{%
535 \vrule height.7\baselineskip
536 depth.3\baselineskip
537 width\z@}%
538 \skip\footins \baselinestretch\skip\footins
539 \normalbaselineskip\baselineskip#3#4}
540 % \end{macrocode}
541 %
542 % \subsubsection{Mark Overfull hboxes}
543 % Overfull hboxes are marked.
544 % \begin{macrocode}
545 \DeclareOption{draft}{\setlength{\overfullrule}{5pt}\@drafttrue\@draftclstrue}
546 \DeclareOption{draftcls}{\setlength{\overfullrule}{5pt}\@draftfalse\@draftclstrue}
547 \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
548 \DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
549 \DeclareOption{final}{\setlength{\overfullrule}{0pt}\@draftfalse\@draftclsfalse}
550 % \end{macrocode}
551 %
552 % Provide Chapter and Section title font and size control
553 % \begin{macrocode}
554 \def\@chapternamesize{\Huge}
555 \newcommand{\chapternamesize}[1]{\def\@chapternamesize{#1}}
556 \def\@chapternamefont{\bfseries}
557 \newcommand{\chapternamefont}[1]{\def\@chapternamefont{#1}}
558 \def\@chaptertitlesize{\huge}
559 \newcommand{\chaptertitlesize}[1]{\def\@chaptertitlesize{#1}}
560 \def\@chaptertitlefont{\bfseries}
561 \newcommand{\chaptertitlefont}[1]{\def\@chaptertitlefont{#1}}
562 \def\@secfontsize{\bfseries\Large}
563 \newcommand{\secfontsize}[1]{\def\@secfontsize{#1}}
564 \def\@subsecfontsize{\bfseries\large}
565 \newcommand{\subsecfontsize}[1]{\def\@subsecfontsize{#1}}
566 \def\@ssubsecfontsize{\bfseries\normalsize}
567 \newcommand{\ssubsecfontsize}[1]{\def\@ssubsecfontsize{#1}}
568 % \end{macrocode}
569 %
570 % Provide way to make hyphenating titles optional.
571 % \begin{macrocode}
572 \newboolean{hyphenatetitles}
573 \setboolean{hyphenatetitles}{true}
574 \DeclareOption{nohyphenatetitles}{\setboolean{hyphenatetitles}{false}}
575 \DeclareOption{hyphenatetitles}{\setboolean{hyphenatetitles}{true}}
576 % \end{macrocode}
577 %
578 % Set default options and then execute the options.
579 % \begin{macrocode}
580 \ExecuteOptions{double,12pt,oneside,final,openany}
581 \ProcessOptions\relax
582 % \end{macrocode}
583 %
584 % Redefine how |\cleardoublepage| works so that it behaves differently when the |twoside|
585 % option is chosen.
586 % \begin{macrocode}
587 \renewcommand{\cleardoublepage}{\clearpage%
588 \if@twoside
589 \ifodd\c@page
590 \else
591 \null\thispagestyle{empty}\newpage% make a blank page
592 \fi
593 \fi}
594 % \end{macrocode}
595 %
596 % \subsection{Page Layout}
597 % UCD format requires only letter paper size be used.
598 % \begin{macrocode}
599 \setlength{\paperheight}{11in}
600 \setlength{\paperwidth}{8.5in}
601 % \end{macrocode}
602 %
603 % All margin dimensions measured from a point one inch from top and side
604 % of page (standard \TeX{}). A little extra (0.1 in) is added on each side
605 % to ensure that the text will fall within the thesis margin limits
606 % even if photo-copying enlarges or misaligns it slightly.
607 %
608 % According to the UCD format, margins are to be 1 inch on the
609 % top, right, left, and bottom with the page numbers allowed
610 % to be outside these margins.
611 %
612 % \subsubsection{Side Margins}
613 % \begin{macrocode}
614 \if@twoside % twoside is non-conforming to UC format
615 \setlength{\oddsidemargin}{0.1in} % these are added to
616 \setlength{\evensidemargin}{0.1in} % LaTeX's 1 inch left margin
617 \else % Note that \oddsidemargin = \evensidemargin
618 \setlength{\oddsidemargin}{0.1in} % these are added to LaTeX's
619 \setlength{\evensidemargin}{0.1in} % 1 inch left margin.
620 \fi
621 % \end{macrocode}
622 %
623 % \subsubsection{Vertical Spacing}
624 % Top of page:
625 % |\topmargin| is the nominal distance from \LaTeX{}'s 1 inch top margin to the top of the box containing the running head. |\headheight| is the height of the box containing the running head. |\headsep| is the space between the running head and text.
626 %
627 % \begin{macrocode}
628 \setlength{\topmargin}{-0.6in}
629 \setlength{\headheight}{0.2in}
630 \setlength{\headsep}{0.5in}
631 % \end{macrocode}
632 %
633 % Bottom of page:
634 % |\footskip| is the distance from baseline of box containing foot to baseline of last line of text.
635 % \begin{macrocode}
636 \setlength{\footskip}{0.6in}
637 % \end{macrocode}
638 %
639 % \subsubsection{Dimensions of Text}
640 % |\textheight| is the height of the text (including footnotes and figures, excluding running header and footer). |\textwidth| is the width of text line.
641 % \begin{macrocode}
642 \setlength{\textheight}{8.8in}
643 \setlength{\textwidth}{6.3in}
644 % \end{macrocode}
645 %
646 % A |\raggedbottom| command causes `ragged bottom' pages: pages set to
647 % natural height instead of being stretched to exactly |\textheight|.
648 %
649 % \subsubsection{Input Font Size Info}
650 % The appropriate |ucdthesis1x.clo| file defines things that depend on the type size.
651 % In order to meet the UCD requirements, font size must be between 10
652 % and 13 points.
653 %
654 % \begin{macrocode}
655 \input{ucdthesis\@ptsize.clo} % \@ptsize is determined by the class option
656 % \end{macrocode}
657 %
658 % \subsection{Lists}
659 %
660 % \subsubsection{Enumerate}
661 % Enumeration is done with four counters: |enumi|, |enumii|, |enumiii|
662 % and |enumiv|, where |enumN| controls the numbering of the $N$th level
663 % enumeration. The label is generated by the commands |\labelenumi|
664 % ... |\labelenumiv|. The expansion of |\p@enumN\theenumN| defines the
665 % output of a |\ref| command.
666 %
667 % \begin{macrocode}
668 \renewcommand\theenumi{\@arabic\c@enumi}
669 \renewcommand\theenumii{\@alph\c@enumii}
670 \renewcommand\theenumiii{\@roman\c@enumiii}
671 \renewcommand\theenumiv{\@Alph\c@enumiv}
672 \newcommand\labelenumi{\theenumi.}
673 \newcommand\labelenumii{(\theenumii)}
674 \newcommand\labelenumiii{\theenumiii.}
675 \newcommand\labelenumiv{\theenumiv.}
676 \renewcommand\p@enumii{\theenumi}
677 \renewcommand\p@enumiii{\theenumi(\theenumii)}
678 \renewcommand\p@enumiv{\p@enumiii\theenumiii}
679 % \end{macrocode}
680 %
681 % \subsubsection{Itemize}
682 % Itemization is controlled by four commands: |\labelitemi|, |\labelitemii|,
683 % |\labelitemiii|, and |\labelitemiv|, which define the labels of the various
684 % itemization levels.
685 %
686 % \begin{macrocode}
687 \newcommand\labelitemi{\textbullet}
688 \newcommand\labelitemii{\normalfont\bfseries \textendash}
689 \newcommand\labelitemiii{\textasteriskcentered}
690 \newcommand\labelitemiv{\textperiodcentered}
691 % \end{macrocode}
692 %
693 % \subsubsection{Verse}
694 % The verse environment is defined by making clever use of the
695 % list environment's parameters. The user types |\\| to end a line.
696 % This is implemented by |\let'in| |\\| equal |\@centercr|.
697 %
698 % \begin{macrocode}
699 \newenvironment{verse}
700 {\let\\\@centercr
701 \list{}{\itemsep \z@
702 \itemindent -1.5em%
703 \listparindent\itemindent
704 \rightmargin \leftmargin
705 \advance\leftmargin 1.5em}%
706 \item\relax}
707 {\endlist}
708 % \end{macrocode}
709 %
710 % \subsubsection{Quotation}
711 % Fills lines and indents paragraph.
712 %
713 % \begin{macrocode}
714 \newenvironment{quotation}
715 {\list{}{\listparindent 1.5em%
716 \itemindent \listparindent
717 \rightmargin \leftmargin
718 \parsep \z@ \@plus\p@}%
719 \item\relax}
720 {\endlist}
721 % \end{macrocode}
722 %
723 % \subsubsection{Quote}
724 % Same as quotation except no paragraph indentation.
725 %
726 % \begin{macrocode}
727 \newenvironment{quote}
728 {\list{}{\rightmargin\leftmargin}%
729 \item\relax}
730 {\endlist}
731 % \end{macrocode}
732 %
733 % \subsubsection{Labels}
734 % To change the formatting of the label, you must redefine
735 % |\descriptionlabel|.
736 % \begin{macrocode}
737 \newenvironment{description}
738 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
739 \let\makelabel\descriptionlabel}}
740 {\endlist}
741 \newcommand*\descriptionlabel[1]{\hspace\labelsep
742 \normalfont\bfseries #1}
743 % \end{macrocode}
744 %
745 % \subsection{Other Environments}
746 % \subsubsection{Default Title Page}
747 % In the normal environments, the |titlepage| environment does nothing but
748 % start and end a page.
749 % \begin{macrocode}
750 \newenvironment{titlepage}
751 {%
752 \newpage
753 \thispagestyle{prelim}%
754 }%
755 {\newpage
756 \if@twoside\else
757 \fi
758 }
759 % \end{macrocode}
760 %
761 % \subsubsection{Array and Tabular}
762 % |\arraycolsep| is half the space between columns in an array environment. |\tabcolsep| is half the space between columns in a tabular environment. |\arrayrulewidth| is the width of rules in array and tabular environment. |\doublerulesep| is the space between adjacent rules in array or tabular environment.
763 % \begin{macrocode}
764 \setlength\arraycolsep{5\p@}
765 \setlength\tabcolsep{6\p@}
766 \setlength\arrayrulewidth{.4\p@}
767 \setlength\doublerulesep{2\p@}
768 % \end{macrocode}
769 %
770 % \subsubsection{Tabbing}
771 % |\tabbingsep| is the space used by the |\'| command (see \LaTeX{} manual).
772 % \begin{macrocode}
773 \setlength\tabbingsep{\labelsep}
774 % \end{macrocode}
775 %
776 % \subsubsection{Minipage}
777 % |\@minipagerestore| is called upon entry to a minipage environment to
778 % set up things that are to be handled differently inside a minipage
779 % environment. In the current styles, it does nothing.
780 % \begin{macrocode}
781 \skip\@mpfootins = \skip\footins
782 % \end{macrocode}
783 %
784 % \subsubsection{Framebox}
785 % |\fboxsep| is the space left between box and text by |\fbox| and |\framebox|. |\fboxrule| is the width of rules in box made by |\fbox| and |\framebox|.
786 % \begin{macrocode}
787 \setlength\fboxsep{3\p@}
788 \setlength\fboxrule{.4\p@}
789 % \end{macrocode}
790 %
791 % \subsection{Chapters and Sections}
792 % \subsubsection{Define Counters}
793 %
794 % |\newcounter|\marg{NEWCTR}[OLDCTR] Defines NEWCTR to be a counter, which is reset to zero when counter OLDCTR is stepped. Counter OLDCTR must already be defined.
795 % \begin{macrocode}
796 \newcounter {part}
797 \newcounter {chapter}
798 \newcounter {section}[chapter]
799 \newcounter {subsection}[section]
800 \newcounter {subsubsection}[subsection]
801 \newcounter {paragraph}[subsubsection]
802 \newcounter {subparagraph}[paragraph]
803 % \end{macrocode}
804 %
805 % For any counter CTR, |\theCTR| is a macro that defines the printed version of counter CTR. It is defined in terms of the following macros:
806 %
807 % |\arabic|\marg{COUNTER} : The value of COUNTER printed as an arabic numeral.
808 % |\roman|\marg{COUNTER} : Its value printed as a lower-case roman numeral.
809 % |\Roman|\marg{COUNTER} : Its value printed as an upper-case roman numeral.
810 % |\alph|\marg{COUNTER} : Value of COUNTER printed as a lower-case letter: 1 = a, 2 = b, etc.
811 % |\Alph|\marg{COUNTER} : Value of COUNTER printed as an upper-case letter: 1 = A, 2 = B, etc.
812 %
813 % \begin{macrocode}
814 \renewcommand \thepart {\@Roman\c@part}
815 \renewcommand \thechapter {\@arabic\c@chapter}
816 \renewcommand \thesection {\thechapter.\@arabic\c@section}
817 \renewcommand\thesubsection {\thesection.\@arabic\c@subsection}
818 \renewcommand\thesubsubsection{\thesubsection .\@arabic\c@subsubsection}
819 \renewcommand\theparagraph {\thesubsubsection.\@arabic\c@paragraph}
820 \renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
821 % \end{macrocode}
822 %
823 % \subsubsection{Chapter Name}
824 % |\@chapapp| is initially defined to be `CHAPTER'. The |\appendix| command
825 % redefines it to be `APPENDIX'.
826 % \begin{macrocode}
827 \newcommand\@chapapp{\chaptername}
828 % \end{macrocode}
829 %
830 % |\secdef|\marg{UNSTARCMDS}\marg{STARCMDS}
831 %
832 % When defining a |\chapter| or |\section| command without using |\@startsection|, you can use |\secdef| as follows:
833 % \begin{quote}
834 % |\def\chapter|{ ... |\secdef| |\CMDA| |\CMDB| }\\
835 % |\def\CMDA|[\# 1]\# 2\marg{ ... } Command to define |\chapter|[...]\marg{...}\\
836 % |\def\CMDB|\# 1\marg{ ... } Command to define |\chapter*|\marg{...}
837 % \end{quote}
838 % \subsubsection{Part Macro}
839 % \begin{macrocode}
840 \newcommand\part{%
841 \if@openright
842 \cleardoublepage % Starts new page.
843 \else
844 \clearpage
845 \fi
846 \thispagestyle{thshead} % Page style of part page is 'thshead'
847 \@tempswafalse % @tempswa := false
848 \null\vfil % Add fil glue to center title
849 \bgroup \centering % BEGIN centering
850 \secdef\@part\@spart}
851 % \end{macrocode}
852 %
853 % \begin{macrocode}
854 \def\@part[#1]#2{\ifnum \c@secnumdepth >-2\relax % IF secnumdepth > -2
855 \refstepcounter{part}% % THEN step part counter
856 \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}% add toc line
857 \else % ELSE add unnumbered line
858 \addcontentsline{toc}{part}{#1}%
859 \fi % End if
860 \markboth{}{}
861 \ifnum \c@secnumdepth >-2\relax % IF secnumdepth > -2
862 \normalsize\bfseries Part\thepart % THEN Print 'Part' and number
863 \par % in \normalsize bold.
864 \vskip 20\p@ % Add space before title.
865 \fi
866 \huge\bfseries #2\par\@endpart} % Print Title in \huge bold.
867 % \end{macrocode}
868 % Print title in |\normalsize| boldface
869 % \begin{macrocode}
870 \def\@spart#1{\normalsize\bfseries #1\par\@endpart} %
871 % \end{macrocode}
872 %
873 % |\@endpart| finishes the part page
874 % \begin{macrocode}
875 \def\@endpart{\vfil\newpage % End page with 1fil glue.
876 \if@twoside
877 \if@openright
878 \null
879 \thispagestyle{empty}%
880 \newpage
881 \fi
882 \fi
883 \if@tempswa % IF @tempswa = true
884 \twocolumn % THEN \twocolumn
885 \fi}
886 % \end{macrocode}
887 %
888 % \subsubsection{Chapter Macro}
889 % \begin{macrocode}
890 \newcommand\chapter{%
891 \if@openright\cleardoublepage\else\clearpage\fi % Starts new page.
892 \if@prelimpages % Are we on preliminary pages?
893 \thispagestyle{prelim} % if yes, format for preliminary pages
894 \else
895 \thispagestyle{thshead} % Otherwise it is the main text
896 \fi
897 \global\@topnum\z@ % Prevents figures at top of first page in chapter.
898 \@afterindentfalse % Suppress indent in first paragraph,
899 \secdef\@chapter\@schapter} % change to \@afterindenttrue to indent.
900 % \end{macrocode}
901 %
902 % \begin{macrocode}
903 \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
904 \refstepcounter{chapter}%
905 \typeout{\@chapapp\space\thechapter.}%
906 \addcontentsline{toc}{chapter}%
907 {\protect\numberline{\thechapter}#1}%
908 \else
909 \addcontentsline{toc}{chapter}{#1}%
910 \fi
911 \chaptermark{#1}%
912 \addtocontents{lof}{\protect\addvspace{10\p@}}% Adds between-chapter space
913 \addtocontents{lot}{\protect\addvspace{10\p@}}% to lists of figs & tables.
914 \@makechapterhead{#2}%
915 \@afterheading} % Routine called after chapter and section heading.
916 % \end{macrocode}
917 %
918 % |\@makechapterhead|\marg{TEXT} Makes the heading for the |\chapter| command.
919 % \begin{macrocode}
920 \def\@makechapterhead#1{%
921 \vspace*{50\p@}%
922 {\renewcommand\baselinestretch{\@titlespacing}% set spacing for chapter title
923 \parindent \z@ \raggedright \normalfont
924 \ifnum \c@secnumdepth >\m@ne
925 \@chapternamefont\@chapternamesize \@chapapp\space \thechapter
926 \par\nobreak
927 \vskip 20\p@
928 \fi
929 \interlinepenalty\@M
930 \@chaptertitlefont\@chaptertitlesize #1\par\nobreak
931 \vskip 40\p@
932 }\renewcommand\baselinestretch{\@spacing}\@normalsize}% return to \@spacing
933 % \end{macrocode}
934 %
935 % |\@makeschapterhead|\marg{TEXT} Makes the heading for the |\chapter*| command.
936 % \begin{macrocode}
937 \def\@schapter#1{\@makeschapterhead{#1}\@afterheading}
938 % \end{macrocode}
939 %
940 % \begin{macrocode}
941 \def\@makeschapterhead#1{% % Heading for \chapter* command
942 \vspace*{-30\p@}% % Space at top of page.
943 {\parindent \z@ \raggedright
944 \normalfont
945 \interlinepenalty\@M
946 \centering \large \scshape% % Title font.
947 #1\par\nobreak % Title and TeX penalty to prevent page break.
948 \vskip 20\p@ % Space between title and text.
949 }}
950 % \end{macrocode}
951 % \subsubsection{Sectioning Macros}
952 % |\@startsection|\marg{NAME}\marg{LEVEL}\marg{INDENT}\marg{BEFORESKIP}\\
953 % \marg{AFTERSKIP}\marg{STYLE} optional * [ALTHEADING]\marg{HEADING}
954 %
955 % Generic command to start a section.\\
956 % NAME : e.g., 'subsection'\\
957 % LEVEL : a number, denoting depth of section -- e.g., chapter=1,\\
958 % section = 2, etc. A section number will be printed if\\
959 % and only if LEVEL $\leq$ the value of the secnumdepth\\
960 % counter.\\
961 % INDENT : Indentation of heading from left margin
962 % BEFORESKIP : Absolute value = skip to leave above the heading.
963 % If negative, then paragraph indent of text following
964 % heading is suppressed.
965 % AFTERSKIP : if positive, then skip to leave below heading,
966 % else - skip to leave to right of run-in heading.
967 % STYLE : commands to set style
968 % If '*' missing, then increment the counter. If it is present, then
969 % there should be no [ALTHEADING] argument. A sectioning command
970 % is normally defined to \@startsection + its first six arguments.
971 % Note: for ?SKIP, negation applies to all components of a skip -- the
972 % negative of (10pt plus 5pt minus 2.5pt) is (slightly surprisingly)
973 % (-10pt plus -5pt minus -2.5pt)
974 % \begin{macrocode}
975 \ifthenelse{\boolean{hyphenatetitles}}{%
976 \newcommand{\TitleHyphenation}{}%
977 }{%
978 \newcommand{\TitleHyphenation}{%
979 \pretolerance=10000%
980 \hyphenpenalty=200%
981 \raggedright}%
982 }
983 \newcommand\section{\@startsection {section}{1}{\z@}%
984 {-2.0ex \@plus -.5ex \@minus -.2ex}%
985 {.75ex \@plus.1ex}%
986 {\normalfont\renewcommand\baselinestretch{\@titlespacing}%
987 \@secfontsize\TitleHyphenation}}
988 \newcommand\subsection{\@startsection{subsection}{2}{\z@}%
989 {-1.5ex\@plus -.5ex \@minus -.2ex}%
990 {.5ex \@plus .1ex}%
991 {\normalfont\renewcommand\baselinestretch{\@titlespacing}%
992 \@subsecfontsize\TitleHyphenation}}
993 \newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
994 {-1.0ex\@plus -.3ex \@minus -.1ex}%
995 {.5ex \@plus .1ex}%
996 {\normalfont\renewcommand\baselinestretch{\@titlespacing}%
997 \@ssubsecfontsize\TitleHyphenation}}
998 % \end{macrocode}
999 %
1000 % Because |\{sub,}paragraph| are in-line, we allow hyphenation always.
1001 % \begin{macrocode}
1002 \newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
1003 {.75ex \@plus.2ex \@minus.1ex}%
1004 {-1em}%
1005 {\normalfont\normalsize\bfseries}}
1006 \newcommand\subparagraph{\@startsection{subparagraph}{4}{\parindent}%
1007 {.75ex \@plus.2ex \@minus .1ex}%
1008 {-1em}%
1009 {\normalfont\normalsize\bfseries}}
1010 % \end{macrocode}
1011 %
1012 % Default initializations of |\...mark| commands. (See below for their
1013 % use in defining page styles).
1014 % \begin{macrocode}
1015 \newcommand*\chaptermark[1]{}
1016 % \end{macrocode}
1017 %
1018 % The value of the counter |secnumdepth| gives the depth of the
1019 % highest-level sectioning command that is to produce section numbers.
1020 % \begin{macrocode}
1021 \setcounter{secnumdepth}{3}
1022 % \end{macrocode}
1023 %
1024 % \subsubsection{Appendix}
1025 % The |\appendix| command must do the following:\\
1026 % -- reset the chapter counter to zero\\
1027 % -- set |\@chapapp| to Appendix (for messages)\\
1028 % -- redefine the chapter counter to produce appendix numbers\\
1029 % -- reset the section counter to zero\\
1030 % -- redefine the |\chapter| command if appendix titles and headings are\\
1031 % to look different from chapter titles and headings.
1032 % \begin{macrocode}
1033 \newcommand\appendix{\par%
1034 \setcounter{chapter}{0}%
1035 \setcounter{section}{0}%
1036 \gdef\@chapapp{\appendixname}%
1037 \gdef\thechapter{\@Alph\c@chapter}}
1038 % \end{macrocode}
1039 %
1040 % \subsection{Default List Parameters}
1041 % The following commands are used to set the default values for the list
1042 % environment's parameters. See the \LaTeX{} manual for an explanation of
1043 % the meanings of the parameters. Defaults for the list environment are
1044 % set as follows. First, |\rightmargin|, |\listparindent| and |\itemindent|
1045 % are set to 0pt. Then, for a $K$th level list, the command |\@list|$K$ is
1046 % called, where $K$ denotes |i|, |ii|, ... , |vi|. (i.e., |\@listiii| is
1047 % called for a third-level list.) By convention, |\@listK| should set
1048 % |\leftmargin| to |\leftmarginK|.
1049 %
1050 % For efficiency, level-one list's values are defined at top level, and
1051 % |\@listi| is defined to set only |\leftmargin|.
1052 % \begin{macrocode}
1053 \setlength\leftmargini {2.5em}
1054 \leftmargin \leftmargini
1055 \setlength\leftmarginii {2.2em} % > \labelsep + width of `(m)'
1056 \setlength\leftmarginiii {1.87em} % > \labelsep + width of `vii.'
1057 \setlength\leftmarginiv {1.7em} % > \labelsep + width of `M.'
1058 \setlength\leftmarginv {1em}
1059 \setlength\leftmarginvi {1em}
1060 \setlength \labelsep {.5em}
1061 \setlength \labelwidth{\leftmargini}
1062 \addtolength\labelwidth{-\labelsep}
1063 \parsep 5pt plus 2.5pt minus 1pt
1064 \def\@listI{\leftmargin\leftmargini}
1065 \let\@listi\@listI
1066 \def\@listii{\leftmargin\leftmarginii
1067 \labelwidth\leftmarginii\advance\labelwidth-\labelsep
1068 \topsep 5pt plus 2.5pt minus 1pt
1069 \parsep 2.5pt plus 1pt minus 1pt
1070 \itemsep \parsep}
1071 \def\@listiii{\leftmargin\leftmarginiii
1072 \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
1073 \topsep 2.5pt plus 1pt minus 1pt
1074 \parsep \z@ \partopsep 1pt plus 0pt minus 1pt
1075 \itemsep \topsep}
1076 \def\@listiv{\leftmargin\leftmarginiv
1077 \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
1078 \def\@listv{\leftmargin\leftmarginv
1079 \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
1080 \def\@listvi{\leftmargin\leftmarginvi
1081 \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
1082 % \end{macrocode}
1083 %
1084 % \subsection{Table of Contents, etc.}
1085 % A |\subsection| command writes a
1086 % \begin{quote}
1087 % |\contentsline|\marg{subsection}\marg{TITLE}\marg{PAGE}
1088 % \end{quote}
1089 % command on the |.toc| file, where TITLE contains the contents of the
1090 % entry and PAGE is the page number. If subsections are being numbered,
1091 % then TITLE will be of the form
1092 % \begin{quote}
1093 % |\numberline|\marg{NUM}\marg{HEADING}
1094 % \end{quote}
1095 % where NUM is the number produced by |\thesubsection|. Other sectioning
1096 % commands work similarly.
1097 %
1098 % A |\caption| command in a |figure| environment writes
1099 % \begin{quote}
1100 % |\contentsline|\marg{figure}\marg{|\numberline|\marg{NUM}\marg{CAPTION}}\marg{PAGE}
1101 % \end{quote}
1102 % on the |.lof| file, where NUM is the number produced by |\thefigure| and
1103 % CAPTION is the figure caption. It works similarly for a 'table' environment.
1104 %
1105 % The command |\contentsline{NAME}| expands to |\l@NAME|. So, to specify
1106 % the Table of Contents, we must define |\l@chapter|, |\l@section|,
1107 % |\l@subsection|, ...; to specify the list of figures, we must define
1108 % |\l@figure|; and so on. Most of these can be defined with the
1109 % |\@dottedtocline| command, which works as follows.
1110 %
1111 % \begin{quote}
1112 % |\@dottedtocline|\marg{LEVEL}\marg{INDENT}\marg{NUMWIDTH}\\
1113 % \marg{TITLE}\marg{PAGE}
1114 % \end{quote}
1115 % LEVEL : An entry is produced only if LEVEL $\leq$ value of
1116 % |tocdepth| counter. Note, |\chapter| is level 0, |\section|
1117 % is level 1, etc.
1118 % INDENT : The indentation from the outer left margin of the start of
1119 % the contents line.
1120 % NUMWIDTH : The width of a box in which the section number is to go,
1121 % if TITLE includes a |\numberline| command.
1122 %
1123 % This command uses the following three parameters, which are set
1124 % with a |\def| (so em's can be used to make them depend upon the font).
1125 % |\@pnumwidth| : The width of a box in which the page number is put.
1126 % |\@tocrmarg| : The right margin for multiple line entries. One
1127 % wants |\@tocrmarg| $\geq$ |\@pnumwidth|
1128 % |\@dotsep| : Separation between dots, in mu units. Should be |\def'd| to
1129 % a number like 2 or 1.7
1130 % \begin{macrocode}
1131 \newcommand\@pnumwidth{1.75em}
1132 \newcommand\@tocrmarg{2.75em}
1133 \newcommand\@dotsep{4.5}
1134 \setcounter{tocdepth}{2}
1135 % \end{macrocode}
1136 %
1137 % \subsubsection{Table of Contents}
1138 % \begin{macrocode}
1139 \newcommand\tableofcontents{%
1140 \chapter*{\contentsname
1141 \@mkboth{%
1142 \contentsname}{\contentsname}}%
1143 \renewcommand\baselinestretch{\@spacing}\@normalsize\@starttoc{toc}%
1144 }
1145 \newcommand*\l@part[2]{%
1146 \ifnum \c@tocdepth >-2\relax
1147 \addpenalty{-\@highpenalty}%
1148 \addvspace{2.25em \@plus\p@}%
1149 \setlength\@tempdima{3em}%
1150 \begingroup
1151 \parindent \z@ \rightskip \@pnumwidth
1152 \parfillskip -\@pnumwidth
1153 {\leavevmode
1154 \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
1155 \nobreak
1156 \global\@nobreaktrue
1157 \everypar{\global\@nobreakfalse\everypar{}}%
1158 \endgroup
1159 \fi}
1160 % \end{macrocode}
1161 %
1162 % \begin{macrocode}
1163 \newcommand*\l@chapter[2]{%
1164 \ifnum \c@tocdepth >\m@ne
1165 \addpenalty{-\@highpenalty}%
1166 \vskip 1.0em \@plus\p@
1167 \setlength\@tempdima{1.5em}%
1168 \begingroup
1169 \parindent \z@ \rightskip \@pnumwidth
1170 \parfillskip -\@pnumwidth
1171 \leavevmode \bfseries
1172 \advance\leftskip\@tempdima
1173 \hskip -\leftskip
1174 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
1175 \penalty\@highpenalty
1176 \endgroup
1177 \fi}
1178 \newcommand*\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
1179 \newcommand*\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
1180 \newcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
1181 \newcommand*\l@paragraph{\@dottedtocline{4}{10em}{5em}}
1182 \newcommand*\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
1183 % \end{macrocode}
1184 %
1185 % \subsubsection{List of Figures}
1186 % \begin{macrocode}
1187 \newcommand\listoffigures{%
1188 \if@figures\chapter*{\listfigurename}%
1189 \@mkboth{\listfigurename}%
1190 {\listfigurename}%
1191 \addcontentsline{toc}{section}{\listfigurename}%
1192 \@starttoc{lof}%
1193 \fi}
1194 \newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
1195 % \end{macrocode}
1196 %
1197 % \subsubsection{List of Tables}
1198 % \begin{macrocode}
1199 \newcommand\listoftables{%
1200 \if@tables\chapter*{\listtablename}%
1201 \@mkboth{%
1202 \listtablename}%
1203 {\listtablename}%
1204 \addcontentsline{toc}{section}{\listtablename}%
1205 \@starttoc{lot}%
1206 \fi}
1207 \let\l@table\l@figure
1208 % \end{macrocode}
1209 %
1210 % \subsubsection{Bibliography}
1211 % The |thebibliography| environment executes the following commands:
1212 %
1213 % |\def\newblock{\hskip .11em plus .33em minus -.07em}| --
1214 % Defines the `closed' format, where the blocks (major units of
1215 % information) of an entry run together.
1216 %
1217 % |\sloppy| -- Used because it's rather hard to do line breaks in
1218 % bibliographies,
1219 %
1220 %
1221 %% \begin{macrocode}
1222 \newdimen\bibindent
1223 \setlength\bibindent{1.5em}
1224 \newenvironment{thebibliography}[1]
1225 {\chapter*{\bibname}%
1226 \@mkboth{\bibname}{\bibname}%
1227 \renewcommand\baselinestretch{1}%
1228 \list{\@biblabel{\@arabic\c@enumiv}}%
1229 {\settowidth\labelwidth{\@biblabel{#1}}%
1230 \leftmargin\labelwidth
1231 \advance\leftmargin\labelsep
1232 \@openbib@code
1233 \usecounter{enumiv}%
1234 \let\p@enumiv\@empty
1235 \renewcommand\theenumiv{\@arabic\c@enumiv}
1236 \renewcommand\baselinestretch{\@singlespacing}\@normalsize % enforce single spacing for each entry
1237 }%
1238 \sloppy
1239 \clubpenalty4000
1240 \@clubpenalty \clubpenalty
1241 \widowpenalty4000%
1242 \sfcode`\.\@m}
1243 {\def\@noitemerr
1244 {\@latex@warning{Empty `thebibliography' environment}}%
1245 \renewcommand\baselinestretch{\@spacing}\@normalsize % return to original line spacing
1246 \endlist}
1247 \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
1248 \let\@openbib@code\@empty
1249 % \end{macrocode}
1250 %
1251 % |\def\@biblabel#1{[#1]\hfill}| Produces the label for a |\bibitem|[...] command.
1252 % |\def\@cite#1{[#1]}| Produces the output of the |\cite| command.
1253 %
1254 % \subsubsection{The Index}
1255 % THE THEINDEX ENVIRONMENT
1256 % Produces double column format, with each paragraph a separate entry.
1257 % The user commands |\item|, |\subitem| and |\subsubitem| are used to
1258 % produce the entries, and |\indexspace| adds an extra vertical space
1259 % that's the right size to put above the first entry with a new letter
1260 % of the alphabet.
1261 % \begin{macrocode}
1262 \newif\if@restonecol % used to restore one-column format after index
1263 %(two column not used outside the index environment)
1264 \newenvironment{theindex}
1265 {\@restonecoltrue
1266 \twocolumn[\@makeschapterhead{\indexname}]%
1267 \@mkboth{\indexname}%
1268 {\indexname}%
1269 \thispagestyle{thshead}\parindent\z@
1270 \parskip\z@ \@plus .3\p@\relax
1271 \columnseprule \z@
1272 \columnsep 35\p@
1273 \let\item\@idxitem}
1274 {\if@restonecol\onecolumn\else\clearpage\fi}
1275 \newcommand\@idxitem{\par\hangindent 40\p@}
1276 \newcommand\subitem{\@idxitem \hspace*{20\p@}}
1277 \newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
1278 \newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
1279 % \end{macrocode}
1280 %
1281 % \subsubsection{Footnotes}
1282 % |\footnoterule| is a macro to draw the rule separating the footnotes from
1283 % the text. It should take zero vertical space, so it needs a negative
1284 % skip to compensate for any positive space taken by the rule. (See
1285 % |plain.tex|.)
1286 % \begin{macrocode}
1287 \renewcommand\footnoterule{%
1288 \kern-3\p@
1289 \hrule\@width.4\columnwidth
1290 \kern2.6\p@}
1291 \@addtoreset{footnote}{chapter} % Numbers footnotes within chapters
1292 % \end{macrocode}
1293 %
1294 % |\@makefntext|\marg{NOTE} :
1295 % \begin{macrocode}
1296 \newcommand\@makefntext[1]{%
1297 \parindent 1em%
1298 \noindent
1299 \hb@[email protected]{\hss\@makefnmark}#1}
1300 % \end{macrocode}
1301 %
1302 % |\@makefnmark| : A macro to generate the footnote marker that goes
1303 % in the text. Default used.
1304 %
1305 % \subsection{Figures and Tables}
1306 % \subsubsection{Float Placement Parameters}
1307 % See \LaTeX{} manual for their definition.
1308 % \begin{macrocode}
1309 \setcounter{topnumber}{4}
1310 \renewcommand\topfraction{.9}
1311 \setcounter{bottomnumber}{4}
1312 \renewcommand\bottomfraction{.7}
1313 \setcounter{totalnumber}{10}
1314 \renewcommand\textfraction{.1}
1315 \renewcommand\floatpagefraction{.66}
1316 \setcounter{dbltopnumber}{4}
1317 \renewcommand\dbltopfraction{.66}
1318 \renewcommand\dblfloatpagefraction{.66}
1319 % \end{macrocode}
1320 %
1321 % |\@makecaption|\marg{NUMBER}\marg{TEXT} : Macro to make a figure or table caption.
1322 % NUMBER : Figure or table number--e.g., 'Figure 3.2'
1323 % TEXT : The caption text.
1324 % Macro should be called inside a |\parbox| of right width, with |\normalsize|.
1325 % \begin{macrocode}
1326 \newlength\abovecaptionskip
1327 \newlength\belowcaptionskip
1328 \setlength\abovecaptionskip{6\p@}
1329 \setlength\belowcaptionskip{0\p@}
1330 \long\def\@makecaption#1#2{%
1331 \renewcommand{\baselinestretch}{1.0}
1332 \small
1333 \vskip\abovecaptionskip
1334 \sbox\@tempboxa{#1. #2}%
1335 \ifdim \wd\@tempboxa >0.9\hsize%
1336 \hskip.05\hsize\parbox{0.9\hsize}{#1. #2}%\par
1337 \else
1338 \global \@minipagefalse
1339 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
1340 \fi
1341 \normalsize
1342 \vskip\belowcaptionskip
1343 }
1344 % \end{macrocode}
1345 %
1346 % To define a float of type TYPE (e.g., TYPE = figure), the document style
1347 % must define the following.
1348 %
1349 % |\fps@TYPE| : The default placement specifier for floats of type TYPE.
1350 %
1351 % |\ftype@TYPE| : The type number for floats of type TYPE. Each TYPE has
1352 % associated a unique positive TYPE NUMBER, which is a power
1353 % of two. E.g., figures might have type number 1, tables type
1354 % number 2, programs type number 4, etc.
1355 %
1356 % |\ext@TYPE| : The file extension indicating the file on which the
1357 % contents list for float type TYPE is stored. For example,
1358 % |\ext@figure| = 'lof'.
1359 %
1360 % |\fnum@TYPE| : A macro to generate the figure number for a caption.
1361 % For example, |\fnum@TYPE| == Figure |\thefigure|.
1362 %
1363 % The actual float-making environment commands--e.g., the commands
1364 % |\figure| and |\endfigure|--are defined in terms of the macros |\@float|
1365 % and |\end@float|, which are described below.
1366 %
1367 % |\@float|\marg{TYPE}\marg[PLACEMENT] : Macro to begin a float environment for a
1368 % single-column float of type TYPE with PLACEMENT as the placement
1369 % specifier. The default value of PLACEMENT is defined by |\fps@TYPE|.
1370 % The environment is ended by |\end@float|.
1371 % E.g., |\figure == \@float{figure}|, |\endfigure == \end@float|.
1372 %
1373 % \subsubsection{Figure}
1374 % \begin{macrocode}
1375 \newcounter{figure}[chapter]
1376 \renewcommand \thefigure
1377 {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@figure}
1378 \def\fps@figure{tbp}
1379 \def\ftype@figure{1}
1380 \def\ext@figure{lof}
1381 \def\fnum@figure{%
1382 \figurename\nobreakspace\thefigure}% Text with caption figure number
1383 \newenvironment{figure}
1384 {\@float{figure}}
1385 {\end@float}
1386 \newenvironment{figure*}
1387 {\@dblfloat{figure}}
1388 {\end@dblfloat}
1389 % \end{macrocode}
1390 %
1391 % \subsubsection{Table}
1392 % \begin{macrocode}
1393 \newcounter{table}[chapter]
1394 \renewcommand \thetable
1395 {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@table}
1396 \def\fps@table{tbp}
1397 \def\ftype@table{2}
1398 \def\ext@table{lot}
1399 \def\fnum@table{\tablename\nobreakspace\thetable}
1400 \newenvironment{table}
1401 {\@float{table}}
1402 {\end@float}
1403 \newenvironment{table*}
1404 {\@dblfloat{table}}
1405 {\end@dblfloat}
1406 % \end{macrocode}
1407 %
1408 % \subsection{Page Styles}
1409 % The page style 'foo' is defined by defining the command |\ps@foo|. This
1410 % command should make only local definitions. There should be no stray
1411 % spaces in the definition, since they could lead to mysterious extra
1412 % spaces in the output.
1413 %
1414 % The |\ps@...| command defines the macros |\@oddhead|, |\@oddfoot|,
1415 % |\@evenhead|, and |\@evenfoot| to define the running heads and
1416 % feet---e.g., |\@oddhead| is the macro to produce the contents of the
1417 % heading box for odd-numbered pages. It is called inside an |\hbox| of
1418 % width |\textwidth|.
1419 %
1420 % To make headings determined by the sectioning commands, the page style
1421 % defines the commands |\chaptermark|, |\sectionmark|, ... , where
1422 % |\chaptermark|\marg{TEXT} is called by |\chapter| to set a mark, and so on.
1423 % The |\...mark| commands and the |\...head| macros are defined with the
1424 % help of the following macros. (All the |\...mark| commands should be
1425 % initialized to no-ops.)
1426 %
1427 % MARKING CONVENTIONS:
1428 % \LaTeX{} extends \TeX{}'s |\mark| facility by producing two kinds of marks
1429 % a 'left' and a 'right' mark, using the following commands:
1430 % |\markboth|\marg{LEFT}\marg{RIGHT} : Adds both marks.
1431 % |\markright|\marg{RIGHT} : Adds a 'right' mark.
1432 % |\leftmark| : Used in the |\@oddhead|, |\@oddfoot|, |\@evenhead| or |\@evenfoot|
1433 % macro, gets the current 'left' mark. Works like \TeX{}'s
1434 % |\botmark| command.
1435 % |\rightmark| : Used in the |\@oddhead|, |\@oddfoot|, |\@evenhead| or |\@evenfoot|
1436 % macro, gets the current 'right' mark. Works like \TeX{}'s
1437 % |\firstmark| command.
1438 %
1439 % The marking commands work reasonably well for right marks 'numbered
1440 % within' left marks--e.g., the left mark is changed by a |\chapter| command and
1441 % the right mark is changed by a |\section| command. However, it does
1442 % produce somewhat anomalous results if two |\bothmark|'s occur on the same page.
1443 % \begin{macrocode}
1444 \mark{{}{}} % Initializes TeX's marks
1445 % \end{macrocode}
1446 %
1447 % \subsubsection{Preliminary Page Style}
1448 % Definition of 'prelim' page style that is used for preliminary
1449 % pages of the thesis (i.e., those that are numbered using small
1450 % roman numbers (i, ii, iii, etc.) centered at the page bottom.
1451 % \begin{macrocode}
1452 \def\ps@prelim{%
1453 \if@draftcls % If 'draftcls' option
1454 \if@twoside % If 'twoside' option
1455 \def\@oddhead{\hfil\textsc{\footnotesize DRAFT \quad\rightmark}}
1456 \def\@evenhead{\textsc{\footnotesize DRAFT \quad\leftmark\hfil}}
1457 \else
1458 \def\@oddhead{\textsc{\footnotesize DRAFT \quad\rightmark\hfil}}
1459 \let\@evenhead\@oddhead
1460 \fi
1461 \let\@mkboth\markboth
1462 \def\chaptermark##1{%
1463 \markboth {{%
1464 \@chapapp\ \thechapter. \ %
1465 ##1}}{}}%
1466 \def\@oddfoot{\hfil\textrm{-\thepage -}\hfil}
1467 \let\@evenfoot\@oddfoot
1468 \else
1469 \def\@oddhead{}
1470 \def\@evenhead{}
1471 \def\@oddfoot{\hfil\textrm{-\thepage -}\hfil}
1472 \let\@evenfoot\@oddfoot
1473 \fi}
1474 % \end{macrocode}
1475 %
1476 % \subsubsection{Thesis Body Page Style}
1477 % Definition of |thshead| page style
1478 % Note the use of \#\# 1 for parameter of |\def\chaptermark| inside the
1479 % |\def\ps@thshead|.
1480 % \begin{macrocode}
1481 \newlength{\UMIfoliosep}
1482 % gap separating page number from edge of text
1483 \setlength{\UMIfoliosep}{0.25in}
1484 % \end{macrocode}
1485 %
1486 % \begin{macrocode}
1487 \def\ps@thshead{\def\@oddfoot{\hfil\thepage\hfil}%
1488 \def\@evenfoot{\hfil\thepage\hfil}%
1489 \if@twoside % If `twoside' option
1490 \if@draftcls % If `draftcls' option
1491 \def\@oddhead{\hbox to\textwidth{% Heading on odd (right) pages.
1492 {\hfil\textsc{\footnotesize DRAFT \quad\rightmark}\hfil}}}%
1493 \def\@evenhead{\hbox to\textwidth{% Heading on even (left) pages.
1494 {\footnotesize DRAFT \quad\leftmark}\hfil}}
1495 \let\@mkboth\markboth
1496 \def\chaptermark##1{%
1497 \markboth {{%
1498 \ifnum \c@secnumdepth >\m@ne
1499 \@chapapp\ \thechapter. \ %
1500 \fi
1501 ##1}}{}}%
1502 \def\sectionmark##1{%
1503 \markright {{%
1504 \ifnum \c@secnumdepth >\z@
1505 \thesection. \ %
1506 \fi
1507 ##1}}}
1508 \else
1509 \def\@oddhead{\hbox to\textwidth{}}% Heading on odd (right) pages.
1510 \def\@evenhead{\hbox to\textwidth{}}% Heading on even (left) pages.
1511 \fi
1512 \else
1513 \if@draftcls % If 'draft' option
1514 \def\@oddhead{\hbox to\textwidth{%
1515 {\textsc{\footnotesize DRAFT \quad\rightmark}\hfil}}}%
1516 \let\@evenhead\@oddhead
1517 \def\chaptermark##1{\markright {{\ifnum \c@secnumdepth >\m@ne
1518 \@chapapp\ \thechapter. \ \fi ##1}}}
1519 \else
1520 \def\@oddhead{\hbox to\textwidth{}}%
1521 \let\@evenhead\@oddhead
1522 \fi
1523 \fi}
1524 % \end{macrocode}
1525 %
1526 % \subsubsection{UMI Abstract Page Style}
1527 % \begin{macrocode}
1528 \def\ps@UMIheadings{% UMI Abstract Heading for page 2
1529 \def\@oddfoot{\hfil -\thepage -\hfil}%
1530 \def\@evenfoot{\hfil -\thepage -\hfil}%
1531 \def\@oddhead{\hbox to\textwidth{}}% Header for odd pages
1532 \let\@evenhead\@oddhead} % Even pages same as odd pages
1533 % \end{macrocode}
1534 %
1535 % \subsubsection{Standard Page Styles}
1536 % Definition of headings from report.cls.
1537 % \begin{macrocode}
1538 \if@twoside
1539 \def\ps@headings{%
1540 \let\@oddfoot\@empty\let\@evenfoot\@empty
1541 \def\@evenhead{\hfil\slshape\leftmark}%
1542 \def\@oddhead{{\slshape\rightmark}\hfil}%
1543 \let\@mkboth\markboth
1544 \def\chaptermark##1{%
1545 \markboth {\MakeUppercase{%
1546 \ifnum \c@secnumdepth >\m@ne
1547 \@chapapp\ \thechapter. \ %
1548 \fi
1549 ##1}}{}}%
1550 \def\sectionmark##1{%
1551 \markright {\MakeUppercase{%
1552 \ifnum \c@secnumdepth >\z@
1553 \thesection. \ %
1554 \fi
1555 ##1}}}}
1556 \else
1557 \def\ps@headings{%
1558 \let\@oddfoot\@empty
1559 \def\@oddhead{{\slshape\rightmark}\hfil}%
1560 \let\@mkboth\markboth
1561 \def\chaptermark##1{%
1562 \markright {\MakeUppercase{%
1563 \ifnum \c@secnumdepth >\m@ne
1564 \@chapapp\ \thechapter. \ %
1565 \fi
1566 ##1}}}}
1567 \fi
1568 \def\ps@myheadings{%
1569 \let\@oddfoot\@empty\let\@evenfoot\@empty
1570 \def\@evenhead{\thepage\hfil\slshape\leftmark}%
1571 \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
1572 \let\@mkboth\@gobbletwo
1573 \let\chaptermark\@gobble
1574 \let\sectionmark\@gobble
1575 }
1576 % \end{macrocode}
1577 %
1578 % \subsection{Miscellaneous}
1579 % \subsubsection{\texttt{$\backslash$today} Macro}
1580 % \begin{macrocode}
1581 \def\today{\ifcase\month\or
1582 January\or February\or March\or April\or May\or June\or
1583 July\or August\or September\or October\or November\or December\fi
1584 \space\number\day, \number\year}
1585 % \end{macrocode}
1586 %
1587 % \subsubsection{Equation and Eqnarray}
1588 % Put here because it must follow |\chapter| definition
1589 % |\newcounter{equation}|
1590 % \begin{macrocode}
1591 \@addtoreset {equation}{chapter}% Makes \chapter reset 'equation' counter.
1592 \renewcommand\theequation
1593 {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@equation}
1594 % \end{macrocode}
1595 %
1596 % \subsubsection{Element Names (e.g., Contents, Index, Chapter, etc.)}
1597 % Define names of elements
1598 % \begin{macrocode}
1599 \newcommand\contentsname{Contents}
1600 \newcommand\listfigurename{List of Figures}
1601 \newcommand\listtablename{List of Tables}
1602 \newcommand\bibname{References}
1603 \newcommand\indexname{Index}
1604 \newcommand\figurename{Figure}
1605 \newcommand\tablename{Table}
1606 \newcommand\partname{Part}
1607 \newcommand\chaptername{Chapter}
1608 \newcommand\appendixname{Appendix}
1609 \newcommand\abstractname{Abstract}
1610 \newcommand\acknowledgename{Acknowledgments}
1611 \newcommand\dedicationname{Dedication}
1612 % \end{macrocode}
1613 %
1614 % \subsubsection{Redefine \TeX{} Text Macros}
1615 % Make old \TeX{} commands behave as LaTeX commands
1616 % \begin{macrocode}
1617 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
1618 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
1619 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
1620 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
1621 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
1622 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
1623 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
1624 \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
1625 \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
1626 % \end{macrocode}
1627 %
1628 % \subsubsection{Code Environment}
1629 % Same as verbatim except it is always in single spacing
1630 % and double spacing is restored at the end
1631 % \begin{macrocode}
1632 \begingroup \catcode `|=0 \catcode `[= 1
1633 \catcode`]=2 \catcode `\{=12 \catcode `\}=12
1634 \catcode`\\=12 |gdef|@xcode#1\end{code}[#1|end[code]]
1635 |endgroup
1636 \def\code{\par\renewcommand\baselinestretch{1}\@normalsize\@verbatim
1637 \frenchspacing\@vobeyspaces \@xcode}
1638 \def\endcode{\renewcommand\baselinestretch{\@spacing}\@normalsize\endtrivlist}
1639 % \end{macrocode}
1640 %
1641 % \subsubsection{Footnotes}
1642 % Change it so that footnotes are printed in single spacing
1643 % \begin{macrocode}
1644 \long\def\@footnotetext#1{\insert\footins{\renewcommand\baselinestretch{1}
1645 \footnotesize
1646 \interlinepenalty\interfootnotelinepenalty
1647 \splittopskip\footnotesep
1648 \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
1649 \hsize\columnwidth \@parboxrestore
1650 \edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
1651 {\rule{\z@}{\footnotesep}\ignorespaces
1652 #1\strut}\renewcommand\baselinestretch{\@spacing}}}
1653 % \end{macrocode}
1654 %
1655 % \subsection{Initialization}
1656 % Default initializations
1657 % \begin{macrocode}
1658 \ps@plain % 'plain' page style
1659 \pagenumbering{arabic} % Arabic page numbers
1660 \onecolumn % Single-column.
1661 \if@twoside\else\raggedbottom\fi % Ragged bottom unless twoside option.
1662 % \end{macrocode}
1663 %
1664 % \subsection{Preliminary Pages}
1665 % Generate thesis preliminary pages.
1666 %
1667 % NEEDSWORK: This |singlespacing| test always fails, even when |ucdavisthesis.cls| is loaded.
1668 % \begin{macrocode}
1669 \def\@stdsinglespacing{1.0}
1670 \ifx\@singlespacing\@stdsinglespacing
1671 % Spacing has already been set (in ucdavisthesis.cls).
1672 \else
1673 % Spacing was not set, set it here as if we were ucdavisthesis.cls.
1674 % \typeout{Spacing not set.}
1675 \def\@singlespacing{1.0}
1676 \def\@doublespacing{1.5} % see above for explanation of value
1677 \let\@spacing=\@singlespacing
1678 \fi
1679 % \end{macrocode}
1680 %
1681 % The following macro pair save and restore |twocolumn| status.
1682 % \begin{macrocode}
1683 \newif\if@ColumnSaveValue
1684 \newcommand{\ColumnSave}{
1685 \if@twocolumn
1686 \@ColumnSaveValuetrue
1687 \else
1688 \@ColumnSaveValuefalse
1689 \fi
1690 \pagebreak
1691 \onecolumn
1692 }
1693 \newcommand{\ColumnSaveHeading}[1]{
1694 \if@twocolumn
1695 \@ColumnSaveValuetrue
1696 \pagebreak
1697 \twocolumn[#1]
1698 \else
1699 \@ColumnSaveValuefalse
1700 \pagebreak
1701 #1
1702 \fi
1703 }
1704 \newcommand{\ColumnRestore}{\if@ColumnSaveValue\twocolumn\fi}
1705 % \end{macrocode}
1706 %
1707 % \subsubsection{Title Page}
1708 % \begin{macrocode}
1709 \newcommand\@maketitlepage{
1710 \begin{titlepage}
1711 \renewcommand\baselinestretch{\@singlespacing}
1712 \ColumnSave
1713 \ifx\@memberfour\empty
1714 \def\@titleskip{\bigskip}
1715 \else
1716 \def\@titleskip{\medskip}
1717 \fi
1718 \begin {center}
1719 \vspace*{-40\p@}
1720 \leavevmode\vfil
1721 \@titlesize{\@title} \\ \@titleskip
1722 \normalsize By \\ \@titleskip
1723 \textsc{\@author} \\
1724 \@authordegrees \\ \@titleskip
1725 \textsc{\@Thesisname} \\ \@titleskip
1726 Submitted in partial satisfaction of the requirements
1727 for the degree of \\ \@titleskip
1728 \textsc{\@degreename} \\ \@titleskip
1729 in \\ \@titleskip
1730 \@officialmajor \\ \@titleskip
1731 in the \\ \@titleskip
1732 \textsc{Office of Graduate Studies} \\ \@titleskip
1733 of the \\ \@titleskip
1734 \textsc{University of California} \\ \@titleskip
1735 \textsc{Davis} \\ \@titleskip
1736 Approved: \\ \vspace{18pt}
1737 \rule{3in}{1pt} \\
1738 \textrm{\@memberone}, Chair\\ \vspace{18pt}
1739 \rule{3in}{1pt} \\
1740 \textrm{\@membertwo}\\ \vspace{18pt}
1741 \rule{3in}{1pt} \\
1742 \textrm{\@memberthree}\\
1743 \ifx\@memberfour\empty
1744 \bigskip
1745 \else
1746 \vspace{18pt}
1747 \rule{3in}{1pt} \\
1748 \textrm{\@memberfour}\\
1749 \ifx\@memberfive\empty
1750 \bigskip
1751 \else
1752 \vspace{18pt}
1753 \rule{3in}{1pt} \\
1754 \textrm{\@memberfive}\\ \bigskip
1755 \fi
1756 \fi
1757 Committee in Charge \\ \bigskip
1758 \@degreeyear \\
1759 \vfil
1760 \end {center}
1761 \ColumnRestore
1762 \end{titlepage}
1763 }
1764 % \end{macrocode}
1765 %
1766 % \subsubsection{Copyright Page}
1767 % The Copyright page does not get numbered or counted in numbering.
1768 % \begin{macrocode}
1769 \newif\if@copyright
1770 \@copyrighttrue
1771 \newcommand\nocopyright{\@copyrightfalse}
1772 \def\@copyrightinfo{All rights reserved.}
1773 \newcommand\copyrightinfo[1]{\def\@copyrightinfo{#1}}
1774 \newcommand\@makecopyrightpage{%
1775 \if@copyright
1776 \thispagestyle{empty}
1777 \ColumnSave
1778 \null
1779 \vfill
1780 \begin{center}
1781 \normalsize \normalfont Copyright \copyright\
1782 \ifx\@copyrightyear\@degreeyear \@degreeyear\else
1783 \@copyrightyear \fi\ by \\
1784 \@author \\
1785 \emph{\@copyrightinfo}
1786 \end{center}
1787 \ColumnRestore
1788 % Increment page number if oneside
1789 \if@twoside\else\addtocounter{page}{-1}\fi
1790 \else
1791 \relax % don't create copyright page
1792 \fi
1793 }
1794 % \end{macrocode}
1795 %
1796 % \subsubsection{Dedication Page}
1797 % \begin{macrocode}
1798 \newif\if@dedication
1799 \def\@dedication{}
1800 \newcommand\dedication[1]{\@dedicationtrue\def\@dedication{#1}}
1801 \newcommand\@makededication{
1802 \if@dedication
1803 \@mkboth{\dedicationname}{\dedicationname}
1804 \ColumnSave
1805 \par
1806 \renewcommand\baselinestretch{\@spacing}\@normalsize\normalfont
1807 \vspace*{0pt} % force spacing at top of page
1808 \vfill
1809 \begin{center}
1810 \@dedication
1811 \end{center}
1812 \vfill\vfill % put about 1:2 (above:below) dedication
1813 \ColumnRestore
1814 \fi
1815 }
1816 % \end{macrocode}
1817 %
1818 % \subsubsection{Abstract Page}
1819 % \begin{macrocode}
1820 \newif\if@abstract
1821 \def\@abstract{}
1822 \newcommand\abstract[1]{\@abstracttrue\def\@abstract{#1}}
1823 % \end{macrocode}
1824 %
1825 % This has one argument: the |baselinestretch| \\
1826 % The UCD Format requires doublespacing
1827 % \begin{macrocode}
1828 \newcommand{\@makeabstractpage}[1]{%
1829 \if@abstract
1830 \@mkboth{\abstractname}{\abstractname}
1831 \addcontentsline{toc}{section}{\abstractname}%
1832 \ColumnSave
1833 \par
1834 \begin{center}
1835 \textsc{\large \abstractname}\\ \bigskip
1836 \textbf{\@title} % \textsb?
1837 \end{center}
1838 \ifx\@spacing\@doublespacing\bigskip\smallskip\else\bigskip\fi
1839 \renewcommand\baselinestretch{#1}\@normalsize
1840 % \end{macrocode}
1841 %
1842 % Set up spacing.
1843 % If it's single spacing, indent the margins.
1844 % If double spacing is required than things are already
1845 % ugly enough (and we loose enough space) that we may
1846 % as well use the whole |\textwidth|.
1847 % \begin{macrocode}
1848 \ifthenelse{\equal{#1}{\@stdsinglespacing}}{%
1849 \begin{center}
1850 \begin{minipage}{4.75in}
1851 \setlength{\parindent}{1.5em}
1852 \@abstract
1853 \end{minipage}
1854 \end{center}
1855 }{%
1856 \@abstract
1857 }
1858 \vfill
1859 \renewcommand\baselinestretch{\@spacing}\@normalsize
1860 \ColumnRestore
1861 \else
1862 \typeout{No abstract.}
1863 \fi\newpage
1864 }
1865 % \end{macrocode}
1866 %
1867 % \subsubsection{Acknowledgments Page}
1868 % \begin{macrocode}
1869 \newif\if@acks
1870 \def\@acknowledgments{}
1871 \newcommand\acknowledgments[1]{\@ackstrue\def\@acknowledgments{#1}}
1872 \newcommand\@makeackheading{%
1873 {
1874 \centering
1875 \textsc{\large \acknowledgename}
1876 \vskip 12pt
1877 }
1878 }
1879 \newcommand\@makeacknowledgments{%
1880 \if@acks
1881 \@mkboth{\acknowledgename}{\acknowledgename}
1882 \addcontentsline{toc}{section}{\acknowledgename}%
1883 \ColumnSaveHeading{\@makeackheading}
1884 \par
1885 \renewcommand\baselinestretch{\@spacing}\@normalsize
1886 \noindent \normalsize \normalfont \@acknowledgments
1887 \vfill
1888 \ColumnRestore
1889 \fi\newpage
1890 }
1891 % \end{macrocode}
1892 %
1893 % \subsubsection{Print All Preliminary Pages}
1894 % \begin{macrocode}
1895 \newcommand\makeintropages{%
1896 % Preliminary page style (lowercase roman numbers at bottom of page)
1897 \pagenumbering{roman}\pagestyle{prelim}
1898 \@maketitlepage
1899 % \end{macrocode}
1900 %
1901 % If we're printing two sided and there is no copyright page,
1902 % insert a blank page for the back of the title page.
1903 % NOTE: This extra page makes the output non-conforming
1904 % to the UCD Format, unless you throw it away.
1905 % \begin{macrocode}
1906 \if@twoside
1907 \if@copyright
1908 \else
1909 \typeout{Two-side detected, blank page added after title page.}
1910 \null\thispagestyle{empty}\newpage % the back side of the title page
1911 \fi
1912 \fi
1913 \@makecopyrightpage
1914 \@makededication
1915 \tableofcontents
1916 \listoffigures\newpage
1917 \listoftables\newpage
1918 \@makeabstractpage{\@doublespacing}
1919 \@makeacknowledgments
1920 \@prelimpagesfalse\newpage % end of preliminary pages, start a new page
1921 \if@twoside
1922 \ifthenelse{\isodd{\value{page}}}%
1923 {}
1924 % create a blank page if prelim pages has an odd number of pages
1925 {\thispagestyle{empty}\null\newpage}
1926 \fi
1927 % change pagestyle to thshead (arabic page number in upper right)
1928 \pagenumbering{arabic}\pagestyle{thshead}
1929 }
1930 % \end{macrocode}
1931 %
1932 % \subsubsection{UMI Abstract}
1933 % Create a UMI compliant abstract
1934 % \begin{macrocode}
1935 % hold current page number when creating the UMI abstract
1936 \newcounter{UMIpagetemp}
1937 \newenvironment{UMImargins}{%
1938 \begin{list}{}{%
1939 \setlength{\topsep}{0pt}%
1940 \setlength{\leftmargin}{0in}%
1941 \setlength{\rightmargin}{0in}%
1942 \setlength{\listparindent}{\parindent}%
1943 \setlength{\itemindent}{\parindent}%
1944 \setlength{\parsep}{\parskip}%
1945 }%
1946 \item[]}{\end{list}}
1947 \newcommand\UMIabstract[1][\@abstract]{%
1948 \if@twoside
1949 \typeout{Two-side detected, UMI Abstract not printed in this mode.}
1950 \relax
1951 \else
1952 \newpage % begin abstract on a new page
1953 \setcounter{UMIpagetemp}{\value{page}} % save the current page number
1954 \setcounter{page}{1} % number pages in the abstract starting at 1
1955 \pagestyle{UMIheadings} % page numbers in upper right with surrounding dashes
1956 \thispagestyle{empty} % no page number on the first page
1957 \begin{UMImargins}
1958 \begin{flushright}
1959 \renewcommand\baselinestretch{\@singlespacing}
1960 \normalsize \normalfont \@author \\
1961 \@degreemonth\ \@degreeyear \\
1962 \@graduateprogram \\ \bigskip
1963 \end{flushright}
1964 \begin{center}
1965 \@title \\ \bigskip
1966 \textbf{\underline{Abstract}}
1967 \end{center}
1968 \renewcommand\baselinestretch{%
1969 \@doublespacing}\noindent#1 % Doublespaced abstract
1970 \end{UMImargins}
1971 \renewcommand\baselinestretch{%
1972 %return to previous spacing, clear rest of page
1973 \@spacing}\@normalsize\newpage
1974 \pagestyle{thshead} % return to standard page headings
1975 % return the page counter to previous value
1976 \setcounter{page}{\value{UMIpagetemp}}
1977 \fi}
1978 % end of |ucdavisthesis.cls|
1979 %</class>
1980 % \end{macrocode}
1981 %
1982 % \section{Implementation and Source Code Listing for the Class Option Files}
1983 % This section documents the code that is processed by \textsc{docstrip} into the class option files (|.clo|). After processing, there are four files; one for each of the font size options (10pt, 11pt, 12pt, and 13pt). The option files contain the font size information and any \LaTeX{} lengths that are font size dependent.
1984 %
1985 % \begin{macrocode}
1986 %<*ucdxxpt>
1987 \lineskip 1pt % \lineskip is 1pt for all font sizes.
1988 \normallineskip 1pt
1989 \renewcommand\baselinestretch{\@spacing} % single or double spacing
1990 % \end{macrocode}
1991 % \subsection{Font Sizes}
1992 % Each size-changing command |\SIZE| executes the command\\
1993 % |\@setsize\SIZE|\marg{BASELINESKIP}|\FONTSIZE\@FONTSIZE|
1994 % where:\\
1995 % \begin{description}
1996 % \item{BASELINESKIP} Normal value of |\baselineskip| for that size. (Actual
1997 % value will be |\baselinestretch| $\times$ BASELINESKIP.)
1998 %
1999 % \item{|\FONTSIZE|} Name of font-size command. The currently available
2000 % (preloaded) font sizes are: |\vpt| (5pt), |\vipt| (6pt),
2001 % |\viipt| (etc.), |\viiipt|, |\ixpt|, |\xpt|, |\xipt|, |\xiipt|,
2002 % |\xivpt|, |\xviipt|, |\xxpt|, |\xxvpt|.
2003 % \item{|\@FONTSIZE|} The same as the font-size command except with an
2004 % |@| in front---e.g., if |\FONTSIZE = \xivpt| then
2005 % |\@FONTSIZE = \@xivpt|.
2006 % \end{description}
2007 %
2008 % For reasons of efficiency that needn't concern the designer,
2009 % the document class defines |\@normalsize| instead of |\normalsize|. This is
2010 % done only for |\normalsize|, not for any other size-changing commands.
2011
2012 % NOTE: All line spacings have been set to the nominal value times 1.3
2013 % (e.g., 15.6pt for 12-point type). If you change this spacing, you
2014 % must make a corresponding change to the |\@doublespacing| value in the
2015 % ucdavisthesis.cls file.
2016
2017 % Font sizes are generally taken from \LaTeXe{}'s |sizexx.clo|.
2018 % \begin{macrocode}
2019 \renewcommand\normalsize{%
2020 %<*ucd10pt>
2021 \@setfontsize\normalsize\@xpt\@xiipt
2022 \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
2023 \abovedisplayshortskip \z@ \@plus3\p@
2024 \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
2025 %</ucd10pt>
2026 %<*ucd11pt>
2027 \@setfontsize\normalsize\@xipt{13.6}%
2028 \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
2029 \abovedisplayshortskip \z@ \@plus3\p@
2030 \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
2031 %</ucd11pt>
2032 %<*ucd12pt>
2033 \@setfontsize\normalsize\@xiipt{14.5}%
2034 \abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
2035 \abovedisplayshortskip \z@ \@plus3\p@
2036 \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
2037 %</ucd12pt>
2038 %<*ucd13pt>
2039 \@setfontsize\normalsize{13}{15.6}%
2040 \abovedisplayskip 13\p@ \@plus3\p@ \@minus7\p@
2041 \abovedisplayshortskip \z@ \@plus3\p@
2042 \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
2043 %</ucd13pt>
2044 \belowdisplayskip \abovedisplayskip
2045 \let\@listi\@listI}
2046 %
2047 \newcommand\small{%
2048 %<*ucd10pt>
2049 \@setfontsize\small\@ixpt{11}%
2050 \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
2051 \abovedisplayshortskip \z@ \@plus2\p@
2052 \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
2053 \def\@listi{\leftmargin\leftmargini
2054 \topsep 4\p@ \@plus2\p@ \@minus2\p@
2055 \parsep 2\p@ \@plus\p@ \@minus\p@
2056 %</ucd10pt>
2057 %<*ucd11pt>
2058 \@setfontsize\small\@xpt\@xiipt
2059 \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
2060 \abovedisplayshortskip \z@ \@plus3\p@
2061 \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
2062 \def\@listi{\leftmargin\leftmargini
2063 \topsep 6\p@ \@plus2\p@ \@minus2\p@
2064 \parsep 3\p@ \@plus2\p@ \@minus\p@
2065 %</ucd11pt>
2066 %<*ucd12pt>
2067 \@setfontsize\small\@xipt{13.6}%
2068 \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
2069 \abovedisplayshortskip \z@ \@plus3\p@
2070 \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
2071 \def\@listi{\leftmargin\leftmargini
2072 \topsep 9\p@ \@plus3\p@ \@minus5\p@
2073 \parsep 4.5\p@ \@plus2\p@ \@minus\p@
2074 %</ucd12pt>
2075 %<*ucd13pt>
2076 \@setfontsize\small\@xiipt{14.5}%
2077 \abovedisplayskip 11.5\p@ \@plus3\p@ \@minus6\p@
2078 \abovedisplayshortskip \z@ \@plus3\p@
2079 \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
2080 \def\@listi{\leftmargin\leftmargini
2081 \topsep 9\p@ \@plus3\p@ \@minus5\p@
2082 \parsep 4.5\p@ \@plus2\p@ \@minus\p@
2083 %</ucd13pt>
2084 \itemsep \parsep}%
2085 \belowdisplayskip \abovedisplayskip
2086 }
2087 %
2088 \newcommand\footnotesize{%
2089 %<*ucd10pt>
2090 \@setfontsize\footnotesize\@viiipt{9.5}%
2091 \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@
2092 \abovedisplayshortskip \z@ \@plus\p@
2093 \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
2094 \def\@listi{\leftmargin\leftmargini
2095 \topsep 3\p@ \@plus\p@ \@minus\p@
2096 \parsep 2\p@ \@plus\p@ \@minus\p@
2097 %</ucd10pt>
2098 %<*ucd11pt>
2099 \@setfontsize\footnotesize\@ixpt{11}%
2100 \abovedisplayskip 8\p@ \@plus2\p@ \@minus4\p@
2101 \abovedisplayshortskip \z@ \@plus\p@
2102 \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
2103 \def\@listi{\leftmargin\leftmargini
2104 \topsep 4\p@ \@plus2\p@ \@minus2\p@
2105 \parsep 2\p@ \@plus\p@ \@minus\p@
2106 %</ucd11pt>
2107 %<*ucd12pt>
2108 \@setfontsize\footnotesize\@xpt\@xiipt
2109 \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
2110 \abovedisplayshortskip \z@ \@plus3\p@
2111 \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
2112 \def\@listi{\leftmargin\leftmargini
2113 \topsep 6\p@ \@plus2\p@ \@minus2\p@
2114 \parsep 3\p@ \@plus2\p@ \@minus\p@
2115 %</ucd12pt>
2116 %<*ucd13pt>
2117 \@setfontsize\footnotesize\@xpt\@xiipt
2118 \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
2119 \abovedisplayshortskip \z@ \@plus3\p@
2120 \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
2121 \def\@listi{\leftmargin\leftmargini
2122 \topsep 6\p@ \@plus2\p@ \@minus2\p@
2123 \parsep 3\p@ \@plus2\p@ \@minus\p@
2124 %</ucd13pt>
2125 \itemsep \parsep}%
2126 \belowdisplayskip \abovedisplayskip
2127 }
2128 %
2129 %<*ucd10pt>
2130 \newcommand\scriptsize{\@setfontsize\scriptsize\@viipt\@viiipt}
2131 \newcommand\tiny{\@setfontsize\tiny\@vpt\@vipt}
2132 \newcommand\large{\@setfontsize\large\@xiipt{14}}
2133 \newcommand\Large{\@setfontsize\Large\@xivpt{18}}
2134 \newcommand\LARGE{\@setfontsize\LARGE\@xviipt{22}}
2135 \newcommand\huge{\@setfontsize\huge\@xxpt{25}}
2136 \newcommand\Huge{\@setfontsize\Huge\@xxvpt{30}}
2137 %</ucd10pt>
2138 %<*ucd11pt>
2139 \newcommand\scriptsize{\@setfontsize\scriptsize\@viiipt{9.5}}
2140 \newcommand\tiny{\@setfontsize\tiny\@vipt\@viipt}
2141 \newcommand\large{\@setfontsize\large\@xiipt{14}}
2142 \newcommand\Large{\@setfontsize\Large\@xivpt{18}}
2143 \newcommand\LARGE{\@setfontsize\LARGE\@xviipt{22}}
2144 \newcommand\huge{\@setfontsize\huge\@xxpt{25}}
2145 \newcommand\Huge{\@setfontsize\Huge\@xxvpt{30}}
2146 %</ucd11pt>
2147 %<*ucd12pt>
2148 \newcommand\scriptsize{\@setfontsize\scriptsize\@viiipt{9.5}}
2149 \newcommand\tiny{\@setfontsize\tiny\@vipt\@viipt}
2150 \newcommand\large{\@setfontsize\large\@xivpt{18}}
2151 \newcommand\Large{\@setfontsize\Large\@xviipt{22}}
2152 \newcommand\LARGE{\@setfontsize\LARGE\@xxpt{25}}
2153 \newcommand\huge{\@setfontsize\huge\@xxvpt{30}}
2154 \newcommand\Huge{\@setfontsize\Huge{29.86}{35}}
2155 %</ucd12pt>
2156 %<*ucd13pt>
2157 \newcommand\scriptsize{\@setfontsize\scriptsize\@viiipt{9.5}}
2158 \newcommand\tiny{\@setfontsize\tiny\@vipt\@viipt}
2159 \newcommand\large{\@setfontsize\large\@xviipt{22}}
2160 \newcommand\Large{\@setfontsize\Large\@xxpt{25}}
2161 \newcommand\LARGE{\@setfontsize\LARGE\@xxvpt{30}}
2162 \newcommand\huge{\@setfontsize\huge{29.86}{35}}
2163 \newcommand\Huge{\@setfontsize\Huge{35.83}{40}}
2164 %</ucd13pt>
2165 %
2166 \setlength\smallskipamount{3\p@ \@plus 1\p@ \@minus 1\p@}
2167 \setlength\medskipamount{6\p@ \@plus 2\p@ \@minus 2\p@}
2168 \setlength\bigskipamount{12\p@ \@plus 4\p@ \@minus 4\p@}
2169 %
2170 \normalsize % Choose the normalsize font.
2171 % \end{macrocode}
2172 % \subsection{Footnotes}
2173 %
2174 % |\footnotesep| = Height of strut placed at the beginning of every
2175 % footnote = height of normal |\footnotesize| strut,
2176 % so no extra space between footnotes.
2177 %
2178 % |\skip\footins| = Space between last line of text and
2179 % top of first footnote.
2180 % \begin{macrocode}
2181 %<*ucd10pt>
2182 \setlength\footnotesep{6.65\p@}%
2183 \setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@}%
2184 %</ucd10pt>
2185 %<*ucd11pt>
2186 \setlength\footnotesep{7.7\p@}%
2187 \setlength{\skip\footins}{10\p@ \@plus 4\p@ \@minus 2\p@}%
2188 %</ucd11pt>
2189 %<*ucd12pt>
2190 \setlength\footnotesep{8.4\p@}%
2191 \setlength{\skip\footins}{10.8\p@ \@plus 9\p@ \@minus 2\p@}%
2192 %</ucd12pt>
2193 %<*ucd13pt>
2194 \setlength\footnotesep{8.4\p@}%
2195 \setlength{\skip\footins}{10.8\p@ \@plus 9\p@ \@minus 2\p@}%
2196 %</ucd13pt>
2197 % \end{macrocode}
2198 %
2199 % \subsection{Floats}
2200 % A float is something like a figure or table.
2201 % For floats on a text page: both one-column mode or single-column
2202 % floats in two-column mode.
2203 %
2204 % \noindent |\floatsep| = Space between adjacent floats moved to top or
2205 % bottom of text page.\\
2206 % |\textfloatsep| = Space between main text and floats
2207 % at top or bottom of page.\\
2208 % |\intextsep| = Space between in-text figures and text.
2209 %
2210 % \begin{macrocode}
2211 %<*ucd10pt>
2212 \setlength\floatsep {12\p@ \@plus 2\p@ \@minus 2\p@}%
2213 \setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}%
2214 \setlength\intextsep{12\p@ \@plus 2\p@ \@minus 2\p@}%
2215 %</ucd10pt>
2216 %<*ucd11pt>
2217 \setlength\floatsep{13\p@ \@plus 2\p@ \@minus 3\p@}%
2218 \setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}%
2219 \setlength\intextsep{13\p@ \@plus 4\p@ \@minus 3\p@}%
2220 %</ucd11pt>
2221 %<*ucd12pt>
2222 \setlength\floatsep{14\p@ \@plus 2\p@ \@minus 4\p@}%
2223 \setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}%
2224 \setlength\intextsep{14\p@ \@plus 4\p@ \@minus 4\p@}%
2225 %</ucd12pt>
2226 %<*ucd13pt>
2227 \setlength\floatsep{14\p@ \@plus 2\p@ \@minus 4\p@}%
2228 \setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}%
2229 \setlength\intextsep{14\p@ \@plus 4\p@ \@minus 4\p@}%
2230 %</ucd13pt>
2231 % \end{macrocode}
2232 %
2233 % For floats on a separate float page or column:
2234 % one-column mode or single-column floats in two-column mode.
2235 %
2236 % \begin{macrocode}
2237 % Stretch at top of float page/column. (Must be 0pt plus ...)
2238 \setlength\@fptop{0\p@ \@plus 1fil}%
2239 %
2240 % Space between floats on float page/column.
2241 \setlength\@fpsep{8\p@ \@plus 2fil}%
2242 %
2243 % Stretch at bottom of float page/column. (Must be 0pt plus ... )
2244 \setlength\@fpbot{0\p@ \@plus 1fil}%
2245 % \end{macrocode}
2246 %
2247 % \subsection{Paragraphing}
2248 % |\parskip| = Extra vertical space between paragraphs (default is 0).\\
2249 % |\parindent| = Width of paragraph indentation.\\
2250 % |\topsep| = Extra vertical space, in addition to
2251 % |\parskip|, added above and below list and
2252 % paragraphing environments.\\
2253 % |\partopsep| = Extra vertical space, in addition to
2254 % |\parskip| and |\topsep|, added when user
2255 % leaves blank line before environment.\\
2256 % |\itemsep| = Extra vertical space, in addition to
2257 % |\parskip|, added between list items.
2258 %
2259 % \begin{macrocode}
2260 %<*ucd10pt>
2261 \setlength\parskip{0\p@ \@plus \p@}
2262 \setlength\parindent{15\p@}
2263 \setlength\topsep{10pt plus 4pt minus 6pt}
2264 \setlength\partopsep{3pt plus 2pt minus 2pt}
2265 \setlength\itemsep{5pt plus 2.5pt minus 1pt}
2266 %</ucd10pt>
2267 %<*ucd11pt>
2268 \setlength\parskip{0\p@ \@plus \p@}
2269 \setlength\parindent{17\p@}
2270 \setlength\topsep{10pt plus 4pt minus 6pt}
2271 \setlength\partopsep{3pt plus 2pt minus 2pt}
2272 \setlength\itemsep{5pt plus 2.5pt minus 1pt}
2273 %</ucd11pt>
2274 %<*ucd12pt>
2275 \setlength\parskip{0\p@ \@plus \p@}
2276 \setlength\parindent{1.5em}
2277 \setlength\topsep{10pt plus 4pt minus 6pt}
2278 \setlength\partopsep{3pt plus 2pt minus 2pt}
2279 \setlength\itemsep{5pt plus 2.5pt minus 1pt}
2280 %</ucd12pt>
2281 %<*ucd13pt>
2282 \setlength\parskip{0\p@ \@plus \p@}
2283 \setlength\parindent{1.5em}
2284 \setlength\topsep{10pt plus 4pt minus 6pt}
2285 \setlength\partopsep{3pt plus 2pt minus 2pt}
2286 \setlength\itemsep{5pt plus 2.5pt minus 1pt}
2287 %</ucd13pt>
2288 % \end{macrocode}
2289 %
2290 % \subsection{Page Breaking Penalties}
2291 %
2292 % \begin{macrocode}
2293 \@lowpenalty 51 % Produced by \nopagebreak[1] or \nolinebreak[1]
2294 \@medpenalty 151 % Produced by \nopagebreak[2] or \nolinebreak[2]
2295 \@highpenalty 301 % Produced by \nopagebreak[3] or \nolinebreak[3]
2296 %
2297 \@beginparpenalty -\@lowpenalty % Before a list or paragraph environment.
2298 \@endparpenalty -\@lowpenalty % After a list or paragraph environment.
2299 \@itempenalty -\@lowpenalty % Between list items.
2300 %
2301 % \clubpenalty % 'Club line' at bottom of page.
2302 % \widowpenalty % 'Widow line' at top of page.
2303 % \displaywidowpenalty % Math display widow line.
2304 % \predisplaypenalty % Breaking before a math display.
2305 % \postdisplaypenalty % Breaking after a math display.
2306 % \interlinepenalty % Breaking at a line within a paragraph.
2307 % \brokenpenalty % Breaking after a hyphenated line.
2308 %</ucdxxpt>
2309 % \end{macrocode}
2310 %
2311 % \PrintChanges
2312 % \newpage
2313 % \PrintIndex
2314 % \Finale
2315 \endinput