1 % \iffalse meta-comment
4 % The LaTeX3 Project and any individual authors listed elsewhere
7 % This file is part of the LaTeX base system.
8 % -------------------------------------------
10 % It may be distributed and/or modified under the
11 % conditions of the LaTeX Project Public License, either version 1.3c
12 % of this license or (at your option) any later version.
13 % The latest version of this license is in
14 % http://www.latex-project.org/lppl.txt
15 % and version 1.3c or later is part of all distributions of LaTeX
16 % version 2005/12/01 or later.
18 % This file has the LPPL maintenance status "maintained".
20 % The list of all files belonging to the LaTeX base distribution is
21 % given in the file `manifest.txt'. See also `legal.txt' for additional
24 % The list of derived (unpacked) files belonging to the distribution
25 % and covered by LPPL is defined by the unpacking scripts (with
26 % extension .ins) which are part of the distribution.
32 %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
33 %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
34 %% Digits \0\1\2\3\4\5\6\7\8\9
35 %% Exclamation \! Double quote \" Hash (number) \#
36 %% Dollar \$ Percent \% Ampersand \&
37 %% Acute accent \' Left paren \( Right paren \)
38 %% Asterisk \* Plus \+ Comma \,
39 %% Minus \- Point \. Solidus \/
40 %% Colon \: Semicolon \; Less than \<
41 %% Equals \= Greater than \> Question mark \?
42 %% Commercial at \@ Left bracket \[ Backslash \\
43 %% Right bracket \] Circumflex \^ Underscore \_
44 %% Grave accent \` Left brace \{ Vertical bar \|
45 %% Right brace \} Tilde \~}
48 % \section{Identification}
51 % This document class can only be used with \LaTeXe, so we make
52 % sure that an appropriate message is displayed when another \TeX{}
55 %<+letter>\NeedsTeXFormat{LaTeX2e}[1996/06/01]
58 % Announce the Class name and its version.
60 %<+letter>\ProvidesClass{letter}
62 \ProvidesFile{letter.drv}
65 %<+letter> Standard LaTeX document class]
68 % \section{The documentation driver file}
70 % We have our own document class to format the \LaTeXe{}
73 % \changes{v1.0}{1993/12/07}{Use class ltxdoc document class}
78 \documentclass{ltxdoc}
81 % We don't want everything to appear in the index.
83 \DoNotIndex{\@Alph,\@alph,\@arabic,\@badmath}
84 \DoNotIndex{\@centercr}
85 \DoNotIndex{\@empty,\@ignoretrue}
87 \DoNotIndex{\@M,\@minus,\@ne,\@plus}
88 \DoNotIndex{\\,\addtolength}
90 \DoNotIndex{\ast,\begin,\begingroup,\bfseries,\bgroup,\box}
92 \DoNotIndex{\cdot,\cr,\day,\DeclareOption}
93 \DoNotIndex{\def,\DocInput,\documentclass}
94 \DoNotIndex{\DoNotIndex,\egroup,\ifx,\else,\fi,\endtrivlist}
95 \DoNotIndex{\EnableCrossrefs,\end,\end@dblfloat,\end@float,\endgroup}
96 \DoNotIndex{\endlist,\everycr,\ExecuteOptions}
97 \DoNotIndex{\filedate,\filename,\fileversion}
98 \DoNotIndex{\global,\halign,\hangindent,\hbox,\hfil,\hfill,\hrule}
99 \DoNotIndex{\hsize,\hskip,\hspace,\hss,\ifcase,\or,\fi}
100 \DoNotIndex{\ifvmode,\fi,\ifnum,\fi,\input}
101 \DoNotIndex{\kern,\leavevmode,\let,\leftmark}
102 \DoNotIndex{\list,\llap,\long,\m@ne,\m@th,\mark}
103 \DoNotIndex{\month,\newcommand,\newcounter,\newenvironment}
104 \DoNotIndex{\NeedsTeXFormat,\newdimen}
105 \DoNotIndex{\newpage,\nobreak,\noindent,\number}
107 \DoNotIndex{\pagestyle,\par}
108 \DoNotIndex{\penalty,\PrintChanges,\PrintIndex,\ProcessOptions}
109 \DoNotIndex{\protect,\ProvidesClass,\raggedbottom,\raggedright}
110 \DoNotIndex{\refstepcounter,\relax,\renewcommand,\reset@font}
111 \DoNotIndex{\rightmargin,\rlap,\rmfamily}
112 \DoNotIndex{\setbox,\setcounter,\setlength}
113 \DoNotIndex{\skip,\slshape,\space}
114 \DoNotIndex{\trivlist,\typeout,\tw@}
115 \DoNotIndex{\vskip,\vspace,\year,\z@}
122 % We use so many \file{docstrip} modules that we set the
123 % \texttt{StandardModuleDepth} counter to 1.
125 \setcounter{StandardModuleDepth}{1}
127 % The following command retrieves the date and version information
130 \GetFileInfo{letter.drv}
132 % Some commonly used abbreviations
134 \newcommand*{\Lopt}[1]{\textsf {#1}}
135 \newcommand*{\file}[1]{\texttt {#1}}
136 \newcommand*{\Lcount}[1]{\textsl {\small#1}}
137 \newcommand*{\pstyle}[1]{\textsl {#1}}
139 % We also want the full details.
142 \DocInput{letter.dtx}
150 % \changes{v1.1}{1993/12/18}{Changes to make it work with
151 % compatibility mode.}
152 % \changes{v1.1a}{1993/12/19}{Removed float parms}
154 % \changes{v1.1c}{1994/01/17}{Moved definition of \cs{@textop} to
155 % initialization section, to counteract setting of \cs{@texttop} in
156 % \cs{raggedbottom}.}
158 % \changes{v1.1d}{1994/01/20}{Corrected margins: Now computed from
159 % \cs{paperwidth} and \cs{textwidth}, so that the text is
160 % horizontally centered.}
161 % \changes{v1.1e}{1994/02/03}{Corrected checksum}
163 % \changes{v1.2a}{1994/02/12}{Removed onecolumn and twocolumn options.}
164 % \changes{v1.2a}{1994/02/12}{Changed label producing commands in .aux
167 % \changes{v1.2b}{1994/02/28}{Moved driver further up.}
169 % \changes{v1.2c}{1994/03/08}{Always write .aux file.}
170 % \changes{v1.2f}{1994/04/29}{Use LaTeX instead of LaTeX2e in messages}
171 % \changes{v1.2f}{1994/04/29}{Removed \cs{typeout} message}
172 % \changes{v1.2g}{1994/05/01}{Removed the use of \cs{fileversion}
174 % \changes{v1.2j}{1994/06/01}{Corrected driver code.}
175 % \changes{v1.2k}{1994/06/17}{Various documentation enhancements}
176 % \changes{v1.2p}{1994/12/11}{Use \cs{newcommand*} to define
177 % user-level commands that take an argument}
178 % \changes{v1.2q}{1995/05/17}{cleaned up \cs{changes entries}}
179 % \changes{v1.2q}{1995/05/18}{replaced \cs{hbox to} by \cs{hb@xt@}}
180 % \changes{v1.2r}{1995/05/23}{removed a superfluous brace}
183 % Copyright (C) 1994 LaTeX3 project, Frank Mittelbach
184 % and Rainer Sch\"opf, all rights reserved.
187 % \author{Leslie Lamport and Frank Mittelbach and Rainer Sch\"opf}
189 % \title{Standard Letter Document Class for \LaTeX{} version 2e}
192 % \MaintainedByLaTeXTeam{latex}
199 % \section{Initial Code}
201 % In this part we define a few commands that are used later on.
203 % \begin{macro}{\@ptsize}
204 % This control sequence is used to store the second digit of the
205 % pointsize we are typesetting in. So, normally, it's value is one
209 \newcommand\@ptsize{}
215 % \subsection{Setting Paper Sizes}
217 % The variables |\paperwidth| and |\paperheight| should reflect the
218 % physical paper size after trimming. For desk printer output this
219 % is usually the real paper size since there is no post-processing.
220 % \changes{v1.0a}{1993/12/14}{Corrected typo, A4 is not 279 mm high}
222 \DeclareOption{a4paper}
223 {\setlength\paperheight {297mm}%
224 \setlength\paperwidth {210mm}}
225 \DeclareOption{a5paper}
226 {\setlength\paperheight {210mm}%
227 \setlength\paperwidth {148mm}}
228 \DeclareOption{b5paper}
229 {\setlength\paperheight {250mm}%
230 \setlength\paperwidth {176mm}}
231 \DeclareOption{letterpaper}
232 {\setlength\paperheight {11in}%
233 \setlength\paperwidth {8.5in}}
234 \DeclareOption{legalpaper}
235 {\setlength\paperheight {14in}%
236 \setlength\paperwidth {8.5in}}
237 \DeclareOption{executivepaper}
238 {\setlength\paperheight {10.5in}%
239 \setlength\paperwidth {7.25in}}
242 % \changes{v1.2o}{1994/08/26}{Added the option \textsf{landscape}}
243 % The option \Lopt{landscape} switches the values of |\paperheight|
244 % and |\paperwidth|, assuming the dimensions were given for portrait
247 \DeclareOption{landscape}
248 {\setlength\@tempdima {\paperheight}%
249 \setlength\paperheight {\paperwidth}%
250 \setlength\paperwidth {\@tempdima}}
253 % \subsection{Choosing the type size}
255 % The type size options are handled by defining |\@ptsize| to
256 % contain the last digit of the size in question and branching on
257 % |\ifcase| statements. This is done for historical reasons to stay
258 % compatible with other packages that use the |\@ptsize| variable
259 % to select special actions. It makes the declarations of size
260 % options less than 10pt difficult, although one can probably use
261 % \texttt{9} and \texttt{8} assuming that a class wont define both
262 % \Lopt{8pt} and \Lopt{18pt} options.
265 \DeclareOption{10pt}{\renewcommand\@ptsize{0}}
266 \DeclareOption{11pt}{\renewcommand\@ptsize{1}}
267 \DeclareOption{12pt}{\renewcommand\@ptsize{2}}
271 % \subsection{Two-side or one-side printing}
273 % Two-sided printing was not supported in the \LaTeX~2.09 version
274 % of this document class.
275 % \changes{v1.2e}{1994/04/28}{Added oneside option and twoside option
279 \DeclareOption{twoside}{\@latexerr{No `twoside' layout for letters}%
282 \DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
288 \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
291 % \subsection{Draft option}
293 % If the user requests \Lopt{draft} we show any overfull boxes.
294 % We could probably add some more interesting stuff to this option.
296 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
297 \DeclareOption{final}{\setlength\overfullrule{0pt}}
301 % \subsection{Equation numbering on the left}
303 % The option \Lopt{leqno} can be used to get the equation numbers
304 % on the left side of the equation.
305 % \changes{v1.1c}{1994/01/17}{Option leqno now read from
308 \DeclareOption{leqno}{\input{leqno.clo}}
311 % \subsection{Flush left displays}
313 % The option \Lopt{fleqn} redefines the displayed math environments
314 % in such a way that they come out flush left, with an indentation
315 % of |\mathindent| from the prevailing left margin.
316 % \changes{v1.1}{1993/12/18}{Corrected typo in \cs{renewcommand},
317 % doubled hash marks.}
318 % \changes{v1.1c}{1994/01/17}{Option fleqn now read from
321 \DeclareOption{fleqn}{\input{fleqn.clo}}
325 % \section{Executing Options}
327 % Here we execute the default options to initialize certain
329 % \changes{v1.2e}{1994/04/28}{Added execution of `oneside' option}
331 \ExecuteOptions{letterpaper,10pt,oneside,onecolumn,final}
334 % The |\ProcessOptions| command causes the execution of the code
335 % for every option \Lopt{foo} which is declared and for which the
336 % user typed the \Lopt{foo} option in his |\documentclass| command.
337 % For every option \Lopt{bar} he typed, which is not declared, the
338 % option is assumed to be a global option. All options will be
339 % passed as document options to any |\usepackage| command in the
344 % Now that all the options have been executed we can load the
345 % chosen class option file that contains all size dependent code.
347 \input{size1\@ptsize.clo}
351 % \section{Loading Packages}
353 % The standard class files do not load additional packages.
356 % \section{Document Layout}
357 % \label{sec:maincode}
359 % In this section we are finally dealing with the nasty typographical
362 % \subsection{Paragraphing}
364 % \begin{macro}{\lineskip}
365 % \begin{macro}{\normallineskip}
366 % These parameters control \TeX's behavior when two lines tend to
367 % come too close together.
369 \setlength\lineskip{1\p@}
370 \setlength\normallineskip{1\p@}
375 % \begin{macro}{\baselinestretch}
376 % This is used as a multiplier for |\baselineskip|. The default is
377 % to {\em not\/} stretch the baselines.
379 \renewcommand\baselinestretch{}
383 % \begin{macro}{\parskip}
384 % \begin{macro}{\parindent}
385 % |\parskip| gives extra vertical space between paragraphs and
386 % |\parindent| is the width of the paragraph indentation.
387 % Letters are typeset without paragraph indentation.
389 \setlength\parskip{0.7em}
390 \setlength\parindent{0\p@}
395 % \begin{macro}{\@lowpenalty}
396 % \begin{macro}{\@medpenalty}
397 % \begin{macro}{\@highpenalty}
398 % The commands |\nopagebreak| and |\nolinebreak| put in penalties
399 % to discourage these breaks at the point they are put in.
400 % They use |\@lowpenalty|, |\@medpenalty| or |\@highpenalty|,
401 % dependent on their argument.
411 % \begin{macro}{\clubpenalty}
412 % \begin{macro}{\widowpenalty}
413 % These penalties are used to discourage club and widow lines.
414 % Because we use their default values we only show them here,
423 % \begin{macro}{\displaywidowpenalty}
424 % \begin{macro}{\predisplaypenalty}
425 % \begin{macro}{\postdisplaypenalty}
426 % Discourage (but not so much) widows in front of a math display
427 % and forbid breaking directly in front of a display. Allow break
428 % after a display without a penalty. Again the default values are
429 % used, therefore we only show them here.
431 % \displaywidowpenalty 50
432 % \predisplaypenalty 10000
433 % \postdisplaypenalty 0
439 % \begin{macro}{\interlinepenalty}
440 % Allow the breaking of a page in the middle of a paragraph.
442 % \interlinepenalty 0
447 % \begin{macro}{\brokenpenalty}
448 % We allow the breaking of a page after a hyphenated line.
455 % \subsection{Page Layout}
457 % All margin dimensions are measured from a point one inch from the
458 % top and lefthand side of the page.
460 % \subsubsection{Vertical spacing}
462 % \begin{macro}{\headheight}
463 % \begin{macro}{\headsep}
464 % The |\headheight| is the height of the box that will contain the
465 % running head. The |\headsep| is the distance between the bottom
466 % of the running head and the top of the text. |\topskip| is the
467 % |\baselineskip| for the first line on a page, its value depends
468 % on the size option that was specified. Therefore it is
469 % initialized in one of the \file{size1x.clo} files.
471 \setlength\headheight{12\p@}
472 \setlength\headsep {45\p@}
477 % \begin{macro}{\footskip}
478 % The distance from the baseline of the box which contains the
479 % running footer to the baseline of last line of text is controlled
480 % by the |\footskip|.
483 \setlength\footskip{25\p@}
487 % \changes{v1.2n}{1994/07/13}{Setting of \cs{maxdepth} and
488 % \cs{@maxdepth} already happens in the size.. files, removed
491 % \subsubsection{The dimension of text}
493 % \begin{macro}{\textwidth}
494 % When we are in compatibility mode we have to make sure that the
495 % dimensions of the printed area are not different from what the
496 % user was used to see.
498 % \changes{v1.2n}{1994/07/13}{Setting \cs{textwidth} to a fixed value
499 % should only happen in compatibility mode}
502 \setlength\textwidth{365\p@}
506 % \begin{macro}{\textheight}
507 % Now that we have computed the width of the text, we have to take
508 % care of the height. The |\textheight| is the height of text
509 % (including footnotes and figures, excluding running head and
511 % \changes{v1.2n}{1994/07/13}{Setting \cs{textheight} to a fixed value
512 % should only happen in compatibility mode}
514 \setlength\textheight{505\p@}
517 % In native mode we use the dimensions as they were computed by one
518 % of the \Lopt{xxpt} options, together with one of the
519 % \Lopt{..paper} options.
522 % \subsubsection{Margins}
524 % \begin{macro}{\oddsidemargin}
525 % \begin{macro}{\evensidemargin}
526 % \begin{macro}{\marginparwidth}
527 % \changes{v1.1d}{1994/01/20}{Corrected margins: Now computed from
528 % \cs{paperwidth} and \cs{textwidth}.} The values of
529 % |\oddsidemargin| and |\evensidemargin| are computed from those of
530 % |\paperwidth| and |\textwidth|.
531 % \changes{v1.2n}{1994/07/13}{Added fixed values for these parameters
532 % in compatibility mode}
535 \setlength\oddsidemargin{53pt}
536 \setlength\evensidemargin{53pt}
537 \setlength\marginparwidth{90pt}
539 \setlength\@tempdima{\paperwidth}
540 \addtolength\@tempdima{-2in}
541 \addtolength\@tempdima{-\textwidth}
542 \setlength\oddsidemargin {.5\@tempdima}
543 \setlength\evensidemargin {\oddsidemargin}
544 \setlength\marginparwidth {90\p@}
551 % \begin{macro}{\marginparsep}
552 % \begin{macro}{\marginparpush}
553 % The horizontal space between the main text and marginal notes is
554 % determined by |\marginparsep|, the minimum vertical separation
555 % between two marginal notes is controlled by |\marginparpush|.
557 \setlength\marginparsep {11\p@}
558 \setlength\marginparpush{5\p@}
563 % \begin{macro}{\topmargin}
564 % The |\topmargin| is the distance between the top of `the
565 % printable area' --which is 1 inch below the top of the paper--
566 % and the top of the box which contains the running head.
568 % It can now be computed from the values set above.
570 \setlength\topmargin{27pt}
575 % \subsubsection{Footnotes}
577 % \begin{macro}{\footnotesep}
578 % |\footnotesep| is the height of the strut placed at the beginning
579 % of every footnote. It equals the height of a normal
580 % |\footnotesize| strut in this
581 % class, thus no extra space occurs between footnotes.
583 \setlength\footnotesep{12\p@}
587 % \begin{macro}{\footins}
588 % |\skip\footins| is the space between the last line of the main
589 % text and the top of the first footnote.
591 \setlength{\skip\footins}{10\p@ \@plus 2\p@ \@minus 4\p@}
596 % \subsection{Page Styles}
598 % The page style \pstyle{foo} is defined by defining the command
599 % |\ps@foo|. This command should make only local definitions.
600 % There should be no stray spaces in the definition, since they
601 % could lead to mysterious extra spaces in the output (well, that's
602 % something that should be always avoided).
604 % \begin{macro}{\@evenhead}
605 % \begin{macro}{\@oddhead}
606 % \begin{macro}{\@evenfoot}
607 % \begin{macro}{\@oddfoot}
608 % The |\ps@...| command defines the macros |\@oddhead|,
609 % |\@oddfoot|, |\@evenhead|, and |\@evenfoot| to define the running
610 % heads and feet---e.g., |\@oddhead| is the macro to produce the
611 % contents of the heading box for odd-numbered pages. It is called
612 % inside an |\hbox| of width |\textwidth|.
618 % \subsubsection{Marking conventions}
620 % To make headings determined by the sectioning commands, the page
621 % style defines the commands |\chaptermark|, |\sectionmark|,
622 % \ldots, where |\chaptermark{|\meta{text}|}| is called by
623 % |\chapter| to set a mark, and so on.
625 % The |\...mark| commands and the |\...head| macros are defined
626 % with the help of the following macros. (All the |\...mark|
627 % commands should be initialized to no-ops.)
629 % \LaTeX{} extends \TeX's |\mark| facility by producing two kinds
630 % of marks, a `left' and a `right' mark, using the following
633 % |\markboth{|\meta{left}|}{|\meta{right}|}|: Adds both marks.
635 % |\markright{|\meta{right}|}|: Adds a `right' mark.
637 % |\leftmark|: Used in the |\@oddhead|, |\@oddfoot|, |\@evenhead|
638 % or |\@evenfoot| macros, it gets the current `left'
639 % mark. |\leftmark| works like \TeX's |\botmark|
642 % |\rightmark|: Used in the |\@oddhead|, |\@oddfoot|, |\@evenhead|
643 % or |\@evenfoot| macros, it gets the current
644 % `right' mark. |\rightmark| works like \TeX's
645 % |\firstmark| command.
648 % The marking commands work reasonably well for right marks
649 % `numbered within' left marks--e.g., the left mark is changed by a
650 % |\chapter| command and the right mark is changed by a |\section|
651 % command. However, it does produce somewhat anomalous results if
652 % two |\markboth|'s occur on the same page.
655 % Commands like |\tableofcontents| that should set the marks in some
656 % page styles use a |\@mkboth| command, which is |\let| by the
657 % pagestyle command (|\ps@...|) to |\markboth| for setting the
658 % heading or to |\@gobbletwo| to do nothing.
661 % \subsubsection{Defining the page styles}
662 % \label{sec:pagestyle}
664 % The pagestyles \pstyle{empty} and \pstyle{plain} are defined in
665 % the \LaTeX{} kernel (\file{ltpage.dtx}), but these definitions
666 % are changed to a simpler version for this document class.
668 % \begin{macro}{\ps@headings}
669 % The definition of the page style \pstyle{headings} has to be
670 % different for two sided printing than it is for one sided
673 % \changes{v1.2e}{1994/04/28}{Added twoside support}
678 % The running feet are empty in this page style.
680 \let\@oddfoot\@empty\let\@evenfoot\@empty
682 % The running head contains some information about this letter. The
683 % head is the same for even and odd pages.
684 % \changes{v1.2i}{1994/05/12}{Made running heads the same on odd and
686 % \changes{v1.2k}{1994/06/17}{Added a missing brace}
688 \def\@oddhead{\slshape\headtoname{} \ignorespaces\toname
690 \hfil \pagename{} \thepage}%
691 \let\@evenhead\@oddhead}
693 % For one sided printing we don't need to define |\@evenhead| so
694 % the definition is somewhat simpler.
699 \def\@oddhead{\slshape\headtoname{} \ignorespaces\toname
701 \hfil \pagename{} \thepage}}
707 % \begin{macro}{\ps@empty}
708 % The definition of the page style \pstyle{empty} is simple:
709 % No running head or foot at all.
710 % \changes{v1.2e}{1994/04/28}{Also make even feet and head empty}
713 \let\@oddfoot\@empty\let\@oddhead\@empty
714 \let\@evenfoot\@empty\let\@evenhead\@empty}
718 % \begin{macro}{\ps@firstpage}
719 % The page style \pstyle{firstpage} puts the telephone number
720 % in the proper place for the letterhead. It should be adapted
721 % to site conventions. The size of the number is determined
722 % depending on the main size.
726 \def\@oddfoot{\raisebox{-45\p@}[\z@]{%
727 \hb@xt@\textwidth{\hspace*{100\p@}%
728 \ifcase \@ptsize\relax
735 \fromlocation \hfill \telephonenum}}\hss}}
739 % \begin{macro}{\ps@plain}
740 % The definition of the page style \pstyle{plain} is again simple.
741 % \changes{v1.2e}{1994/04/28}{Added definition of \cs{@evenfoot}
742 % because of twoside option}
743 % \changes{v1.2s}{1995/05/25}{replace \cs{rmfamily} with
744 % \cs{normalfont} (PR 1578)}
748 \def\@oddfoot{\normalfont\hfil\thepage\hfil}%
749 \def\@evenfoot{\normalfont\hfil\thepage\hfil}}
755 % \section{Document Markup}
757 % \subsection{Global Declarations}
759 % \begin{macro}{\name}
760 % \begin{macro}{\signature}
761 % \begin{macro}{\address}
762 % \begin{macro}{\location}
763 % \begin{macro}{\telephone}
764 % The following declarations, shown with examples, give information
767 % \item |\name{Dr. L. User}| : to be used for the return address on
770 \newcommand*{\name}[1]{\def\fromname{#1}}
772 % \item |\signature{Larry User}| : goes after the closing.
774 \newcommand*{\signature}[1]{\def\fromsig{#1}}
776 % \item |\address{3245 Foo St.\\Gnu York}| : used as the return
778 % letter and on the envelope. If not declared, then an
779 % institutional standard address is used.
781 \newcommand*{\address}[1]{\def\fromaddress{#1}}
783 % \item |\location{Room 374}| : Acts as modifier to the standard
784 % institutional address.
786 \newcommand*{\location}[1]{\def\fromlocation{#1}}
788 % \item |\telephone{(415)123-4567}| : Just in case some style puts it
790 % \changes{v1.2m}{1994/06/23}{Removed typo (\#[] instead of [1])}
792 \newcommand*{\telephone}[1]{\def\telephonenum{#1}}
801 % \begin{macro}{\fromname}
802 % \begin{macro}{\fromsig}
803 % \begin{macro}{\fromaddress}
804 % \begin{macro}{\fromlocation}
805 % \begin{macro}{\telephonenum}
806 % We make sure that the internal control sequences that are used to
807 % store the information exist and are empty.
821 % \begin{macro}{\makelabels}
822 % The |\makelabels| declaration causes mailing labels to be made.
824 \newcommand*{\makelabels}{%
826 % At the beginning of the document, we need to activate the
827 % |\@mlabel| and |\@startlabels| commands, as well as write
828 % |\@startlabels| to the |.aux| file.
831 \let\@startlabels\startlabels
834 \immediate\write\@mainaux{\string\@startlabels}\fi}%
836 % At the end of the document we need to write |\clearpage| to the
840 \if@filesw\immediate\write\@mainaux{\string\clearpage}\fi}}
842 % |\makelabels| is allowed only before the |\begin{document}|
845 \@onlypreamble\makelabels
849 % \subsection{The generic letter commands}
851 % \begin{environment}{letter}
852 % The letter environment creates a new letter, starting from page
853 % $1$, with footnotes starting from $1$ as well.
854 % (The first page is unnumbered.) It has a single argument, which
855 % is the addressee and his address, as in
857 % \begin{letter}{Sam Jones \\
858 % Institute for Retarded Study\\
861 % Local declarations, such as |\address|, can follow the
863 % \changes{v1.2e}{1994/04/28}{When printing twosided a new letter
864 % shouldn't start on the back of the previous one. Added insertion
865 % of a blank page when necessary.}
866 % \changes{v1.2z}{1999/04/29}{Reset footnote counter to 0, (PR 2957).}
868 \newenvironment{letter}[1]
870 \if@twoside \ifodd\c@page
871 \else\thispagestyle{empty}\null\newpage\fi
875 \interlinepenalty=200 % smaller than the TeXbook value
877 % The |\leavevmode| and |\ignorespaces| commands are there for
878 % protecting against an empty argument.
880 \@processto{\leavevmode\ignorespaces #1}}
882 % The end of the environment possibly writes the address
883 % information on the \file{.aux} file.
884 % \changes{v1.2p}{1994/12/11}{No longer redefine \cs{protect} but use
885 % one of the available settings}
887 {\stopletter\@@par\pagebreak\@@par
891 \let\protect\@unexpandable@protect
892 \immediate\write\@auxout{%
893 \string\@mlabel{\returnaddress}{\toname\\\toaddress}}%
900 % \begin{macro}{\@processto}
901 % \begin{macro}{\@xproc}
902 % \begin{macro}{\@yproc}
903 % |\@processto| gets the |\toname| and |\toaddress| from the letter
904 % environment's macro argument. |\@xproc| and |\@yproc| are auxiliary
907 \long\def\@processto#1{%
909 \ifx\toaddress\@empty
916 \long\def\@xproc #1\\#2@@@{\def\toname{#1}\def\toaddress{#2}}
920 \long\def\@yproc #1\\#2@@@{\def\toaddress{#2}}
927 % \subsubsection{Page breaking control}
929 % \begin{macro}{\stopbreaks}
930 % When the command |\stopbreaks| is issued no page breaks should
931 % occur until |\startbreaks| is called.
933 \newcommand*{\stopbreaks}{%
935 \def\par{\@@par\nobreak}%
937 \let\vspace\@nobreakvspace}
941 % \begin{macro}{\nobreakvspace}
942 % \changes{v1.2t}{1996/01/20}{Made robust pr/2049}
943 % \begin{macro}{\@nobreakvspacex}
944 % \begin{macro}{\@nobreakcr}
945 % These are needed by |\stopbreaks|
947 \DeclareRobustCommand\@nobreakvspace
948 {\@ifstar\@nobreakvspacex\@nobreakvspacex}
952 \def\@nobreakvspacex#1{%
954 \nobreak\vskip #1\relax
956 \@bsphack\vadjust{\nobreak\vskip #1}\@esphack
960 % \changes{v1.2w}{1997/01/07}
961 % {Simplify definition, for ltspace 1.2u. /2341}
963 \def\@nobreakcr{\@ifstar{\@normalcr*}{\@normalcr*}}
969 % \begin{macro}{\startbreaks}
970 % This cancels the effect of |\stopbreaks|.
972 \newcommand*{\startbreaks}{%
974 \interlinepenalty 200%
975 \def\par{\@@par\penalty 200\relax}}
980 % \begin{macro}{\longindentation}
981 % The size of the indent to use before the closing of the letter.
983 \newdimen\longindentation
984 \longindentation=.5\textwidth
988 % \begin{macro}{\indentedwidth}
989 % The width of the closing of the letter.
991 \newdimen\indentedwidth
992 \indentedwidth=\textwidth
993 \advance\indentedwidth -\longindentation
997 % \begin{macro}{\opening}
998 % Text is begun with the |\opening| command, whose argument
999 % generates the salutation, as in
1001 % \opening{Dear Henry,}
1003 % This should produce everything up to and including the
1004 % `Dear Henry,' and a |\par| command that follows.
1005 % Since there's a |\vfil| at the bottom of every page,
1006 % it can add vertical fill to position a short letter.
1007 % It should use the following commands:
1009 % \item |\toname| : name part of `to' address.
1010 % Will be one line long.
1011 % \item |\toaddress| : address part of `to' address.
1012 % The lines separated by |\\|.
1013 % \item |\fromname| : name of sender.
1014 % \item |\fromaddress| : argument of current |\address|
1015 % declaration-- null if none. Should use standard institutional
1017 % \item |\fromlocation| : argument of current |\location|
1018 % declaration--null if none.
1019 % \item |\telephonenum| : argument of current |\telephone|
1020 % declaration--null if none.
1023 \newcommand*{\opening}[1]{\ifx\@empty\fromaddress
1024 \thispagestyle{firstpage}%
1025 {\raggedleft\@date\par}%
1026 \else % home address
1027 \thispagestyle{empty}%
1029 % \changes{v1.2y}{1998/05/10}{Avoid space at right of tabular
1032 {\raggedleft\begin{tabular}{l@{}}\ignorespaces
1033 \fromaddress \\*[2\parskip]%
1034 \@date \end{tabular}\par}%
1037 {\raggedright \toname \\ \toaddress \par}%
1043 % \begin{macro}{\closing}
1044 % The body of the letter follows, ended by a |\closing| command,
1047 % \closing{Yours truly,}
1049 % This command generates the closing matter, and the signature.
1050 % An obvious thing to do is to use a |\parbox| for the closing
1051 % and the signature. Should use the following:
1053 % \item |\fromsig| : argument of current |\signature| declaration
1054 % or, if null, the |\fromname|.
1055 % \item |\stopbreaks| : a macro that inhibits page breaking.
1058 \newcommand{\closing}[1]{\par\nobreak\vspace{\parskip}%
1061 \ifx\@empty\fromaddress\else
1062 \hspace*{\longindentation}\fi
1063 \parbox{\indentedwidth}{\raggedright
1064 \ignorespaces #1\\[6\medskipamount]%
1067 \else \fromsig \fi\strut}%
1072 % \begin{macro}{\smallskipamount}
1073 % \begin{macro}{\medskipamount}
1074 % \begin{macro}{\bigskipamount}
1075 % Of these three, only |\medskipmount| is actually used above.
1077 %\smallskipamount=.5\parskip
1078 \medskipamount=\parskip
1079 %\bigskipamount=2\parskip
1085 % \begin{macro}{\cc}
1086 % \begin{macro}{\encl}
1087 % \begin{macro}{\ps}
1088 % After the |\closing| you can put arbitrary stuff, which is typeset
1089 % with zero |\parindent| and no page breaking. Commands designed
1090 % for use after the closing are:
1092 % \cc{Tinker\\Evers\\Chance}
1095 % \begin{tabular}{ll}
1100 % Note the obvious use of |\parbox|.
1101 % \changes{v1.2s}{1995/05/25}{replace \cs{reset@font} with
1102 % \cs{normalfont}; remove \cs{rm}}
1104 \newcommand*{\cc}[1]{%
1106 \parbox[t]{\textwidth}{%
1107 \@hangfrom{\normalfont\ccname: }%
1108 \ignorespaces #1\strut}\par}
1111 % \encl{Foo(2)\\Bar}
1114 % \begin{tabular}{ll}
1119 \newcommand*{\encl}[1]{%
1121 \parbox[t]{\textwidth}{%
1122 \@hangfrom{\normalfont\enclname: }%
1123 \ignorespaces #1\strut}\par}
1126 % The only thing |\ps| needs to do is call |\startbreaks|,
1127 % which allows page breaking again.
1129 \newcommand*{\ps}{\par\startbreaks}
1136 % \begin{macro}{\stopletter}
1137 % The |\stopletter| command is called by |\endletter| to do the
1140 % \item Add any desired fill or other material at the end of the
1142 % \item Define |\returnaddress| to be the return address for the
1144 % More precisely, it is the first argument of the |\mlabel|
1145 % command described below. It should be defined to null if the
1146 % return address doesn't appear on the labels. Any command,
1147 % other than |\\|, that should not be expanded until the |\mlabel|
1148 % command is actually executed must be preceded by |\protect|.
1149 % Whenever possible, |\protect| commands in the definition of
1150 % |\returnaddress|---it's much more efficient that way. In
1151 % particular, when the standard return address is used, you
1152 % should define |\returnaddress| to something like
1153 % |\protect\standardreturnaddress|.
1156 \newcommand*{\stopletter}{}
1160 % \subsection{Customizing the labels}
1162 % Commands for generating the labels are put on the \file{.aux} file,
1163 % which is read in and processed by the |\end{document}| command.
1164 % You have to define the following two commands:
1166 % \item |\startlabels| : Should reset the page layout parameters if
1168 % \item |\mlabel|\marg{return address}\marg{to address} : Command to
1169 % generate a single label.
1174 % \begin{macro}{\returnaddress}
1175 % The return address for the mailing labels can be stored in this
1178 \newcommand*{\returnaddress}{}
1182 % \begin{macro}{\labelcount}
1183 % A register to count the labels
1185 \newcount\labelcount
1189 % \begin{macro}{\startlabels}
1190 % The following |\startlabels| command sets things up for
1191 % producing labels in two columns of five 2" $\times$ 4-1/4"
1192 % labels each, suitable for reproducing onto Avery brand number
1193 % 5352 address labels.
1194 % \changes{v1.2q}{1995/03/14}{changed value of \cs{columnsep} by 1pt}
1196 \newcommand*{\startlabels}{\labelcount\z@
1201 \oddsidemargin -35\p@
1202 \evensidemargin -35\p@
1204 \@colht\textheight \@colroom\textheight \vsize\textheight
1207 \ifcase \@ptsize\relax
1222 % \begin{macro}{\@startlabels}
1223 % |\@startlabels| is the command name that is written to the |.aux|
1224 % file. It is a no-op at first, and defined to be the same as
1225 % |\startlabels| in the |\begin{document}| hook.
1227 \let\@startlabels=\relax
1231 % \begin{macro}{\mlabel}
1232 % This command prints an address label; it is used when the user
1233 % specified |\makelabels| in the preamble of his document. The
1234 % command |\mlabel| takes two arguments; the second argument is
1235 % supposed to be the address; the first argument can be used to
1236 % print a return address. In this document class we ignore the
1237 % first argument. Also the labels are supposed to be 2~inch high
1238 % and 3.6~inch wide. When your address labels have a different you
1239 % will have to define your own |\mlabel| command.
1240 % \changes{v1.2p}{1994/12/11}{Redefined \cs{mlabel} to not use the
1241 % \cs{setbox} primitive}
1242 % \changes{v1.2q}{1995/03/14}{changed width of the labels slightly to
1243 % prevent \LaTeX\ stuffing two on each line}
1245 \newcommand*{\mlabel}[2]{%
1246 \parbox[b][2in][c]{262\p@}{\strut\ignorespaces #2}%
1251 % \begin{macro}{\@mlabel}
1252 % The macro |\@mlabel| is written to the \file{.aux} file instead
1253 % of |\mlabel|. This allows us to make it a no-op by default,
1254 % and then activate it in the |\begin{document}| hook.
1256 \let\@mlabel=\@gobbletwo
1261 % \subsection{Lists}
1263 % \subsubsection{General List Parameters}
1265 % The following commands are used to set the default values for the
1266 % list environment's parameters. See the \LaTeX{} manual for an
1267 % explanation of the meanings of the parameters. Defaults for the
1268 % list environment are set as follows. First, |\rightmargin|,
1269 % |\listparindent| and |\itemindent| are set to 0pt. Then, for a
1270 % \texttt{K}th level list, the command |\@listK| is called, where
1271 % `\texttt{K}' denotes `\texttt{i}', `\texttt{ii}', ... ,
1272 % `\texttt{vi}'. (I.e., |\@listiii| is called for a third-level
1273 % list.) By convention, |\@listK| should set |\leftmargin| to
1276 % \begin{macro}{\leftmargin}
1277 % \begin{macro}{\leftmargini}
1278 % \begin{macro}{\leftmarginii}
1279 % \begin{macro}{\leftmarginiii}
1280 % \begin{macro}{\leftmarginiv}
1281 % \begin{macro}{\leftmarginv}
1282 % \begin{macro}{\leftmarginvi}
1283 % For efficiency, level-one list's values are defined at top level, and
1284 % |\@listi| is defined to set only |\leftmargin|.
1286 \setlength\leftmargini {2.5em}
1288 % The following three are calculated so that they are larger than
1289 % the sum of |\labelsep| and the width of the default labels (which
1290 % are `(m)', `vii.' and `M.').
1292 \setlength\leftmarginii {2.2em}
1293 \setlength\leftmarginiii {1.87em}
1294 \setlength\leftmarginiv {1.7em}
1295 \setlength\leftmarginv {1em}
1296 \setlength\leftmarginvi {1em}
1298 % Here we set the top level leftmargin.
1300 \setlength\leftmargin {\leftmargini}
1310 % \begin{macro}{\labelsep}
1311 % \begin{macro}{\labelwidth}
1312 % |\labelsep| is the distance between the label and the text of an
1313 % item; |\labelwidth| is the width of the label.
1315 \setlength \labelsep {5\p@}
1316 \setlength \labelwidth{\leftmargini}
1317 \addtolength\labelwidth{-\labelsep}
1322 % \begin{macro}{\partopsep}
1323 % When the user leaves a blank line before the environment an extra
1324 % vertical space of |\partopsep| is inserted, in addition to
1325 % |\parskip| and |\topsep|.
1327 \setlength\partopsep{0\p@}
1331 % \begin{macro}{\@beginparpenalty}
1332 % \begin{macro}{\@endparpenalty}
1333 % These penalties are inserted before and after a list or paragraph
1334 % environment. They are set to a bonus value to encourage page
1335 % breaking at these points.
1336 % \begin{macro}{\@itempenalty}
1337 % This penalty is inserted between list items.
1339 \@beginparpenalty -\@lowpenalty
1340 \@endparpenalty -\@lowpenalty
1341 \@itempenalty -\@lowpenalty
1347 % \begin{macro}{\@listI}
1348 % \begin{macro}{\@listi}
1349 % |\@listI| defines top level and |\@listi| values of
1350 % |\leftmargin|, |\parsep|, |\topsep|, and |\itemsep|
1353 \def\@listI{\setlength\leftmargin{\leftmargini}%
1354 \setlength\parsep {0\p@}%
1355 \setlength\topsep {.4em}%
1356 \setlength\itemsep{.4em}}
1359 % We have to initialize these parameters.
1366 % \begin{macro}{\@listii}
1367 % \begin{macro}{\@listiii}
1368 % \begin{macro}{\@listiv}
1369 % \begin{macro}{\@listv}
1370 % \begin{macro}{\@listvi}
1371 % Here are the same macros for the higher level lists.
1373 \def\@listii {\setlength \leftmargin{\leftmarginii}%
1374 \setlength \labelwidth{\leftmarginii}%
1375 \addtolength\labelwidth{-\labelsep}}
1376 \def\@listiii{\setlength \leftmargin{\leftmarginiii}%
1377 \setlength \labelwidth{\leftmarginiii}%
1378 \addtolength\labelwidth{-\labelsep}%
1379 \setlength \topsep {.2em}%
1380 \setlength \itemsep {\topsep}}
1381 \def\@listiv {\setlength \leftmargin{\leftmarginiv}%
1382 \setlength \labelwidth{\leftmarginiv}%
1383 \addtolength\labelwidth{-\labelsep}}
1384 \def\@listv {\setlength \leftmargin{\leftmarginv}%
1385 \setlength \labelwidth{\leftmarginv}%
1386 \addtolength\labelwidth{-\labelsep}}
1387 \def\@listvi {\setlength \leftmargin{\leftmarginvi}%
1388 \setlength \labelwidth{\leftmarginvi}%
1389 \addtolength\labelwidth{-\labelsep}}
1397 % \subsubsection{Enumerate}
1399 % The enumerate environment uses four counters: \Lcount{enumi},
1400 % \Lcount{enumii}, \Lcount{enumiii} and \Lcount{enumiv}, where
1401 % \Lcount{enumN} controls the numbering of the Nth level
1404 % \begin{macro}{\theenumi}
1405 % \begin{macro}{\theenumii}
1406 % \begin{macro}{\theenumiii}
1407 % \begin{macro}{\theenumiv}
1408 % The counters are already defined in the \LaTeX{} kernel
1409 % (\file{ltlists.dtx}), but their representation is changed here.
1412 \renewcommand\theenumi{\@arabic\c@enumi}
1413 \renewcommand\theenumii{\@alph\c@enumii}
1414 \renewcommand\theenumiii{\@roman\c@enumiii}
1415 \renewcommand\theenumiv{\@Alph\c@enumiv}
1422 % \begin{macro}{\labelenumi}
1423 % \begin{macro}{\labelenumii}
1424 % \begin{macro}{\labelenumiii}
1425 % \begin{macro}{\labelenumiv}
1426 % The commands |\labelenumi| ... |\labelenumiv| generate the label
1429 \newcommand\labelenumi{\theenumi.}
1430 \newcommand\labelenumii{(\theenumii)}
1431 \newcommand\labelenumiii{\theenumiii.}
1432 \newcommand\labelenumiv{\theenumiv.}
1439 % \begin{macro}{\p@enumii}
1440 % \begin{macro}{\p@enumiii}
1441 % \begin{macro}{\p@enumiv}
1442 % The expansion of |\p@enumN||\theenumN| defines the output of a
1443 % |\ref| command when referencing an item of the Nth level of an
1446 \renewcommand\p@enumii{\theenumi}
1447 \renewcommand\p@enumiii{\theenumi(\theenumii)}
1448 \renewcommand\p@enumiv{\p@enumiii\theenumiii}
1454 % \subsubsection{Itemize}
1456 % \begin{macro}{\labelitemi}
1457 % \begin{macro}{\labelitemii}
1458 % \changes{v1.2h}{1994/05/06}{Inserted \cs{normalfont}}
1459 % \changes{v1.2u}{1996/08/25}{replaced -{}- with \cs{textendash}}
1460 % \begin{macro}{\labelitemiii}
1461 % \begin{macro}{\labelitemiv}
1462 % Itemization is controlled by |\labelitemi|,
1463 % |\labelitemii|, |\labelitemiii|, and |\labelitemiv|, which define
1464 % the labels of the various itemization levels: the symbols used are
1465 % bullet, bold en-dash, asterisk and centered dot.
1467 % \changes{v1.2n}{1994/07/11}{renamed \cs{labelitemiiii} to
1468 % \cs{labelitemiii}}
1469 % \changes{v1.2x}{1997/04/16}{Changed to \cs{textbullet},
1470 % \cs{textasteriskcentered} and \cs{textperiodcentered}}
1472 \newcommand\labelitemi{\textbullet}
1473 \newcommand\labelitemii{\normalfont\bfseries \textendash}
1474 \newcommand\labelitemiii{\textasteriskcentered}
1475 \newcommand\labelitemiv{\textperiodcentered}
1482 % \subsubsection{Description}
1484 % \begin{environment}{description}
1485 % The description environment is defined here -- while the itemize
1486 % and enumerate environments are defined in the \LaTeX{} kernel
1487 % (\file{ltlists.dtx}).
1490 \newenvironment{description}
1491 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
1492 \let\makelabel\descriptionlabel}}
1497 % \begin{macro}{\descriptionlabel}
1498 % To change the formatting of the label, you must redefine
1499 % |\descriptionlabel|.
1501 % \changes{v1.2q}{1995/03/14}{made command short}
1503 \newcommand*{\descriptionlabel}[1]{\hspace\labelsep
1504 \normalfont\bfseries #1}
1508 % \subsection{Defining new environments}
1510 % \subsubsection{Verse}
1512 % \begin{environment}{verse}
1513 % The verse environment is defined by making clever use of the
1514 % list environment's parameters. The user types |\\| to end a line.
1515 % This is implemented by |\let|'ing |\\| equal |\@centercr|.
1518 \newenvironment{verse}
1520 \list{}{\setlength\itemsep{\z@}%
1521 \setlength\itemindent{-15\p@}%
1522 \setlength\listparindent{\itemindent}%
1523 \setlength\rightmargin{\leftmargin}%
1524 \addtolength\leftmargin{15\p@}}%
1530 % \subsubsection{Quotation}
1532 % \begin{environment}{quotation}
1533 % The quotation environment is also defined by making clever use of
1534 % the list environment's parameters. The lines in the environment
1535 % are set smaller than |\textwidth|. The first line of a paragraph
1536 % inside this environment is indented.
1539 \newenvironment{quotation}
1540 {\list{}{\setlength\listparindent{1.5em}%
1541 \setlength\itemindent{\listparindent}%
1542 \setlength\rightmargin{\leftmargin}}%
1548 % \subsubsection{Quote}
1550 % \begin{environment}{quote}
1551 % The quote environment is like the quotation environment except
1552 % that paragraphs are not indented.
1555 \newenvironment{quote}
1556 {\list{}{\setlength\rightmargin{\leftmargin}}%
1562 % \subsubsection{Theorem}
1564 % This document class does not define it's own theorem environments,
1565 % the defaults, supplied by the \LaTeX{} kernel (\file{ltthm.dtx})
1569 % \subsection{Setting parameters for existing environments}
1571 % \subsubsection{Array and tabular}
1573 % \begin{macro}{\arraycolsep}
1574 % The columns in an array environment are separated by
1577 \setlength\arraycolsep{5\p@}
1581 % \begin{macro}{\tabcolsep}
1582 % The columns in an tabular environment are separated by
1585 \setlength\tabcolsep{6\p@}
1589 % \begin{macro}{\arrayrulewidth}
1590 % The width of vertical rules in the array and tabular environments
1591 % is given by |\arrayrulewidth|.
1593 \setlength\arrayrulewidth{.4\p@}
1597 % \begin{macro}{\doublerulesep}
1598 % The space between adjacent rules in the array and tabular
1599 % environments is given by |\doublerulesep|.
1601 \setlength\doublerulesep{2\p@}
1605 % \subsubsection{Tabbing}
1607 % \begin{macro}{\tabbingsep}
1608 % This controls the space that the |\'| command puts in. (See
1609 % \LaTeX{} manual for an explanation.)
1611 \setlength\tabbingsep{\labelsep}
1615 % \subsubsection{Minipage}
1617 % \begin{macro}{\@minipagerestore}
1618 % The macro |\@minipagerestore| is called upon entry to a minipage
1619 % environment to set up things that are to be handled differently
1620 % inside a minipage environment. In the current styles, it does
1624 % \begin{macro}{\@mpfootins}
1625 % Minipages have their own footnotes; |\skip||\@mpfootins| plays
1626 % same r\^ole for footnotes in a minipage as |\skip||\footins| does
1627 % for ordinary footnotes.
1630 \skip\@mpfootins = \skip\footins
1634 % \subsubsection{Framed boxes}
1636 % \begin{macro}{\fboxsep}
1637 % The space left by |\fbox| and |\framebox| between the box and the
1639 % \begin{macro}{\fboxrule}
1640 % The width of the rules in the box made by |\fbox| and |\framebox|.
1642 \setlength\fboxsep{3\p@}
1643 \setlength\fboxrule{.4\p@}
1648 % \subsubsection{Equation and eqnarray}
1650 % \begin{macro}{\theequation}
1651 % The equation counter will be typeset using arabic numbers.
1653 \renewcommand\theequation{\@arabic\c@equation}
1657 % \begin{macro}{\jot}
1658 % |\jot| is the extra space added between lines of an eqnarray
1659 % environment. The default value is used.
1661 % \setlength\jot{3pt}
1665 % \begin{macro}{\@eqnnum}
1666 % The macro |\@eqnnum| defines how equation numbers are to appear in
1667 % equations. Again the default is used.
1670 % \def\@eqnnum{(\theequation)}
1674 % \subsection{Font changing}
1676 % Here we supply the declarative font changing commands that were
1677 % common in \LaTeX\ version 2.09 and earlier. These commands work
1678 % in text mode \emph{and} in math mode. They are provided for
1679 % compatibility, but one should start using the |\text...| and
1680 % |\math...| commands instead. These commands are redefined using
1681 % |\@renewfontswitch|, a command with three arguments: the user
1682 % command to be defined; \LaTeX\ commands to execute in text mode
1683 % and \LaTeX\ commands to execute in math mode.
1685 % \begin{macro}{\rm}
1686 % \begin{macro}{\tt}
1687 % \begin{macro}{\sf}
1688 % The commands to change the family.
1689 % \changes{v1.0a}{1993/12/14}{Added compatibility mode support.}
1690 % \changes{v1.1}{1993/12/18}{Changed \cs{@newfontswitch} to
1691 % \cs{@renewfontswitch}, removed switch.}
1692 % \changes{v1.2d}{1994/04/14}{\cs{@renewfontswitch} has become
1693 % \cs{DeclareOldFontCommand}}
1695 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
1696 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
1697 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
1703 % \begin{macro}{\bf}
1704 % The command to change to the bold series. One should use
1705 % |\mdseries| to explicitly switch back to medium series.
1706 % \changes{v1.0a}{1993/12/14}{Added compatibility mode support.}
1707 % \changes{v1.1}{1993/12/18}{Changed \cs{@newfontswitch} to
1708 % \cs{@renewfontswitch}, removed switch.}
1710 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
1714 % \begin{macro}{\sl}
1715 % \begin{macro}{\it}
1716 % \begin{macro}{\sc}
1718 % And the commands to change the shape of the font. The slanted and
1719 % small caps shapes are not available by default as math alphabets,
1720 % so those changes do nothing in math mode. One should use
1721 % |\upshape| to explicitly change back to the upright shape.
1722 % \changes{v1.0a}{1993/12/14}{Added compatibility mode support.}
1723 % \changes{v1.1}{1993/12/18}{Changed \cs{@newfontswitch} to
1724 % \cs{@renewfontswitch}, removed switch.}
1725 % \changes{v1.1b}{1993/12/20}{Added forgotten re.}
1727 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
1728 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\relax}
1729 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\relax}
1735 % \begin{macro}{\cal}
1736 % \changes{v1.0a}{1993/12/14}{Macro added}
1737 % \begin{macro}{\mit}
1738 % \changes{v1.0a}{1993/12/14}{Macro added}
1740 % The commands |\cal| and |\mit| should only be used in math mode,
1741 % outside math mode they have no effect. Currently the New Font
1742 % Selection Scheme defines these commands to generate warning
1743 % messages. Therefore we have to define them `by hand'.
1744 % \changes{v1.2p}{1994/12/11}{Now define \cs{cal} and \cs{mit} using
1745 % \cs{DeclareRobustCommand*}}
1747 \DeclareRobustCommand*{\cal}{\@fontswitch{\relax}{\mathcal}}
1748 \DeclareRobustCommand*{\mit}{\@fontswitch{\relax}{\mathnormal}}
1753 % \subsection{Footnotes}
1755 % \begin{macro}{\footnoterule}
1756 % Usually, footnotes are separated from the main body of the text
1757 % by a small rule. This rule is drawn by the macro |\footnoterule|.
1758 % We have to make sure that the rule takes no vertical space (see
1759 % \file{plain.tex}) so we compensate for the natural height of the
1760 % rule of 0.4pt by adding the right amount of vertical skip.
1762 % To prevent the rule from colliding with the footnote we first add
1763 % a little negative vertical skip, then we put the rule and make
1764 % sure we end up at the same point where we begun this operation.
1766 \renewcommand\footnoterule{%
1768 \hrule \@width .4\columnwidth
1773 % \begin{macro}{\c@footnote}
1774 % A counter for footnotes.
1776 % \newcounter{footnote}
1780 % \begin{macro}{\@makefntext}
1781 % \changes{v1.2c}{1994/03/08}{Always call \cs{@makefnmark}.}
1782 % The footnote mechanism of \LaTeX{} calls the macro |\@makefntext|
1783 % to produce the actual footnote. The macro gets the text of the
1784 % footnote as its argument and should use |\@makefnmark| to produce
1785 % the mark of the footnote. The macro |\@makefntext| is called when
1786 % effectively inside a |\parbox| of width |\columnwidth| (i.e.,
1787 % with |\hsize| = |\columnwidth|).
1789 % An example of what can be achieved is given by the following piece
1792 % \long\def\@makefntext#1{%
1794 % \@tempdima = \hsize
1795 % \advance\@tempdima-10pt
1796 % \parshape \@ne 10pt \@tempdima}%
1798 % \parindent 1em\noindent
1799 % \hb@xt@\z@{\hss\@makefnmark}#1}
1801 % The effect of this definition is that all lines of the footnote
1802 % are indented by 10pt, while the first line of a new paragraph is
1803 % indented by 1em. To change these dimensions, just substitute the
1804 % desired value for `10pt' (in both places) or `1em'. The mark is
1805 % flush right against the footnote.
1807 % In this document class we use a simpler macro, in which the
1808 % footnote text is set like an ordinary text paragraph, with no
1809 % indentation except on the first line of a paragraph, and the
1810 % first line of the footnote. Thus, all the macro must do is set
1811 % |\parindent| to the appropriate value for succeeding paragraphs
1812 % and put the proper indentation before the mark.
1815 \long\def\@makefntext#1{%
1818 \hb@xt@5\p@{\hss\@makefnmark}#1}
1822 % \begin{macro}{\@makefnmark}
1823 % The footnote markers that are printed in the text to point to the
1824 % footnotes should be produced by the macro |\@makefnmark|. We use
1825 % the default definition for it.
1827 %\def\@makefnmark{\hbox{$^{\@thefnmark}\m@th$}}
1831 % \subsection{Words}
1833 % \begin{macro}{\ccname}
1834 % \begin{macro}{\enclname}
1835 % \begin{macro}{\pagename}
1836 % \begin{macro}{\headtoname}
1837 % This document class is for documents prepared in the English
1838 % language. To prepare a version for another language, various
1839 % English words must be replaced. All the English words that
1840 % require replacement are defined below in command names.
1842 \newcommand*{\ccname}{cc}
1843 \newcommand*{\enclname}{encl}
1844 \newcommand*{\pagename}{Page}
1845 \newcommand*{\headtoname}{To}
1854 % \begin{macro}{\today}
1855 % This macro uses the \TeX\ primitives |\month|, |\day| and |\year|
1856 % to provide the date of the \LaTeX-run.
1858 \newcommand*{\today}{\ifcase\month\or
1859 January\or February\or March\or April\or May\or June\or
1860 July\or August\or September\or October\or November\or December\fi
1861 \space\number\day, \number\year}
1865 % \subsection{Two column mode}
1867 % \begin{macro}{\columnsep}
1868 % This gives the distance between two columns in two column mode.
1870 \setlength\columnsep{10\p@}
1874 % \begin{macro}{\columnseprule}
1875 % This gives the width of the rule between two columns in two
1876 % column mode. We have no visible rule.
1878 \setlength\columnseprule{0\p@}
1882 % \subsection{The page style}
1883 % We have \pstyle{plain} pages in this document class by
1884 % default. We use arabic page numbers.
1887 \pagenumbering{arabic}
1890 % \subsection{Single or double sided printing}
1892 % We don't try to make each page as long as all the others.
1897 % \begin{macro}{\@texttop}
1898 % The document class letter sets |\@texttop| to |\vskip| 0pt
1899 % \texttt{plus} .00006fil on the first page of a letter, which
1900 % centers a short letter on the page. This fil value may have to be
1901 % changed for other letterheads. This setting has to be done after
1902 % |\raggedbottom| is executed, since the latter sets |\@texttop| to
1905 \def\@texttop{\ifnum\c@page=1\vskip \z@ plus.00006fil\relax\fi}
1909 % We always start in one column mode.