Debian Codegraph @

texmf-dist/source/latex/uaclasses/ua-classes.dtx

raw
1 %% Except where otherwise indicated this code was originally written
2 %% by, and continues to be maintained by, Marcel Oliver. It is released
3 %% into the public domain.
4 %% Where otherwise indicated, code is covered by the licensing terms of
5 %% the original packages.
6 %% The above statement was added 2009/01/05 by Clea F. Rees on behalf
7 %% of the author.
8 % \iffalse
9 %%
10 %% File ua-classes.dtx by Marcel Oliver
11 %%
12 %% Documentation can be obtained by running "latex labels.dtx"
13 %%
14 %<*dtx>
15 \ProvidesFile{ua-classes.dtx}
16 %</dtx>
17 %<driver>\ProvidesFile{ua-classes.drv}
18 %
19 %<*driver>
20 \documentclass{ltxdoc}
21 \begin{document}
22 \DocInput{ua-classes.dtx}
23 \end{document}
24 %</driver>
25 % \fi
26 %
27 % \title{Document Classes for \\
28 % Writing Theses and Dissertations \\
29 % for Submission at the University of Arizona}
30 % \author{Marcel Oliver}
31 % \date{1996/05/09}
32 % \maketitle
33 %
34 % \begin{abstract}
35 % This package provides a \LaTeXe\ document class named |ua-thesis|
36 % for typesetting theses and dissertations in the official format required
37 % by the University of Arizona.
38 % Moreover, there is a fully compatible alternative document class
39 % |my-thesis| for private copies of the dissertation, and the respective
40 % title pages are available as separate packages to work with ``any''
41 % document class.
42 % \end{abstract}
43 %
44 %
45 % \section{User Documentation}
46 %
47 % \subsection{Introduction}
48 %
49 % The |ua-thesis| document class is designed to conform with the official
50 % requirements of the Graduate College of the University of Arizona. It is
51 % based on the |report| class which comes with the standard \LaTeX\
52 % distribution, and all commands are upward compatible with |report|
53 % and to a large extend with the |amsbook| class. In other words, any
54 % document which works error free in those two classes should run with
55 % |ua-thesis|, too. To automatically typeset all the required information,
56 % a few new commands are defined, which are explained below.
57 %
58 %
59 % \subsection{Classes and Options}
60 %
61 % The following classes and packages are provided:
62 %
63 % \begin{description}
64 %
65 % \item[\texttt{ua-thesis}]
66 % The official University of Arizona thesis document class. The |draft|
67 % option is a paper saver---the automatic generation of front matter pages
68 % other than the title page will be suppressed, and single spaced printing
69 % will be used throughout the document. The |final| option activates
70 % ``double spaced'' layout at the required places and creates the full set
71 % of front matter pages. The default is |draft|.
72 %
73 % Note that the draft option is passed through to the underlying |report|
74 % class, i.e.\ thick black rules will indicate the location of overfull
75 % |hbox|es.
76 %
77 % The |ua-thesis| class automatically loads the |amsmath|, |amssymb| and
78 % |amsthm| packages which considerably improve the mathematical
79 % typesetting capabilities of \LaTeX. The use of these macros is strongly
80 % recommended.
81 %
82 % The default type-size in this document class is 12pt and should not be
83 % changed. Subsubsections
84 % produce unnumbered run-in headings which do not appear in the Table of
85 % Contents, therefore their use is discouraged.
86 %
87 % \item[\texttt{my-thesis}]
88 % An alternative to |ua-thesis| to produce private copies of your
89 % dissertation which don't look so reminiscent of the typewriter age. It
90 % is based on the |pcms-l| document class by the American Mathematical
91 % Society, which was designed to typeset monographs for the Park City/IAS
92 % Mathematics Series. It is similar to |amsbook|, but has a less crowded
93 % look.
94 %
95 % \item[\texttt{ua-title}]
96 % The official University of Arizona title page as a separate package.
97 % Useful if you want to build your own private thesis class, but want to
98 % use the official title page. It redefines the |\maketitle| command and
99 % also provides (potentially useless) definitions for all the commands
100 % described in the next section.
101 %
102 % The package is neither guaranteed nor tested to work with any specific
103 % document class. You have to try and see.
104 %
105 % \item[\texttt{my-title}]
106 % The equivalent to |ua-title|, but with the title page of the |my-thesis|
107 % class.
108 %
109 % \end{description}
110 % So, the first line in your dissertation file should be
111 % \begin{verbatim}
112 % \documentclass{ua-thesis}
113 % \end{verbatim}
114 % or, for the final printout,
115 % \begin{verbatim}
116 % \documentclass[final]{ua-thesis}
117 % \end{verbatim}
118 % If you change the document class from |ua-thesis| to |my-thesis| or vice
119 % versa, the
120 % first \LaTeX\ run might produce error messages because the format of the
121 % auxiliary files (|.aux|, |.toc| etc.) is incompatible between the two.
122 % Type |s| or |q| to ignore all error messages and run \LaTeX\ a second
123 % time, or manually delete all auxiliary
124 % files before changing the document class.
125 %
126 %
127 % \subsection{Commands for Specifying the Front Matter}
128 %
129 % As in the standard document classes, the title of your thesis is
130 % specified by
131 % \begin{verbatim}
132 % \title{This is the Title of my Dissertation \\
133 % and This is the Second Line}
134 % \end{verbatim}
135 % where line breaks can be forced with |\\| if the automatic line
136 % breaking does not give a satisfactory result. But remember, the Graduate
137 % College imposes a maximum of three lines in the title---\LaTeX\ does not
138 % check this for you. An optional argument can be given for reasons of
139 % compatibility with the AMS classes, but will be ignored.
140 %
141 % Your name is specified with
142 % \begin{verbatim}
143 % \author{Firstname Lastname}
144 % \end{verbatim}
145 % again, an optional argument will be ignored. Use
146 % \begin{verbatim}
147 % \date{1996}
148 % \end{verbatim}
149 % set the year of your graduation. If you omit this command, the current
150 % day, month and year will be printed, which may be useful for keeping
151 % track of different draft versions.
152 % The only other command that is required for the final version of every
153 % dissertation is
154 % \begin{verbatim}
155 % \director{Firstname Lastname}
156 % \end{verbatim}
157 % to specify the name of your dissertation advisor. It will appear on the
158 % Special Abstract which is automatically generated.
159 %
160 % Now the optional commands. The name of your department is set with
161 % \begin{verbatim}
162 % \department{Department of Metaphysics}
163 % \end{verbatim}
164 % The default is ``Graduate Interdisciplinary Program in Applied
165 % Mathematics''. If you are in the ``Department of Metaphysics'', you have
166 % to use this command.
167 %
168 % If you are writing a Masters thesis, you have to explicitly specify the
169 % name of your degree. Use
170 % \begin{verbatim}
171 % \degree{Masters of Arts}
172 % \end{verbatim}
173 % The default is ``Doctor of Philosophy''. The abbreviation of the
174 % degree is needed for the Special Abstract and can be with
175 % \begin{verbatim}
176 % \degreeabbrev{M.A.}
177 % \end{verbatim}
178 % The default is ``Ph.D.''. Moreover, for Masters theses, the Copyright
179 % Page will have an additional part for the approval signature of your
180 % advisor. It will be automatically generated whenever you specify your
181 % advisor's title with
182 % \begin{verbatim}
183 % \directortitle{Professor of Mathematics}
184 % \end{verbatim}
185 % The default is empty and \emph{must not be changed for doctoral
186 % dissertations}.
187 %
188 % If you have to specify a major department
189 % different from the department above, use
190 % \begin{verbatim}
191 % \major{Agriculture}
192 % \end{verbatim}
193 % The default is empty.
194 %
195 % You can copyright your dissertation or thesis by writing
196 % \begin{verbatim}
197 % \copyrightholder{Firstname Lastname Year}
198 % \end{verbatim}
199 % The default is empty. If you use this command, the
200 % Copyright Page will automatically change to the required
201 % legalese for copyrighted dissertations or theses.
202 %
203 %
204 % \subsection{Examples for the Root File}
205 %
206 % For long documents such as theses, it is useful to split the \LaTeX\
207 % source code into several files. The root file is the file that you run
208 % \LaTeX\ on. Subordinate files are included with |\include|.
209 %
210 % \subsubsection{A Doctoral Dissertation}
211 %
212 % The example below also shows how to load the |graphics| package, which in
213 % particular supports the inclusion of postscript images. Note that you
214 % can specify the |draft| or |final| option for the graphics package
215 % separate from the global options of the document class.
216 %
217 % The |ua-thesis| class is designed to create a |.dvi| file that strictly
218 % adheres to the required page margins. The printer hardware or the
219 % driver implementation, however, may have tolerances that cause the image
220 % to shift on the page. This can be corrected by using |\hoffset|
221 % and |\voffset|. The example below works well with the current printers
222 % in the Math Department.
223 %
224 % You don't need to use |\chapter*{Dedication}| for the Dedication if you
225 % don't like the heading. You can simply start a new page with |\newpage|,
226 % but then you are completely responsible for the formatting of that page,
227 % including the switch to double-spaced printing as is officially required
228 % (this can be done, for example, by using |\doublespaced|).
229 %
230 % \begin{verbatim}
231 % \documentclass[draft]{ua-thesis}
232 % \usepackage[final]{graphics}
233 %
234 % \hoffset -2.1mm
235 %
236 % \director{Advisor's Name}
237 % \date{1996}
238 %
239 % \title{This is a Doctoral Dissertation}
240 % \author{Your Name}
241 %
242 % \begin{document}
243 %
244 % \maketitle
245 %
246 % \chapter*{Acknowledgments}
247 % Acknowledgments go here.
248 %
249 % \chapter*{Dedication}
250 % Dedicated to the Fundamental Theorem of Calculus.
251 %
252 % \tableofcontents
253 % \listoffigures
254 % \listoftables
255 %
256 % \begin{abstract}
257 % This is the abstract.
258 % \end{abstract}
259 %
260 % \include{chapter1}
261 % \include{chapter2}
262 % \appendix
263 % \include{appendix}
264 %
265 % \begin{thebibliography}{99}
266 % And the bibliography goes here.
267 % \end{thebibliography}
268 %
269 % \end{document}
270 % \end{verbatim}
271 %
272 % \subsubsection{A Masters Thesis}
273 %
274 % This thesis is copyrighted, but does not have Acknowledgments or a
275 % Dedication. It is written by a student in the Department of
276 % Mathematics.
277 %
278 % \begin{verbatim}
279 % \documentclass[final]{ua-thesis}
280 %
281 % \hoffset -2.1mm
282 %
283 % \director{Advisor's Name}
284 % \directortitle{Professor of Mathematics}
285 % \degree{Master of Science}
286 % \degreeabbrev{M.S.}
287 % \department{Department of Mathematics}
288 % \date{1996}
289 %
290 % \title{This is a Masters Thesis}
291 % \author{Your Name}
292 % \copyrightholder{Your Name 1996}
293 %
294 % \begin{document}
295 %
296 % \maketitle
297 % \tableofcontents
298 % \listoffigures
299 % \listoftables
300 %
301 % \begin{abstract}
302 % This is the abstract.
303 % \end{abstract}
304 %
305 % \include{chapter1}
306 % \include{chapter2}
307 % \appendix
308 % \include{appendix}
309 %
310 % \begin{thebibliography}{99}
311 % And the bibliography goes here.
312 % \end{thebibliography}
313 %
314 % \end{document}
315 % \end{verbatim}
316 %
317 % \subsection{The Files and Further Documentation}
318 %
319 % Currently, the sources and all documentation are contained in the
320 % following three files.
321 % \begin{description}
322 %
323 % \item[\texttt{ua-classes.dtx}]
324 % User guide and documented source code. The document you are reading has
325 % been obtained by running |latex ua-classes.dtx|.
326 %
327 % \item[\texttt{ua-classes.ins}]
328 % The installation file. Running |latex ua-classes.ins| will
329 % generate the class files |ua-thesis.cls| and |my-thesis.cls| as well
330 % as the title page packages
331 % |ua-title.sty| and |my-title.sty| from the universal source file
332 % |ua-classes.dtx|.
333 %
334 % \item[\texttt{ua-example.tex}]
335 % An example dissertation generated from the official Manual for Theses and
336 % Dissertations by the Graduate College. The file has been obtained via
337 % the web and manually converted into \LaTeX. It both serves as an example
338 % and contains the official formating instructions as of May 1996. Be sure
339 % to check for changes before you submit your dissertation.
340 %
341 % \end{description}
342 %
343 %
344 % \subsection{Bugs and Changes}
345 %
346 % All changes and bug fixes must be done in the file |ua-classes.dtx|,
347 % and \emph{not} in the files generated by the docstrip utility. Moreover,
348 % they must be clearly annotated with a date, name and comments explaining
349 % each change.
350 %
351 %
352 % \section{The Code}
353 %
354 % This section contains a commented listing of the source code.
355 % It is intended for \TeX perts to facilitate alterations and
356 % debugging (hopefully the latter will not become necessary).
357 %
358 % \subsection{The Identification Part}
359 %
360 % \begin{macrocode}
361 \NeedsTeXFormat{LaTeX2e}
362 %<*ua-thesis>
363 \ProvidesClass{ua-thesis}
364 [1997/03/08 UA Thesis Class]
365 %</ua-thesis>
366 %<*my-thesis>
367 \ProvidesClass{my-thesis}
368 [1997/03/08 My Private Thesis Class]
369 %</my-thesis>
370 %<*ua-title>
371 \ProvidesPackage{ua-title}[1997/03/08]
372 %</ua-title>
373 %<*my-title>
374 \ProvidesPackage{my-title}[1997/03/08]
375 %</my-title>
376 % \end{macrocode}
377 %
378 % \subsection{Package Options}
379 %
380 % We pass the global package options through to the underlying
381 % document class. In the |ua-thesis| class we also keep track of
382 % whether the |draft| or |final| option is switched on because
383 % we will link certain document features (see Section 1) to
384 % this option.
385 % \begin{macrocode}
386 %<*ua-thesis>
387 \newif\iffinal@
388 \DeclareOption{final}{%
389 \final@true
390 \PassOptionsToClass{final}{report}}
391 \DeclareOption{draft}{%
392 \final@false
393 \PassOptionsToClass{draft}{report}}
394 \ExecuteOptions{draft}
395 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
396 \ProcessOptions
397 %</ua-thesis>
398 % \end{macrocode}
399 % In the |my-thesis| class, nothing particular happens.
400 % \begin{macrocode}
401 %<*my-thesis>
402 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{amsbook}}
403 \ProcessOptions
404 %</my-thesis>
405 % \end{macrocode}
406 %
407 % \subsection{The Underlying Document Classes}
408 %
409 % The official |ua-thesis| class is based on the standard |report|
410 % document class. We load it with the |12pt| option as default,
411 % which is smallest size allowed. We have to load the
412 % packages of the AMS math bundle explicitly.
413 % Added 1997/3/8: In fact, even |ua-thesis| breaks with old versions
414 % of the AMS macros, so we add a release date to |\RequirePackage|.
415 % \begin{macrocode}
416 %<*ua-thesis>
417 \LoadClass[12pt]{report}
418 \RequirePackage[reqno]{amsmath}[1996/10/24]
419 \RequirePackage{amsfonts}[1996/10/24]
420 \RequirePackage{amsthm}[1996/10/24]
421 \RequirePackage{ua-title}
422 %</ua-thesis>
423 % \end{macrocode}
424 % We want the equation numbers on the right, thus the |reqno| option.
425 %
426 % The |my-thesis| class is based on the |amsbook| class
427 % with modifications adopted from the |pcms-l| package, also by the
428 % AMS. The packages of the AMS math bundle are loaded by default from
429 % within |amsbook|. Added 1996/12/05: The updated version works only
430 % with the new release of the AMS macros, dated 1996/10/24.
431 % \begin{macrocode}
432 %<*my-thesis>
433 \LoadClass[reqno]{amsbook}[1996/10/24]
434 \RequirePackage{my-title}
435 %</my-thesis>
436 % \end{macrocode}
437 %
438 % \subsection{General Style Settings for \texttt{ua-thesis}}
439 %
440 % Redefine the name of the Table of Contents and the References
441 % according to the Graduate College regulations.
442 % We also have to redefine |\listfigurename| and |\listtablename| with
443 % |\def| (although the names are not changed),
444 % otherwise they have the wrong status with respect to the \TeX
445 % internals |\outer| and |\long|, and the |\ifx| statements in the
446 % |\@chapterstar| macro won't work.
447 % \begin{macrocode}
448 %<*ua-thesis>
449 \def\contentsname{Table of Contents}
450 \def\bibname{References}
451 \def\dedicationname{Dedication}
452 \def\listfigurename{List of Figures}
453 \def\listtablename{List of Tables}
454 % \end{macrocode}
455 % Set the page margins as required by the Graduate College: Top margin is
456 % $1.5$in, bottom margin is $1$in, left margin is $1.5$in and the right
457 % margin is $1$in. We grant an extra $0.2$in to the bottom margin to allow
458 % for printer tolerances and to account for characters that extend below
459 % the base line (e.g.\ the character ``y'').
460 % \begin{macrocode}
461 \topmargin 0in
462 \headheight \baselineskip
463 \headsep 0.6in
464 \addtolength{\headsep}{-\headheight}
465 \footskip 0in
466 \textheight \paperheight
467 \addtolength{\textheight}{-2.7in}
468 \oddsidemargin 0.5in
469 \evensidemargin 0.5in
470 \marginparwidth 0in
471 \marginparsep 0in
472 \textwidth \paperwidth
473 \addtolength{\textwidth}{-2.5in}
474 % \end{macrocode}
475 % Macros to switch from single-spaced to double-spaced printing.
476 % The command |\doublespaced| takes only effect when it is used
477 % with the |final| option.
478 % \begin{macrocode}
479 \def\singlespaced{\baselineskip=\normalbaselineskip}
480 \def\doublespaced{\iffinal@ \baselineskip=1.5\normalbaselineskip \fi}
481 % \end{macrocode}
482 % Finally, we define the page styles as required. As we are modifying the
483 % |\topskip| when typesetting chapter headings and when selecting
484 % page style |continued|, we save the default value and restore
485 % it on ``normal'' pages.
486 % \begin{macrocode}
487 \newlength{\@topskipsave}
488 \@topskipsave\topskip
489 % \end{macrocode}
490 % The page style |topright| is used on normal pages. It puts
491 % the page number into the top
492 % header at the right margin of each page.
493 % \begin{macrocode}
494 \def\ps@topright{%
495 \let\@mkboth\@gobbletwo
496 \topskip\@topskipsave
497 \def\@oddhead{\normalfont\hfil\thepage}
498 \let\@evenhead\@oddhead
499 \def\@evenfoot{}
500 \def\@oddfoot{}}
501 % \end{macrocode}
502 % Page style |continued| is for the second and following pages of
503 % the Table of Contents, the List of Figures and the List of Tables.
504 % The macro |\@continued| contains the required heading for those
505 % pages, e.g.\ ``Table of Contents---Continued''.
506 % \begin{macrocode}
507 \def\ps@continued{%
508 \let\@mkboth\@gobbletwo
509 \topskip 0.5in
510 \def\@oddhead{\raisebox{-0.5in}{\@continued}%
511 \hfil\normalfont\thepage}
512 \let\@evenhead\@oddhead
513 \def\@evenfoot{}
514 \def\@oddfoot{}}
515 % \end{macrocode}
516 % The \TeX\ mechanism for starting pages is rather mysterious. There is
517 % some extra space associated with the variable |\topskip|. However, it
518 % is not sufficient to just set |\topskip| to zero. One moreover has to
519 % place a box of zero height onto the page, otherwise \TeX\ inserts extra
520 % vertical space, and we lose precise control over the placements
521 % of the layout elements. The following macro is called whenever a
522 % title page (main title, chapter title, etc.) is started.
523 % \begin{macrocode}
524 \def\@notopskip{\topskip\z@ \hrule height\z@}
525 %</ua-thesis>
526 % \end{macrocode}
527 %
528 % \subsection{Some Style Defaults of the \texttt{my-thesis} Class}
529 %
530 % We mostly follow the defaults given by the |amsbook| class, but there
531 % are few things worth changing. First we add some space between the items
532 % of a list---we don't have to be too stingy with vertical space.
533 % The next four lines are copied from |amsbook.cls| with changed definition
534 % for |\itemsep|.
535 % \begin{macrocode}
536 %<*my-thesis>
537 \def\@listI{\leftmargin\leftmargini \parsep\z@skip
538 \topsep\listisep \itemsep\topsep
539 \listparindent\normalparindent}
540 \let\@listi\@listI
541 % \end{macrocode}
542 % Moreover, sections are to be numbered within chapters, and we give the
543 % Abstract the appearance of an unnumbered chapter.
544 % \begin{macrocode}
545 \numberwithin{section}{chapter}
546 \renewenvironment{abstract}%
547 {\chapter*{Abstract}}{}
548 % \end{macrocode}
549 % We must define a bibliography style to avoid an error message.
550 % \begin{macrocode}
551 \bibliographystyle{amsplain}
552 %</my-thesis>
553 % \end{macrocode}
554 %
555 % \subsection{The Title Page Packages}
556 %
557 % The title page macros are put into separate files, so that they can
558 % be used in conjunction with other document classes, if this is
559 % desirable.
560 %
561 % First some common code that defines the macros for
562 % various layout elements in the title page(s). The |my-thesis| class
563 % will not use all of them, but their definition is required anyway to
564 % assure compatibility with |ua-thesis|. The defaults are set as follows:
565 % \begin{macrocode}
566 %<*ua-title|my-title>
567 \let\@title\@empty
568 \let\@author\@empty
569 \let\@copyright\@empty
570 \def\@thesis{Dissertation}
571 \def\@department{Graduate Interdisciplinary Program \\
572 in Applied Mathematics}
573 \def\@degree{Doctor of Philosophy}
574 \def\@degreeabbrev{Ph.D.}
575 \let\@major\@empty
576 \let\@director\@empty
577 \let\@directortitle\@empty
578 % \end{macrocode}
579 % In the following, changed |\newcommand| to |\renewcommand|
580 % because the new release
581 % of the AMS classes seems to define |\copyrightholder| while the
582 % old release doesn't (1996/12/05).
583 % \begin{macrocode}
584 \def\copyrightholder#1{\gdef\@copyright{#1}}
585 \newcommand{\thesis} [1]{\gdef\@thesis{#1}}
586 \newcommand{\department} [1]{\gdef\@department{#1}}
587 \newcommand{\degree} [1]{\gdef\@degree{#1}}
588 \newcommand{\degreeabbrev} [1]{\gdef\@degreeabbrev{#1}}
589 \newcommand{\major} [1]{\gdef\@major{#1}}
590 \newcommand{\director} [1]{\gdef\@director{#1}}
591 \newcommand{\directortitle} [1]{\gdef\@directortitle{#1}}
592 % \end{macrocode}
593 % We redefine the |\title| and |\author| commands to follow the
594 % AMS syntax. The optional
595 % argument allowed in the AMS classes is simply ignored without
596 % an error message.
597 % \begin{macrocode}
598 \renewcommand{\title} [2][]{\gdef\@title{#2}}
599 \renewcommand{\author}[2][]{\gdef\@author{#2}}
600 %</ua-title|my-title>
601 % \end{macrocode}
602 %
603 %
604 % \subsubsection{The Official Title Page}
605 %
606 % This macro is largely self-explanatory \ldots
607 %
608 % \begin{macrocode}
609 %<*ua-title>
610 \def\@SetTitlePage{%
611 \thispagestyle{empty}
612 \begingroup
613 \centering
614 \@notopskip
615 \vspace*{1in}
616 \begingroup
617 \Large\scshape
618 \addtolength{\baselineskip}{8pt}
619 \@title \\
620 \endgroup
621 \vspace*{\stretch{1}}
622 by \\[5pt]
623 \@author \\
624 \hrule height\z@
625 \vspace*{\stretch{2}}
626 \begingroup
627 \rule{2in}{0.7pt} \\
628 \ifx\@empty\@copyright
629 \else Copyright \copyright\ \@copyright \\
630 \fi
631 \endgroup
632 \vspace*{\stretch{2}}
633 \begingroup
634 % \end{macrocode}
635 % The following line sets the inter-word space to twice its original value.
636 % \begin{macrocode}
637 \spaceskip1.3\fontdimen2\font plus1.3\fontdimen3\font
638 A \@thesis\ Submitted to the Faculty of the \\[8pt]
639 \textsc{\large\@department} \\[8pt]
640 In Partial Fulfillment of the Requirements \\
641 For the Degree of \\[8pt]
642 \textsc{\large\@degree}
643 \ifx\@empty\@major
644 \else \\
645 \textsc{\large With a Major in \@major}
646 \fi \\[8pt]
647 In the Graduate College \\[8pt]
648 \textsc{\large The University of Arizona} \\
649 \endgroup
650 \vspace*{\stretch{1}}
651 \spaced{\@date}
652 \vspace*{0.5in}
653 \newpage
654 \endgroup}
655 % \end{macrocode}
656 % To make |\@SetTitlePage| work with standard document classes, we redefine
657 % |\maketitle| to be |\@SetTitlePage|. This choice will later be
658 % overridden by the |ua-thesis| class.
659 % \begin{macrocode}
660 \let\maketitle\@SetTitlePage
661 %</ua-title>
662 % \end{macrocode}
663 %
664 %
665 % \subsubsection{My Title Page}
666 %
667 % Here we can simply redefine |\maketitle| directly without the help of
668 % an auxiliary macro.
669 % \begin{macrocode}
670 %<*my-title>
671 \def\maketitle{%
672 \cleardoublepage
673 \thispagestyle{empty}
674 \begingroup
675 \centering
676 \vspace*{\stretch{1}}
677 \hrule height 1pt
678 \begingroup
679 \Huge\bfseries
680 \addtolength{\baselineskip}{2pt}
681 \medskip
682 \@title \\
683 \medskip
684 \endgroup
685 \hrule height 1pt
686 \vspace*{\stretch{1}}
687 \begingroup
688 \huge \@author \\
689 \endgroup
690 \vspace*{\stretch{1.7}}
691 \begingroup
692 \Large
693 \spaceskip1.3\fontdimen2\font plus1.3\fontdimen3\font
694 A \@thesis\ Submitted to the Faculty of the \\[8pt]
695 \textsc{\LARGE\@department} \\[8pt]
696 In Partial Fulfillment of the Requirements \\
697 For the Degree of \\[8pt]
698 \textsc{\LARGE\@degree}
699 \ifx\@empty\@major
700 \else \\
701 \textsc{\LARGE With a Major in \@major}
702 \fi \\[8pt]
703 In the Graduate College \\[8pt]
704 \textsc{\LARGE The University of Arizona} \\
705 \endgroup
706 \vspace*{0.8cm}
707 {\Large\spaced{\@date}}
708 \newpage
709 \endgroup}
710 %</my-title>
711 % \end{macrocode}
712 %
713 %
714 % \subsubsection{Setting the Date with Spaces Between Digits}
715 %
716 % In order to increase the inter-letter space in the date, we resort to
717 % a technique which is a simplified version of the
718 % |letterspace| package (by Philip Taylor, described in The
719 % \LaTeX\ Companion). The macro |\spaced| puts spaces between all the
720 % characters of its argument.
721 % \begin{macrocode}
722 %<*ua-title|my-title>
723 \def \spaced #1%
724 {\edef \3{#1}%
725 {\expandafter \insertsp@ces \3\@nd}%
726 }
727 \def \insertsp@ces #1#2\@nd
728 {\def \1{#1}%
729 \def \2{#2}%
730 \1%
731 \ifx \1\empty \else \ifx \2\empty \else \space \fi \fi
732 \ifx \2\empty
733 \let \n@xt = \relax
734 \else
735 \futurelet \2\m@kespaceexplicit #2\@nd
736 \def \n@xt {\expandafter \insertsp@ces \2\@nd}%
737 \fi
738 \n@xt
739 }
740 \def \m@kespaceexplicit #1#2\@nd %
741 {\if \2 \def \2{{ }#1#2}\else \def \2{#1#2}\fi}
742 %</ua-title|my-title>
743 % \end{macrocode}
744 %
745 %
746 % \subsubsection{Official Approval and Copyright Pages}
747 %
748 % This code is specific to the |ua-thesis| class. Here |\maketitle|
749 % has to invoke the automatic generation of the Approval and the Copyright
750 % Page, provided that the |final| option is set.
751 % \begin{macrocode}
752 %<*ua-thesis>
753 \def\maketitle{%
754 \cleardoublepage
755 \begingroup
756 \@SetTitlePage
757 \iffinal@
758 \@SetApprovalForm
759 \@SetAuthorStatement
760 \fi
761 \endgroup
762 \let\maketitle\relax}
763 % \end{macrocode}
764 % Make an empty approval page which is eventually to be substituted by
765 % the official approval page from the Graduate College. This macro is
766 % only called if the |final| option is set.
767 % \begin{macrocode}
768 \def\@SetApprovalForm{%
769 \pagestyle{topright}
770 \@notopskip
771 \vspace*{\fill}
772 \begin{center}
773 \Large
774 Get the official approval page \\
775 from the Graduate College \\
776 \textsl{before} your final defense.
777 \end{center}
778 \vspace*{\fill}
779 \vspace*{0.5in}
780 \newpage}
781 % \end{macrocode}
782 % Now the Copyright page. The copyright page is also printed only
783 % with the |final| option in place.
784 % \begin{macrocode}
785 \def\@SetAuthorStatement{%
786 \begingroup
787 \pagestyle{topright}
788 \@notopskip
789 \vspace*{1in}
790 \begingroup
791 \centering\large\scshape
792 Statement by Author \\
793 \endgroup
794 \bigskip\bigskip
795 \par
796 This \MakeLowercase{\@thesis} has been submitted in partial
797 fulfillment of requirements for an advanced degree at The
798 University of Arizona and is deposited in the University
799 Library to be made available to borrowers under rules
800 of the Library.
801 \bigskip
802 \par
803 Brief quotations from this \MakeLowercase{\@thesis} are
804 allowable without special permission, provided that accurate
805 acknowledgment of source is made. Requests for permission for
806 extended quotation from or reproduction of this manuscript in
807 whole or in part may be granted by the
808 \ifx\@empty\@copyright
809 head of the major department or the Dean of the Graduate
810 College when in his or her judgment the proposed use of
811 the material is in the interests of scholarship.
812 In all other instances, however,
813 permission must be obtained from the author.
814 \else
815 copyright holder.
816 \fi
817 \par
818 \vspace*{3\baselineskip}
819 \begin{flushright}
820 \scshape
821 Signed: \underline{\makebox[2.5in][r]{}}
822 \end{flushright}
823 \vspace*{\fill}
824 \ifx\@empty\@directortitle
825 \else
826 \begingroup
827 \centering
828 \large\scshape
829 Approval by \@thesis\ Director
830 \endgroup
831 \bigskip\bigskip\par
832 This \MakeLowercase{\@thesis} has been approved
833 on the date shown below:
834 \vspace*{3\baselineskip}\par\noindent
835 \begin{minipage}[t]{0.45\textwidth}
836 \begin{center}
837 \underline{\makebox[\textwidth][r]{}} \\
838 \@director \\
839 \@directortitle
840 \end{center}
841 \end{minipage}%
842 \hfill%
843 \begin{minipage}[t]{0.45\textwidth}
844 \begin{center}
845 \underline{\makebox[\textwidth][r]{}} \\
846 Date
847 \end{center}
848 \end{minipage}
849 \fi
850 \vspace*{0.5in}
851 \newpage
852 \endgroup}
853 % \end{macrocode}
854 %
855 % \subsubsection{Abstract and Special Abstract}
856 %
857 % Setting the abstract in the official thesis class
858 % is tricky. Since we have to typeset it twice, for
859 % the regular and the special abstract, and we want to keep the regular
860 % \LaTeX\ syntax of having an |abstract| environment, we somehow have to
861 % save the body of the abstract environment for further processing.
862 % This is quite difficult to do in \TeX, but fortunately the |amsmath|
863 % package has solved this problem for us. It defines the internal macro
864 % |\collect@body| which takes a single argument, namely the name of
865 % a macro which does the processing. This macro is then called by
866 % |\collect@body|, and given the contents of the environment body as
867 % its argument. We redefine these macros here, mainly for the reason that
868 % we want the auxiliary macros |\collect@@body|
869 % and |\Addto@envbody| to be defined with
870 % |\long\def|, so that the abstract can have more than one paragraph.
871 % We capitalize all macros not to interfere with the |amsmath| package
872 % (actually, our change would only change |amsmath|s response to
873 % errors, not its behavior with correct code).
874 % \begin{macrocode}
875 \long\def\Addto@envbody#1{\@envbody\@xp{\the\@envbody#1}}
876 \def\Collect@body#1{%
877 \@envbody{}%
878 \def\process@envbody{%
879 \@xp#1\@xp{\the\@envbody}%
880 }%
881 \@xp\let\csname\@currenvir\endcsname\Collect@@body
882 \csname\@currenvir\endcsname
883 }
884 \long\def\Collect@@body#1\end#2{%
885 \def\@tempa{#2}%
886 \ifx\@tempa\@currenvir
887 \Addto@envbody{#1}%
888 \@xp\edef\csname\@currenvir\endcsname{%
889 \@nx\process@envbody\@nx\end{\@tempa}%
890 }%
891 \else
892 \Addto@envbody{#1\end{#2}}%
893 \fi
894 \csname\@currenvir\endcsname
895 }
896 % \end{macrocode}
897 % The details of the above are explained in |amsmath.dtx|. For us it
898 % is mainly a convenience, and the remainder of the abstract
899 % macro can be coded in a very elegant way.
900 % \begin{macrocode}
901 \renewenvironment{abstract}{%
902 \Collect@body\@SetAbstract}{}
903 % \end{macrocode}
904 % Now the macro |\@SetAbstract|, which actually does the work. First
905 % we typeset the regular abstract.
906 % \begin{macrocode}
907 \long\def\@SetAbstract#1{%
908 \chapter*{Abstract}
909 #1
910 \clearpage
911 % \end{macrocode}
912 % Then the special abstract. We typeset it only in the final version. Note
913 % that we have to save the page counter at the beginning of the special
914 % abstract, so that it doesn't interfere with the page numbering of the
915 % main document.
916 % \begin{macrocode}
917 \iffinal@
918 \begingroup
919 \clearpage
920 \newcounter{s@avepageno}
921 \setcounter{s@avepageno}{\value{page}}
922 \setcounter{page}{1}
923 \thispagestyle{empty}
924 \@notopskip
925 \begingroup
926 \centering
927 \large\textsc
928 \@title \\
929 \bigskip
930 \normalfont\normalsize
931 \@author, \@degreeabbrev \\
932 The University of Arizona, \@date \\
933 \endgroup
934 \bigskip
935 \noindent Director: \@director \par
936 \bigskip\bigskip
937 #1
938 \endgroup
939 \clearpage
940 \setcounter{page}{\value{s@avepageno}}
941 \fi}
942 % \end{macrocode}
943 %
944 %
945 % \subsection{The Sectioning Commands}
946 %
947 % \subsubsection{Chapter Headings in the Official Format}
948 %
949 % The |\chapter| macro is standard code. It calls |\@chapter| for
950 % numbered chapters, and |\@chapterstar| for unnumbered ones.
951 % \begin{macrocode}
952 \def\chapter{%
953 \clearpage
954 \global\@topnum\z@
955 \@afterindentfalse
956 \secdef\@chapter\@chapterstar}
957 % \end{macrocode}
958 % For numbered chapters we do all the usual things: Set the page style in
959 % case it has been modified previously, increment the chapter counter,
960 % create the Table of Contents entry and add extra space into the
961 % List of Figures and List of Tables.
962 % \begin{macrocode}
963 \def\@chapter[#1]#2{%
964 \pagestyle{topright}
965 \refstepcounter{chapter}%
966 \typeout{\@chapapp \space \thechapter}
967 \addcontentsline{toc}{chapter}%
968 {\protect\chapterline{\@chapapp\ \thechapter}#1}
969 \addtocontents{lof}{\protect\addvspace{\medskipamount}}
970 \addtocontents{lot}{\protect\addvspace{\medskipamount}}
971 % \end{macrocode}
972 % Then we typeset the chapter heading.
973 % \begin{macrocode}
974 \begingroup
975 \@notopskip
976 \centering
977 \vspace*{0.25in}
978 \textbf{\@chapapp\ \thechapter} \\
979 \medskip
980 \Large\textsc{#2} \par
981 \endgroup
982 \vspace*{2\normalbaselineskip}
983 \@afterheading
984 \doublespaced}
985 % \end{macrocode}
986 % Unnumbered chapters are more tricky. Several explicitly format decisions
987 % have to be made to typeset all the special ``chapters'' in the
988 % front matter of the dissertation according to the official requirements.
989 %
990 % The following rules are implemented: The Dedication is typeset
991 % double-spaced. The Table of Contents, List of Figures and List of Tables
992 % must be get pagestyle |continued| and be single-spaced. In all other
993 % cases pagestyle |topright| is selected.
994 % Only those unnumbered chapters that
995 % come after the Table of Contents will get an entry in the Table of
996 % Contents. An arbitrary unnumbered chapter that comes after the
997 % Table of Contents will be double-spaced, the exception is the References,
998 % which are single-spaced. If an unnumbered chapter comes before the
999 % Table of Contents, no explicit decision between single and double-spaced
1000 % is made. The effect is that the Acknowledgments will be single-spaced,
1001 % provided they are placed in the officially required order.
1002 % \begin{macrocode}
1003 \def\@chapterstar#1{%
1004 \typeout{#1}
1005 \edef\1{#1}
1006 \ifx \dedicationname\1
1007 \doublespaced
1008 \else
1009 \ifx \contentsname\1
1010 \@specialhead\1
1011 \singlespaced
1012 \let\tableofcontents\relax
1013 \else
1014 \ifx \listfigurename\1
1015 \@specialhead\1
1016 \@tocentry\1
1017 \singlespaced
1018 \else
1019 \ifx \listtablename\1
1020 \@specialhead\1
1021 \@tocentry\1
1022 \singlespaced
1023 \else
1024 \pagestyle{topright}
1025 \ifx \tableofcontents\relax
1026 \@tocentry\1
1027 \ifx \bibname\1 \singlespaced \else \doublespaced \fi
1028 \fi\fi\fi\fi\fi
1029 % \end{macrocode}
1030 % And this is the code to typeset the heading.
1031 % \begin{macrocode}
1032 \begingroup
1033 \@notopskip
1034 \centering
1035 \Large\textsc{#1} \par
1036 \endgroup
1037 \vspace*{2\normalbaselineskip}
1038 \@afterheading}
1039 % \end{macrocode}
1040 % The following macro creates the Table of Contents entry for unnumbered
1041 % chapters.
1042 % \begin{macrocode}
1043 \def\@tocentry#1{%
1044 \addcontentsline{toc}{chapter}{#1}
1045 \addtocontents{lof}{\protect\addvspace{\medskipamount}}
1046 \addtocontents{lof}{\protect\addvspace{\medskipamount}}}
1047 % \end{macrocode}
1048 % And this one switches to pagestyle |continued| and defines the
1049 % extra part of the page heading.
1050 % \begin{macrocode}
1051 \def\@specialhead#1{%
1052 \gdef\@continued{\normalsize\scshape#1---\slshape Continued}
1053 \pagestyle{continued}
1054 \thispagestyle{topright}}
1055 %</ua-thesis>
1056 % \end{macrocode}
1057 %
1058 % \subsubsection{Chapter Headings in the Un-Official Format}
1059 %
1060 % The following code for chapter headings is taken from the
1061 % |pcms-l| class by the AMS. It is slightly simplified
1062 % because we don't have to deal with different ``lectures'' and
1063 % multiple authors.
1064 % \begin{macrocode}
1065 %<*my-thesis>
1066 \def\chapter{\cleardoublepage \pagestyle{headings}%
1067 \setcounter{section}0\relax
1068 \thispagestyle{plain}%
1069 \global\@topnum\z@
1070 \@afterindentfalse \secdef\@chapter\@schapter}
1071 %
1072 \def\@chapter[#1]#2{\refstepcounter{chapter}%
1073 \ifnum \c@secnumdepth <\z@ \let\thechapter\@empty\fi
1074 \let\@secnumber\thechapter
1075 \typeout{\chaptername\space\thechapter}%
1076 \addcontentsline{toc}{chapter}{%
1077 \protect\numberline{%
1078 \ifx\thechapter\@empty\else\chaptername\ \thechapter.\fi}#1}%
1079 \chaptermark{#1}%
1080 \addtocontents{lof}{\protect\addvspace{10\p@}}%
1081 \addtocontents{lot}{\protect\addvspace{10\p@}}%
1082 \@makechapterhead{#2}\@afterheading}
1083 %
1084 \def\@schapter#1{\typeout{#1}%
1085 \@ifnotempty{#1}{\addcontentsline{toc}{chapter}{#1}}%
1086 \let\@secnumber\empty
1087 \chaptermark{#1}%
1088 \addtocontents{lof}{\protect\addvspace{10\p@}}%
1089 \addtocontents{lot}{\protect\addvspace{10\p@}}%
1090 \@makeschapterhead{#1}\@afterheading}
1091 % \end{macrocode}
1092 % For typesetting the chapter head we fixed one problem with
1093 % |pcms-l|: The first |\vspace| was originally achieved
1094 % through modifying |\topskip|. However, for mysterious reasons,
1095 % the modification is reset to the default whenever floats are defined
1096 % on the first page of a chapter.
1097 % \begin{macrocode}
1098 \def\@makechapterhead#1{\begingroup
1099 \vspace*{37pt}
1100 \ifodd\c@page\raggedleft\else\raggedright\fi
1101 \ifnum\c@secnumdepth>\m@ne
1102 \leavevmode
1103 {\Large\bfseries
1104 \uppercase\@xp{\chaptername}\enspace
1105 {\LARGE\bfseries\thechapter\par}}\skip@34\p@
1106 \advance\skip@-\normalbaselineskip
1107 \vskip\skip@ {\huge\bfseries #1\par}\fi
1108 \endgroup
1109 \skip@34\p@ \advance\skip@-\normalbaselineskip
1110 \vskip\skip@ }
1111 % \end{macrocode}
1112 % And the chapter head for unnumbered chapters:
1113 % \begin{macrocode}
1114 %
1115 \def\@makeschapterhead#1{%
1116 \vtop to 8pc{\vfill
1117 \ifodd\c@page\raggedleft\else\raggedright\fi
1118 {\huge\bfseries #1\par}%
1119 }%\endgroup
1120 \skip@34\p@\advance\skip@-\normalbaselineskip
1121 \vskip\skip@ }
1122 %</my-thesis>
1123 % \end{macrocode}
1124 %
1125 % \subsubsection{Section, Subsections etc.}
1126 %
1127 % Here we follow literally the |pcms-l| settings, both for |ua-thesis| and
1128 % |my-thesis|. The appearance is similar to the |report| class, but the
1129 % type sizes are scaled down one step, which looks less excessive.
1130 % \begin{macrocode}
1131 %<*ua-thesis|my-thesis>
1132 \def\section{\@startsection{section}{1}%
1133 \z@{-1\baselineskip\@plus-.75\baselineskip}{.5\baselineskip}%
1134 {\large\bfseries}}
1135 %
1136 \def\subsection{\@startsection{subsection}{2}%
1137 \z@{-.75\baselineskip\@plus-.5\baselineskip}{.5\baselineskip}%
1138 {\normalfont\bfseries}}
1139 %
1140 \def\subsubsection{\@startsection{subsubsection}{3}%
1141 \z@{.5\baselineskip\@plus.5\baselineskip}{-5\p@}%
1142 {\normalfont\itshape}}
1143 % \end{macrocode}
1144 % The same for the appearance of theorems, remarks, definitions and
1145 % proofs. Directly from |pcms-l|.
1146 %
1147 % Changed on 1996/12/05:
1148 % The following four macros are all
1149 % taken from the October 1996 release from |pcms-l|, because the
1150 % new release of |amsthm| breaks these macros. No attempt is
1151 % made to be compatible with the old version.
1152 % \begin{macrocode}
1153 \def\th@plain{%
1154 \let\thm@indent\noindent
1155 \thm@headfont{\bfseries}% heading font bold
1156 \thm@notefont{\mdseries\upshape}
1157 \[email protected]\baselineskip\@plus.2\baselineskip
1158 \@minus.2\baselineskip
1159 \thm@postskip\thm@preskip
1160 \itshape
1161 }
1162 \def\th@remark{%
1163 \let\thm@indent\noindent
1164 \thm@headfont{\bfseries}% heading font bold
1165 \thm@notefont{\mdseries\upshape}%
1166 \[email protected]\baselineskip\@plus.2\baselineskip
1167 \@minus.2\baselineskip
1168 \thm@postskip\thm@preskip
1169 \upshape
1170 }
1171 \def\th@definition{%
1172 \let\thm@indent\noindent
1173 \thm@headfont{\bfseries}% heading font bold
1174 \thm@notefont{\mdseries\upshape}%
1175 \[email protected]\baselineskip\@plus.2\baselineskip
1176 \@minus.2\baselineskip
1177 \thm@postskip\thm@preskip
1178 \upshape
1179 }
1180 \renewenvironment{proof}[1][\proofname]{\par \normalfont
1181 \topsep6\p@\@plus6\p@ \trivlist \itemindent\z@
1182 \item[\hskip\labelsep\bfseries
1183 #1\@addpunct{.}]\ignorespaces
1184 }{%
1185 \qed\endtrivlist
1186 }
1187 %</ua-thesis|my-thesis>
1188 % \end{macrocode}
1189 %
1190 %
1191 % \subsection{Captions, Headings etc.}
1192 %
1193 % In |ua-thesis| we redefine |\@makecaption| to change the font in captions
1194 % for figures and tables.
1195 % \begin{macrocode}
1196 %<*ua-thesis>
1197 \long\def\@makecaption#1#2{%
1198 \vskip\abovecaptionskip
1199 \sbox\@tempboxa{\textsc{#1}. #2}%
1200 \ifdim \wd\@tempboxa >\hsize
1201 \textsc{#1}. #2\par
1202 \else
1203 \global \@minipagefalse
1204 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
1205 \fi
1206 \vskip\belowcaptionskip}
1207 %</ua-thesis>
1208 % \end{macrocode}
1209 % The corresponding changes for |my-thesis|, taken from |pcms-l|. The
1210 % internals work differently than with the |report| class. Changed
1211 % 1997/3/8: The internal font names in the |amsthm| package have
1212 % changed with the October 1996 release. Fixed the following two
1213 % lines.
1214 % \begin{macrocode}
1215 %<*my-thesis>
1216 \def\@captionheadfont{\bfseries}
1217 \def\@captionfont{\footnotesize\mdseries}
1218 % \end{macrocode}
1219 % Added 1997/3/8: We assume that both table and figure captions are
1220 % placed below the body of the figure/table. Thus we have to override
1221 % amsbooks explicit assumption that table captions are placed above a
1222 % table. The following code is copied from |amsbook| and modified
1223 % accordingly.
1224 % \begin{macrocode}
1225 \long\def\@makecaption#1#2{%
1226 \setbox\@tempboxa\vbox{\color@setgroup
1227 \advance\hsize-2\captionindent\noindent
1228 \@captionfont\@captionheadfont#1\@xp\@ifnotempty\@xp
1229 {\@cdr#2\@nil}{.\@captionfont\upshape\enspace#2}%
1230 \unskip\kern-2\captionindent\par
1231 \global\setbox\@ne\lastbox\color@endgroup}%
1232 \ifhbox\@ne % the normal case
1233 \setbox\@ne\hbox{\unhbox\@ne\unskip\unskip\unpenalty\unkern}%
1234 \fi
1235 \ifdim\wd\@tempboxa=\z@ % this means caption will fit on one line
1236 \setbox\@ne\hbox to\columnwidth{\hss\kern-2\captionindent\box\@ne\hss}%
1237 \else % tempboxa contained more than one line
1238 \setbox\@ne\vbox{\unvbox\@tempboxa\parskip\z@skip
1239 \noindent\unhbox\@ne\advance\hsize-2\captionindent\par}%
1240 \fi
1241 \addvspace\abovecaptionskip
1242 \moveright\captionindent\box\@ne
1243 \relax
1244 }
1245 % \end{macrocode}
1246 % In |my-thesis| we have page headers. Their format
1247 % is again directly taken from the |pcms-l| class.
1248 % \begin{macrocode}
1249 \def\ps@plain{\ps@empty
1250 \def\@oddfoot{\normalfont\footnotesize\bfseries \hfil\thepage\hfil}%
1251 \let\@evenfoot\@oddfoot}
1252 \def\ps@headings{\ps@empty
1253 \def\@evenhead{\normalfont\footnotesize\bfseries
1254 \rlap{\thepage}\hfil \leftmark{}{}\hfil}%
1255 \def\@oddhead{\normalfont\footnotesize\bfseries \hfil
1256 \rightmark{}{}\hfil \llap{\thepage}}%
1257 \let\@mkboth\markboth
1258 \def\partmark{\@secmark\markboth\partrunhead\partname}%
1259 \def\chaptermark{%
1260 \@secmark\markboth\chapterrunhead{}}%
1261 \def\sectionmark{%
1262 \@secmark\markright\sectionrunhead\sectionname}%
1263 }
1264 % \end{macrocode}
1265 % Added following two lines on 1996/12/05 to have the page number on the
1266 % second page, which is otherwise empty, appear in bold face.
1267 % \begin{macrocode}
1268 \pagestyle{headings}
1269 \chaptermark{}
1270 \def\partrunhead#1#2#3{%
1271 \@ifnotempty{#2}{{#1 #2}\@ifnotempty{#3}{. }}%
1272 \def\@tempa{#3}%
1273 \ifx\@empty\@tempa\else\@tempa\fi}
1274 \let\chapterrunhead\partrunhead
1275 \let\sectionrunhead\partrunhead
1276 % \end{macrocode}
1277 % The Bibliography style from |pcms-l|, it is less crowded than the
1278 % original |amsbook| format.
1279 % \begin{macrocode}
1280 \def\thebibliography#1{
1281 \chapter*\bibname
1282 \markboth{\bibname}{\bibname}%
1283 \normalsize\labelsep .5em\relax
1284 \list{\@arabic\c@enumi.}{\settowidth\labelwidth{\@biblabel{#1}}%
1285 \leftmargin\labelwidth
1286 \advance\leftmargin\labelsep
1287 \bibsetup\relax
1288 \usecounter{enumi}}\sloppy
1289 \clubpenalty9999 \widowpenalty\clubpenalty \sfcode`\.\@m}
1290 % \end{macrocode}
1291 % And, lastly, the index macro from |pcms-l|, which I haven't
1292 % tested yet. Let's hope it works.
1293 % \begin{macrocode}
1294 \def\theindex{\cleardoublepage
1295 \@restonecoltrue\if@twocolumn\@restonecolfalse\fi
1296 \columnseprule \z@ \columnsep 35pt
1297 \def\indexchap{\@startsection
1298 {chapter}{1}{\z@}{8pc}{34pt}%
1299 {\raggedright
1300 \huge\bfseries}}%
1301 \twocolumn[\indexchap*{\indexname}]
1302 \@mkboth{{\indexname}}{{\indexname}}%
1303 \thispagestyle{plain}\let\item\@idxitem\parindent\z@
1304 \footnotesize\parskip\z@ plus .3pt\relax\let\item\@idxitem}
1305 %</my-thesis>
1306 % \end{macrocode}
1307 %
1308 %
1309 % \subsection{The Table of Contents}
1310 %
1311 % Modifying the design of the Table of Contents is slightly tricky. An
1312 % additional complication on our case is that the |amsbook| class which is
1313 % the base for |my-thesis| considerably modifies the internals of the
1314 % contents mechanism. Therefore the code for the two classes is quite
1315 % different.
1316 %
1317 % \subsubsection{The Official Table of Contents}
1318 %
1319 % At the beginning of the Document we compute the width of the boldfaced
1320 % number 999 which we take as the maximum width of a page number in the
1321 % Table of Contents. Note that we have to use |\AtBeginDocument| to avoid
1322 % typesetting anything in the preamble of the document as this will
1323 % potentially interfere with packages that modify fonts.
1324 % \begin{macrocode}
1325 %<*ua-thesis>
1326 \newlength{\@auxlength}
1327 \AtBeginDocument{%
1328 \settowidth{\@auxlength}{\textbf{999}}
1329 \renewcommand{\@pnumwidth}{\@auxlength}}
1330 % \end{macrocode}
1331 % We want all section numbers to end with a period, and modify the
1332 % definition of |\numberline| accordingly.
1333 % \begin{macrocode}
1334 \def\numberline#1{\hb@xt@\@tempdima{#1.\hfil}}
1335 % \end{macrocode}
1336 % The same for chapter entries; in case the chapter heading takes more than
1337 % one line, we set |\hangindent| to indent the second and following lines.
1338 % \begin{macrocode}
1339 \def\chapterline#1{%
1340 \advance\hangindent\@tempdima
1341 \hbox{#1.\space\space\hfil}}
1342 % \end{macrocode}
1343 % The macro |\l@chapter| is called to set the Table of Contents line for a
1344 % chapter entry.
1345 % \begin{macrocode}
1346 \renewcommand*\l@chapter[2]{%
1347 \addpenalty{-\@highpenalty}%
1348 \vskip 1.0em \@plus\p@
1349 \begingroup
1350 \advance\hangindent 1.5em
1351 \@dottedtocline{0}{0pt}{0pt}{\scshape #1}{\bfseries #2}
1352 \endgroup
1353 \penalty\@highpenalty}
1354 % \end{macrocode}
1355 % And the corresponding macros for figures and tables.
1356 % \begin{macrocode}
1357 \renewcommand*\l@figure[2]{%
1358 \@dottedtocline{1}{0pt}{30pt}{\textsc{Figure} #1}{#2}}
1359 \renewcommand*\l@table[2]{%
1360 \@dottedtocline{1}{0pt}{30pt}{\textsc{Table} #1}{#2}}
1361 %</ua-thesis>
1362 % \end{macrocode}
1363 %
1364 %
1365 % \subsubsection{My Table of Contents}
1366 %
1367 % The |amsbook| class automatically calculates the width of the section
1368 % numbers which go into the Table of Contents. Therefore we must
1369 % manually compute the amount of indentation for subsection entries and
1370 % subsubsection headings. This is done at the beginning of the document,
1371 % after |amsbook| has read the number widths found in the previous
1372 % \LaTeX\ run from the |.aux| file.
1373 % \begin{macrocode}
1374 %<*my-thesis>
1375 \newlength{\@subsectionindent}
1376 \newlength{\@subsubsectionindent}
1377 \AtBeginDocument{%
1378 \setlength{\@subsectionindent}{1pc}
1379 \addtolength{\@subsectionindent}{\csname r@tocindent1\endcsname}
1380 \setlength{\@subsubsectionindent}{\@subsectionindent}
1381 \addtolength{\@subsubsectionindent}{\csname r@tocindent2\endcsname}}
1382 % \end{macrocode}
1383 % Now we modify some other style parameters. We want subsections, but
1384 % not subsubsections to into the Table of Contents. If subsubsections
1385 % should appear in the Table of Contents, the command
1386 % |\setcounter{tocdepth}{4}| can be used in the preamble of the document.
1387 % We also need to make some minor spacing modifications.
1388 % \begin{macrocode}
1389 \setcounter{tocdepth}{3}
1390 \renewcommand{\@pnumwidth}{2em}
1391 \def\numberline#1{\hbox{#1\quad}}
1392 % \end{macrocode}
1393 % Finally we change |\l@chapter| to get a boldface font for chapter
1394 % entries, and redefine the subsection macros to use the indentation
1395 % calculated above.
1396 % \begin{macrocode}
1397 \renewcommand*{\l@chapter}[2]{%
1398 \@tocline{0}{10pt plus4pt}{0pt}{1pc}{\bfseries}{#1}{\bfseries #2}}
1399 \def\l@subsection{\@tocline{2}{0pt}{\@subsectionindent}{}{}}
1400 \def\l@subsubsection{\@tocline{3}{0pt}{\@subsubsectionindent}{}{}}
1401 % \end{macrocode}
1402 % We don't want a List of Figures or a List of Tables.
1403 % \begin{macrocode}
1404 \let\listoffigures\relax
1405 \let\listoftables\relax
1406 %</my-thesis>
1407 % \end{macrocode}
1408 %
1409 % \Finale
1410 \endinput