Debian Codegraph @

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

raw
1 % \iffalse meta-comment
2 % !TeX program = pdfLaTeX
3 %<*internal>
4 \iffalse
5 %</internal>
6 %<*readme>
7 ----------------------------------------------------------------
8 uothesis --- Support for University of Oregon Graduate School requirements
9 for the formatting of doctoral dissertations and and masters theses
10 E-mail: [email protected]
11 Released under the LaTeX Project Public License v1.3c or later
12 See http://www.latex-project.org/lppl.txt
13 ----------------------------------------------------------------
14
15 The uothesis bundle provides a LaTeX class file and documentation for the class
16 file. The class file generates documents that are suitable for submission to the
17 Graduate School and conform with the style requirements for dissertations and theses
18 as laid out in the Fall 2010 UO graduate school student manual.
19
20 The basic format for this dtx and the associcated files are shamelessly mooched from
21 the achemso package dtx and ins files. My thanks to their authors for the excellent
22 examples.
23
24 Installation
25 ------------
26
27 The package is supplied in dtx format. To
28 unpack the dtx, running 'tex uothesis.dtx' will extract
29 the package whereas 'latex uothesis.dtx will extract it and also
30 typeset the documentation.
31
32 Typesetting the documentation requires a number of packages in
33 addition to those needed to use the package. This is mainly
34 because of the number of demonstration items included in the
35 text. To compile the documentation without error, you will
36 need the packages:
37 - array
38 - booktabs
39 - hypdoc
40 - listings
41 - lmodern
42 - mathpazo
43 - microtype
44 %</readme>
45 %<*internal>
46 \fi
47 \def\nameofplainTeX{plain}
48 \ifx\fmtname\nameofplainTeX\else
49 \expandafter\begingroup
50 \fi
51 %</internal>
52 %<*install>
53 \input docstrip.tex
54 \keepsilent
55 \askforoverwritefalse
56 \preamble
57 ----------------------------------------------------------------
58 uothesis --- Support for formatting of documents associated with the
59 graduate requirements for the master and doctorate degrees as
60 defined by the University of Oregon Graduate School in the fall of 2010.
61 Contact: All contact regarding this package should be to the UOGS.
62 Released under the LaTeX Project Public License v1.3c or later
63 See http://www.latex-project.org/lppl.txt
64 ----------------------------------------------------------------
65 \endpreamble
66 \postamble
67 Originally written by Mark VandeWettering
68 Modified by Chet Haase, Christian Frank, Lars Hansen,
69 J. Paul Walser, Bei Li, Bart Massey, et al.
70
71 It may be distributed and/or modified under the conditions of
72 the LaTeX Project Public License (LPPL), either version 1.3c of
73 this license or (at your option) any later version. The latest
74 version of this license is in the file:
75
76 http://www.latex-project.org/lppl.txt
77
78 This work is "maintained" (as per LPPL maintenance status) by
79 Michael D. Anderson
80
81 This work consists of the file uothesis.dtx and the derived files uothesis.cls,
82 uothesis.ins, and, uothesis.pdf.
83 \endpostamble
84 \usedir{tex/latex/uothesis}
85 \generate{
86 \file{\jobname.cls}{\from{\jobname.dtx}{class}}
87 }
88
89 %</install>
90 %<install>\endbatchfile
91 %<*internal>
92 \usedir{source/latex/uothesis}
93 \generate{\file{\jobname.ins}{\from{\jobname.dtx}{install}}}
94
95 \nopreamble\nopostamble
96 \usedir{doc/latex/uothesis}
97 \generate{\file{README.txt}{\from{\jobname.dtx}{readme}}}
98
99 \ifx\fmtname\nameofplainTeX
100 \expandafter\endbatchfile
101 \else
102 \expandafter\endgroup
103 \fi
104 %</internal>
105 %<*class>
106 \NeedsTeXFormat{LaTeX2e}
107 %</class>
108 %<*driver>
109 \ProvidesFile{\jobname.dtx}[2012/02/08 v2.5.6 Submission to University of Oregon Graduate School]
110 \documentclass[a4paper]{ltxdoc}
111 \usepackage[T1]{fontenc}
112 \usepackage{achemso,array,booktabs,lmodern}
113 \usepackage[final]{listings,microtype}
114 \usepackage[numbered]{hypdoc}
115 \EnableCrossrefs
116 \CodelineIndex
117 \RecordChanges
118 \begin{document}
119 \DocInput{\jobname.dtx}
120 \PrintIndex
121 \PrintChanges
122 \end{document}
123 %</driver>
124 %\fi
125 %\makeatletter
126 %
127 %^^A \DescribeOption is in l3doc but not ltxdoc
128 %\newcommand*\DescribeOption{^^A
129 % \leavevmode
130 % \@bsphack
131 % \begingroup
132 % \MakePrivateLetters
133 % \Describe@Option
134 %}
135 %\newcommand*\Describe@Option[1]{^^A
136 % \endgroup
137 % \marginpar{^^A
138 % \raggedleft
139 % \PrintDescribeEnv{#1}^^A
140 % }%
141 % \SpecialOptionIndex{#1}^^A
142 % \@esphack
143 % \ignorespaces
144 %}
145 %\newcommand*\SpecialOptionIndex[1]{^^A
146 % \@bsphack
147 % \index{^^A
148 % #1\actualchar{\protect\ttfamily#1} (option)\encapchar usage^^A
149 % }^^A
150 % \index{^^A
151 % options:\levelchar#1\actualchar{\protect\ttfamily#1}
152 % \encapchar usage^^A
153 % }^^A
154 % \@esphack
155 %}
156 %
157 %^^A For creating examples with nice highlighting of code, and so
158 %^^A on; based on the system used in the listings source (lstsample).
159 %\lst@RequireAspects{writefile}
160 %\newsavebox{\LaTeXdemo@box}
161 %\lstnewenvironment{LaTeXdemo}[1][code and example]{^^A
162 % \global\let\lst@intname\@empty
163 % \expandafter\let\expandafter\LaTeXdemo@end
164 % \csname LaTeXdemo@#1@end\endcsname
165 % \@nameuse{LaTeXdemo@#1}^^A
166 %}{^^A
167 % \LaTeXdemo@end
168 %}
169 %\newcommand*\LaTeXdemo@new[3]{^^A
170 % \expandafter\newcommand\expandafter*\expandafter
171 % {\csname LaTeXdemo@#1\endcsname}{#2}^^A
172 % \expandafter\newcommand\expandafter*\expandafter
173 % {\csname LaTeXdemo@#1@end\endcsname}{#3}^^A
174 %}
175 %\newcommand*\LaTeXdemo@common{^^A
176 % \setkeys{lst}{
177 % basicstyle = \small\ttfamily,
178 % basewidth = 0.51em,
179 % gobble = 3,
180 % keywordstyle = \color{blue},
181 % language = [LaTeX]{TeX},
182 % moretexcs = {
183 % affiliation,
184 % alsoaffiliation,
185 % altaffiliation,
186 % email,
187 % fax,
188 % natmovechars,
189 % phone
190 % }
191 % }^^A
192 %}
193 %\newcommand*\LaTeXdemo@input{^^A
194 % \MakePercentComment
195 % \catcode`\^^M=10\relax
196 % \small
197 % \begingroup
198 % \setkeys{lst}{
199 % SelectCharTable=\lst@ReplaceInput{\^\^I}{\lst@ProcessTabulator}
200 % }^^A
201 % \leavevmode
202 % \input{\jobname.tmp}^^A
203 % \endgroup
204 % \MakePercentIgnore
205 %}
206 %\LaTeXdemo@new{code and example}{^^A
207 % \setbox\LaTeXdemo@box=\hbox\bgroup
208 % \lst@BeginAlsoWriteFile{\jobname.tmp}^^A
209 % \LaTeXdemo@common
210 %}{^^A
211 % \lst@EndWriteFile
212 % \egroup
213 % \begin{center}
214 % \ifdim\wd\LaTeXdemo@box>0.48\linewidth\relax
215 % \hbox to\linewidth{\box\LaTeXdemo@box\hss}^^A
216 % \begin{minipage}{\linewidth}
217 % \LaTeXdemo@input
218 % \end{minipage}
219 % \else
220 % \begin{minipage}{0.48\linewidth}
221 % \LaTeXdemo@input
222 % \end{minipage}
223 % \hfill
224 % \begin{minipage}{0.48\linewidth}
225 % \hbox to\linewidth{\box\LaTeXdemo@box\hss}^^A
226 % \end{minipage}
227 % \fi
228 % \end{center}
229 %}
230 %\LaTeXdemo@new{code only}{^^A
231 % \LaTeXdemo@common
232 %}{^^A
233 %}
234 %\newcommand*\UOGS{University of Oregon Graduate School}
235 %\newcommand*\styref{Thesis and Dissertation Style and Policy Manual (v. Fall 2010)}
236 %\providecommand*\file{\texttt}
237 %\providecommand*\opt{\texttt}
238 %\providecommand*\pkg{\texttt}
239 %\makeatother
240 %\GetFileInfo{\jobname.dtx}
241 %\DoNotIndex{\*,\.,\/,\\,\ ,\arabic,\aux@appendices,\baselineskip,\begin,\begingroup,\bf,\Box,\box,\c@@shownumdepth,\c@chapter,\centering,\clearpage,\csname,\cvpars,\DeclareOption,\def,\else,\end,\endcsname,\fi,\gdef,\hship,\hfil,\hbox,\let,\long,\par,\protect,\relax,\vfil,\vfill,\vskip,\vspace,\z@,\@M,\advancefds,\endgroup,\expandafter,\hskip,\hspace,\hrule,\hfill,\ifx,\interlinepenalty,\jobname,\newcommand,\newif,\nobreak,\noindent,\nopagebreak,\@p,\renewcommand,\RequirePackage,\tag,\typeout,\what,\write,\xdef,\uppercase,\thispagestyle,\thechapter}
242 %\title{^^A
243 % \texttt{uothesis} --- A \LaTeX\ package for the generation of theses and dissertations that meet the requirements established by the \UOGS\thanks{^^A
244 % This file describes version \fileversion, last revised
245 % \filedate.^^A
246 % }^^A
247 %}
248 %\author{^^A
249 % Michael D. Anderson\thanks{E-mail: mander13@uore\ldots}^^A
250 %}
251 %\date{Released \filedate}
252 %\maketitle
253 %
254 %\changes{v1.0}{2009/07/24}{Everything previous to 2009/07/24}
255 %
256 %\changes{v2.0a}{2009/07/24}{Initial work started. Considering all previous versions "1.0." Cleaning up comments updating out dated package used and added packages to provide new functionality. Removed support for "tech report." Removed \opt{normalspace} command, will use \opt{setspace} options from now on. Updated the chair and advisor listings to be more general. Corrected a formatting issue on the signature page}
257 %
258 %\changes{v2.0b}{2009/08/01}{Removed outdated caption.cls support. Cleaning up the error codes during the compile.}
259 %
260 %\changes{v2.0c}{2009/08/04}{Updated draftcopy option. Added new features and tuned others. Added the \opt{ednote} command (mooched from the 1.0 example documents) with some modifications. Added the \opt{HERE} command (mooched from the 1.0 example documents) with some modifications. Added the \opt{needref} command. Added support for draft option in graphics package (figures show bounding boxes rather than figures in draftcopy mode). \pkg{varioref} support corrected.}
261 %
262 %\changes{v2.0d}{2009/08/20}{Refined editing tools to only appear in editing mode and not cause errors during final typesetting.}
263 %
264 %\changes{v2.0e}{2009/08/21}{Created draftimages option, which sets the includegraphics command in graphicx to "draft" mode.}
265 %
266 %\changes{v2.0f}{2009/08/22}{Started cleaning up the comments and logic hierarchies. Using Tabs not spaces for nesting.}
267 %
268 %\changes{v2.0g}{2009/10/07}{Corrected comments from the UO graduate school. Title Page: Title double spaced. No hyphenation throughout (using hyphenation penalties). Suppressed widows and orphans. CV: Rolled Grants into Awards and Honors . TOC: Set the "Chapter" column heading to appear on extra TOC pages. Corrected References to be single spaced with 1 line between each entry. Correct References problem with TOC, spacing, and formatting. (found to be a conflict with chemstyle). \opt{gsmodern} set to be bold sections rather than underlined to prevent obscuring subscripts.}
269 %
270 %\changes{v2.0h}{2010/02/24}{Corrected comments from UO graduate school: Corrected chapter number spacing in TOC/TOT/TOF. Corrected fonts to force 12pt on final draft. Various improvements and new features: Implemented \opt{cleanbreak} command for TOC/TOT/TOF linebreaks. Implemented \opt{smallcaps} option for which allows small caps in the titles for use with subscripts. Refined various modes (Draft, Committee draft, etc.) added red disclaimers to all drafts implemented line numbers on draft modes added ams math files to default loading. Implemented \opt{final} option to turn all draft modes off for dead sure.}
271 %
272 %\changes{v2.0i}{2010/04/09}{Created the option \opt{contnumbering}: Provides option of having the figure and tables numbered continuously or by chapter.}
273 %
274 %\changes{v2.0j}{2010/04/11}{Fixed numbering issues with appendices. Corrected coding for gsmodern to be the hierarchical level numbering. Implemented overfull hbox marking in all draft modes.}
275 %
276 %\changes{v2.0k}{2010/04/20}{Corrected conditional appendix formatting to account for the formatting difference between a singular appendix and multiple appendices. Implemented watermarking on the various draft environments. Employed \pkg{draftwatermark.cls}: Currently only places watermarks on the first page... may change this in the future. Implemented Layouts package in draft mode only: Places a schematic of the page layout after the draft copy cover}
277 %
278 %\changes{v2.0l}{2010/04/21}{Added new environments \opt{chem} and \opt{Chem} based on a combination of amsmath equation environments and mhchem calls. \opt{chem} is for use in short equations and uses amsmath equation environments. \opt{Chem} is for use in long equations requiring linebreaks and uses amsmath multline environments. Also added \opt{rxn:} tag for cross referencing. allow for the use of typical ref commands or \opt{eqref} from amsmath which produced parentheses}
279 %
280 %\changes{v2.0m}{2010/04/22}{Reworked the editing markup to use the todonotes package. Now adds a list of editing marks and the pages before the document in draft mode.}
281 %
282 %\changes{v2.0n}{2010/10/06}{Added support for lorem ipsum dummy text through the "lipsum" option in the document header. Cleaned up psuedocode.}
283 %
284 %\changes{v2.0o}{2010/10/07}{Brought abstract and approval pages into compliance with new graduate student formatting guidelines.}
285 %
286 %\changes{v2.0p}{2010/10/21}{Fixed comments from graduate student thesis editor. Corrected Appendix bug (somebody tied the appendix marker to the back flyleaf…). Got the page number placement sorted out.}
287 %
288 %\changes{v2.1}{2010/10/25}{Tweaked gsmodern, numsection, and default numbering schemes for sections, tables and figures.}
289 %
290 %\changes{v2.2}{2010/11/01}{Made flush left text the default for the text block. Added "justified" option for full justified (LaTeX default) text block. Adjusted the default indent to 24pt as per the GS recommendation.}
291 %
292 %\changes{v2.3}{2010/11/15}{added "amstex" and "chemistry" options. amstex loads the ams packages amsthm, amsmath, and amssymb packages in the appropriate order as indicated by the ams-tex manual. chemistry loads mhchem and creates new environments for long chemical equations as well as the "reaction" environment.}
293 %
294 %\changes{v2.4}{2010/12/21}{added bound option for formatting the document as for printing/binding. Currently this only handles 1 sided printing based on the previous dissertation class. Also ties the bound mode to the draft mode, allowing the printing and 3 hole punching of documents. A disclaimer is placed on the copyright page indicating that the document is for personal use and is not to be confused with the official formatting (i.e. final with bound off). First version in .dtx format}
295 %
296 %\begin{multicols}{2}
297 % \tableofcontents
298 %\end{multicols}
299 %
300 %\section{Introduction}
301 %The |uothesis| class file provides support for generating properly formatted documents that comply with the \UOGS\ style guidelines for the preparation of dissertations and theses. The use of this class does not replace the review process by the Thesis Editor or guarantee the document will pass that review perfectly. Its intention is to simplify the formatting of the document and limit the type of possible corrections to minor fine tuning. This document summarizes the features of the class and provides an example header for the generation of a basic document. This document is NOT intended as a substitute for the \UOGS\ manual and will not be repeating the specifics of document formatting, as the user is expected to have downloaded, read and understood that manual\footnote{\styref}.
302 %
303 %\subsection{New To This Version (2.5)}
304 %
305 %There have been a number of changes to this version to deal with a couple of persistent bugs in the code and to make the CV a little easier to write. The changes to the CV are indicated below in the appropriate section\footnote{Please note that you will have to change your current CV structure to get a clean compile at this point}Second, the package |natbib| is now required by the cls. Users should add the |\usepackage| command from their header files as shown in the example header later in this document. Customization of the citation formatting can be accomplished through the use of a list of options as described in the |natbib| documentation. The last change is the requiring of the command |\formatbib| to the header file above the bibliography section as demonstrated in the example header later in this document.
306 %
307 %\subsection{New To This Version (2.5.1)}
308 %
309 %The package |natbib| is still required by the cls, but now it is loaded directly, no user input is required to load |\natbib| by itself. Customization of the citation formatting can now be accomplished through the use of the native |natbib| options, as described in the |natbib| documentation, included in the options for the class itself. This change is reflected in the example header in this document. Last, the problem requiring the |\formatbib| command has been corrected and now is not needed. Calling the |\formatbib| command will now produce an error.
310 %
311 %\subsection{New To This Version (2.5.2)}
312 %
313 %This version corrects a page number position change that was recently put in place by the graduate school.
314 %
315 %\subsection{New To This Version (2.5.3)}
316 %
317 %Corrected a formatting issue with the block quotes environment.
318 %
319 %\subsection{New To This Version (2.5.4)}
320 %Added the |nofigures| and |notables| options. These options are used to exclude the LOF and LOT from the TOC's if no tables or figures are present in the document. Also an issue with the TOC column labels and long section titles not wrapping were corrected.
321 %
322 %\section{Installation}
323 %
324 % The package is supplied in \file{dtx} format, running
325 % \texttt{tex \jobname.dtx} will extract the package whereas
326 % \texttt{latex \jobname.dtx} will extract it and also typeset the
327 % documentation.
328 %
329 % Typesetting the documentation requires a number of packages in
330 % addition to those needed to use the package. This is mainly
331 % because of the number of demonstration items included in the text. To
332 % compile the documentation without error, you will need the packages:
333 % \begin{multicols}{4}
334 % \begin{itemize}
335 % \item \pkg{array}
336 % \item \pkg{booktabs}
337 % \item \pkg{hypdoc}
338 % \item \pkg{listings}
339 % \item \pkg{lmodern}
340 % \item \pkg{microtype}
341 %\end{itemize}
342 %\end{multicols}
343 %
344 %\section{Requirements}
345 %
346 % The |uothesis| class itself minimally requires the following packages:
347 % \begin{multicols}{3}
348 %\begin{itemize}
349 % \item \pkg{float}
350 % \item \pkg{subfig}
351 % \item \pkg{xcolor}
352 % \item \pkg{graphicx}
353 % \item \pkg{setspace}
354 % \item \pkg{natbib}
355 % \item \pkg{lineno}
356 % \item \pkg{layouts}
357 % \item \pkg{todonotes}
358 % \item \pkg{ragged2e}
359 % \item \pkg{draftwatermark}
360 %\end{itemize}
361 %\end{multicols}
362 %Additional features and functionality may require the following packages:
363 %\begin{multicols}{2}
364 %\begin{itemize}
365 % \item \pkg{mhchem} (for |chemistry|)
366 % \item \pkg{amsmath} (for |amstex|)
367 % \item \pkg{amsthm} (for |amstex|)
368 % \item \pkg{amssymb} (for |amstex|)
369 % \item \pkg{lipsum} (for |lipsum|)
370 %\end{itemize}
371 %\end{multicols}
372 % These are normally present in the current major \TeX\ distributions,
373 % but are also available from \href{http://www.ctan.org}{The
374 % Comprehensive TeX Archive Network}. Note that these packages themselves may have secondary dependencies not expressly listed here. When in doubt read their documentation.
375 %
376 %\section{The Class File}
377 %|uothesis| is an extended version of the |report| \LaTeX\ primitive class. It has been heavily extended to comply with the \UOGS\ requirements for the formatting of dissertations and theses. While every effort has been made to assure that the class generates a document that fully complies with the Graduate School's requirements, every document will be different and use different packages that may cause formatting issues. Therefore, the use of this package \emph{does not} replace extensive proof reading or the meetings with the thesis editor.
378 %
379 %\section{Class Options}
380 %Class options for |uothesis| should be declared in the usual manner within square brackets during the class declaration in the header:
381 %\begin{LaTeXdemo}[code only]
382 % \documentclass[option1,option2,option3]{uothesis}
383 %\end{LaTeXdemo}
384 %Note that class options should be coma separated.
385 %
386 %\subsection{General class options}
387 %
388 %\DescribeOption{dissertation}
389 %Formats the document for a Ph.D. dissertation.
390 %
391 %\DescribeOption{msthesis}
392 %Formats the document for a Master's thesis (still experimental\ldots Graduate School has not approved for theses.)
393 %
394 %\DescribeOption{draftimages}
395 %Graphics included using |\includegraphics| are suppressed to just their bounding boxes and file names. This option is useful for quick compiles where only the layout of the pages and text are a concern. This option is suppressed by the option |final|.
396 %
397 %\DescribeOption{draftcopy}
398 %Creates a draft copy of the document. Dates the document on each page, does not include the preliminary pages, TOC, TOF, or TOT. A page of notes and omissions is created after the cover page for use with the editorial macros below. This option also uses the bound option, which shifts the text block slightly to one side for three hole punching. Line numbering is also invoked for this draft mode and the text is shrunk down by one size to reduce paper if the draft is printed.
399 %
400 %\DescribeOption{committeedraft}
401 %Like draftcopy except includes front matter and standard title page. Does not include the texts of the acknowledgement or dedication. For distribution to committee members.
402 %
403 %\DescribeOption{latedraft}
404 %Useful for last-minute preparations, corrections, and editing before handing the document to the graduate school. For all purposes, |latedraft| is identical to |final|, with the exception that the dedication and the acknowledgements are suppressed and the inclusion of a disclaimer to clearly mark this as a draft copy.
405 %
406 %\DescribeOption{final}
407 %The final draft for presentation to the graduate school.
408 %
409 %
410 %\subsection{Formatting class options}
411 %
412 %\DescribeOption{justified}
413 %This option turns off the ragged right setting for the large text blocks of the document and returns the text block formatting to the \LaTeX\ default, which is full justification. The UOGS does not generally approve of full justification, but they will accept it in this case since \LaTeX\ does it properly.
414 %
415 %\DescribeOption{copyright}
416 %Includes the copyright page.
417 %
418 %\DescribeOption{numsections}
419 %Provides the option of numbered sections.
420 %
421 %\DescribeOption{gsmodern}
422 %An alternate formatting scheme to |numsections| that still provides the section numbering. This has been designed to be closer to technical manuscripts with the numbering hierarchy spanning from the Chapter to the subsubsection level.
423 %
424 %\DescribeOption{contnumbering}
425 %This changes the figure and table numbering to be continuous throughout the document from start to finish.
426 %
427 %\DescribeOption{amstex}
428 %Loads |amsmath|, |amsthm|, and |amssymb| packages in proper order.
429 %
430 %\DescribeOption{chemistry}
431 %Loads the |amstex| class option, |mhchem|, and |chemstyle| packages. Defines new environments for long and short reactions (|chem| and |Chem|) and a new cross reference type for reactions (|rxn:|) for use with |\eqref{}|. The |rxn:| prefix is paired with a new counter to keep track of the reaction environments. This counter is reset by chapter by default.
432 %
433 %\DescribeOption{smallcaps}
434 %Allows small caps in titles and TOC. This option should only be used if there is a need to differentiate between capital and lower case letters in the title, such as with atomic symbols.
435 %
436 %\DescribeOption{bound}
437 %The |bound| option is provided strictly for personal use. It reformats the margins and text block parameters to allow for printing and binding of finished documents. A disclaimer is placed at the bottom of the copyright page, and the copyright notation on this page is suppressed.
438 %
439 %\DescribeOption{nofigures}
440 %Excludes the list of figures from the table of contents section of the frontmatter in cases were there are no figures in the document.
441 %
442 %\DescribeOption{notables}
443 %Excludes the list of tables from the table of contents section of the frontmatter in cases were there are no tables in the document.
444 %
445 %\section{Manuscript macros}
446 %\subsection{General macros}
447 %\DescribeMacro{\cleanbreak}
448 %Forces a clean linebreak in the TOC, TOT, and TOF. This macro is provided to correct issues with over-run in the TOC, etc. It is used so:
449 %\begin{LaTeXdemo}[code only]
450 % \chapter[This is the use of the \linebreak...]{This is the use of
451 % the...}
452 %\end{LaTeXdemo}
453 %The line would break at the point indicated. This macro does not always work depending on how badly other typesetting rules are violated and should only be used in the square bracketed "short title" area. Note that to conform to the \UOGS\ style manual the title in the square and curly brackets should be identical. A second caveat to this command is that it is especially unstable with the use of ragged right text blocks. The method that is used for the fully justified text block (\LaTeX\ default) is incompatible with the |Ragged2e| package, and so a second method, |\newline|, is used. This method gives \LaTeX\ the option of allowing a page break in the middle of the TOC entry.
454 %
455 %\DescribeMacro{\ie}\DescribeMacro{\etc}\DescribeMacro{\etal}\DescribeMacro{\eg}
456 %The following commands to provide macro's for common latin phrases. These commands assume that it is desired for these phrases to be italicized and provide proper punctuation after the latin phase. The code is taken from the Chemstyle package.
457 %
458 %\subsection[Editing macros]{Editing macros (\opt{draftcopy, committeedraft})}
459 %\DescribeMacro{\ednote{}}
460 %|\ednote{}| is a variation on standard margin notes. A numbered margin note will be placed in the margin with a place holder in the text body at the location in the text. A line will connect the place holder with the margin note and the text in the "|{}|" will appear on the notes page in the draft copy of the document. The macro is used so:
461 %\begin{LaTeXdemo}[code only]
462 % This is some text that needs a callout\ednote{this is a call out}.
463 %\end{LaTeXdemo}
464 %
465 %\DescribeMacro{\needref{}}
466 %|\needref{}| places a diamond in the text body at the command location, and a red margin note at the same line with an arrow and a "citation." The "|{}|" can be left blank, but must be included at the moment. Text in the braces will also appear on the notes page in the draft copy.
467 %
468 %\DescribeMacro{\rfmk}
469 %Extensive use of the |\needref{}| macro may result in float errors in the compile. The |\rfmk| command is provided in such cases. It does not provide margin note, only the text marker in the document body and the entry into the list of todo's that appears in the draft mode. |\rfmk| also functions in draft modes, inserting a dummy |\cite| command in the text which results in the default missing citation place holder for the bibtex style being used.
470 %
471 %\DescribeMacro{\here}
472 %|\here| places a square in the text body and a red "here" in the margin. It is intended to mark incomplete sections and will place an "incomplete section" note in the draft copy notes page.
473 %
474 %\subsection[Chemistry macros]{Chemistry macros (\opt{chemistry})}
475 %These commands use a combination of |mhchem| and |amsmath| calls to create two new environments, |chem| and |Chem|. These reactions can be cross referenced using the |rxn| prefix in |\eqref{}|.
476 %\begin{LaTeXdemo}[code only]
477 % \eqref{rxn:somerxn}
478 %\end{LaTeXdemo}
479 %
480 %\DescribeMacro{\chem}
481 %|\chem| is for short equations (no more than 1 column width) and uses |mhchem| and standard AMS |equation| environments. It is used so:
482 %\begin{LaTeXdemo}[code only]
483 % \chem[rxn:firstrxn]{MT2X4}
484 %\end{LaTeXdemo}
485 %
486 %\DescribeMacro{\Chem}
487 %The second environment is |\Chem|, which is for long reactions. This environment uses |amsmath| |multiline| environments which allow the use of |\\| to indicate where the equation should be broken. In this reaction, the line will be broken following the reaction arrow (|->| in the code).
488 %\begin{LaTeXdemo}[code only]
489 % \Chem[rxn:secondrxn]{[(\cmath{(2+\delta)}Se \cdot \ce{Cr}
490 % \cdot \ce{Cu} \cdot \ce{Cr} \cdot \ce{\cmath{(2+\delta)}Se})] ->
491 % [\SI{600}{\celsius}][\text{amorphous melt}]\\ CuCr2Se4
492 % \cmath{(\text{Fd3m, } \langle 111\rangle_{SL} )} + Se ^ }
493 %\end{LaTeXdemo}
494 %
495 %\DescribeMacro{\chemarray}
496 %The |\chemarray| environment is for multiple equations that are desired to have a single reference number as in multistep reactions. Like |\Chem|, the |\\| argument is used to separate lines but the |&| command can also be used to define alignment points within each equation. The |{rl}| argument indicates the alignment of each column created by the |&| commands. In this case right justification for the left hand column and left justification for the right column.
497 %\begin{LaTeXdemo}[code only]
498 % \chemarray[rxn:thirdrxn]{rl}{CuCl + 2CrCl3 + OLA \text{(excess)}
499 % &->[\ce{Ar}][\SI{150}{\celsius}] CuCr(OLA)_x\\
500 % Se + OLA \text{(excess)} &->[\ce{Ar}][\SI{330}{\celsius}]
501 % Se(OLA)_x\reactiontag\\
502 % CuCr(OLA)_x + Se(OLA)_x &->[\ce{Ar},\ \SI{200}{\celsius},\
503 % \SI{2}{\hour}][\ce{Ar},\ \SI{200}{\celsius},\ \SIrange{0.5}{2}{\hour}]
504 % \spinel\ce{(OLA)_x}}
505 %\end{LaTeXdemo}
506 %
507 %\section{Manuscript organization}
508 %It is suggested that you use some scheme for breaking up your document both for ease of editing and for debugging purposes. The method that has been suggested in the past is to break up the manuscript into a header or root file and a series of dependent tex files that contain one chapter each contained in a directory folder. These dependent tex files can then be included or excluded by using |\include{}| commands. |uothesis| is set up to support this method of working. The inclusion of the "|\% !TEX root =|\meta{path to root file}" command will aid in this. The manuscript header example provided demonstrates one possible scheme for splitting of documents. The different components of the header and will be provided in the next section.
509 %
510 %\subsection{Manuscript header example}
511 %\begin{verbatim}
512 %\documentclass[dissertation,justified,copyright,draftimages,final,numbers,sort&compress
513 %gsmodern]{uothesis}
514 %
515 %\usepackage[english,UKenglish]{babel}
516 %\input{custom_cmds.tex}
517 %
518 % THESIS FRONT MATTER
519 %
520 % TITLES.
521 %\covertitle{Document Title As it will appear on\\ the cover page}
522 %\abstracttitle{Document Title: As it will appear on the abstract page}
523 %
524 % AUTHOR
525 %\author{Your Name Here}
526 %
527 % DEPARTMENT
528 %\narrowdepartment{Short Dept. Name}
529 %\department{Full name of department}
530 %
531 % DEGREE INFORMATION
532 %\degreetype{Doctor of Philosophy}
533 %\degreemonth{Month}
534 %\degreeyear{XXXX}
535 %
536 % COMMITTEE INFORMATION
537 %\advisor{Advisor's name}
538 %\chair{Chair's name}
539 %\committee{Member 1 & Inside\\
540 % Member 2 & Inside\\
541 % Member 3 & Outside\\
542 % Member 4 & Honorary\\}
543 %\graddean{Richard Linton}
544 %
545 % CURRICULUM VITAE
546 %\include{thesis_cv}
547 %
548 % ACKNOWLEDGEMENTS
549 %\include{thesis_acknowledgements}
550 %
551 % DEDICATION (optional)
552 %\include{thesis_dedication}
553 %
554 % ABSTRACT
555 %\include{thesis_abstract}
556 %
557 % Main Document
558 %\begin{document}
559 %\maketitle
560 %
561 % CHAPTERS
562 % \include{introduction}
563 % \include{chapter_2}
564 %
565 % APPENDICES
566 %\appendix
567 % \include{tappendix_1}
568 %
569 % REFERENCES
570 %\bibliographystyle{unsrtnat}
571 %\bibliography{bib}
572 %\end{document}
573 %\end{verbatim}
574 %Note that the various components of the document are kept separate with |\include| commands. The exception is the |\input| command used for the |custom_cmds.tex|. The difference comes from the fact that |\input| is treated as part of the header file itself and is processed in line with the rest of the code. The |\import| command takes the output of the target file and adds that, resulting in pages breaks after each |\include|. This is handy, as the style manual requires that each chapter starts on a new page.
575 %
576 %\section{Manuscript meta-data}
577 %Pleas note that in all cases the below macro's are \emph{macro's} and not \emph{environments}. As an example, most \LaTeX\ classes have a |\begin{abstract}|\ldots|\end{abstract}| environment that is used to handle the abstract text. This is not the case with this class, the method used for handling the front-matter requires that these elements be passed to \LaTeX as strings in the macro's: |\abstract{|\ldots|}|.
578 %\subsection{Main information}
579 %
580 %\DescribeMacro{\covertitle{}}
581 %|\covertitle{}| is the title that will appear on the title page of the document. It requires hard coding of the line breaks, using "|\\|", to comply with the inverted pyramid style of the graduate school\footnote{\styref, Pg. 22}.
582 %
583 %\DescribeMacro{\abstracttitle{}}
584 %|\abstracttitle{}| is the title form for anywhere the title appears as in line text. Do NOT use line breaks in the abstract title.
585 %
586 %\DescribeMacro{\author{}}
587 %The full name of the author as it appears on the UO records.
588 %
589 %\DescribeMacro{\narrowdepartment{}}
590 %Some departments have an officially designated "short" name. If you are in one of these departments, this should go here and will be used in the appropriate locations in the document.
591 %
592 %\DescribeMacro{\department{}}
593 %This is the official name of the students department.
594 %
595 %\DescribeMacro{\degreetype{}}
596 %Take the abbreviation of the degree that the document is for and expand it to its full name, e.g. Doctor of Philosophy, Master of Arts, Science, etc.
597 %
598 %\DescribeMacro{\degreemonth{}}
599 %Month of graduation, either December, March, June, or August.
600 %
601 %\DescribeMacro{\degreeyear{}}
602 %The year that the dissertation or thesis will be defended.
603 %
604 %\DescribeMacro{\advisor{}}
605 %Full name of the research advisor
606 %
607 %\DescribeMacro{\chair{}}
608 %Full name of the committee chair
609 %
610 %\DescribeMacro{\cochair{}}
611 %Full name of the committee cochair, if applicable.
612 %
613 %\DescribeMacro{\committee{}}
614 %A list of the examining committee following the form: "\meta{full name}|&|\meta{member type}|\\|" (see example below). This list can be of arbitrary length and is formatted using a table.
615 %\begin{LaTeXdemo}[code only]
616 % \committee{Dr. Person 1 & Member\\
617 % Dr. Person 2 & Member\\
618 % Dr. Person 3 & Outside Member\\
619 % Dr. Person 4 & Honorary Member\\}
620 %\end{LaTeXdemo}
621 %
622 %\DescribeMacro{\graddean{}}
623 %The full name of the current dean of the \UOGS.
624 %
625 %\subsection{Chapter-like meta-data}
626 %Chapter-like meta-data are large blocks of text. These can be placed in the header file or they can be replaced with |\include{}| arguments and kept elsewhere to keep the header compact. The example header uses the latter option.
627 %
628 %\DescribeMacro{\abstract{}}
629 %Fully formatted abstract, as you turned in to the \UOGS. There are size restrictions placed on this document, 350 words and 150 words for the dissertation and the thesis respectively\footnote{\styref, Pg. 24}
630 %
631 %\DescribeMacro{\acknowledge{}}
632 %Optional, the style guide\footnote{\styref, Pg. 25} indicates that this should be no more that 2 pages.
633 %
634 %\DescribeMacro{\dedication{}}
635 %Optional, small text block.
636 %
637 %\subsection{The Curriculum Vitae}
638 %\changes{v2.5}{2011/02/18}{A significant rewrite of the CV handling.}
639 %\DescribeMacro{\birthplace{}}
640 %The birth place of the author
641 %
642 %\DescribeMacro{\birthday{}}
643 %author's birthday
644 %
645 %\DescribeMacro{\school{}}
646 %\changes{v2.5}{2011/02/18}{changed the schools command, and turned it into a 1 entry macro.}
647 %List of the schools attended by the author, with their city and state of location. Each school is on its own |\school{}| entry:
648 %\begin{LaTeXdemo}[code only]
649 % \school{University of Somewhere, City, State
650 % \school{University of Somewhere Else, City, State}
651 % \school{A State School, City, State}
652 %\end{LaTeXdemo}
653 %
654 %\DescribeMacro{\degree{}}
655 %\changes{v2.5}{2011/02/18}{changed the degrees command, and turned it into a 1 entry macro.}
656 %List of the education of the author. Each degree has its own |\degree{}| entry. Each entry should be formatted so: \meta{full degree name} in \meta{field}, \meta{year}, \meta{school name}. An example is below:
657 %\begin{LaTeXdemo}[code only]
658 % \degree{Doctor of Philosophy in submersible basketry, 2010,
659 % University of Somewhere}
660 % \degree{Master of Something in something important, 2005,
661 % University of Somewhere Else}
662 % \degree{Bachelor of Something in something completely different, 2002,
663 % A State School.}
664 %\end{LaTeXdemo}
665 %
666 %\DescribeMacro{\interests{}}
667 %A comma delimited list of interests.
668 %
669 %\DescribeMacro{\position{}}
670 %\changes{v2.5}{2011/02/18}{changed the experience command, and turned it into a 1 entry macro.}
671 %Work history related to the authors research, as with |\school{}| and |\degree{}|, one entry per macro call.
672 %
673 %\DescribeMacro{\award{}}
674 %\changes{v2.5}{2011/02/18}{changed the awards command, and turned it into a 1 entry macro.}
675 %Awards and honors, one per call to the macro as with |\school{}|, |\degree{}|, and |\position{}|.
676 %
677 %\DescribeMacro{\publication{}}
678 %\changes{v2.5}{2011/02/18}{changed the publications command, and turned it into a 1 entry macro.}
679 %This section should be formatted the same way as |\schools{}|, etc. The actual entries must be formatted \emph{exactly} the same as the References Cited section of the document. The easiest way to do this is to take a bibtex file with the authors publications, and create a .bib file for that using the same bibtex style and then copy and pasting it into this section each |\bibitem{}| being placed inside a |\publication{}| macro call\footnote{Yes, this is a little redundant, but it was done this way to avoid any potential conflicts with \BibTeX}. Bibdesk will do this by using one of the optional copy formats under file as should JabRef.
680 %
681 %\section{Trouble Shooting and FAQ's}
682 %First, every attempt has been made to make this package as general and stable as is possible. That said, bugs happen so please report them. \emph{Before} reporting them however, there are somethings that you can do to trouble shoot. It is suggested that you try to answer each of these questions yourself before you contact the maintainer:
683 %\begin{itemize}
684 %\item What does your compile log say? Are there any errors?
685 %\item Are there any errors in your \BibTeX compile log?
686 %\item Can you replicate the problem with a minimal example, i.e. A basic code chunk in a chapter with your header?
687 %\item Can you typeset just the front-matter (abstract, cv, etc.)?
688 %\item Do you have any extra packages installed?
689 %\item Have you checked to see if your problem is caused by a specific package or combination of packages?
690 %\item Are you calling any packages that are already called by the class (section 3 of this document)?
691 %\end{itemize}
692 %
693 %\StopEventually{^^A
694 % \PrintChanges
695 %}
696 %\clearpage
697 %\section{Implementation}
698 %\subsection{Preamble}
699 %First comes the preliminary declarations, the \LaTeX version that is needed, what the class file provides, etc.
700 %
701 % \begin{macrocode}
702 %<*class>
703 \ProvidesClass{uothesis} [2012/02/08 v2.5.6 Submission to
704 University of Oregon Graduate School]
705 % \end{macrocode}
706 %
707 %Next, we print out some identifying text in the output window.
708 %
709 % \begin{macrocode}
710 \typeout{UO Thesis Class}
711 \typeout{}
712 \typeout{Based on the UO Thesis macros by Bart Massey, et al.}
713 \typeout{Currently maintained by Michael D. Anderson}
714 \typeout{Accepted by the University of Oregon Graduate School}
715 \typeout{for general use with Masters Thesis <date goes here>}
716 \typeout{Accepted by the University of Oregon Graduate School}
717 \typeout{for general use with PhD Dissertations <date goes here>}
718 \typeout{}
719 % \end{macrocode}
720 %
721 %And then list the files being called by the .tex file.
722 %
723 % \begin{macrocode}
724 \listfiles
725 % \end{macrocode}
726 %
727 %Here we declare the draft option flags and conditionals for the code.
728 %
729 %\changes{v2.5.1}{2010/04/10}{Added natbib if statement}
730 % \begin{macrocode}
731 \newif\ifthesis
732 \newif\ifdraftcopy
733 \newif\ifcommitteedraft
734 \newif\iflatedraft
735 \newif\ifdraftimage
736 \newif\ifdraft
737 \newif\iffinal
738 \newif\ifsc
739 \newif\iflipsum
740 \newif\ifjustified
741 \newif\ifamstex
742 \newif\ifchem
743 \newif\ifbound
744 \newif\ifnatbib
745 \newif\ifnotables
746 \newif\ifnofigures
747 \newif\if@dissertation
748 \newif\if@copyright
749 \newif\if@gsmodern
750 \newif\if@numsections
751 \newif\if@contnumb
752 \newif\if@draftimage
753 % \end{macrocode}
754 % Now we declare the class options and assign the flags for each option.
755 %\changes{v2.5.1}{2010/04/10}{Added natbib option}
756 % \begin{macrocode}
757 \DeclareOption{dissertation}{\@dissertationtrue\thesistrue\natbibtrue}
758 \DeclareOption{msthesis}{\@dissertationfalse\thesistrue}
759 \DeclareOption{draftimages}{\draftimagetrue\PassOptionsToPackage{draft}{graphicx}}
760 \DeclareOption{draftcopy}{\drafttrue\draftcopytrue\boundtrue}
761 \DeclareOption{committeedraft}{\drafttrue\committeedrafttrue}
762 \DeclareOption{latedraft}{\drafttrue\latedrafttrue}
763 \DeclareOption{copyright}{\@copyrighttrue}
764 \DeclareOption{gsmodern}{\@gsmoderntrue}
765 \DeclareOption{numsections}{\@numsectionstrue}
766 \DeclareOption{amstex}{\amstextrue}
767 \DeclareOption{chemistry}{\chemtrue\amstextrue}
768 \DeclareOption{smallcaps}{\sctrue}
769 \DeclareOption{justified}{\justifiedtrue}
770 \DeclareOption{nofigures}{\nofigurestrue}
771 \DeclareOption{notables}{\notablestrue}
772 \DeclareOption{cheqns}{}
773 \DeclareOption{final}{\draftcopyfalse\draftimagefalse
774 \committeedraftfalse\latedraftfalse\finaltrue}
775 \DeclareOption{lipsum}{\lipsumtrue}
776 \DeclareOption{bound}{\boundtrue}
777 \DeclareOption{natbib}{\natbibtrue}
778 \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{natbib}}
779 % \end{macrocode}
780 %
781 % Finally, we process the options.
782 %
783 % \begin{macrocode}
784 \ProcessOptions
785 % \end{macrocode}
786 %
787 % Now we check that a document type has been indicated in the .tex file.
788 %
789 % \begin{macrocode}
790 \ifthesis\else
791 \typeout{warning: Neither msthesis nor dissertation specified}
792 \fi
793 % \end{macrocode}
794 %
795 %If the bound option is indicated in the .tex file, we need to warn the user.
796 %
797 % \begin{macrocode}
798 \ifbound
799 \typeout{PAGE FORMAT CHANGED FOR BINDING AND PRINTING}
800 \typeout{This format DOES NOT COMPLY with University of Oregon Guidelines}
801 \typeout{For personal use only!}
802 \fi
803 % \end{macrocode}
804 %
805 %Now we pass options to the report class primitive based on the options declared in the .tex file.
806 %
807 % \begin{macrocode}
808 \iflatedraft\PassOptionsToClass{12pt,draft}{report}\fi
809 \ifcommitteedraft\PassOptionsToClass{12pt,draft}{report}\fi
810 \ifdraftcopy\PassOptionsToClass{10pt,draft}{report}
811 \PassOptionsToClass{draft}{todonotes}\fi
812 \iffinal
813 \ifbound
814 \PassOptionsToClass{12pt,twoside}{report}
815 \else
816 \PassOptionsToClass{12pt}{report}
817 \fi\fi
818 % \end{macrocode}
819 %
820 %Now we load the \LaTeX report class primitive.
821 %
822 % \begin{macrocode}
823 \LoadClass{report}
824 % \end{macrocode}
825 %\subsection{Required Packages}
826 %Call the required packages for |uothesis|.
827 %
828 % \begin{macrocode}
829 \RequirePackage{float}
830 \RequirePackage{subfig}
831 \RequirePackage[dvipsnames]{xcolor}
832 \RequirePackage{graphicx}
833 \RequirePackage{setspace}
834 \RequirePackage{xspace}
835 \RequirePackage[left,pagewise]{lineno}
836 \RequirePackage{layouts}
837 \RequirePackage[colorinlistoftodos]{todonotes}
838 \RequirePackage{ragged2e}
839 \captionsetup{labelsep=space}
840 \setlength\RaggedRightRightskip{0pt plus 1cm}
841 \setlength\RaggedRightParindent{0.4in}
842 % \end{macrocode}
843
844 %\subsection{Document-wide Macros and Options}
845 % package options conditionals (document wide)
846 %\begin{macro}{chem}
847 %Here we define the result of calling the |chemistry| option. We call |chemstyle| and |mhchem|.
848 % \begin{macrocode}
849 \ifchem
850 \RequirePackage[version=3]{mhchem}
851 \fi
852 % \end{macrocode}
853 %\end{macro}
854 %\begin{macro}{amstex}
855 % call amstex packages if option enabled
856 % \begin{macrocode}
857 \ifamstex
858 \RequirePackage{amsmath,amsthm,amssymb}
859 \fi
860 % \end{macrocode}
861 %\end{macro}
862 %\begin{macro}{lipsum}
863 % call lipsum package if option enabled
864 % \begin{macrocode}
865 \iflipsum
866 \RequirePackage{lipsum}
867 \fi
868 % \end{macrocode}
869 %\end{macro}
870 %\begin{macro}{natbib}
871 % call natbib package if enabled, which is the default setting
872 %\changes{v2.5.1}{2010/04/10}{Added natbib optional call here}
873 % \begin{macrocode}
874 \ifnatbib
875 \RequirePackage{natbib}
876 \fi
877 % \end{macrocode}
878 %\end{macro}
879
880 %\subsubsection{Draft Only Macros and Options}
881 %\begin{macro}{draftwatermark}
882 % create draft watermark
883 % \begin{macrocode}
884 \ifdraft
885 \RequirePackage{draftwatermark}
886 \newcommand{\watermark}[5]{\SetWatermarkAngle{#1}
887 \SetWatermarkLightness{#2}
888 \SetWatermarkFontSize{#3}
889 \SetWatermarkScale{#4}
890 \SetWatermarkText{\uppercase{#5}}}
891 \ifdraftcopy\watermark{45}{0.95}{5cm}{2.5}{Draft}\fi
892 \ifcommitteedraft\watermark{45}{0.95}{5cm}{2.25}{Committee Draft}\fi
893 \iflatedraft\watermark{45}{0.95}{5cm}{2.5}{Review Proof}\fi
894 \fi
895 % \end{macrocode}
896 %\end{macro}
897 % Here we create the editing markup commands. These are based off of the |\todo| command.
898 % \begin{macrocode}
899 \ifdraftcopy
900 \RequirePackage[colorlinks=true,breaklinks=true]{hyperref}
901 % \end{macrocode}
902 %\begin{macro}{\ednote}
903 %Create |\ednote| command.
904 % \begin{macrocode}
905 \newcounter{ednote}
906 \@addtoreset{ednote}{chapter}
907 \newcommand{\ednote}[1]{\stepcounter{ednote}\todo[color=blue!40,size=\scriptsize,
908 caption={NOTE \arabic{chapter}.\arabic{ednote}: #1},noprepend]%
909 {\bf\hfil N.\arabic{chapter}.\arabic{ednote}\hfil}%
910 {\textbf{\textcolor{blue}{[N.\arabic{chapter}.\arabic{ednote}]}}}}
911 % \end{macrocode}
912 %\end{macro}
913 %\begin{macro}{\here}
914 %Create |\here| command.
915 % \begin{macrocode}
916 \newcommand{\here}{\textcolor{BrickRed}{$\blacksquare$}\todo[color=red!40,
917 size=\small,caption={\uppercase{Incomplete Section: Section \arabic{chapter}.
918 \arabic{section}}}]{\hfil\textbf{\uppercase{Incomplete Section}}\hfil}}
919 % \end{macrocode}
920 %\end{macro}
921 %\begin{macro}{\needref}
922 % create |\needref| command.
923 % \begin{macrocode}
924 \newcounter{citation}
925 \newcounter{citationbychapter}
926 \@addtoreset{citationbychapter}{chapter}
927 \newcommand{\needref}[1]{\stepcounter{citation}\stepcounter{citationbychapter}\todo[color=green!40,
928 size=\scriptsize,caption={CITE \arabic{chapter}.\arabic{citation}: #1}]
929 {\bf C.\arabic{chapter}.\arabic{citation}}
930 {\textbf{\textcolor{ForestGreen}{[C.\arabic{chapter}.\arabic{citation}]}}}}
931 % \end{macrocode}
932 %\end{macro}
933 %\begin{macro}{\rfmk}
934 % create |\rfmk| command.
935 % \begin{macrocode}
936 \newcommand{\rfmk}{\stepcounter{citation}\stepcounter{citationbychapter}
937 {\addcontentsline{tdo}{todo}{\protect{\colorbox{green!40}{\textcolor{green!40}{o}}\ Missing Reference: C.\arabic{chapter}.\arabic{citationbychapter}}}}%
938 {{\textcolor{red}{\ensuremath{^\text{[REF: C.\arabic{chapter}.\arabic{citationbychapter}]}}}}}}
939 % \end{macrocode}
940 %\end{macro}
941 % If the draft mode is not enabled we need to remove commands so that they don't cause errors.
942 % This is done by setting them to be empty if |\ifdraft| comes back as false.
943 % \begin{macrocode}
944 \else
945 \newcommand{\ednote}[1]{}
946 \newcommand{\here}{}
947 \newcommand{\needref}{}
948 \newcounter{citation}
949 \newcommand{\rfmk}{\stepcounter{citation}{\textcolor{red}{\cite{dummy_\arabic{citation}}}}}
950 \fi
951 % \end{macrocode}
952
953 %\subsection{General Macros and Environments}
954 %\begin{macro}{\cleanbreak}
955 % A new command for clean line breaks in TOC, TOF, TOT. The version of the command paired with the RaggedRight option doesn't work particularly well. It is intended more for using the \LaTeX\ default of having a full justification in the text block.
956 %\changes{v2.4}{2010/12/21}{Corrected a potential error here when the command is used with the ragged right text block.}
957 % \begin{macrocode}
958 \newcommand{\cleanbreak}{
959 \ifjustified
960 \\\hfil
961 \else
962 \newline
963 \fi}
964 % \end{macrocode}
965 %\end{macro}
966 % new chemical equation environments. (modified from mhchem documentation, pg. 10-11)
967 % create reaction counter
968 %\begin{macro}{reaction}
969 % Modify the reaction counter to fit formatting requirements.
970 % \begin{macrocode}
971 \ifchem
972 \newcounter{reaction}
973 \renewcommand\thereaction{Formula\ \thechapter.\arabic{reaction}}
974 \@addtoreset{reaction}{chapter}
975 % \end{macrocode}
976 % create new reaction tag
977 % \begin{macrocode}
978 \newcommand\reactiontag{\refstepcounter{reaction}\tag{\thereaction}}
979 % \end{macrocode}
980 %\end{macro}
981 %\begin{macro}{\chem}
982 %Create new chem environment (doesn't use line breaks)
983 % \begin{macrocode}
984 \newcommand{\chem}[2][]{\begin{equation}\cee{#2}%
985 \ifx\@empty#1\@empty\else\label{#1}\fi\reactiontag\end{equation}}
986 % \end{macrocode}
987 %\end{macro}
988 %\begin{macro}{\chemarray}
989 %Create new chemarray environment (allows for mulitple equations with one reference and number). Requires |\reactiontag| to be placed explicitly in the equation.
990 % \begin{macrocode}
991 \newcommand{\chemarray}[3][]{\begin{equation}\begin{array}{#2}\cee{#3}%
992 \end{array}\ifx\@empty#1\@empty\else\label{#1}\fi\reactiontag\end{equation}}
993 % \end{macrocode}
994 %\end{macro}
995 %\begin{macro}{\Chem}
996 %Create new Chem environment (enables line breaks)
997 % \begin{macrocode}
998 \newcommand{\Chem}[2][]{\begin{multline}\cee{#2}%
999 \ifx\@empty#1\@empty\else\label{#1}\fi\reactiontag\end{multline}}
1000 \fi
1001 % \end{macrocode}
1002 % \begin{macrocode}
1003 \newcommand*{\cst@xspace}{\expandafter\xspace}
1004 \newcommand*{\cst@latin}{\expandafter}
1005 \newcommand*{\etc}{\@ifnextchar.{\cst@etc}{\cst@etc.\cst@xspace}}
1006 \newcommand*{\invacuo}{\cst@latin{in vacuo}\cst@xspace}
1007 \newcommand*{\etal}{\@ifnextchar.{\cst@etal}{\cst@etal.\cst@xspace}}
1008 \newcommand*{\eg}{\cst@eg.}
1009 \newcommand*{\ie}{\cst@ie.}
1010 \newcommand*{\cst@etal}{\cst@latin{et~al}}
1011 \newcommand*{\cst@etc}{\cst@latin{etc}}
1012 \newcommand*{\cst@ie}{\cst@latin{i.e\spacefactor999\relax}}
1013 \newcommand*{\cst@eg}{\cst@latin{e.g\spacefactor999\relax}}
1014 % \end{macrocode}
1015 %\end{macro}
1016
1017 %\subsection{Internal Variables and Commands}
1018 %\begin{macro}{\normalspace}
1019 %Define a single spacing environment.
1020 % \begin{macrocode}
1021 \newenvironment{normalspace}{\begin{singlespacing}}{\end{singlespacing}}
1022 % \end{macrocode}
1023 %\end{macro}
1024 %\begin{macro}{\@mydouble}
1025 %Define special double space environment.
1026 % \begin{macrocode}
1027 \def\@mydouble{\endsinglespace\large\normalsize\setstretch{1.7}}
1028 % \end{macrocode}
1029 %\end{macro}
1030 %\begin{macro}{\@mysinglespace}
1031 %Define second special single space environment.
1032 % \begin{macrocode}
1033 \def\@mysingle{\singlespace\large\normalsize\setstretch{1.7}}
1034 % \end{macrocode}
1035 %\end{macro}
1036 %\begin{macro}{\@mysinglespace}
1037 %Define third special single space environment.
1038 % \begin{macrocode}
1039 \def\@mybibsingle{\singlespace\large\normalsize\setstretch{1}}
1040 % \end{macrocode}
1041 %\end{macro}
1042 %\begin{macro}{\@draftdate}
1043 %Define draftdate: YYYY/MM/DD
1044 % \begin{macrocode}
1045 \def\@draftdate{{\the\year/\/\two@digits{\the\month}/\/\two@digits{\the\day}}}
1046 % \end{macrocode}
1047 %\end{macro}
1048 %\begin{macro}{\@longdraftdate}
1049 %Define longdraftdate: Day, Month, YYYY
1050 % \begin{macrocode}
1051 \def\@longdraftdate{\today}
1052 % \end{macrocode}
1053 %\end{macro}
1054 %Define thesis and dissertation strings for abstract page
1055 % \begin{macrocode}
1056 \if@dissertation
1057 \ifdraftcopy
1058 \gdef\@cappapertype{Dissertation Draft}
1059 \else
1060 \gdef\@cappapertype{Dissertation}
1061 \fi
1062 \else
1063 \ifdraftcopy
1064 \gdef\@cappapertype{Thesis Draft}
1065 \else
1066 \gdef\@cappapertype{Thesis}
1067 \fi
1068 \fi
1069 \xdef\@upperpapertype{\uppercase{\@cappapertype}}
1070 \xdef\@papertype{\lowercase{\@cappapertype}}
1071 % \end{macrocode}
1072 %\begin{macro}{\@draftstring}
1073 %Define draft copy header string.
1074 % \begin{macrocode}
1075 \ifdraftcopy
1076 \def\@draftstring{{{\sc Draft of} \@draftdate}}
1077 \else
1078 \def\@draftstring{}
1079 \fi
1080 % \end{macrocode}
1081 %\end{macro}
1082 %\begin{macro}{\@disclaimer}
1083 %Define draft copy disclaimer for title pages.
1084 % \begin{macrocode}
1085 \def\@disclaimer{
1086 \ifcommitteedraft\textcolor{red}{\textbf{\uppercase{committee draft}}}\fi
1087 \iflatedraft\textcolor{red}{\textbf{\uppercase{review proof}}}\fi
1088 \ifdraftcopy\textcolor{red}{\textbf{\uppercase{editing draft}}}\fi\\
1089 \vspace*{0.5in}
1090 \textcolor{red}{\textbf{\uppercase{This is a draft copy for review
1091 and editing purposes only!}}}
1092 \vspace*{10pt}
1093 \setlength\fboxsep{10pt}
1094 \setlength\fboxrule{2pt}
1095 \framebox[1\columnwidth]{\parbox{0.95\columnwidth}{\textcolor{black}
1096 {\textbf{This draft format in no way complies with the University
1097 of Oregon Style Graduate School Style Guide for theses or dissertations.
1098 This draft may employ 10 point fonts for paper conservation, line numbering
1099 for ease of editing, or watermarking and editing notations; all of which violate
1100 the Graduate School Style Guide for final documents. See the uothesis.cls
1101 documentation for instructions on producing a properly formatted document.}}}}}
1102 % \end{macrocode}
1103 %Define bound disclaimer for copyright page
1104 % \begin{macrocode}
1105 \def\@bounddisclaimer{%
1106 \parbox{0.75\textwidth}{\centering
1107 \begin{spacing}{0.5}
1108 {\tiny This document is for the the personal use of the author and does not comply
1109 with the University of Oregon Graduate School. Please contact the University
1110 of Oregon Graduate School for information on how to obtain an official copy
1111 of this document.}
1112 \end{spacing}}\\
1113 \vfill\LaTeX
1114 }
1115 % \end{macrocode}
1116 %\end{macro}
1117
1118 %\subsection{User Accessible Variables and Commands}
1119
1120 %\subsubsection{Titles}
1121 %\begin{macro}{\covertitle}
1122 %Define cover title string
1123 % \begin{macrocode}
1124 \def\covertitle#1{\gdef\@covertitle{#1}\gdef\@uppercovertitle{\begin{doublespace} \uppercase{#1} \end{doublespace}}}
1125 % \end{macrocode}
1126 %\end{macro}
1127 %\begin{macro}{\abstracttitle}
1128 %Define abstract title string
1129 % \begin{macrocode}
1130 \def\abstracttitle#1{\gdef\@abstracttitle{#1}\gdef\@upperabstracttitle{\uppercase{#1}}}
1131 % \end{macrocode}
1132 %\end{macro}
1133
1134 %\subsubsection{Author Strings}
1135 %\begin{macro}{\author}
1136 %Define author command
1137 % \begin{macrocode}
1138 \def\author#1{\gdef\@author{#1}\gdef\@upperauthor{\uppercase{#1}}}
1139 % \end{macrocode}
1140 %\end{macro}
1141 %\begin{macro}{\narrowauthor}
1142 %Define narrow author
1143 % \begin{macrocode}
1144 \def\narrowauthor#1{\gdef\@narrowauthor{#1}\gdef\@uppernarrowauthor{\uppercase{#1}}}
1145 % \end{macrocode}
1146 %\end{macro}
1147
1148 %\subsubsection{School Information and Examination Committee}
1149 %\begin{macro}{\department}
1150 %Define department
1151 % \begin{macrocode}
1152 \def\department#1{\gdef\@department{#1}}
1153 % \end{macrocode}
1154 %\end{macro}
1155 %\begin{macro}{\narrowdepartment}
1156 %Define narrow department
1157 % \begin{macrocode}
1158 \def\narrowdepartment#1{\gdef\@narrowdepartment{#1}}
1159 % \end{macrocode}
1160 %\end{macro}
1161 %\begin{macro}{\advisor}
1162 %Define advisor
1163 % \begin{macrocode}
1164 \def\advisor#1{\gdef\@advisor{#1}}
1165 % \end{macrocode}
1166 %\end{macro}
1167 %\begin{macro}{\chair}
1168 %Define chair
1169 % \begin{macrocode}
1170 \def\chair#1{\gdef\@chair{#1}}
1171 % \end{macrocode}
1172 %\end{macro}
1173 %\begin{macro}{\cochair}
1174 %Define cochair for disseration
1175 % \begin{macrocode}
1176 \newif\if@cochair
1177 \if@dissertation
1178 \def\cochair#1{\gdef\@cochair{#1}\@cochairtrue}
1179 %Define the committee
1180 \def\committee#1{\gdef\@committee{#1}}
1181 \fi
1182 % \end{macrocode}
1183 %\end{macro}
1184 %\begin{macro}{\graddean}
1185 %Define the dean
1186 % \begin{macrocode}
1187 \def\graddean#1{\gdef\@graddean{#1}}
1188 % \end{macrocode}
1189 %\end{macro}
1190
1191 %\subsubsection{Degree and Graduation}
1192 %\begin{macro}{\degreetype}
1193 %Define degree type
1194 % \begin{macrocode}
1195 \def\degreetype#1{\gdef\@degree{#1}}
1196 % \end{macrocode}
1197 %\end{macro}
1198 %\begin{macro}{\degreemonth}
1199 %Define degree month
1200 % \begin{macrocode}
1201 \def\degreemonth#1{\gdef\@degreemonth{#1}}
1202 % \end{macrocode}
1203 %\end{macro}
1204 %\begin{macro}{\degreeyear}
1205 %Define degree year
1206 % \begin{macrocode}
1207 \def\degreeyear#1{\gdef\thedegreeyear{#1}}
1208 % \end{macrocode}
1209 %\end{macro}
1210
1211 %\subsubsection{Abstract, Dedication, etc\ldots}
1212 %\begin{macro}{\abstract}
1213 %Define abstract
1214 % \begin{macrocode}
1215 \long\def\abstract#1{\gdef\@abstract{#1}}
1216 % \end{macrocode}
1217 %\end{macro}
1218 %\begin{macro}{\dedication}
1219 %Define dedication
1220 % \begin{macrocode}
1221 \newif\if@dedication
1222 \long\def\dedication#1{\gdef\@dedication{#1}\@dedicationtrue}
1223 % \end{macrocode}
1224 %\end{macro}
1225 %\begin{macro}{\acknowledge}
1226 %Define acknowledgement
1227 % \begin{macrocode}
1228 \long\def\acknowledge#1{\gdef\@acknowledge{#1}}
1229 % \end{macrocode}
1230 %\end{macro}
1231
1232 %\subsubsection{Signature Page Internal Commands}
1233 %\begin{macro}{\@optional}
1234 %Define the optional arguement: c.f. David Solomon's ``The Advanced TeXbook'', ISBN: 0-387-94556-3, p. 120-150. This macro is used to expand a name iff it is defined. Note that it is invoked as |\@optional{foo}| to expand |\foo|.
1235 % \begin{macrocode}
1236 \def\@optional#1{\let\what=\expandafter\csname #1
1237 \endcsname\ifx\what\relax\else\what\fi}
1238 % \end{macrocode}
1239 %\end{macro}
1240 %\begin{macro}{\sigline, \Sigline}
1241 %Define signature line commands
1242 % \begin{macrocode}
1243 \newcommand{\@sigline}[2]{Approved: \rule{#1}{.4pt}\\*[-0.25\baselineskip]{#2}}
1244 \newcommand{\@Sigline}[1]{Approved: \hrule\vspace*{-\parskip}\vspace*{4pt}{#1}}
1245 % \end{macrocode}
1246 %\end{macro}
1247
1248 %\subsubsection{CV Internal Commands}
1249 %\changes{2.5}{2011/02/18}{Major restructuring of the CV area to allow for a more LaTeX-like experience. Borrowing code ideas from alternate physics LaTeX Code.}
1250 %\begin{macro}{\cvoneline}
1251 % Define single line environment for CV
1252 % \begin{macrocode}
1253 \def\cvoneline#1#2{ \\*[\baselineskip] {#1}: {#2}}
1254 % \end{macrocode}
1255 %\end{macro}
1256 %\begin{macro}{\cvmultiline}
1257 %Define multiline environment for CV
1258 % \begin{macrocode}
1259 \def\cvmultiline#1#2{
1260 \par\vspace{1.5\baselineskip}\noindent
1261 {#1}:\\*[\baselineskip]\nopagebreak
1262 \indent\parbox[b]{5in}{#2}}
1263 % \end{macrocode}
1264 %\end{macro}
1265 %\begin{macro}{\@cvhangindent}
1266 % define CV hanging indent
1267 % \begin{macrocode}
1268 \newlength{\@cvhangindent}
1269 % \end{macrocode}
1270 % Set the hanging indent length and deal with paragraph alignments within the CV.
1271 % \begin{macrocode}
1272 \setlength{\@cvhangindent}{\parindent}
1273 \addtolength{\@cvhangindent}{1.5em}
1274 \long\def\cvpars#1{\par #1}
1275 \long\def\cvitem#1#2{\par\vspace{1.5\baselineskip}\noindent{#1}:\nopagebreak\par #2}
1276 % \end{macrocode}
1277 %\end{macro}
1278
1279 %\subsubsection{CV commands}
1280 %\changes{2.5}{2011/02/18}{Major restructuring of the CV area to allow for a more LaTeX-like experience. Borrowing code ideas from alternate physics LaTeX Code.}
1281 %\changes{v2.5.1}{2010/04/10}{Added new single space command for the bibliography}
1282 %\begin{macro}{CV Variables}
1283 \gdef\@schools{}
1284 \gdef\@degrees{}
1285 \gdef\@birthplace{}
1286 \gdef\@birthday{}
1287 \gdef\@interests{}
1288 \gdef\@awards{}
1289 \gdef\@experience{}
1290 \gdef\@publications{}
1291 %\begin{macro}{\birthplace}
1292 %Define birthplace
1293 % \begin{macrocode}
1294 \def\birthplace#1{\gdef\@birthplace{#1}}
1295 % \end{macrocode}
1296 %\end{macro}
1297 %\begin{macro}{\birthday}
1298 %Define birthday
1299 % \begin{macrocode}
1300 \def\birthday#1{\gdef\@birthdate{#1}}
1301 % \end{macrocode}
1302 %\end{macro}
1303 %\begin{macro}{\schools}
1304 %Define educational history
1305 % \begin{macrocode}
1306 \def\school#1{\expandafter\gdef\expandafter\@schools\expandafter{\@schools\cvpars{#1}}}
1307 % \end{macrocode}
1308 %\end{macro}
1309 %\begin{macro}{\degrees}
1310 %Define the degrees received.
1311 % \begin{macrocode}
1312 \long\def\degree#1{\expandafter\gdef\expandafter\@degrees\expandafter{\@degrees\cvpars{#1}}}
1313 % \end{macrocode}
1314 %\end{macro}
1315 %\begin{macro}{\interests}
1316 %Define interests
1317 % \begin{macrocode}
1318 \def\interests#1{\expandafter\gdef\expandafter\@interests\expandafter{\@interests\cvpars{#1}}}
1319 % \end{macrocode}
1320 %\end{macro}
1321 %\begin{macro}{\experience}
1322 %Define professional experience.
1323 % \begin{macrocode}
1324 \def\position#1{\expandafter\gdef\expandafter\@experience\expandafter{\@experience\cvpars{#1}}}
1325 % \end{macrocode}
1326 %\end{macro}
1327 %\begin{macro}{\awards}
1328 %Define awards. (optional)
1329 % \begin{macrocode}
1330 \def\award#1{\expandafter\gdef\expandafter\@awards\expandafter{\@awards\cvpars{#1}}}
1331 % \end{macrocode}
1332 %\end{macro}
1333 %\begin{macro}{\publications}
1334 %Define publications. (optional)
1335 % \begin{macrocode}
1336 \def\publication#1{\expandafter\gdef\expandafter\@publications\expandafter{\@publications\cvpars{#1}}}
1337 % \end{macrocode}
1338 %\end{macro}
1339 %\end{macro}
1340 %\subsection{Preliminary page formatting, layout, and settings}
1341 %Set the text spacing to a little under double spacing.
1342 % \begin{macrocode}
1343 \setstretch{1.7}
1344 % \end{macrocode}
1345 %Set a standard header size
1346 % \begin{macrocode}
1347 \newcommand{\@normalheaderdims}{
1348 \textheight 620pt
1349 \headheight 14pt
1350 \headsep 14pt}
1351 % \end{macrocode}
1352 %Set standard page margins
1353 % \begin{macrocode}
1354 \ifbound
1355 \oddsidemargin 0.6in
1356 \evensidemargin 0.6in
1357 \textwidth 5.8in
1358 \footskip 0.5in
1359 \footnotesep 15pt
1360 \parindent 24pt
1361 \topmargin 0in
1362 \else
1363 \oddsidemargin 0.25in
1364 \evensidemargin 0.25in
1365 \textwidth 6in
1366 \footskip 0.25in
1367 \footnotesep 15pt
1368 \parindent 24pt
1369 \topmargin 0in
1370 \fi
1371 \@normalheaderdims
1372 % \end{macrocode}
1373 %Set vertical space net (relative to the top of the page).
1374 % \begin{macrocode}
1375 \def\@fromtopskip#1{
1376 \@tempdima=#1
1377 \advance\@tempdima by-1in
1378 \advance\@tempdima by-\topmargin
1379 \advance\@tempdima by-\headheight
1380 \advance\@tempdima by-\headsep
1381 \advance\@tempdima by-\baselineskip
1382 \advance\@tempdima by12pt
1383 \hbox to0pt{}\nointerlineskip\vskip\@tempdima}
1384
1385 % \end{macrocode}
1386 %Setting section numbering for numbered and unnumbered sections.
1387 %Include sections in the TOC
1388 % \begin{macrocode}
1389 \setcounter{tocdepth}{1}
1390 % \end{macrocode}
1391 %Declare a new counter for section numbers
1392 % \begin{macrocode}
1393 \newcounter{@shownumdepth}
1394 % \end{macrocode}
1395 %Show section numbers with gsmodern.
1396 % \begin{macrocode}
1397 \if@gsmodern
1398 \setcounter{@shownumdepth}{2}
1399 \else
1400 % \end{macrocode}
1401 %Show section numbers with numsection
1402 % \begin{macrocode}
1403 \if@numsections
1404 \setcounter{@shownumdepth}{2}
1405 \else
1406 % \end{macrocode}
1407 %Suppress section numbers in TOC and section headings
1408 % \begin{macrocode}
1409 \setcounter{@shownumdepth}{0}
1410 \setcounter{secnumdepth}{1}
1411 \fi
1412 \fi
1413 % \end{macrocode}
1414 %Write the appendix count in the main aux file
1415 % \begin{macrocode}
1416 \def\@emit#1{\if@filesw\immediate\write\@mainaux{#1}\fi}
1417 % \end{macrocode}
1418 %Increase the hyphenation penalty to prevent hyphenation.
1419 % \begin{macrocode}
1420 \hyphenpenalty=500000
1421 % \end{macrocode}
1422 %Increase tolerance of wider word spacing in lines.
1423 % \begin{macrocode}
1424 \tolerance=5000
1425 % \end{macrocode}
1426 %Increase the widow penalties.
1427 % \begin{macrocode}
1428 \widowpenalty=10000
1429 % \end{macrocode}
1430 %Increase the orphan penalties
1431 % \begin{macrocode}
1432 \clubpenalty=10000
1433 % \end{macrocode}
1434 %Allow ragged bottom pages
1435 % \begin{macrocode}
1436 \raggedbottom
1437 % \end{macrocode}
1438
1439 %\subsection{The Title Page Layout}
1440 %\begin{macro}{\@maketitlepage}
1441 %Define the title page
1442 % \begin{macrocode}
1443 \def\@maketitlepage{
1444 % \end{macrocode}
1445 % create a new page
1446 % \begin{macrocode}
1447 \newpage
1448 % \end{macrocode}
1449 % make the page empty
1450 % \begin{macrocode}
1451 \thispagestyle{empty}
1452 % \end{macrocode}
1453 % if draft mode start numbers here
1454 % \begin{macrocode}
1455 \ifdraftcopy\linenumbers\fi
1456 % \end{macrocode}
1457 % begin center justification
1458 % \begin{macrocode}
1459 \begin{center}
1460 % \end{macrocode}
1461 % position title start 0.25 in from top of text block
1462 % \begin{macrocode}
1463 \vspace*{0.25in}
1464 % \end{macrocode}
1465 % set line spacing to double spacing for title
1466 % \begin{macrocode}
1467 \doublespacing
1468 % \end{macrocode}
1469 % call uppercovertitle
1470 % \begin{macrocode}
1471 \@uppercovertitle
1472 % \end{macrocode}
1473 % set line spacing to single spacing
1474 % \begin{macrocode}
1475 \singlespacing
1476 % \end{macrocode}
1477 % fill to by line
1478 % \begin{macrocode}
1479 \vfill
1480 % \end{macrocode}
1481 % set by line and start new line
1482 % \begin{macrocode}
1483 by \\*[\baselineskip]
1484 % \end{macrocode}
1485 % call upper case author string
1486 % \begin{macrocode}
1487 \@upperauthor\\
1488 % \end{macrocode}
1489 % fill to gs declaration
1490 % \begin{macrocode}
1491 \vfil
1492 % \end{macrocode}
1493 % if draft mode set disclaimer
1494 % \begin{macrocode}
1495 \ifdraft\@disclaimer\\\fi\vfill
1496 % \end{macrocode}
1497 % declaration to the graduate school.
1498 % \begin{macrocode}
1499 A \@upperpapertype \\*[\baselineskip]
1500 Presented to the \@narrowdepartment \\*
1501 and the Graduate School of the
1502 University of Oregon \\*
1503 in partial fulfillment of the requirements \\*
1504 for the degree of \\*
1505 % \end{macrocode}
1506 % call degree
1507 % \begin{macrocode}
1508 \@degree \\*[\baselineskip]
1509 % \end{macrocode}
1510 % call degree month
1511 % \begin{macrocode}
1512 \@degreemonth ~\thedegreeyear\\
1513 % \end{macrocode}
1514 % close center justification
1515 % \begin{macrocode}
1516 \end{center}}
1517 % \end{macrocode}
1518 %\end{macro}
1519
1520 %\subsection{The Approval Page}
1521 %Define the approval signature page
1522 %\begin{macro}{\@makeapprovepage}
1523 % \begin{macrocode}
1524 \def\@makeapprovepage{
1525 % \end{macrocode}
1526 % create clear page
1527 % \begin{macrocode}
1528 \clearpage
1529 \thispagestyle{plain}
1530 % \end{macrocode}
1531 % place the heading.
1532 % \begin{macrocode}
1533 \@startchapter{\@upperpapertype\ APPROVAL PAGE}
1534 % \end{macrocode}
1535 % begin single spacing
1536 % \begin{macrocode}
1537 \begin{spacing}{1}
1538 % \end{macrocode}
1539 % 3 ex of vertical space
1540 % \begin{macrocode}
1541 \vspace*{3ex}
1542 % \end{macrocode}
1543 % suppress indenting in the page
1544 % \begin{macrocode}
1545 \noindent
1546 % \end{macrocode}
1547 % call author string.
1548 % \begin{macrocode}
1549 Student: \@author\\*[\baselineskip]
1550 % \end{macrocode}
1551 % call the document title.
1552 % \begin{macrocode}
1553 Title: \@abstracttitle\\*[\baselineskip]
1554 % \end{macrocode}
1555 % place the GS mandated text
1556 % \begin{macrocode}
1557 This \@papertype\ has been accepted and approved
1558 in partial fulfillment of the requirements for the
1559 \@degree\ degree in the \@narrowdepartment\ by:\\*[\baselineskip]
1560 % \end{macrocode}
1561 % create a table with the names of the examining committee
1562 % \begin{macrocode}
1563 \begin{tabular}[t]{p{2.25in} p{3.25in}}
1564 % \end{macrocode}
1565 % call chair string then label
1566 % \begin{macrocode}
1567 \@chair & Chair\\
1568 % \end{macrocode}
1569 % call cochair string then label if it exists
1570 % \begin{macrocode}
1571 \if@cochair
1572 \@cochair& Co-chair\\
1573 \fi
1574 % \end{macrocode}
1575 % call advisor
1576 % \begin{macrocode}
1577 \@advisor & Advisor\\
1578 % \end{macrocode}
1579 % call committee string
1580 % \begin{macrocode}
1581 \@committee\\
1582 and & \\ \\
1583 \@graddean & Vice President for Research \& Innovation/ Dean of the Graduate School
1584 % \end{macrocode}
1585 % end tablular environment
1586 % \begin{macrocode}
1587 \end{tabular}\\*[\baselineskip]
1588 % \end{macrocode}
1589 % remainder of the text required by GS
1590 % \begin{macrocode}
1591 Original approval signatures are on file with the
1592 University of Oregon Graduate School.\\*[\baselineskip]
1593 % \end{macrocode}
1594 % degree date
1595 % \begin{macrocode}
1596 Degree awarded \@degreemonth ~\thedegreeyear
1597 % \end{macrocode}
1598 % end single spacing
1599 % \begin{macrocode}
1600 \end{spacing}}
1601 % \end{macrocode}
1602 %\end{macro}
1603
1604 %\subsection{The Copyright Page}
1605 %\begin{macro}{\@makecopyrightpage}
1606 %Define the copyright page.
1607 % \begin{macrocode}
1608 \def\@makecopyrightpage{
1609 % \end{macrocode}
1610 % begin copyright conditional
1611 % \begin{macrocode}
1612 \if@copyright
1613 % \end{macrocode}
1614 % create clear page
1615 % \begin{macrocode}
1616 \clearpage
1617 \thispagestyle{plain}
1618 % \end{macrocode}
1619 % 4 in vertical space
1620 % \begin{macrocode}
1621 \@fromtopskip{5in}
1622 % \end{macrocode}
1623 % create a centered line with copyright symbol followed by degree year and author string
1624 % \begin{macrocode}
1625 \ifbound\else\centerline{\copyright ~\thedegreeyear ~\@author}\fi
1626 % \end{macrocode}
1627 % vertical fill to bottom of the page
1628 % if draft mode set disclaimer
1629 % \begin{macrocode}
1630 \ifbound{\centering\@bounddisclaimer}\else\vfill\fi\vfil
1631 % \end{macrocode}
1632 % end copyright conditional
1633 % \begin{macrocode}
1634 \fi}
1635 % \end{macrocode}
1636 %\end{macro}
1637
1638 %\subsection{The Abstract Page}
1639 %\begin{macro}{\@makeabstractpage}
1640 %Define the abstract page.
1641 % \begin{macrocode}
1642 \def\@makeabstractpage{
1643 % \end{macrocode}
1644 % create clear page
1645 % \begin{macrocode}
1646 \clearpage
1647 \pagestyle{plain}
1648 % \end{macrocode}
1649 % place the heading.
1650 % \begin{macrocode}
1651 \@startchapter{\@upperpapertype\ ABSTRACT}
1652 % \end{macrocode}
1653 % begin single spacing
1654 % \begin{macrocode}
1655 \begin{spacing}{1}
1656 % \end{macrocode}
1657 % 3 ex of vertical space
1658 % \begin{macrocode}
1659 \vspace*{3ex}
1660 % \end{macrocode}
1661 % suppress indenting in the page
1662 % \begin{macrocode}
1663 \noindent
1664 % \end{macrocode}
1665 % call author string.
1666 % \begin{macrocode}
1667 \@author\\*[\baselineskip]
1668 % \end{macrocode}
1669 % call the degree type.
1670 % \begin{macrocode}
1671 \@degree\\*[\baselineskip]
1672 % \end{macrocode}
1673 % call the department name
1674 % \begin{macrocode}
1675 \@department\\*[\baselineskip]
1676 % \end{macrocode}
1677 % the date
1678 % \begin{macrocode}
1679 \@degreemonth ~\thedegreeyear\\*[\baselineskip]
1680 % \end{macrocode}
1681 % call the document title.
1682 % \begin{macrocode}
1683 Title: \@abstracttitle\\*[\baselineskip]
1684 \parbox[t]{5in}{\raggedright
1685 % \end{macrocode}
1686 % begin co-chair conditional
1687 % \begin{macrocode}
1688 \if@cochair
1689 % \end{macrocode}
1690 % signature lines for advisor
1691 % \begin{macrocode}
1692 \@sigline{3.5in}{\hspace*{1.5in}\@advisor, Co-chair}\\*[\baselineskip]
1693 % \end{macrocode}
1694 % signature lines for cochair.
1695 % \begin{macrocode}
1696 \@sigline{3.5in}{\hspace*{1.5in}\@cochair, Co-chair}
1697 % \end{macrocode}
1698 % if no co-chair
1699 % \begin{macrocode}
1700 \else
1701 % \end{macrocode}
1702 % signature line for advisor.
1703 % \begin{macrocode}
1704 \@sigline{3.5in}{\hspace*{1.5in}\@advisor}
1705 % \end{macrocode}
1706 % end co-chair conditional
1707 % \begin{macrocode}
1708 \fi}\\*[2\baselineskip]
1709 \end{spacing}
1710 % \end{macrocode}
1711 % set text block to full justification if option is called
1712 %\changes{v2.4}{2010/12/19}{Added RaggedRight option to abstract.}
1713 % \begin{macrocode}
1714 \ifjustified\else\RaggedRight\fi
1715 \@abstract}
1716 % \end{macrocode}
1717 %\end{macro}
1718
1719 %\subsection{The Acknowledgments Page}
1720 %\begin{macro}{\@makeackpage}
1721 %Define the acknowledgements page
1722 % \begin{macrocode}
1723 \def\@makeackpage{
1724 % \end{macrocode}
1725 % create clear page
1726 % \begin{macrocode}
1727 \clearpage
1728 \thispagestyle{plain}
1729 % \end{macrocode}
1730 % set the header.
1731 % \begin{macrocode}
1732 \@startchapter{ACKNOWLEDGEMENTS}
1733 % \end{macrocode}
1734 % vertical space
1735 % \begin{macrocode}
1736 \vspace*{\baselineskip}
1737 \par
1738 % \end{macrocode}
1739 % begin draft conditional statement
1740 % \begin{macrocode}
1741 \ifcommitteedraft
1742 % \end{macrocode}
1743 % print disclaimer
1744 % \begin{macrocode}
1745 \begin{center}\@disclaimer\end{center}
1746 % \end{macrocode}
1747 % else
1748 % \begin{macrocode}
1749 \else
1750 % \end{macrocode}
1751 % place acknowledgments
1752 % set text block to full justification if option is called
1753 %\changes{v2.4}{2010/12/19}{Added RaggedRight option to acknowledgements.}
1754 % \begin{macrocode}
1755 \ifjustified\else\RaggedRight\fi
1756 \@acknowledge
1757 % \end{macrocode}
1758 % begin late draft conditional statement
1759 % \begin{macrocode}
1760 \iflatedraft
1761 % \end{macrocode}
1762 % vertical fill
1763 % \begin{macrocode}
1764 \vfill
1765 % \end{macrocode}
1766 % begin center justification
1767 % \begin{macrocode}
1768 \begin{center}
1769 % \end{macrocode}
1770 % mark as review proof
1771 % \begin{macrocode}
1772 \textcolor{red}{\textbf{\uppercase{review proof}}}\\
1773 % \end{macrocode}
1774 % end centering
1775 % \begin{macrocode}
1776 \end{center}
1777 % \end{macrocode}
1778 % end late draft conditional
1779 % \begin{macrocode}
1780 \fi
1781 % \end{macrocode}
1782 % end draft conditional
1783 % \begin{macrocode}
1784 \fi}
1785 % \end{macrocode}
1786 %\end{macro}
1787
1788 %\subsection{The Dedication Page}
1789 %\begin{macro}{\@makededpage}
1790 %Define the dedication page
1791 % \begin{macrocode}
1792 \def\@makededpage{
1793 % \end{macrocode}
1794 % begin dedication conditional
1795 % \begin{macrocode}
1796 \if@dedication
1797 % \end{macrocode}
1798 % create clear page
1799 % \begin{macrocode}
1800 \clearpage
1801 \thispagestyle{plain}
1802 % \end{macrocode}
1803 % set page to width of dedication
1804 % \begin{macrocode}
1805 \settowidth{\@tempdima}{\@dedication}
1806 % \end{macrocode}
1807 % begin short dedication conditional
1808 % \begin{macrocode}
1809 \ifcommitteedraft
1810 % \end{macrocode}
1811 % exclude from the committee draft.
1812 % \begin{macrocode}
1813 \setlength{\@tempdima}{0pt}
1814 % \end{macrocode}
1815 % end short dedication conditional
1816 % \begin{macrocode}
1817 \fi
1818 % \end{macrocode}
1819 % begin long dedication conditional
1820 % \begin{macrocode}
1821 \ifdim\@tempdima<\textwidth
1822 % \end{macrocode}
1823 % 4 in vertical space from top of page
1824 % \begin{macrocode}
1825 \@fromtopskip{4in}
1826 % \end{macrocode}
1827 % set dedication header
1828 % \begin{macrocode}
1829 \@chapterline{}
1830 % \end{macrocode}
1831 % if dedication longer than 1 line of text
1832 % \begin{macrocode}
1833 \else
1834 % \end{macrocode}
1835 % 3 in vertical space from top of page
1836 % \begin{macrocode}
1837 \@fromtopskip{3in}
1838 % \end{macrocode}
1839 % set dedication header
1840 % \begin{macrocode}
1841 \@startchapter{}
1842 % \end{macrocode}
1843 % end long dedication conditional
1844 % \begin{macrocode}
1845 \fi
1846 % \end{macrocode}
1847 % vertical space
1848 % \begin{macrocode}
1849 \vspace*{\baselineskip}
1850 % \end{macrocode}
1851 % end of paragraph
1852 % \begin{macrocode}
1853 \par
1854 % \end{macrocode}
1855 % begin draft conditional
1856 % \begin{macrocode}
1857 \ifcommitteedraft
1858 % \end{macrocode}
1859 % print disclaimer
1860 % \begin{macrocode}
1861 \begin{center}\@disclaimer\end{center}
1862 % \end{macrocode}
1863 % else
1864 % \begin{macrocode}
1865 \else
1866 % \end{macrocode}
1867 % begin center justification
1868 % \begin{macrocode}
1869 \begin{center}
1870 % \end{macrocode}
1871 % place the dedication...
1872 % \begin{macrocode}
1873 \@dedication
1874 % \end{macrocode}
1875 % end center justification
1876 % \begin{macrocode}
1877 \end{center}
1878 % \end{macrocode}
1879 % vertical fill to center on page
1880 % \begin{macrocode}
1881 \vfill
1882 % \end{macrocode}
1883 % begin late draft conditional
1884 % \begin{macrocode}
1885 \iflatedraft
1886 % \end{macrocode}
1887 % begin center justification
1888 % \begin{macrocode}
1889 \begin{center}
1890 % \end{macrocode}
1891 % set review proof notification
1892 % \begin{macrocode}
1893 \textcolor{red}{\textbf{\uppercase{review proof}}}\\
1894 % \end{macrocode}
1895 % end center justification
1896 % \begin{macrocode}
1897 \end{center}
1898 % \end{macrocode}
1899 % end late draft conditional
1900 % \begin{macrocode}
1901 \fi
1902 % \end{macrocode}
1903 % end draft conditional
1904 % \begin{macrocode}
1905 \fi
1906 % \end{macrocode}
1907 % end dedication conditional
1908 % \begin{macrocode}
1909 \fi}
1910 % \end{macrocode}
1911 %\end{macro}
1912
1913 %\subsection{The Cirriculum Vitae}
1914 %\begin{macro}{\@makevita}
1915 %Define the CV
1916 % \begin{macrocode}
1917 \def\@makevita{
1918 % \end{macrocode}
1919 % create clear page
1920 % \begin{macrocode}
1921 \clearpage
1922 \thispagestyle{plain}
1923 % \end{macrocode}
1924 % place the heading.
1925 % \begin{macrocode}
1926 \@startchapter{CURRICULUM VITAE}
1927 % \end{macrocode}
1928 % begin single spacing
1929 % \begin{macrocode}
1930 \begin{singlespacing}
1931 % \end{macrocode}
1932 % 3 ex of vertical space
1933 % \begin{macrocode}
1934 \vspace*{3ex}
1935 % \end{macrocode}
1936 % call author string.
1937 % \begin{macrocode}
1938 \noindent NAME OF AUTHOR:\quad \@author \vskip\baselineskip
1939 % \end{macrocode}
1940 % call birthplace string.
1941 % \begin{macrocode}
1942 %%\noindent PLACE OF BIRTH:\quad \@birthplace \vskip\baselineskip
1943 % \end{macrocode}
1944 % call birthday string.
1945 % \begin{macrocode}
1946 %%\noindent DATE OF BIRTH:\quad \@birthdate \vskip\baselineskip
1947 \everypar={\hangindent=\@cvhangindent}
1948 % \end{macrocode}
1949 % call the educational history string.
1950 % \begin{macrocode}
1951 \noindent GRADUATE AND UNDERGRADUATE SCHOOLS ATTENDED:
1952 \@schools
1953 \vskip \baselineskip
1954 % \end{macrocode}
1955 % call the degrees string.
1956 % \begin{macrocode}
1957 \noindent DEGREES AWARDED:
1958 \@degrees
1959 \vskip \baselineskip
1960 % \end{macrocode}
1961 % call the interests string.
1962 % \begin{macrocode}
1963 \noindent AREAS OF SPECIAL INTEREST:
1964 \@interests
1965 % \end{macrocode}
1966 % change the paragraph spacing.
1967 % \begin{macrocode}
1968 \everypar={\parskip=0.75\baselineskip
1969 \hangindent=\@cvhangindent
1970 \interlinepenalty=\@M}
1971 % \end{macrocode}
1972 % call the experience string.
1973 % \begin{macrocode}
1974 \cvitem{PROFESSIONAL EXPERIENCE}{\@experience}
1975 % \end{macrocode}
1976 % call the awards string.
1977 % \begin{macrocode}
1978 \cvitem{GRANTS, AWARDS AND HONORS}{\@awards}
1979 % \end{macrocode}
1980 % call the publications string.
1981 % \begin{macrocode}
1982 \cvitem{PUBLICATIONS}{\@publications}
1983 % \end{macrocode}
1984 % end the alternate paragraph spacing.
1985 % \begin{macrocode}
1986 \par
1987 % \end{macrocode}
1988 % end single spacing
1989 % \begin{macrocode}
1990 \end{singlespacing}}
1991 % \end{macrocode}
1992 %\end{macro}
1993
1994 %\subsection{Full Draft Front Matter}
1995 %\begin{macro}{\@maketitlepages}
1996 %Here we call the previously defined pages in their proper order.
1997 % \begin{macrocode}
1998 \def\@maketitlepages{
1999 % \end{macrocode}
2000 % set the page numbering to roman
2001 % \begin{macrocode}
2002 \pagenumbering{roman}
2003 % \end{macrocode}
2004 % call the pages
2005 % \begin{macrocode}
2006 \@maketitlepage
2007 \@makeapprovepage
2008 \@makecopyrightpage
2009 \@makeabstractpage
2010 \@makevita
2011 \@makeackpage
2012 \@makededpage
2013 % \end{macrocode}
2014 % begin single spacing before TOC, etc\ldots
2015 % \begin{macrocode}
2016 \begin{singlespacing}
2017 % \end{macrocode}
2018 % adjust the formatting for the TOC's
2019 % \begin{macrocode}
2020 \clearpage
2021 % \end{macrocode}
2022 % set the page style for non-"tocheadings" style TOC, LOF, LOT figures.
2023 % \begin{macrocode}
2024 \@tableofcontents
2025 \ifnofigures\else
2026 \IfFileExists{\jobname.\ext@figure}{\@listoffigures}{\@starttoc{\ext@figure}}
2027 \fi
2028 \ifnotables\else
2029 \IfFileExists{\jobname.\ext@table}{\@listoftables}{\@starttoc{\ext@table}}
2030 \fi
2031 % \end{macrocode}
2032 % create clear page
2033 % \begin{macrocode}
2034 \clearpage
2035 % \end{macrocode}
2036 % reset to normal header dimensions
2037 % \begin{macrocode}
2038 \@normalheaderdims
2039 % \end{macrocode}
2040 % create clear page
2041 % \begin{macrocode}
2042 \clearpage
2043 % \end{macrocode}
2044 % end single spacing
2045 % \begin{macrocode}
2046 \end{singlespacing}}
2047 % \end{macrocode}
2048 %\end{macro}
2049
2050 %\subsection{Working Draft Front Matter}
2051 %\begin{macro}{\@makedraftcover}
2052 %Here we call the previously defined pages with the exception of using the draft cover
2053 % instead of the Full cover and the omission of the table of contents.
2054 % \begin{macrocode}
2055 \def\@makedraftcover{
2056 % \end{macrocode}
2057 % page break
2058 % \begin{macrocode}
2059 \clearpage
2060 % \end{macrocode}
2061 % blank page
2062 % \begin{macrocode}
2063 \thispagestyle{empty}
2064 % \end{macrocode}
2065 % start line numbers for drafts
2066 % \begin{macrocode}
2067 \linenumbers
2068 % \end{macrocode}
2069 % begin center justification
2070 % \begin{macrocode}
2071 \begin{center}
2072 % \end{macrocode}
2073 % 02.5 in vertical space
2074 % \begin{macrocode}
2075 \vspace*{0.25in}
2076 % \end{macrocode}
2077 % call document string in large font
2078 % \begin{macrocode}
2079 {\large \@upperpapertype}\\
2080 % \end{macrocode}
2081 % begin single spacing
2082 % \begin{macrocode}
2083 \begin{singlespacing}
2084 % \end{macrocode}
2085 % call the cover title
2086 % \begin{macrocode}
2087 {\large \@covertitle}\\
2088 % \end{macrocode}
2089 % vertical space
2090 % \begin{macrocode}
2091 \vspace*{\baselineskip}
2092 % \end{macrocode}
2093 % state the draft date.
2094 % \begin{macrocode}
2095 Draft of \@longdraftdate\\
2096 % \end{macrocode}
2097 % call the author string.
2098 % \begin{macrocode}
2099 \@author
2100 % \end{macrocode}
2101 % end single spaceing
2102 % \begin{macrocode}
2103 \end{singlespacing}
2104 % \end{macrocode}
2105 % end center justification
2106 % \begin{macrocode}
2107 \end{center}
2108 % \end{macrocode}
2109 % small font
2110 % \begin{macrocode}
2111 {\small
2112 % \end{macrocode}
2113 % begin single spacing
2114 % \begin{macrocode}
2115 \begin{singlespacing}
2116 % \end{macrocode}
2117 % place the abstract header
2118 % \begin{macrocode}
2119 \begin{center}ABSTRACT\end{center}
2120 % \end{macrocode}
2121 % call the abstract string.
2122 % \begin{macrocode}
2123 {\footnotesize \par\@abstract}
2124 % \end{macrocode}
2125 % vertical fill
2126 % \begin{macrocode}
2127 \vfill
2128 % \end{macrocode}
2129 % begin center justification
2130 % \begin{macrocode}
2131 \begin{center}
2132 % \end{macrocode}
2133 % suppress indenting
2134 % \begin{macrocode}
2135 \noindent
2136 % \end{macrocode}
2137 % call disclaimer
2138 % \begin{macrocode}
2139 \@disclaimer\\
2140 % \end{macrocode}
2141 % end center justification
2142 % \begin{macrocode}
2143 \end{center}
2144 % \end{macrocode}
2145 % end single spacing
2146 % \begin{macrocode}
2147 \end{singlespacing}}
2148 % \end{macrocode}
2149 % clear page
2150 % \begin{macrocode}
2151 \clearpage}
2152 % \end{macrocode}
2153 %\end{macro}
2154
2155 %\subsection{Typeset the appropriate frontmatter}
2156 % \begin{macrocode}
2157 \def\maketitle{
2158 \ifdraftcopy
2159 \iflatedraft
2160 \@maketitlepages
2161 \else
2162 \ifcommitteedraft
2163 \@maketitlepages
2164 \else
2165 \@makedraftcover
2166 \pagenumbering{roman}
2167 \listoftodos\clearpage
2168 \@tableofcontents
2169 \ifnofigures\else
2170 \IfFileExists{\jobname.\ext@figure}{\@listoffigures}{\@starttoc{\ext@figure}}
2171 \fi
2172 \ifnotables\else
2173 \IfFileExists{\jobname.\ext@table}{\@listoftables}{\@starttoc{\ext@table}}
2174 \fi
2175 \fi
2176 \fi
2177 \else
2178 \@maketitlepages
2179 \fi
2180 \pagestyle{plain}
2181 \ifjustified\else\RaggedRight\fi
2182 \pagenumbering{arabic}
2183 \setcounter{page}{1}}
2184 % \end{macrocode}
2185
2186 %\subsection{General Heading Formatting}
2187 % page headings
2188 % \begin{macrocode}
2189 \def\@footlines#1{\hbox to\textwidth{#1}}
2190 \ifbound
2191 \def\@footer{\hfill\rm\thepage}
2192 \else
2193 \def\@footer{\hfil\rm\thepage\hfil}
2194 \fi
2195 % \end{macrocode}
2196 % define the toc chapter and page labels for first page
2197 % \begin{macrocode}
2198 \def\ps@tocheadings{
2199 \def\@oddfoot{\@footlines{\@footer}}
2200 \def\@oddhead{}
2201 \let\@evenfoot\@oddfoot
2202 \let\@evenhead\@oddhead}
2203 % \end{macrocode}
2204 %\changes{v2.5.4}{2011/07/14}{Corrected formatting in extra tof and lot pages}
2205 % define the toc, tof, and lot labels for additional pgs.
2206 % \begin{macrocode}
2207 \def\ps@tocextraheadings{
2208 \def\@oddfoot{\@footlines{\@footer}}
2209 \def\@oddhead{{\hbox to\textwidth{Chapter\hfil{Page}}}}
2210 \def\@evenfoot\@oddfoot
2211 \def\@evenhead{{\hbox to\textwidth{Chapter\hfil{Page}}}}
2212 \textheight 620pt
2213 \headheight 14pt
2214 \headsep 14pt}
2215 \def\ps@lofextraheadings{
2216 \def\@oddfoot{\@footlines{\@footer}}
2217 \def\@oddhead{{\hbox to\textwidth{Figure\hfil{Page}}}}
2218 \def\@evenfoot\@oddfoot
2219 \def\@evenhead{{\hbox to\textwidth{Figure\hfil{Page}}}}
2220 \textheight 620pt
2221 \headheight 14pt
2222 \headsep 14pt}
2223 \def\ps@lotextraheadings{
2224 \def\@oddfoot{\@footlines{\@footer}}
2225 \def\@oddhead{{\hbox to\textwidth{Table\hfil{Page}}}}
2226 \def\@evenfoot\@oddfoot
2227 \def\@evenhead{{\hbox to\textwidth{Table\hfil{Page}}}}
2228 \textheight 620pt
2229 \headheight 14pt
2230 \headsep 14pt}
2231 % \end{macrocode}
2232 % redefine the plain page headers and footers for bound option.
2233 % \begin{macrocode}
2234 \def\ps@plain{
2235 \def\@oddfoot{\@footlines{\@footer}}
2236 \def\@oddhead{}
2237 \let\@evenfoot\@oddfoot
2238 \let\@evenhead\@oddhead
2239 \textheight 620pt
2240 \headheight 14pt
2241 \headsep 14pt}
2242 % \end{macrocode}
2243
2244 %\subsubsection{TOC,TOF, etc\ldots Headers}
2245 % \begin{macrocode}
2246 \def\@tableofcontents{%
2247 \clearpage
2248 \markboth{Chapter}{Chapter}
2249 \thispagestyle{tocheadings}
2250 \@startchapter{TABLE OF CONTENTS}
2251 \vspace*{14pt}
2252 \noindent
2253 \makebox[\textwidth][l]{Chapter \hfill Page}
2254 \pagestyle{tocextraheadings}\@mysingle\@starttoc{toc}}
2255 \def\@listoffigures{%
2256 \clearpage
2257 \markboth{Figure}{Figure}
2258 \thispagestyle{tocheadings}
2259 \@startchapter{LIST OF FIGURES}
2260 \vspace*{14pt}
2261 \noindent
2262 \makebox[\textwidth][l]{Figure \hfill Page}
2263 \pagestyle{lofextraheadings}\@mydouble\@starttoc{\ext@figure}}
2264 \def\@listoftables{%
2265 \clearpage
2266 \markboth{Table}{Table}
2267 \thispagestyle{tocheadings}
2268 \@startchapter{LIST OF TABLES}
2269 \vspace*{14pt}
2270 \noindent
2271 \makebox[\textwidth][l]{Table \hfill Page}
2272 \pagestyle{lotextraheadings}\@mydouble\@starttoc{\ext@table}}
2273 % \end{macrocode}
2274
2275 %\subsection{Table of Contents Formatting}
2276 %Here we set up the formatting for the TOC, TOF, etc\ldots
2277 % \begin{macrocode}
2278 \if@gsmodern
2279 \def\numberline#1{\hbox to\@tempdima{\hskip 0.75em #1\hfil}}
2280 \else
2281 \def\numberline#1{\hbox to\@tempdima{\hfil #1\hskip 0.75em}}
2282 \fi
2283 \def\@dottedtocline#1#2#3#4#5{
2284 \ifnum #1>\c@tocdepth
2285 \else
2286 \vskip \z@ \@plus.2\p@
2287 {\leftskip=#2\relax \rightskip=\@tocrmarg
2288 \parfillskip=-\rightskip
2289 \parindent=#2\relax \hangindent=1.5em
2290 \singlespace\@afterindenttrue
2291 \interlinepenalty\@M
2292 \leavevmode
2293 \@tempdima=#3\relax
2294 \advance\leftskip by\@tempdima \null\nobreak
2295 \hskip -\leftskip
2296 {#4}\nobreak
2297 \leaders\hbox{$\m@th
2298 \mkern \@dotsep mu\hbox{.}\mkern
2299 \@dotsep
2300 mu$}\hfill
2301 \nobreak
2302 \hb@xt@\@pnumwidth{\hfil\normalfont
2303 \normalcolor #5}
2304 \par}
2305 \fi}
2306 \def\@sechack{\relax}
2307 \def\l@chapter#1#2{
2308 \pagebreak[3]\par\vskip\baselineskip
2309 \@dottedtocline{0}{0in}{0.5in}{#1}{#2}
2310 \nopagebreak\par
2311 \gdef\@sechack{\vskip\baselineskip\gdef\@sechack{\relax}}}
2312 \if@gsmodern
2313 \def\l@section{\@sechack\@dottedtocline{1}{0.5in}{0.5in}}
2314 \else
2315 \if@numsections
2316 \def\l@section{
2317 \@sechack\@dottedtocline{1}{0.5in}{0.5in}}
2318 \else
2319 \def\l@section{
2320 \@sechack\@dottedtocline{1}{0.75in}{0.5in}}
2321 \fi
2322 \fi
2323 \def\l@figure{\@dottedtocline{0}{0in}{0.5in}}%
2324 \def\l@table{\@dottedtocline{0}{0in}{0.5in}}
2325 % \end{macrocode}
2326
2327 %\subsection{The Chapter Headings Formatting}
2328 %\begin{macro}{\@chapapp}
2329 %Here we define the chapter heading format and all the conditionals for appendices etc\dots
2330 % \begin{macrocode}
2331 \def\@chapapp{CHAPTER}
2332 \renewcommand{\thechapter}{\arabic{chapter}}
2333 \def\@makechapterhead#1{{
2334 \centering
2335 \ifnum \c@secnumdepth>\m@ne
2336 \@chapapp{}
2337 \if@appendices
2338 \ifnum 1=\aux@appendices
2339 \ifnum 1=\c@chapter\else
2340 \typeout{warning:
2341 extra appendices; rerun LaTeX}
2342 \thechapter
2343 \fi
2344 \else
2345 \thechapter
2346 \fi
2347 \else
2348 \Roman{chapter}
2349 \fi
2350 \par
2351 \vskip 2ex
2352 \fi
2353 \ifsc\textsc{#1}\else\uppercase{#1}\fi\par\nopagebreak\vskip 4ex}}
2354 \def\@makeschapterhead#1{{
2355 \@startchapter{\ifsc\textsc{#1}\else\uppercase{#1}\fi}\par
2356 \nopagebreak\vskip 4ex}}
2357 \def\chapter{
2358 \clearpage\global\@topnum\z@
2359 \@afterindenttrue\secdef\@chapter\@schapter}
2360 \def\@chapter[#1]#2{
2361 \stepcounter{chapter}
2362 \if@appendices
2363 \protected@edef\@currentlabel
2364 {\csname p@chapter\endcsname\Alph{chapter}}
2365 \else
2366 \protected@edef\@currentlabel
2367 {\csname p@chapter\endcsname\Roman{chapter}}
2368 \fi
2369 \typeout{[#1]}
2370 \if@appendices
2371 \ifnum\c@chapter=1
2372 \ifnum\aux@appendices=1
2373 \addtocontents{toc}{
2374 \protect\pagebreak[3]\protect\vspace{3ex}
2375 \protect\nopagebreak\protect\noindent
2376 {}\protect\nopagebreak}
2377 \else
2378 \addtocontents{toc}{
2379 \protect\pagebreak[3]\protect\vspace{3ex}
2380 \protect\nopagebreak\protect\noindent
2381 {APPENDICES}\protect\nopagebreak}
2382 \fi
2383 \fi
2384 \fi
2385 \@emit{\string\global\string\aux@appendices=\number\c@chapter}
2386 \ifnum \c@secnumdepth >\m@ne
2387 \if@appendices
2388 \ifnum\aux@appendices=1
2389 \addcontentsline{toc}{chapter}
2390 {APPENDIX:
2391 \ifsc\textsc{#1}\else\uppercase{#1}\fi}
2392 \else\ifnum\aux@appendices > 1
2393 \addcontentsline{toc}{chapter}
2394 {\protect\number@appendix{\number\c@chapter
2395 }{\Alph{chapter}.}
2396 \ifsc\textsc{#1}\else\uppercase{#1}\fi}
2397 \fi\fi
2398 \else
2399 \addcontentsline{toc}{chapter}
2400 {\protect\numberline{\Roman{chapter}.}\ifsc\textsc{#1}
2401 \else\uppercase{#1}\fi}
2402 \fi
2403 \fi
2404 \chaptermark{\ifsc\textsc{#1}\else\uppercase{#1}\fi.}
2405 \if@twocolumn
2406 \@topnewpage[\@makechapterhead{\ifsc\textsc{#2}
2407 \else\uppercase{#2}\fi}]
2408 \else
2409 \@makechapterhead{\ifsc\textsc{#2}\else\uppercase{#2}\fi}
2410 \@afterheading
2411 \fi}
2412 \def\@schapter#1{
2413 \if@twocolumn
2414 \@topnewpage[\@makeschapterhead{\ifsc\textsc{#1}\else
2415 \uppercase{#1}\fi}]
2416 \else
2417 \@makeschapterhead{\ifsc\textsc{#1}\else\uppercase{#1}\fi}
2418 \@afterheading
2419 \fi}
2420 \def\chapter{
2421 \clearpage\global\@topnum\z@
2422 \@afterindenttrue \secdef\@chapter\@schapter}
2423 \def\@chapterline#1{\centerline{#1}}
2424 \def\@startchapter#1{\@chapterline{#1}}
2425 % \end{macrocode}
2426 %\end{macro}
2427
2428 %\subsection{Section Headings formatting}
2429 %\begin{macro}{\@underbar}
2430 %Here we define the code for a package specific underlining environment.
2431 % \begin{macrocode}
2432 \def\@underbar#1{{$\setbox0=\hbox{#1}\dp0=0pt\underline{\box0}$}}
2433 % \end{macrocode}
2434 %\end{macro}
2435 %\begin{macro}{\@startsection}
2436 %Here we define the section command with all its associated conditionals.
2437 % \begin{macrocode}
2438 \def\@startsection#1#2#3#4#5#6{\if@noskipsec \leavevmode \fi
2439 \par \@tempskipa #4\relax
2440 \@afterindenttrue
2441 \ifdim \@tempskipa <\z@ \@tempskipa -\@tempskipa \@afterindentfalse\fi
2442 \if@nobreak
2443 \everypar{}
2444 \else
2445 \addpenalty{\@secpenalty}\addvspace{\@tempskipa}
2446 \fi
2447 \@ifstar{\@ssect{#2}{#3}{#4}{#5}{#6}}{\@dblarg{
2448 \@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}
2449 \def\@sect#1#2#3#4#5#6[#7]#8{
2450 \if@gsmodern
2451 \refstepcounter{#1}
2452 \edef\@svsec{\csname the#1\endcsname~~}
2453 \else
2454 \if@numsections
2455 \refstepcounter{#1}
2456 \edef\@svsec{\csname the#1\endcsname~~}
2457 \else
2458 \ifnum #2>\c@@shownumdepth
2459 \def\@svsec{}
2460 \else
2461 \edef\@svsec{\csname the#1\endcsname\hskip 1em }
2462 \fi
2463 \ifnum #2>\c@secnumdepth\else\refstepcounter{#1}\fi
2464 \fi
2465 \fi
2466 \@tempskipa #5\relax
2467 \ifdim \@tempskipa>\z@
2468 \if@gsmodern
2469 \begingroup
2470 \@hangfrom{{\bf#6\relax\hskip #3\relax}}{\bf\@svsec{#8}}
2471 \interlinepenalty \@M
2472 \endgroup
2473 \else
2474 \if@numsections
2475 \begingroup #6\relax
2476 \@hangfrom{#6\relax\hskip #3\relax}{
2477 \ifnum #2=1 \bf\else
2478 \ifnum #2=3 \it\else\fi\fi
2479 \interlinepenalty \@M
2480 \ifnum #2=1 \@svsec{#8}\else
2481 \ifnum #2=2 \@underbar{#8}\else#8\fi\fi
2482 \par}
2483 \interlinepenalty \@M
2484 \endgroup
2485 \else
2486 \begingroup #6\relax
2487 \@hangfrom{\hskip #3\relax\@svsec}{
2488 \ifnum #2=1 \bf\else
2489 \ifnum #2=2 \it\else\fi\fi
2490 \interlinepenalty \@M
2491 \ifnum #2=3 \@underbar{#8} \else #8 \fi
2492 \par}
2493 \endgroup
2494 \fi
2495 \fi
2496 \csname #1mark\endcsname{#7}\addcontentsline{toc}{#1}{
2497 \ifnum #2>\c@@shownumdepth
2498 \else
2499 \protect\numberline{\csname the#1\endcsname}
2500 \fi#7}
2501 \else
2502 \def\@svsechd{#6\hskip #3\@svsec #8
2503 \csname #1mark\endcsname{#7}\addcontentsline{toc}{#1}{
2504 \ifnum #2>\c@@shownumdepth
2505 \else
2506 \protect\numberline{\csname the#1\endcsname}
2507 \fi#7}}
2508 \fi
2509 \@xsect{#5}}
2510 \def\@ssect#1#2#3#4#5#6{\@tempskipa #4\relax
2511 \ifdim\@tempskipa>\z@
2512 \begingroup #5\@hangfrom{\hskip #2}{\interlinepenalty \@M
2513 \ifodd #1
2514 \ifnum #1 >3 \@underbar{#6} \hfil
2515 \else
2516 \@underbar{#6}
2517 \fi
2518 \else
2519 #6
2520 \fi \par}\endgroup
2521 \else
2522 \def\@svsechd{#5\hskip #2\relax {#6}}
2523 \fi
2524 \@xsect{#4}}
2525 % \end{macrocode}
2526 %\end{macro}
2527
2528 %\subsubsection{Numbering Hierarchies}
2529 %\begin{macro}{\section}
2530 %Here we define the numbering hierarchy for the various numbering modes.
2531 % \begin{macrocode}
2532 \if@gsmodern
2533 % \end{macrocode}
2534 % gsmodern sets hierarchy to be numbered C.sec.sub.sub.s
2535 % \begin{macrocode}
2536 \def\section{\@startsection{section}{1}{\z@}{3ex}{2ex}{}}
2537 \renewcommand{\thesection}{\thechapter.\arabic{section}.}
2538 \def\subsection{\@startsection{subsection}{2}{\z@}{3ex}{2ex}{}}
2539 \renewcommand{\thesubsection}{\thesection\arabic{subsection}.}
2540 \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{3ex}{2ex}{}}
2541 \renewcommand{\thesubsubsection}{\thesubsection\arabic{subsubsection}.}
2542 \renewcommand{\theequation}{Equation\ \thechapter.\arabic{equation}.}
2543 \else
2544 \if@numsections
2545 % \end{macrocode}
2546 %numsections numbers C.sect.
2547 % \begin{macrocode}
2548 \def\section{\@startsection{section}{1}{\z@}{3ex}{2ex}{\centering}}
2549 \renewcommand{\thesection}{\thechapter.\arabic{section}.}
2550 \def\subsection{\@startsection{subsection}{2}{\z@}{3ex}{2ex}{\centering}}
2551 \renewcommand{\thesubsection}{}
2552 \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{2ex}{2ex}{\centering}}
2553 \renewcommand{\thesubsubsection}{}
2554 \renewcommand{\theequation}{Equation\ \thechapter.\arabic{equation}.}
2555
2556 \else
2557 \def\section{\@startsection{section}{1}{\z@}{3ex}{2ex}{\centering}}
2558 \def\subsection{\@startsection{subsection}{2}{\z@}{3ex}{2ex}{\centering}}
2559 \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{2ex}{2ex}{}}
2560 \fi
2561 \fi
2562 % \end{macrocode}
2563 %\end{macro}
2564
2565 %\subsection{Bibliography Formatting}
2566 %\changes{v2.5}{2011/03/05}{Added formatbib}
2567 %\changes{v2.5.1}{2010/04/10}{Removed formatbib command and chaned single space call.}
2568 %\begin{macro}{\@bibsection}
2569 %Here we create the bibsection command from a chapter and add an entry to the TOC.
2570 % \begin{macrocode}
2571 \newcommand{\@bibsection}[1]{
2572 \clearpage
2573 \addcontentsline{toc}{chapter}{#1}
2574 \@startchapter{#1}
2575 \ifnum \c@citation > 0
2576 \centering
2577 \setlength\fboxsep{10pt}
2578 \setlength\fboxrule{2pt}
2579 \begin{center}
2580 \framebox[1\columnwidth]{\parbox{0.95\columnwidth}{\textcolor{red}
2581 {\centering\textbf{There are unresolved citation issues!\\*%
2582 Number of unresolved citations: \arabic{citation}.\\*%
2583 }}}}
2584 \end{center}
2585 \fi
2586 \singlespacing
2587 \@mybibsingle
2588 \vspace*{3ex}}
2589 % \end{macrocode}
2590 %\end{macro}
2591 %\begin{macro}{\thebibliography}
2592 %Here we build the bibliography using the bibsection command.
2593 % \begin{macrocode}
2594 \def\thebibliography#1{
2595 \@bibsection{REFERENCES CITED}\list
2596 {[\arabic{enumi}]}{\labelwidth\z@ \itemindent-\parindent
2597 \leftmargin\parindent
2598 \interlinepenalty\@M
2599 \usecounter{enumi}}
2600 \def\newblock{\hskip .11em plus .33em minus -.07em}
2601 \sloppy
2602 \raggedright
2603 \sfcode`\.=1000\relax}
2604 \let\endthebibliography=\endlist
2605 %%\newcommand{\formatbib}{
2606 %% \addcontentsline{toc}{chapter}{REFERENCES CITED}
2607 %% \renewcommand\bibname{REFERENCES CITED}}
2608 \AtEndOfClass{\renewcommand\bibname{REFERENCES CITED}}
2609 % \end{macrocode}
2610 %\end{macro}
2611
2612 %\subsection{Float Labels}
2613 %\begin{macro}{\thefigure}
2614 % Formatting for the the floats.
2615 % \begin{macrocode}
2616 \def\thefigure{\@arabic\c@figure}
2617 \def\fnum@figure{FIGURE \thefigure.}
2618 \def\thetable{\@arabic\c@table}
2619 \def\fnum@table{TABLE \thetable}
2620 % \end{macrocode}
2621 %Table and figure numbering by chapter or continuous
2622 % \begin{macrocode}
2623 \if@gsmodern
2624 \else
2625 \def\cl@chapter{\@elt{section}\@elt{footnote}\@elt{equation}}
2626 \fi
2627 % \end{macrocode}
2628 % gsmodern sets figures and tables to be numbered C.Fig. and C.Tab.
2629 % \begin{macrocode}
2630 \if@gsmodern
2631 \renewcommand{\thefigure}{\thechapter.\arabic{figure}.}
2632 \renewcommand{\thetable}{\thechapter.\arabic{table}.}
2633 \renewcommand{\theequation}{Equation\ \thechapter.\arabic{equation}.}
2634 \fi
2635 % \end{macrocode}
2636 %\end{macro}
2637
2638 %\subsection{Italicized Description Labels}
2639 %\begin{macro}{\descriptionlabel}
2640 %Setting italics labels
2641 % \begin{macrocode}
2642 \renewcommand{\descriptionlabel}[1]{
2643 \hspace{\labelsep}\textit{#1}}
2644 % \end{macrocode}
2645 %\end{macro}
2646
2647 %\subsection{Appendix Formatting}
2648 %\begin{macro}{\appendix}
2649 %Define the appendix and set up the formatting for the chapter heading.
2650 % \begin{macrocode}
2651 \newif\if@appendices
2652 \newcount\aux@appendices
2653 \def\number@appendix#1#2{
2654 \ifnum 1=\aux@appendices
2655 \ifnum 1=#1
2656 {\protect\hspace*{0.5in}}
2657 \else
2658 \numberline{#2}
2659 \fi
2660 \else
2661 \numberline{#2}
2662 \fi}
2663 \def\appendix{
2664 \par
2665 \setcounter{chapter}{0}
2666 \def\@chapapp{\uppercase{appendix}}
2667 \def\thechapter{\Alph{chapter}}
2668 \@appendicestrue}
2669 % \end{macrocode}
2670 %\end{macro}
2671
2672 %\subsection{Correction of Spacing Problems}
2673 %\ldots Not really sure what this code does. It is legacy form an earlier version.
2674 %\begin{macro}{\@savdim}
2675 % \begin{macrocode}
2676 \ifx\@savdim\undefined
2677 \let\@savdim\@savsk
2678 \newskip\@savsk
2679 \fi
2680 % \end{macrocode}
2681 %\end{macro}
2682 %\begin{macro}{\@bsphack}
2683 % \begin{macrocode}
2684 \def\@bsphack{\relax
2685 \ifmmode
2686 \else
2687 \@savsk\lastskip
2688 \@savsf
2689 \ifhmode
2690 \spacefactor
2691 \else
2692 \lastpenalty\@savdim\prevdepth\removelastskip%
2693 \fi
2694 \fi}
2695 % \end{macrocode}
2696 %\end{macro}
2697 %\begin{macro}{\@esphack}
2698 % \begin{macrocode}
2699 \def\@esphack{\relax
2700 \ifmmode
2701 \else\ifvmode
2702 \penalty\if@nobreak\@M
2703 \else\if@inlabel\@M
2704 \else\if@noskipsec\@M
2705 \else\@savsf
2706 \fi
2707 \fi
2708 \fi
2709 \prevdepth\@savdim\vskip\@savsk
2710 \else
2711 \spacefactor\@savsf\relax
2712 \ifdim\@savsk>\z@\ignorespaces
2713 \fi
2714 \fi
2715 \fi}
2716 % \end{macrocode}
2717 %\end{macro}
2718
2719 %\subsection{Environment Refinements}
2720 %\changes{v2.5.3}{2011/06/08}{Corrected block quotes}
2721 %\begin{macro}{\@@begintheorem}
2722 % \begin{macrocode}
2723 \def\@@begintheorem#1#2#3{\noindent
2724 \list{}{\rightmargin=\leftmargin
2725 \itemindent=\leftmargin}
2726 \item[\underline{#1\ #2}#3]\hskip
2727 0pt\par\nobreak\ignorespaces}
2728 % \end{macrocode}
2729 %\end{macro}
2730 %\begin{macro}{\@begintheorem}
2731 % \begin{macrocode}
2732 \def\@begintheorem#1#2{
2733 \@@begintheorem{#1}{#2}{}}
2734 % \end{macrocode}
2735 %\end{macro}
2736 %\begin{macro}{\@opargbegintheorem}
2737 % \begin{macrocode}
2738 \def\@opargbegintheorem#1#2#3{
2739 \@@begintheorem{#1}{#2}{ (#3)}}
2740 % \end{macrocode}
2741 %\end{macro}
2742 %\begin{macro}{\@qed}
2743 % \begin{macrocode}
2744 \def\@qed{{\unskip\nobreak
2745 \hfil\penalty50\hskip1em\null\nobreak\hfil
2746 \qedsymbol\parfillskip\z@\finalhyphendemerits0\par}}
2747 % \end{macrocode}
2748 %\end{macro}
2749 %\begin{macro}{\@endtheorem}
2750 % \begin{macrocode}
2751 \def\@endtheorem{\expandafter
2752 \ifx\csname qedsymbol\endcsname\relax
2753 \else\@qed\fi\endlist}
2754 % \end{macrocode}
2755 %\end{macro}
2756 %\begin{macro}{qedbox}
2757 % \begin{macrocode}
2758 \def\qedbox{{\mathsurround\z@$\Box$}}
2759 \let\labelitemi=\labelitemii
2760 \let\labelitemii=\labelitemiii
2761 \let\labelitemiii=\labelitemiv
2762 \catcode`\*=11
2763 \let\itemize*=\enumerate
2764 \let\enditemize*=\endenumerate
2765 \@makeother\*
2766 \let\@itemize=\itemize
2767 % \end{macrocode}
2768 %\end{macro}
2769 %\begin{macro}{\itemize}
2770 % \begin{macrocode}
2771 \def\itemize{
2772 \typeout{Warning: Itemize
2773 deprecated by Grad. School}
2774 \global\let\itemize=\@itemize
2775 \itemize}
2776 % \end{macrocode}
2777 %\end{macro}
2778 %\begin{environment}{quote*}
2779 % \begin{macrocode}
2780 \newenvironment{quote*}
2781 {\list{}{\rightmargin\leftmargin}
2782 \item\relax}
2783 {\endlist}
2784 % \end{macrocode}
2785 %\end{environment}
2786 %\begin{environment}{quote}
2787 % \begin{macrocode}
2788 \renewenvironment{quote}
2789 {\begin{quote*}\setstretch{1.7}}
2790 {\end{quote*}}
2791 % \end{macrocode}
2792 %\end{environment}
2793
2794 %\subsection{Reference Pages}
2795 %\begin{macro}{\pagesref}
2796 % \begin{macrocode}
2797 \newif\if@pagesspecial
2798 \newcommand{\pagesref}[5]{{
2799 \@pagesspecialtrue
2800 \expandafter\ifx\csname r@#1\endcsname\relax
2801 \@pagesspecialfalse\else\fi
2802 \expandafter\ifx\csname r@#2\endcsname\relax
2803 \@pagesspecialfalse\else\fi
2804 \if@pagesspecial
2805 \@tempcnta=\pageref{#1}
2806 \@tempcntb=\pageref{#2}
2807 \ifnum\@tempcnta=\@tempcntb\else\@pagesspecialfalse\fi
2808 \if@pagesspecial
2809 \ifnum\@tempcnta=\c@page
2810 {#5}
2811 \else
2812 \mbox{{#3}\pageref{#1}}
2813 \fi
2814 \fi
2815 \fi
2816 \if@pagesspecial
2817 \else
2818 \mbox{{#4}\pageref{#1}--\pageref{#2}}
2819 \fi}}
2820 % \end{macrocode}
2821 %\end{macro}
2822 %\begin{macro}{\pages}
2823 % \begin{macrocode}
2824 \newcommand{\pages}[2]{\pagesref{#1}{#2}
2825 {p.\hspace*{0.2em}}{pp.\hspace*{0.2em}}{this page}}
2826 % \end{macrocode}
2827 %\end{macro}
2828 %</class>
2829 %\Finale
2830 %