| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright (C) 1993-2025 |
| 4 |
% The LaTeX Project and any individual authors listed elsewhere |
| 5 |
% in this file. |
| 6 |
% |
| 7 |
% This file is part of the LaTeX base system. |
| 8 |
% ------------------------------------------- |
| 9 |
% |
| 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 |
% https://www.latex-project.org/lppl.txt |
| 15 |
% and version 1.3c or later is part of all distributions of LaTeX |
| 16 |
% version 2008 or later. |
| 17 |
% |
| 18 |
% This file has the LPPL maintenance status "maintained". |
| 19 |
% |
| 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 |
| 22 |
% information. |
| 23 |
% |
| 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. |
| 27 |
% |
| 28 |
% \fi |
| 29 |
% |
| 30 |
% |
| 31 |
% \iffalse |
| 32 |
% \section{Identification} |
| 33 |
% |
| 34 |
% |
| 35 |
% This document class can only be used with \LaTeXe, so we make |
| 36 |
% sure that an appropriate message is displayed when another \TeX{} |
| 37 |
% format is used. |
| 38 |
% \begin{macrocode} |
| 39 |
%<+letter>\NeedsTeXFormat{LaTeX2e}[1996/06/01] |
| 40 |
% \end{macrocode} |
| 41 |
% |
| 42 |
% Announce the Class name and its version. |
| 43 |
% \begin{macrocode} |
| 44 |
%<+letter>\ProvidesClass{letter} |
| 45 |
%<*driver> |
| 46 |
\ProvidesFile{letter.drv} |
| 47 |
%</driver> |
| 48 |
[2024/08/12 v1.3c |
| 49 |
%<+letter> Standard LaTeX document class] |
| 50 |
% \end{macrocode} |
| 51 |
% |
| 52 |
% \section{The documentation driver file} |
| 53 |
% |
| 54 |
% We have our own document class to format the \LaTeXe{} |
| 55 |
% documentation. |
| 56 |
% \fi |
| 57 |
% \changes{v1.0}{1993/12/07}{Use class ltxdoc document class} |
| 58 |
% \iffalse |
| 59 |
% \begin{macrocode} |
| 60 |
%<*driver> |
| 61 |
] |
| 62 |
\documentclass{ltxdoc} |
| 63 |
% \end{macrocode} |
| 64 |
% |
| 65 |
% We don't want everything to appear in the index. |
| 66 |
% \begin{macrocode} |
| 67 |
\DoNotIndex{\@Alph,\@alph,\@arabic,\@badmath} |
| 68 |
\DoNotIndex{\@centercr} |
| 69 |
\DoNotIndex{\@empty,\@ignoretrue} |
| 70 |
\DoNotIndex{\@ixpt} |
| 71 |
\DoNotIndex{\@M,\@minus,\@ne,\@plus} |
| 72 |
\DoNotIndex{\\,\addtolength} |
| 73 |
\DoNotIndex{\advance} |
| 74 |
\DoNotIndex{\ast,\begin,\begingroup,\bfseries,\bgroup,\box} |
| 75 |
\DoNotIndex{\bullet} |
| 76 |
\DoNotIndex{\cdot,\cr,\day,\DeclareOption} |
| 77 |
\DoNotIndex{\def,\DocInput,\documentclass} |
| 78 |
\DoNotIndex{\DoNotIndex,\egroup,\ifx,\else,\fi,\endtrivlist} |
| 79 |
\DoNotIndex{\EnableCrossrefs,\end,\end@dblfloat,\end@float,\endgroup} |
| 80 |
\DoNotIndex{\endlist,\everycr,\ExecuteOptions} |
| 81 |
\DoNotIndex{\filedate,\filename,\fileversion} |
| 82 |
\DoNotIndex{\global,\halign,\hangindent,\hbox,\hfil,\hfill,\hrule} |
| 83 |
\DoNotIndex{\hsize,\hskip,\hspace,\hss,\ifcase,\or,\fi} |
| 84 |
\DoNotIndex{\ifvmode,\fi,\ifnum,\fi,\input} |
| 85 |
\DoNotIndex{\kern,\leavevmode,\let,\leftmark} |
| 86 |
\DoNotIndex{\list,\llap,\long,\m@ne,\m@th,\mark} |
| 87 |
\DoNotIndex{\month,\newcommand,\newcounter,\newenvironment} |
| 88 |
\DoNotIndex{\NeedsTeXFormat,\newdimen} |
| 89 |
\DoNotIndex{\newpage,\nobreak,\noindent,\number} |
| 90 |
\DoNotIndex{\p@} |
| 91 |
\DoNotIndex{\pagestyle,\par} |
| 92 |
\DoNotIndex{\penalty,\PrintChanges,\PrintIndex,\ProcessOptions} |
| 93 |
\DoNotIndex{\protect,\ProvidesClass,\raggedbottom,\raggedright} |
| 94 |
\DoNotIndex{\refstepcounter,\relax,\renewcommand,\reset@font} |
| 95 |
\DoNotIndex{\rightmargin,\rlap,\rmfamily} |
| 96 |
\DoNotIndex{\setbox,\setcounter,\setlength} |
| 97 |
\DoNotIndex{\skip,\slshape,\space} |
| 98 |
\DoNotIndex{\trivlist,\typeout,\tw@} |
| 99 |
\DoNotIndex{\vskip,\vspace,\year,\z@} |
| 100 |
% |
| 101 |
\CodelineNumbered |
| 102 |
\CodelineIndex |
| 103 |
\EnableCrossrefs |
| 104 |
\RecordChanges |
| 105 |
% \end{macrocode} |
| 106 |
% We use so many \file{docstrip} modules that we set the |
| 107 |
% \texttt{StandardModuleDepth} counter to 1. |
| 108 |
% \begin{macrocode} |
| 109 |
\setcounter{StandardModuleDepth}{1} |
| 110 |
% \end{macrocode} |
| 111 |
% The following command retrieves the date and version information |
| 112 |
% from the file. |
| 113 |
% \begin{macrocode} |
| 114 |
\GetFileInfo{letter.drv} |
| 115 |
% \end{macrocode} |
| 116 |
% Some commonly used abbreviations |
| 117 |
% \begin{macrocode} |
| 118 |
\newcommand*\Lopt[1]{\textsf {#1}} |
| 119 |
\newcommand*\file[1]{\texttt {#1}} |
| 120 |
\newcommand*\Lcount[1]{\textsl {\small#1}} |
| 121 |
\newcommand*\pstyle[1]{\textsl {#1}} |
| 122 |
% \end{macrocode} |
| 123 |
% We also want the full details. |
| 124 |
% \begin{macrocode} |
| 125 |
\begin{document} |
| 126 |
\DocInput{letter.dtx} |
| 127 |
\PrintIndex |
| 128 |
% ^^A\PrintChanges |
| 129 |
\end{document} |
| 130 |
%</driver> |
| 131 |
% \end{macrocode} |
| 132 |
% \fi |
| 133 |
% |
| 134 |
% \changes{v1.1}{1993/12/18}{Changes to make it work with |
| 135 |
% compatibility mode.} |
| 136 |
% \changes{v1.1a}{1993/12/19}{Removed float parms} |
| 137 |
% |
| 138 |
% \changes{v1.1c}{1994/01/17}{Moved definition of \cs{@textop} to |
| 139 |
% initialization section, to counteract setting of \cs{@texttop} in |
| 140 |
% \cs{raggedbottom}.} |
| 141 |
% |
| 142 |
% \changes{v1.1d}{1994/01/20}{Corrected margins: Now computed from |
| 143 |
% \cs{paperwidth} and \cs{textwidth}, so that the text is |
| 144 |
% horizontally centered.} |
| 145 |
% \changes{v1.1e}{1994/02/03}{Corrected checksum} |
| 146 |
% |
| 147 |
% \changes{v1.2a}{1994/02/12}{Removed onecolumn and twocolumn options.} |
| 148 |
% \changes{v1.2a}{1994/02/12}{Changed label producing commands in .aux |
| 149 |
% file.} |
| 150 |
% |
| 151 |
% \changes{v1.2b}{1994/02/28}{Moved driver further up.} |
| 152 |
% |
| 153 |
% \changes{v1.2c}{1994/03/08}{Always write .aux file.} |
| 154 |
% \changes{v1.2f}{1994/04/29}{Use LaTeX instead of LaTeX2e in messages} |
| 155 |
% \changes{v1.2f}{1994/04/29}{Removed \cs{typeout} message} |
| 156 |
% \changes{v1.2g}{1994/05/01}{Removed the use of \cs{fileversion} |
| 157 |
% c.s.} |
| 158 |
% \changes{v1.2j}{1994/06/01}{Corrected driver code.} |
| 159 |
% \changes{v1.2k}{1994/06/17}{Various documentation enhancements} |
| 160 |
% \changes{v1.2p}{1994/12/11}{Use \cs{newcommand*} to define |
| 161 |
% user-level commands that take an argument} |
| 162 |
% \changes{v1.2q}{1995/05/17}{cleaned up \cs{changes entries}} |
| 163 |
% \changes{v1.2q}{1995/05/18}{replaced \cs{hbox to} by \cs{hb@xt@}} |
| 164 |
% \changes{v1.2r}{1995/05/23}{removed a superfluous brace} |
| 165 |
% \changes{v1.3a}{2020/03/07}{merged changes to classes.dtx into letter.dtx} |
| 166 |
% |
| 167 |
% \iffalse |
| 168 |
% Copyright (C) 1994 LaTeX Project, Frank Mittelbach |
| 169 |
% and Rainer Sch\"opf, all rights reserved. |
| 170 |
% \fi |
| 171 |
% |
| 172 |
% \author{Leslie Lamport and Frank Mittelbach and Rainer Sch\"opf} |
| 173 |
% |
| 174 |
% \title{Standard Letter Document Class for \LaTeX{} version 2e} |
| 175 |
% |
| 176 |
% |
| 177 |
% \MaintainedByLaTeXTeam{latex} |
| 178 |
% \maketitle |
| 179 |
% \tableofcontents |
| 180 |
% |
| 181 |
% \MaybeStop{} |
| 182 |
% |
| 183 |
% |
| 184 |
% \section{Initial Code} |
| 185 |
% |
| 186 |
% In this part we define a few commands that are used later on. |
| 187 |
% |
| 188 |
% \begin{macro}{\@ptsize} |
| 189 |
% This control sequence is used to store the second digit of the |
| 190 |
% pointsize we are typesetting in. So, normally, it's value is one |
| 191 |
% of 0, 1 or 2. |
| 192 |
% \begin{macrocode} |
| 193 |
%<*letter> |
| 194 |
\newcommand\@ptsize{} |
| 195 |
% \end{macrocode} |
| 196 |
% \end{macro} |
| 197 |
% |
| 198 |
% |
| 199 |
% |
| 200 |
% \subsection{Setting Paper Sizes} |
| 201 |
% |
| 202 |
% The variables |\paperwidth| and |\paperheight| should reflect the |
| 203 |
% physical paper size after trimming. For desk printer output this |
| 204 |
% is usually the real paper size since there is no post-processing. |
| 205 |
% \changes{v1.0a}{1993/12/14}{Corrected typo, A4 is not 279 mm high} |
| 206 |
% \begin{macrocode} |
| 207 |
\DeclareOption{a4paper} |
| 208 |
{\setlength\paperheight {297mm}% |
| 209 |
\setlength\paperwidth {210mm}} |
| 210 |
\DeclareOption{a5paper} |
| 211 |
{\setlength\paperheight {210mm}% |
| 212 |
\setlength\paperwidth {148mm}} |
| 213 |
\DeclareOption{b5paper} |
| 214 |
{\setlength\paperheight {250mm}% |
| 215 |
\setlength\paperwidth {176mm}} |
| 216 |
\DeclareOption{letterpaper} |
| 217 |
{\setlength\paperheight {11in}% |
| 218 |
\setlength\paperwidth {8.5in}} |
| 219 |
\DeclareOption{legalpaper} |
| 220 |
{\setlength\paperheight {14in}% |
| 221 |
\setlength\paperwidth {8.5in}} |
| 222 |
\DeclareOption{executivepaper} |
| 223 |
{\setlength\paperheight {10.5in}% |
| 224 |
\setlength\paperwidth {7.25in}} |
| 225 |
% \end{macrocode} |
| 226 |
% |
| 227 |
% \changes{v1.2o}{1994/08/26}{Added the option \textsf{landscape}} |
| 228 |
% The option \Lopt{landscape} switches the values of |\paperheight| |
| 229 |
% and |\paperwidth|, assuming the dimensions were given for portrait |
| 230 |
% paper. |
| 231 |
% \begin{macrocode} |
| 232 |
\DeclareOption{landscape} |
| 233 |
{\setlength\@tempdima {\paperheight}% |
| 234 |
\setlength\paperheight {\paperwidth}% |
| 235 |
\setlength\paperwidth {\@tempdima}} |
| 236 |
% \end{macrocode} |
| 237 |
% |
| 238 |
% \subsection{Choosing the type size} |
| 239 |
% |
| 240 |
% The type size options are handled by defining |\@ptsize| to |
| 241 |
% contain the last digit of the size in question and branching on |
| 242 |
% |\ifcase| statements. This is done for historical reasons to stay |
| 243 |
% compatible with other packages that use the |\@ptsize| variable |
| 244 |
% to select special actions. It makes the declarations of size |
| 245 |
% options less than 10pt difficult, although one can probably use |
| 246 |
% \texttt{9} and \texttt{8} assuming that a class won't define both |
| 247 |
% \Lopt{8pt} and \Lopt{18pt} options. |
| 248 |
% |
| 249 |
% \begin{macrocode} |
| 250 |
\DeclareOption{10pt}{\renewcommand\@ptsize{0}} |
| 251 |
\DeclareOption{11pt}{\renewcommand\@ptsize{1}} |
| 252 |
\DeclareOption{12pt}{\renewcommand\@ptsize{2}} |
| 253 |
% \end{macrocode} |
| 254 |
% |
| 255 |
% |
| 256 |
% \subsection{Two-side or one-side printing} |
| 257 |
% |
| 258 |
% Two-sided printing was not supported in the \LaTeX~2.09 version |
| 259 |
% of this document class. |
| 260 |
% \changes{v1.2e}{1994/04/28}{Added oneside option and twoside option |
| 261 |
% in native mode} |
| 262 |
% \begin{macrocode} |
| 263 |
\if@compatibility |
| 264 |
\DeclareOption{twoside}{\@latexerr{No `twoside' layout for letters}% |
| 265 |
\@eha} |
| 266 |
\else |
| 267 |
\DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue} |
| 268 |
\fi |
| 269 |
% \end{macrocode} |
| 270 |
% |
| 271 |
% |
| 272 |
% \begin{macrocode} |
| 273 |
\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse} |
| 274 |
% \end{macrocode} |
| 275 |
% |
| 276 |
% \subsection{Draft option} |
| 277 |
% |
| 278 |
% If the user requests \Lopt{draft} we show any overfull boxes. |
| 279 |
% We could probably add some more interesting stuff to this option. |
| 280 |
% \begin{macrocode} |
| 281 |
\DeclareOption{draft}{\setlength\overfullrule{5pt}} |
| 282 |
\DeclareOption{final}{\setlength\overfullrule{0pt}} |
| 283 |
% \end{macrocode} |
| 284 |
% |
| 285 |
% |
| 286 |
% \subsection{Equation numbering on the left} |
| 287 |
% |
| 288 |
% The option \Lopt{leqno} can be used to get the equation numbers |
| 289 |
% on the left side of the equation. |
| 290 |
% \changes{v1.1c}{1994/01/17}{Option leqno now read from |
| 291 |
% \file{leqno.clo}.} |
| 292 |
% \begin{macrocode} |
| 293 |
\DeclareOption{leqno}{\input{leqno.clo}} |
| 294 |
% \end{macrocode} |
| 295 |
% |
| 296 |
% \subsection{Flush left displays} |
| 297 |
% |
| 298 |
% The option \Lopt{fleqn} redefines the displayed math environments |
| 299 |
% in such a way that they come out flush left, with an indentation |
| 300 |
% of |\mathindent| from the prevailing left margin. |
| 301 |
% \changes{v1.1}{1993/12/18}{Corrected typo in \cs{renewcommand}, |
| 302 |
% doubled hash marks.} |
| 303 |
% \changes{v1.1c}{1994/01/17}{Option fleqn now read from |
| 304 |
% \file{fleqn.clo}.} |
| 305 |
% \begin{macrocode} |
| 306 |
\DeclareOption{fleqn}{\input{fleqn.clo}} |
| 307 |
% \end{macrocode} |
| 308 |
% |
| 309 |
% |
| 310 |
% \section{Executing Options} |
| 311 |
% |
| 312 |
% Here we execute the default options to initialize certain |
| 313 |
% variables. |
| 314 |
% \changes{v1.2e}{1994/04/28}{Added execution of `oneside' option} |
| 315 |
% \begin{macrocode} |
| 316 |
\ExecuteOptions{letterpaper,10pt,oneside,onecolumn,final} |
| 317 |
% \end{macrocode} |
| 318 |
% |
| 319 |
% The |\ProcessOptions| command causes the execution of the code |
| 320 |
% for every option \Lopt{foo} which is declared and for which the |
| 321 |
% user typed the \Lopt{foo} option in his |\documentclass| command. |
| 322 |
% For every option \Lopt{bar} he typed, which is not declared, the |
| 323 |
% option is assumed to be a global option. All options will be |
| 324 |
% passed as document options to any |\usepackage| command in the |
| 325 |
% document preamble. |
| 326 |
% \begin{macrocode} |
| 327 |
\ProcessOptions |
| 328 |
% \end{macrocode} |
| 329 |
% Now that all the options have been executed we can load the |
| 330 |
% chosen class option file that contains all size dependent code. |
| 331 |
% \begin{macrocode} |
| 332 |
\input{size1\@ptsize.clo} |
| 333 |
% \end{macrocode} |
| 334 |
% |
| 335 |
% |
| 336 |
% \section{Loading Packages} |
| 337 |
% |
| 338 |
% The standard class files do not load additional packages. |
| 339 |
% |
| 340 |
% |
| 341 |
% \section{Document Layout} |
| 342 |
% \label{sec:maincode} |
| 343 |
% |
| 344 |
% In this section we are finally dealing with the nasty typographical |
| 345 |
% details. |
| 346 |
% |
| 347 |
% \subsection{Paragraphing} |
| 348 |
% |
| 349 |
% \begin{macro}{\lineskip} |
| 350 |
% \begin{macro}{\normallineskip} |
| 351 |
% These parameters control \TeX's behavior when two lines tend to |
| 352 |
% come too close together. |
| 353 |
% \begin{macrocode} |
| 354 |
\setlength\lineskip{1\p@} |
| 355 |
\setlength\normallineskip{1\p@} |
| 356 |
% \end{macrocode} |
| 357 |
% \end{macro} |
| 358 |
% \end{macro} |
| 359 |
% |
| 360 |
% \begin{macro}{\baselinestretch} |
| 361 |
% This is used as a multiplier for |\baselineskip|. The default is |
| 362 |
% to {\em not\/} stretch the baselines. |
| 363 |
% \begin{macrocode} |
| 364 |
\renewcommand\baselinestretch{} |
| 365 |
% \end{macrocode} |
| 366 |
% \end{macro} |
| 367 |
% |
| 368 |
% \begin{macro}{\parskip} |
| 369 |
% \begin{macro}{\parindent} |
| 370 |
% |\parskip| gives extra vertical space between paragraphs and |
| 371 |
% |\parindent| is the width of the paragraph indentation. |
| 372 |
% Letters are typeset without paragraph indentation. |
| 373 |
% \begin{macrocode} |
| 374 |
\setlength\parskip{0.7em} |
| 375 |
\setlength\parindent{0\p@} |
| 376 |
% \end{macrocode} |
| 377 |
% \end{macro} |
| 378 |
% \end{macro} |
| 379 |
% |
| 380 |
% \begin{macro}{\@lowpenalty} |
| 381 |
% \begin{macro}{\@medpenalty} |
| 382 |
% \begin{macro}{\@highpenalty} |
| 383 |
% The commands |\nopagebreak| and |\nolinebreak| put in penalties |
| 384 |
% to discourage these breaks at the point they are put in. |
| 385 |
% They use |\@lowpenalty|, |\@medpenalty| or |\@highpenalty|, |
| 386 |
% dependent on their argument. |
| 387 |
% \begin{macrocode} |
| 388 |
\@lowpenalty 51 |
| 389 |
\@medpenalty 151 |
| 390 |
\@highpenalty 301 |
| 391 |
% \end{macrocode} |
| 392 |
% \end{macro} |
| 393 |
% \end{macro} |
| 394 |
% \end{macro} |
| 395 |
% |
| 396 |
% \begin{macro}{\clubpenalty} |
| 397 |
% \begin{macro}{\widowpenalty} |
| 398 |
% These penalties are used to discourage club and widow lines. |
| 399 |
% Because we use their default values we only show them here, |
| 400 |
% commented out. |
| 401 |
% \begin{macrocode} |
| 402 |
% \clubpenalty 150 |
| 403 |
% \widowpenalty 150 |
| 404 |
% \end{macrocode} |
| 405 |
% \end{macro} |
| 406 |
% \end{macro} |
| 407 |
% |
| 408 |
% \begin{macro}{\displaywidowpenalty} |
| 409 |
% \begin{macro}{\predisplaypenalty} |
| 410 |
% \begin{macro}{\postdisplaypenalty} |
| 411 |
% Discourage (but not so much) widows in front of a math display |
| 412 |
% and forbid breaking directly in front of a display. Allow break |
| 413 |
% after a display without a penalty. Again the default values are |
| 414 |
% used, therefore we only show them here. |
| 415 |
% \begin{macrocode} |
| 416 |
% \displaywidowpenalty 50 |
| 417 |
% \predisplaypenalty 10000 |
| 418 |
% \postdisplaypenalty 0 |
| 419 |
% \end{macrocode} |
| 420 |
% \end{macro} |
| 421 |
% \end{macro} |
| 422 |
% \end{macro} |
| 423 |
% |
| 424 |
% \begin{macro}{\interlinepenalty} |
| 425 |
% Allow the breaking of a page in the middle of a paragraph. |
| 426 |
% \begin{macrocode} |
| 427 |
% \interlinepenalty 0 |
| 428 |
% \end{macrocode} |
| 429 |
% \end{macro} |
| 430 |
% |
| 431 |
% |
| 432 |
% \begin{macro}{\brokenpenalty} |
| 433 |
% We allow the breaking of a page after a hyphenated line. |
| 434 |
% \begin{macrocode} |
| 435 |
% \brokenpenalty 0 |
| 436 |
% \end{macrocode} |
| 437 |
% \end{macro} |
| 438 |
% |
| 439 |
% |
| 440 |
% \subsection{Page Layout} |
| 441 |
% |
| 442 |
% All margin dimensions are measured from a point one inch from the |
| 443 |
% top and lefthand side of the page. |
| 444 |
% |
| 445 |
% \subsubsection{Vertical spacing} |
| 446 |
% |
| 447 |
% \begin{macro}{\headheight} |
| 448 |
% \begin{macro}{\headsep} |
| 449 |
% The |\headheight| is the height of the box that will contain the |
| 450 |
% running head. The |\headsep| is the distance between the bottom |
| 451 |
% of the running head and the top of the text. |\topskip| is the |
| 452 |
% |\baselineskip| for the first line on a page, its value depends |
| 453 |
% on the size option that was specified. Therefore it is |
| 454 |
% initialized in one of the \file{size1x.clo} files. |
| 455 |
% \begin{macrocode} |
| 456 |
\setlength\headheight{12\p@} |
| 457 |
\setlength\headsep {45\p@} |
| 458 |
% \end{macrocode} |
| 459 |
% \end{macro} |
| 460 |
% \end{macro} |
| 461 |
% |
| 462 |
% \begin{macro}{\footskip} |
| 463 |
% The distance from the baseline of the box which contains the |
| 464 |
% running footer to the baseline of last line of text is controlled |
| 465 |
% by the |\footskip|. |
| 466 |
% Bottom of page: |
| 467 |
% \begin{macrocode} |
| 468 |
\setlength\footskip{25\p@} |
| 469 |
% \end{macrocode} |
| 470 |
% \end{macro} |
| 471 |
% |
| 472 |
% \changes{v1.2n}{1994/07/13}{Setting of \cs{maxdepth} and |
| 473 |
% \cs{@maxdepth} already happens in the size.. files, removed |
| 474 |
% here} |
| 475 |
% |
| 476 |
% \subsubsection{The dimension of text} |
| 477 |
% |
| 478 |
% \begin{macro}{\textwidth} |
| 479 |
% When we are in compatibility mode we have to make sure that the |
| 480 |
% dimensions of the printed area are not different from what the |
| 481 |
% user was used to see. |
| 482 |
% |
| 483 |
% \changes{v1.2n}{1994/07/13}{Setting \cs{textwidth} to a fixed value |
| 484 |
% should only happen in compatibility mode} |
| 485 |
% \begin{macrocode} |
| 486 |
\if@compatibility |
| 487 |
\setlength\textwidth{365\p@} |
| 488 |
% \end{macrocode} |
| 489 |
% \end{macro} |
| 490 |
% |
| 491 |
% \begin{macro}{\textheight} |
| 492 |
% Now that we have computed the width of the text, we have to take |
| 493 |
% care of the height. The |\textheight| is the height of text |
| 494 |
% (including footnotes and figures, excluding running head and |
| 495 |
% foot). |
| 496 |
% \changes{v1.2n}{1994/07/13}{Setting \cs{textheight} to a fixed value |
| 497 |
% should only happen in compatibility mode} |
| 498 |
% \begin{macrocode} |
| 499 |
\setlength\textheight{505\p@} |
| 500 |
\fi |
| 501 |
% \end{macrocode} |
| 502 |
% In native mode we use the dimensions as they were computed by one |
| 503 |
% of the \Lopt{xxpt} options, together with one of the |
| 504 |
% \Lopt{..paper} options. |
| 505 |
% \end{macro} |
| 506 |
% |
| 507 |
% \subsubsection{Margins} |
| 508 |
% |
| 509 |
% \begin{macro}{\oddsidemargin} |
| 510 |
% \begin{macro}{\evensidemargin} |
| 511 |
% \begin{macro}{\marginparwidth} |
| 512 |
% \changes{v1.1d}{1994/01/20}{Corrected margins: Now computed from |
| 513 |
% \cs{paperwidth} and \cs{textwidth}.} The values of |
| 514 |
% |\oddsidemargin| and |\evensidemargin| are computed from those of |
| 515 |
% |\paperwidth| and |\textwidth|. |
| 516 |
% \changes{v1.2n}{1994/07/13}{Added fixed values for these parameters |
| 517 |
% in compatibility mode} |
| 518 |
% \begin{macrocode} |
| 519 |
\if@compatibility |
| 520 |
\setlength\oddsidemargin{53pt} |
| 521 |
\setlength\evensidemargin{53pt} |
| 522 |
\setlength\marginparwidth{90pt} |
| 523 |
\else |
| 524 |
\setlength\@tempdima{\paperwidth} |
| 525 |
\addtolength\@tempdima{-2in} |
| 526 |
\addtolength\@tempdima{-\textwidth} |
| 527 |
\setlength\oddsidemargin {.5\@tempdima} |
| 528 |
\setlength\evensidemargin {\oddsidemargin} |
| 529 |
\setlength\marginparwidth {90\p@} |
| 530 |
\fi |
| 531 |
% \end{macrocode} |
| 532 |
% \end{macro} |
| 533 |
% \end{macro} |
| 534 |
% \end{macro} |
| 535 |
% |
| 536 |
% \begin{macro}{\marginparsep} |
| 537 |
% \begin{macro}{\marginparpush} |
| 538 |
% The horizontal space between the main text and marginal notes is |
| 539 |
% determined by |\marginparsep|, the minimum vertical separation |
| 540 |
% between two marginal notes is controlled by |\marginparpush|. |
| 541 |
% \begin{macrocode} |
| 542 |
\setlength\marginparsep {11\p@} |
| 543 |
\setlength\marginparpush{5\p@} |
| 544 |
% \end{macrocode} |
| 545 |
% \end{macro} |
| 546 |
% \end{macro} |
| 547 |
% |
| 548 |
% \begin{macro}{\topmargin} |
| 549 |
% The |\topmargin| is the distance between the top of `the |
| 550 |
% printable area' --which is 1 inch below the top of the paper-- |
| 551 |
% and the top of the box which contains the running head. |
| 552 |
% |
| 553 |
% It can now be computed from the values set above. |
| 554 |
% \begin{macrocode} |
| 555 |
\setlength\topmargin{27pt} |
| 556 |
% \end{macrocode} |
| 557 |
% \end{macro} |
| 558 |
% |
| 559 |
% |
| 560 |
% \subsubsection{Footnotes} |
| 561 |
% |
| 562 |
% \begin{macro}{\footnotesep} |
| 563 |
% |\footnotesep| is the height of the strut placed at the beginning |
| 564 |
% of every footnote. It equals the height of a normal |
| 565 |
% |\footnotesize| strut in this |
| 566 |
% class, thus no extra space occurs between footnotes. |
| 567 |
% \begin{macrocode} |
| 568 |
\setlength\footnotesep{12\p@} |
| 569 |
% \end{macrocode} |
| 570 |
% \end{macro} |
| 571 |
% |
| 572 |
% \begin{macro}{\footins} |
| 573 |
% |\skip\footins| is the space between the last line of the main |
| 574 |
% text and the top of the first footnote. |
| 575 |
% \begin{macrocode} |
| 576 |
\setlength{\skip\footins}{10\p@ \@plus 2\p@ \@minus 4\p@} |
| 577 |
% \end{macrocode} |
| 578 |
% \end{macro} |
| 579 |
% |
| 580 |
% |
| 581 |
% \subsection{Page Styles} |
| 582 |
% |
| 583 |
% The page style \pstyle{foo} is defined by defining the command |
| 584 |
% |\ps@foo|. This command should make only local definitions. |
| 585 |
% There should be no stray spaces in the definition, since they |
| 586 |
% could lead to mysterious extra spaces in the output (well, that's |
| 587 |
% something that should be always avoided). |
| 588 |
% |
| 589 |
% \begin{macro}{\@evenhead} |
| 590 |
% \begin{macro}{\@oddhead} |
| 591 |
% \begin{macro}{\@evenfoot} |
| 592 |
% \begin{macro}{\@oddfoot} |
| 593 |
% The |\ps@...| command defines the macros |\@oddhead|, |
| 594 |
% |\@oddfoot|, |\@evenhead|, and |\@evenfoot| to define the running |
| 595 |
% heads and feet---e.g., |\@oddhead| is the macro to produce the |
| 596 |
% contents of the heading box for odd-numbered pages. It is called |
| 597 |
% inside an |\hbox| of width |\textwidth|. |
| 598 |
% \end{macro} |
| 599 |
% \end{macro} |
| 600 |
% \end{macro} |
| 601 |
% \end{macro} |
| 602 |
% |
| 603 |
% \subsubsection{Marking conventions} |
| 604 |
% |
| 605 |
% To make headings determined by the sectioning commands, the page |
| 606 |
% style defines the commands |\chaptermark|, |\sectionmark|, |
| 607 |
% \ldots, where |\chaptermark{|\meta{text}|}| is called by |
| 608 |
% |\chapter| to set a mark, and so on. |
| 609 |
% |
| 610 |
% The |\...mark| commands and the |\...head| macros are defined |
| 611 |
% with the help of the following macros. (All the |\...mark| |
| 612 |
% commands should be initialized to no-ops.) |
| 613 |
% |
| 614 |
% \LaTeX{} extends \TeX's |\mark| facility by producing two kinds |
| 615 |
% of marks, a `left' and a `right' mark, using the following |
| 616 |
% commands: |
| 617 |
% \begin{flushleft} |
| 618 |
% |\markboth{|\meta{left}|}{|\meta{right}|}|: Adds both marks. |
| 619 |
% |
| 620 |
% |\markright{|\meta{right}|}|: Adds a `right' mark. |
| 621 |
% |
| 622 |
% |\leftmark|: Used in the |\@oddhead|, |\@oddfoot|, |\@evenhead| |
| 623 |
% or |\@evenfoot| macros, it gets the current `left' |
| 624 |
% mark. |\leftmark| works like \TeX's |\botmark| |
| 625 |
% command. |
| 626 |
% |
| 627 |
% |\rightmark|: Used in the |\@oddhead|, |\@oddfoot|, |\@evenhead| |
| 628 |
% or |\@evenfoot| macros, it gets the current |
| 629 |
% `right' mark. |\rightmark| works like \TeX's |
| 630 |
% |\firstmark| command. |
| 631 |
% \end{flushleft} |
| 632 |
% |
| 633 |
% The marking commands work reasonably well for right marks |
| 634 |
% `numbered within' left marks--e.g., the left mark is changed by a |
| 635 |
% |\chapter| command and the right mark is changed by a |\section| |
| 636 |
% command. However, it does produce somewhat anomalous results if |
| 637 |
% two |\markboth|'s occur on the same page. |
| 638 |
% |
| 639 |
% |
| 640 |
% Commands like |\tableofcontents| that should set the marks in some |
| 641 |
% page styles use a |\@mkboth| command, which is |\let| by the |
| 642 |
% pagestyle command (|\ps@...|) to |\markboth| for setting the |
| 643 |
% heading or to |\@gobbletwo| to do nothing. |
| 644 |
% |
| 645 |
% |
| 646 |
% \subsubsection{Defining the page styles} |
| 647 |
% \label{sec:pagestyle} |
| 648 |
% |
| 649 |
% The pagestyles \pstyle{empty} and \pstyle{plain} are defined in |
| 650 |
% the \LaTeX{} kernel (\file{ltpage.dtx}), but these definitions |
| 651 |
% are changed to a simpler version for this document class. |
| 652 |
% |
| 653 |
% \begin{macro}{\ps@headings} |
| 654 |
% The definition of the page style \pstyle{headings} has to be |
| 655 |
% different for two sided printing than it is for one sided |
| 656 |
% printing. |
| 657 |
% |
| 658 |
% \changes{v1.2e}{1994/04/28}{Added twoside support} |
| 659 |
% \begin{macrocode} |
| 660 |
\if@twoside |
| 661 |
\def\ps@headings{% |
| 662 |
% \end{macrocode} |
| 663 |
% The running feet are empty in this page style. |
| 664 |
% \begin{macrocode} |
| 665 |
\let\@oddfoot\@empty\let\@evenfoot\@empty |
| 666 |
% \end{macrocode} |
| 667 |
% The running head contains some information about this letter. The |
| 668 |
% head is the same for even and odd pages. |
| 669 |
% \changes{v1.2i}{1994/05/12}{Made running heads the same on odd and |
| 670 |
% even pages} |
| 671 |
% \changes{v1.2k}{1994/06/17}{Added a missing brace} |
| 672 |
% \begin{macrocode} |
| 673 |
\def\@oddhead{\slshape\headtoname{} \ignorespaces\toname |
| 674 |
\hfil \@date |
| 675 |
\hfil \pagename{} \thepage}% |
| 676 |
\let\@evenhead\@oddhead} |
| 677 |
% \end{macrocode} |
| 678 |
% For one sided printing we don't need to define |\@evenhead| so |
| 679 |
% the definition is somewhat simpler. |
| 680 |
% \begin{macrocode} |
| 681 |
\else |
| 682 |
\def\ps@headings{% |
| 683 |
\let\@oddfoot\@empty |
| 684 |
\def\@oddhead{\slshape\headtoname{} \ignorespaces\toname |
| 685 |
\hfil \@date |
| 686 |
\hfil \pagename{} \thepage}} |
| 687 |
\fi |
| 688 |
% \end{macrocode} |
| 689 |
% \end{macro} |
| 690 |
% |
| 691 |
% |
| 692 |
% \begin{macro}{\ps@empty} |
| 693 |
% The definition of the page style \pstyle{empty} is simple: |
| 694 |
% No running head or foot at all. |
| 695 |
% \changes{v1.2e}{1994/04/28}{Also make even feet and head empty} |
| 696 |
% \begin{macrocode} |
| 697 |
\def\ps@empty{% |
| 698 |
\let\@oddfoot\@empty\let\@oddhead\@empty |
| 699 |
\let\@evenfoot\@empty\let\@evenhead\@empty} |
| 700 |
% \end{macrocode} |
| 701 |
% \end{macro} |
| 702 |
% |
| 703 |
% \begin{macro}{\ps@firstpage} |
| 704 |
% The page style \pstyle{firstpage} puts the telephone number |
| 705 |
% in the proper place for the letterhead. It should be adapted |
| 706 |
% to site conventions. The size of the number is determined |
| 707 |
% depending on the main size. |
| 708 |
% \begin{macrocode} |
| 709 |
\def\ps@firstpage{% |
| 710 |
\let\@oddhead\@empty |
| 711 |
\def\@oddfoot{\raisebox{-45\p@}[\z@]{% |
| 712 |
\hb@xt@\textwidth{\hspace*{100\p@}% |
| 713 |
\ifcase \@ptsize\relax |
| 714 |
\normalsize |
| 715 |
\or |
| 716 |
\small |
| 717 |
\or |
| 718 |
\footnotesize |
| 719 |
\fi |
| 720 |
\fromlocation \hfill \telephonenum}}\hss}} |
| 721 |
% \end{macrocode} |
| 722 |
% \end{macro} |
| 723 |
% |
| 724 |
% \begin{macro}{\ps@plain} |
| 725 |
% The definition of the page style \pstyle{plain} is again simple. |
| 726 |
% \changes{v1.2e}{1994/04/28}{Added definition of \cs{@evenfoot} |
| 727 |
% because of twoside option} |
| 728 |
% \changes{v1.2s}{1995/05/25}{replace \cs{rmfamily} with |
| 729 |
% \cs{normalfont} (PR 1578)} |
| 730 |
% \begin{macrocode} |
| 731 |
\def\ps@plain{% |
| 732 |
\let\@oddhead\@empty |
| 733 |
\def\@oddfoot{\normalfont\hfil\thepage\hfil}% |
| 734 |
\def\@evenfoot{\normalfont\hfil\thepage\hfil}} |
| 735 |
% \end{macrocode} |
| 736 |
% \end{macro} |
| 737 |
% |
| 738 |
% |
| 739 |
% |
| 740 |
% \section{Document Markup} |
| 741 |
% |
| 742 |
% \subsection{Global Declarations} |
| 743 |
% |
| 744 |
% \begin{macro}{\name} |
| 745 |
% \begin{macro}{\signature} |
| 746 |
% \begin{macro}{\address} |
| 747 |
% \begin{macro}{\location} |
| 748 |
% \begin{macro}{\telephone} |
| 749 |
% The following declarations, shown with examples, give information |
| 750 |
% about the sender: |
| 751 |
% \begin{itemize} |
| 752 |
% \item |\name{Dr. L. User}| : to be used for the return address on |
| 753 |
% the envelope. |
| 754 |
% \begin{macrocode} |
| 755 |
\newcommand*\name[1]{\def\fromname{#1}} |
| 756 |
% \end{macrocode} |
| 757 |
% \item |\signature{Larry User}| : goes after the closing. |
| 758 |
% \begin{macrocode} |
| 759 |
\newcommand*\signature[1]{\def\fromsig{#1}} |
| 760 |
% \end{macrocode} |
| 761 |
% \item |\address{3245 Foo St.\\Gnu York}| : used as the return |
| 762 |
% address in the |
| 763 |
% letter and on the envelope. If not declared, then an |
| 764 |
% institutional standard address is used. |
| 765 |
% \begin{macrocode} |
| 766 |
\newcommand*\address[1]{\def\fromaddress{#1}} |
| 767 |
% \end{macrocode} |
| 768 |
% \item |\location{Room 374}| : Acts as modifier to the standard |
| 769 |
% institutional address. |
| 770 |
% \begin{macrocode} |
| 771 |
\newcommand*\location[1]{\def\fromlocation{#1}} |
| 772 |
% \end{macrocode} |
| 773 |
% \item |\telephone{(415)123-4567}| : Just in case some style puts it |
| 774 |
% on the letter. |
| 775 |
% \changes{v1.2m}{1994/06/23}{Removed typo (\#[] instead of [1])} |
| 776 |
% \begin{macrocode} |
| 777 |
\newcommand*\telephone[1]{\def\telephonenum{#1}} |
| 778 |
% \end{macrocode} |
| 779 |
% \end{itemize} |
| 780 |
% \end{macro} |
| 781 |
% \end{macro} |
| 782 |
% \end{macro} |
| 783 |
% \end{macro} |
| 784 |
% \end{macro} |
| 785 |
% |
| 786 |
% \begin{macro}{\fromname} |
| 787 |
% \begin{macro}{\fromsig} |
| 788 |
% \begin{macro}{\fromaddress} |
| 789 |
% \begin{macro}{\fromlocation} |
| 790 |
% \begin{macro}{\telephonenum} |
| 791 |
% We make sure that the internal control sequences that are used to |
| 792 |
% store the information exist and are empty. |
| 793 |
% \begin{macrocode} |
| 794 |
\name{} |
| 795 |
\signature{} |
| 796 |
\address{} |
| 797 |
\location{} |
| 798 |
\telephone{} |
| 799 |
% \end{macrocode} |
| 800 |
% \end{macro} |
| 801 |
% \end{macro} |
| 802 |
% \end{macro} |
| 803 |
% \end{macro} |
| 804 |
% \end{macro} |
| 805 |
% |
| 806 |
% \begin{macro}{\makelabels} |
| 807 |
% The |\makelabels| declaration causes mailing labels to be made. |
| 808 |
% \begin{macrocode} |
| 809 |
\newcommand*\makelabels{% |
| 810 |
% \end{macrocode} |
| 811 |
% At the beginning of the document, we need to activate the |
| 812 |
% |\@mlabel| and |\@startlabels| commands, as well as write |
| 813 |
% |\@startlabels| to the |.aux| file. |
| 814 |
% \begin{macrocode} |
| 815 |
\AtBeginDocument{% |
| 816 |
\let\@startlabels\startlabels |
| 817 |
\let\@mlabel\mlabel |
| 818 |
\if@filesw |
| 819 |
\immediate\write\@mainaux{\string\@startlabels}\fi}% |
| 820 |
% \end{macrocode} |
| 821 |
% At the end of the document we need to write |\clearpage| to the |
| 822 |
% |.aux| file. |
| 823 |
% \begin{macrocode} |
| 824 |
\AtEndDocument{% |
| 825 |
\if@filesw\immediate\write\@mainaux{\string\clearpage}\fi}} |
| 826 |
% \end{macrocode} |
| 827 |
% |\makelabels| is allowed only before the |\begin{document}| |
| 828 |
% command. |
| 829 |
% \begin{macrocode} |
| 830 |
\@onlypreamble\makelabels |
| 831 |
% \end{macrocode} |
| 832 |
% \end{macro} |
| 833 |
% |
| 834 |
% \subsection{The generic letter commands} |
| 835 |
% |
| 836 |
% \begin{environment}{letter} |
| 837 |
% The letter environment creates a new letter, starting from page |
| 838 |
% $1$, with footnotes starting from $1$ as well. |
| 839 |
% (The first page is unnumbered.) It has a single argument, which |
| 840 |
% is the addressee and his address, as in |
| 841 |
% \changes{v1.3c}{2024/08/12}{Alter sample address (gh/1439)} |
| 842 |
%\begin{verbatim} |
| 843 |
% \begin{letter}{Sam Jones \\ |
| 844 |
% Institute for Trivial Study\\ |
| 845 |
% Princeton, N.J.} |
| 846 |
%\end{verbatim} |
| 847 |
% Local declarations, such as |\address|, can follow the |
| 848 |
% |\begin{letter}|. |
| 849 |
% \changes{v1.2e}{1994/04/28}{When printing twosided a new letter |
| 850 |
% shouldn't start on the back of the previous one. Added insertion |
| 851 |
% of a blank page when necessary.} |
| 852 |
% \changes{v1.2z}{1999/04/29}{Reset footnote counter to 0, (PR 2957).} |
| 853 |
% \begin{macrocode} |
| 854 |
\newenvironment{letter}[1] |
| 855 |
{\newpage |
| 856 |
\if@twoside \ifodd\c@page |
| 857 |
\else\thispagestyle{empty}\null\newpage\fi |
| 858 |
\fi |
| 859 |
\c@page \@ne |
| 860 |
\c@footnote \z@ |
| 861 |
\interlinepenalty=200 % smaller than the TeXbook value |
| 862 |
% \end{macrocode} |
| 863 |
% The |\leavevmode| and |\ignorespaces| commands are there for |
| 864 |
% protecting against an empty argument. |
| 865 |
% \begin{macrocode} |
| 866 |
\@processto{\leavevmode\ignorespaces #1}} |
| 867 |
% \end{macrocode} |
| 868 |
% The end of the environment possibly writes the address |
| 869 |
% information on the \file{.aux} file. |
| 870 |
% \changes{v1.2p}{1994/12/11}{No longer redefine \cs{protect} but use |
| 871 |
% one of the available settings} |
| 872 |
% \begin{macrocode} |
| 873 |
{\stopletter\@@par\pagebreak\@@par |
| 874 |
\if@filesw |
| 875 |
\begingroup |
| 876 |
\let\\=\relax |
| 877 |
\let\protect\@unexpandable@protect |
| 878 |
\immediate\write\@auxout{% |
| 879 |
\string\@mlabel{\returnaddress}{\toname\\\toaddress}}% |
| 880 |
\endgroup |
| 881 |
\fi} |
| 882 |
% \end{macrocode} |
| 883 |
% \end{environment} |
| 884 |
% |
| 885 |
% |
| 886 |
% \begin{macro}{\@processto} |
| 887 |
% \begin{macro}{\@xproc} |
| 888 |
% \begin{macro}{\@yproc} |
| 889 |
% |\@processto| gets the |\toname| and |\toaddress| from the letter |
| 890 |
% environment's macro argument. |\@xproc| and |\@yproc| are auxiliary |
| 891 |
% macros. |
| 892 |
% \begin{macrocode} |
| 893 |
\long\def\@processto#1{% |
| 894 |
\@xproc #1\\@@@% |
| 895 |
\ifx\toaddress\@empty |
| 896 |
\else |
| 897 |
\@yproc #1@@@% |
| 898 |
\fi} |
| 899 |
% \end{macrocode} |
| 900 |
% |
| 901 |
% \begin{macrocode} |
| 902 |
\long\def\@xproc #1\\#2@@@{\def\toname{#1}\def\toaddress{#2}} |
| 903 |
% \end{macrocode} |
| 904 |
% |
| 905 |
% \begin{macrocode} |
| 906 |
\long\def\@yproc #1\\#2@@@{\def\toaddress{#2}} |
| 907 |
% \end{macrocode} |
| 908 |
% \end{macro} |
| 909 |
% \end{macro} |
| 910 |
% \end{macro} |
| 911 |
% |
| 912 |
% |
| 913 |
% \subsubsection{Page breaking control} |
| 914 |
% |
| 915 |
% \begin{macro}{\stopbreaks} |
| 916 |
% When the command |\stopbreaks| is issued no page breaks should |
| 917 |
% occur until |\startbreaks| is called. |
| 918 |
% \begin{macrocode} |
| 919 |
\newcommand*\stopbreaks{% |
| 920 |
\interlinepenalty\@M |
| 921 |
\def\par{\@@par\nobreak}% |
| 922 |
\let\\\@nobreakcr |
| 923 |
\let\vspace\@nobreakvspace} |
| 924 |
% \end{macrocode} |
| 925 |
% \end{macro} |
| 926 |
% |
| 927 |
% \begin{macro}{\nobreakvspace} |
| 928 |
% \changes{v1.2t}{1996/01/20}{Made robust pr/2049} |
| 929 |
% \begin{macro}{\@nobreakvspacex} |
| 930 |
% \begin{macro}{\@nobreakcr} |
| 931 |
% These are needed by |\stopbreaks| |
| 932 |
% \begin{macrocode} |
| 933 |
\DeclareRobustCommand\@nobreakvspace |
| 934 |
{\@ifstar\@nobreakvspacex\@nobreakvspacex} |
| 935 |
% \end{macrocode} |
| 936 |
% |
| 937 |
% \begin{macrocode} |
| 938 |
\def\@nobreakvspacex#1{% |
| 939 |
\ifvmode |
| 940 |
\nobreak\vskip #1\relax |
| 941 |
\else |
| 942 |
\@bsphack\vadjust{\nobreak\vskip #1}\@esphack |
| 943 |
\fi} |
| 944 |
% \end{macrocode} |
| 945 |
% |
| 946 |
% \changes{v1.2w}{1997/01/07} |
| 947 |
% {Simplify definition, for ltspace 1.2u. /2341} |
| 948 |
% \begin{macrocode} |
| 949 |
\def\@nobreakcr{\@ifstar{\@normalcr*}{\@normalcr*}} |
| 950 |
% \end{macrocode} |
| 951 |
% \end{macro} |
| 952 |
% \end{macro} |
| 953 |
% \end{macro} |
| 954 |
% |
| 955 |
% \begin{macro}{\startbreaks} |
| 956 |
% This cancels the effect of |\stopbreaks|. |
| 957 |
% \begin{macrocode} |
| 958 |
\newcommand*\startbreaks{% |
| 959 |
\let\\\@normalcr |
| 960 |
\interlinepenalty 200% |
| 961 |
\def\par{\@@par\penalty 200\relax}} |
| 962 |
% \end{macrocode} |
| 963 |
% \end{macro} |
| 964 |
% |
| 965 |
% |
| 966 |
% \begin{macro}{\longindentation} |
| 967 |
% The size of the indent to use before the closing of the letter. |
| 968 |
% \begin{macrocode} |
| 969 |
\newdimen\longindentation |
| 970 |
\longindentation=.5\textwidth |
| 971 |
% \end{macrocode} |
| 972 |
% \end{macro} |
| 973 |
% |
| 974 |
% \begin{macro}{\indentedwidth} |
| 975 |
% The width of the closing of the letter. |
| 976 |
% \begin{macrocode} |
| 977 |
\newdimen\indentedwidth |
| 978 |
\indentedwidth=\textwidth |
| 979 |
\advance\indentedwidth -\longindentation |
| 980 |
% \end{macrocode} |
| 981 |
% \end{macro} |
| 982 |
% |
| 983 |
% \begin{macro}{\opening} |
| 984 |
% Text is begun with the |\opening| command, whose argument |
| 985 |
% generates the salutation, as in |
| 986 |
%\begin{verbatim} |
| 987 |
% \opening{Dear Henry,} |
| 988 |
%\end{verbatim} |
| 989 |
% This should produce everything up to and including the |
| 990 |
% `Dear Henry,' and a |\par| command that follows. |
| 991 |
% Since there's a |\vfil| at the bottom of every page, |
| 992 |
% it can add vertical fill to position a short letter. |
| 993 |
% It should use the following commands: |
| 994 |
% \begin{itemize} |
| 995 |
% \item |\toname| : name part of `to' address. |
| 996 |
% Will be one line long. |
| 997 |
% \item |\toaddress| : address part of `to' address. |
| 998 |
% The lines separated by |\\|. |
| 999 |
% \item |\fromname| : name of sender. |
| 1000 |
% \item |\fromaddress| : argument of current |\address| |
| 1001 |
% declaration-- null if none. Should use standard institutional |
| 1002 |
% address if null. |
| 1003 |
% \item |\fromlocation| : argument of current |\location| |
| 1004 |
% declaration--null if none. |
| 1005 |
% \item |\telephonenum| : argument of current |\telephone| |
| 1006 |
% declaration--null if none. |
| 1007 |
% \end{itemize} |
| 1008 |
% \begin{macrocode} |
| 1009 |
\newcommand*\opening[1]{\ifx\@empty\fromaddress |
| 1010 |
\thispagestyle{firstpage}% |
| 1011 |
{\raggedleft\@date\par}% |
| 1012 |
\else % home address |
| 1013 |
\thispagestyle{empty}% |
| 1014 |
% \end{macrocode} |
| 1015 |
% \changes{v1.2y}{1998/05/10}{Avoid space at right of tabular |
| 1016 |
% (pr2794)} |
| 1017 |
% \begin{macrocode} |
| 1018 |
{\raggedleft\begin{tabular}{l@{}}\ignorespaces |
| 1019 |
\fromaddress \\*[2\parskip]% |
| 1020 |
\@date \end{tabular}\par}% |
| 1021 |
\fi |
| 1022 |
\vspace{2\parskip}% |
| 1023 |
% \end{macrocode} |
| 1024 |
% If the address field used \verb=\\[...]= then we have |
| 1025 |
% \cs{toaddress} starting with the bracket argument as the split |
| 1026 |
% was done simply at \verb=\\=. So we add \cs{expandafter} here so |
| 1027 |
% that is will be used and not typeset. A better fix would be to do |
| 1028 |
% a proper parsing but \ldots |
| 1029 |
% |
| 1030 |
% Other classes based on \texttt{letter.cls} could benefit from the same fix, e.g., |
| 1031 |
% \texttt{akletter.cls}, |
| 1032 |
% \texttt{bletter.cls}, |
| 1033 |
% \texttt{letter.cls}, |
| 1034 |
% \texttt{chletter.cls}, |
| 1035 |
% \texttt{extletter.cls},\\ |
| 1036 |
% \texttt{frletter.cls}, |
| 1037 |
% \texttt{hletter.cls}, |
| 1038 |
% \texttt{scrlttr2.cls} (change rejected), |
| 1039 |
% \texttt{lettre.cls}, |
| 1040 |
% \texttt{beletter.cls},\\ |
| 1041 |
% \texttt{brief.cls} and perhaps others. |
| 1042 |
% |
| 1043 |
% \changes{v1.3c}{2020/12/28}{Add \cs{expandafter} (gh/427)} |
| 1044 |
% \begin{macrocode} |
| 1045 |
{\raggedright \toname \expandafter\\\toaddress \par}% |
| 1046 |
\vspace{2\parskip}% |
| 1047 |
#1\par\nobreak} |
| 1048 |
% \end{macrocode} |
| 1049 |
% \end{macro} |
| 1050 |
% |
| 1051 |
% \begin{macro}{\closing} |
| 1052 |
% The body of the letter follows, ended by a |\closing| command, |
| 1053 |
% as in |
| 1054 |
%\begin{verbatim} |
| 1055 |
% \closing{Yours truly,} |
| 1056 |
%\end{verbatim} |
| 1057 |
% This command generates the closing matter, and the signature. |
| 1058 |
% An obvious thing to do is to use a |\parbox| for the closing |
| 1059 |
% and the signature. Should use the following: |
| 1060 |
% \begin{itemize} |
| 1061 |
% \item |\fromsig| : argument of current |\signature| declaration |
| 1062 |
% or, if null, the |\fromname|. |
| 1063 |
% \item |\stopbreaks| : a macro that inhibits page breaking. |
| 1064 |
% \end{itemize} |
| 1065 |
% \begin{macrocode} |
| 1066 |
\newcommand\closing[1]{\par\nobreak\vspace{\parskip}% |
| 1067 |
\stopbreaks |
| 1068 |
\noindent |
| 1069 |
\ifx\@empty\fromaddress\else |
| 1070 |
\hspace*{\longindentation}\fi |
| 1071 |
\parbox{\indentedwidth}{\raggedright |
| 1072 |
\ignorespaces #1\\[6\medskipamount]% |
| 1073 |
\ifx\@empty\fromsig |
| 1074 |
\fromname |
| 1075 |
\else \fromsig \fi\strut}% |
| 1076 |
\par} |
| 1077 |
% \end{macrocode} |
| 1078 |
% \end{macro} |
| 1079 |
% |
| 1080 |
% \begin{macro}{\smallskipamount} |
| 1081 |
% \begin{macro}{\medskipamount} |
| 1082 |
% \begin{macro}{\bigskipamount} |
| 1083 |
% Of these three, only |\medskipmount| is actually used above. |
| 1084 |
% \begin{macrocode} |
| 1085 |
%\smallskipamount=.5\parskip |
| 1086 |
\medskipamount=\parskip |
| 1087 |
%\bigskipamount=2\parskip |
| 1088 |
% \end{macrocode} |
| 1089 |
% \end{macro} |
| 1090 |
% \end{macro} |
| 1091 |
% \end{macro} |
| 1092 |
% |
| 1093 |
% \begin{macro}{\cc} |
| 1094 |
% \begin{macro}{\encl} |
| 1095 |
% \begin{macro}{\ps} |
| 1096 |
% After the |\closing| you can put arbitrary stuff, which is typeset |
| 1097 |
% with zero |\parindent| and no page breaking. Commands designed |
| 1098 |
% for use after the closing are: |
| 1099 |
% \begin{verbatim} |
| 1100 |
% \cc{Tinker\\Evers\\Chance} |
| 1101 |
%\end{verbatim} |
| 1102 |
% which produces:\\ |
| 1103 |
% \begin{tabular}{ll} |
| 1104 |
% cc: & Tinker\\ |
| 1105 |
% & Evers\\ |
| 1106 |
% & Chance |
| 1107 |
% \end{tabular}\\ |
| 1108 |
% Note the obvious use of |\parbox|. |
| 1109 |
% \changes{v1.2s}{1995/05/25}{replace \cs{reset@font} with |
| 1110 |
% \cs{normalfont}; remove \cs{rm}} |
| 1111 |
% \begin{macrocode} |
| 1112 |
\newcommand*\cc[1]{% |
| 1113 |
\par\noindent |
| 1114 |
\parbox[t]{\textwidth}{% |
| 1115 |
\@hangfrom{\normalfont\ccname: }% |
| 1116 |
\ignorespaces #1\strut}\par} |
| 1117 |
% \end{macrocode} |
| 1118 |
%\begin{verbatim} |
| 1119 |
% \encl{Foo(2)\\Bar} |
| 1120 |
%\end{verbatim} |
| 1121 |
% which produces:\\ |
| 1122 |
% \begin{tabular}{ll} |
| 1123 |
% encl: & Foo(2)\\ |
| 1124 |
% & Bar |
| 1125 |
% \end{tabular} |
| 1126 |
% \begin{macrocode} |
| 1127 |
\newcommand*\encl[1]{% |
| 1128 |
\par\noindent |
| 1129 |
\parbox[t]{\textwidth}{% |
| 1130 |
\@hangfrom{\normalfont\enclname: }% |
| 1131 |
\ignorespaces #1\strut}\par} |
| 1132 |
% \end{macrocode} |
| 1133 |
% |
| 1134 |
% The only thing |\ps| needs to do is call |\startbreaks|, |
| 1135 |
% which allows page breaking again. |
| 1136 |
% \begin{macrocode} |
| 1137 |
\newcommand*\ps{\par\startbreaks} |
| 1138 |
% \end{macrocode} |
| 1139 |
% \end{macro} |
| 1140 |
% \end{macro} |
| 1141 |
% \end{macro} |
| 1142 |
% |
| 1143 |
% |
| 1144 |
% \begin{macro}{\stopletter} |
| 1145 |
% The |\stopletter| command is called by |\endletter| to do the |
| 1146 |
% following: |
| 1147 |
% \begin{itemize} |
| 1148 |
% \item Add any desired fill or other material at the end of the |
| 1149 |
% letter. |
| 1150 |
% \item Define |\returnaddress| to be the return address for the |
| 1151 |
% mailing label. |
| 1152 |
% More precisely, it is the first argument of the |\mlabel| |
| 1153 |
% command described below. It should be defined to null if the |
| 1154 |
% return address doesn't appear on the labels. Any command, |
| 1155 |
% other than |\\|, that should not be expanded until the |\mlabel| |
| 1156 |
% command is actually executed must be preceded by |\protect|. |
| 1157 |
% Whenever possible, |\protect| commands in the definition of |
| 1158 |
% |\returnaddress|---it's much more efficient that way. In |
| 1159 |
% particular, when the standard return address is used, you |
| 1160 |
% should define |\returnaddress| to something like |
| 1161 |
% |\protect\standardreturnaddress|. |
| 1162 |
% \end{itemize} |
| 1163 |
% \begin{macrocode} |
| 1164 |
\newcommand*\stopletter{} |
| 1165 |
% \end{macrocode} |
| 1166 |
% \end{macro} |
| 1167 |
% |
| 1168 |
% \subsection{Customizing the labels} |
| 1169 |
% |
| 1170 |
% Commands for generating the labels are put on the \file{.aux} file, |
| 1171 |
% which is read in and processed by the |\end{document}| command. |
| 1172 |
% You have to define the following two commands: |
| 1173 |
% \begin{itemize} |
| 1174 |
% \item |\startlabels| : Should reset the page layout parameters if |
| 1175 |
% necessary. |
| 1176 |
% \item |\mlabel|\marg{return address}\marg{to address} : Command to |
| 1177 |
% generate a single label. |
| 1178 |
% \end{itemize} |
| 1179 |
% |
| 1180 |
% |
| 1181 |
% |
| 1182 |
% \begin{macro}{\returnaddress} |
| 1183 |
% The return address for the mailing labels can be stored in this |
| 1184 |
% macro. |
| 1185 |
% \begin{macrocode} |
| 1186 |
\newcommand*\returnaddress{} |
| 1187 |
% \end{macrocode} |
| 1188 |
% \end{macro} |
| 1189 |
% |
| 1190 |
% \begin{macro}{\labelcount} |
| 1191 |
% A register to count the labels |
| 1192 |
% \begin{macrocode} |
| 1193 |
\newcount\labelcount |
| 1194 |
% \end{macrocode} |
| 1195 |
% \end{macro} |
| 1196 |
% |
| 1197 |
% \begin{macro}{\startlabels} |
| 1198 |
% The following |\startlabels| command sets things up for |
| 1199 |
% producing labels in two columns of five 2" $\times$ 4-1/4" |
| 1200 |
% labels each, suitable for reproducing onto Avery brand number |
| 1201 |
% 5352 address labels. |
| 1202 |
% \changes{v1.2q}{1995/03/14}{changed value of \cs{columnsep} by 1pt} |
| 1203 |
% \begin{macrocode} |
| 1204 |
\newcommand*\startlabels{\labelcount\z@ |
| 1205 |
\pagestyle{empty}% |
| 1206 |
\let\@texttop\relax |
| 1207 |
\topmargin -50\p@ |
| 1208 |
\headsep \z@ |
| 1209 |
\oddsidemargin -35\p@ |
| 1210 |
\evensidemargin -35\p@ |
| 1211 |
\textheight 10in |
| 1212 |
\@colht\textheight \@colroom\textheight \vsize\textheight |
| 1213 |
\textwidth 550\p@ |
| 1214 |
\columnsep 26\p@ |
| 1215 |
\ifcase \@ptsize\relax |
| 1216 |
\normalsize |
| 1217 |
\or |
| 1218 |
\small |
| 1219 |
\or |
| 1220 |
\footnotesize |
| 1221 |
\fi |
| 1222 |
\baselineskip \z@ |
| 1223 |
\lineskip \z@ |
| 1224 |
\boxmaxdepth \z@ |
| 1225 |
\parindent \z@ |
| 1226 |
\twocolumn\relax} |
| 1227 |
% \end{macrocode} |
| 1228 |
% \end{macro} |
| 1229 |
% |
| 1230 |
% \begin{macro}{\@startlabels} |
| 1231 |
% |\@startlabels| is the command name that is written to the |.aux| |
| 1232 |
% file. It is a no-op at first, and defined to be the same as |
| 1233 |
% |\startlabels| in the |\begin{document}| hook. |
| 1234 |
% \begin{macrocode} |
| 1235 |
\let\@startlabels=\relax |
| 1236 |
% \end{macrocode} |
| 1237 |
% \end{macro} |
| 1238 |
% |
| 1239 |
% \begin{macro}{\mlabel} |
| 1240 |
% This command prints an address label; it is used when the user |
| 1241 |
% specified |\makelabels| in the preamble of his document. The |
| 1242 |
% command |\mlabel| takes two arguments; the second argument is |
| 1243 |
% supposed to be the address; the first argument can be used to |
| 1244 |
% print a return address. In this document class we ignore the |
| 1245 |
% first argument. Also the labels are supposed to be 2~inch high |
| 1246 |
% and 3.6~inch wide. When your address labels have a different you |
| 1247 |
% will have to define your own |\mlabel| command. |
| 1248 |
% \changes{v1.2p}{1994/12/11}{Redefined \cs{mlabel} to not use the |
| 1249 |
% \cs{setbox} primitive} |
| 1250 |
% \changes{v1.2q}{1995/03/14}{changed width of the labels slightly to |
| 1251 |
% prevent \LaTeX\ stuffing two on each line} |
| 1252 |
% \begin{macrocode} |
| 1253 |
\newcommand*\mlabel[2]{% |
| 1254 |
\parbox[b][2in][c]{262\p@}{\strut\ignorespaces #2}% |
| 1255 |
} |
| 1256 |
% \end{macrocode} |
| 1257 |
% \end{macro} |
| 1258 |
% |
| 1259 |
% \begin{macro}{\@mlabel} |
| 1260 |
% The macro |\@mlabel| is written to the \file{.aux} file instead |
| 1261 |
% of |\mlabel|. This allows us to make it a no-op by default, |
| 1262 |
% and then activate it in the |\begin{document}| hook. |
| 1263 |
% \begin{macrocode} |
| 1264 |
\let\@mlabel=\@gobbletwo |
| 1265 |
% \end{macrocode} |
| 1266 |
% \end{macro} |
| 1267 |
% |
| 1268 |
% |
| 1269 |
% \subsection{Lists} |
| 1270 |
% |
| 1271 |
% \subsubsection{General List Parameters} |
| 1272 |
% |
| 1273 |
% The following commands are used to set the default values for the |
| 1274 |
% list environment's parameters. See the \LaTeX{} manual for an |
| 1275 |
% explanation of the meanings of the parameters. Defaults for the |
| 1276 |
% list environment are set as follows. First, |\rightmargin|, |
| 1277 |
% |\listparindent| and |\itemindent| are set to 0pt. Then, for a |
| 1278 |
% \texttt{K}th level list, the command |\@listK| is called, where |
| 1279 |
% `\texttt{K}' denotes `\texttt{i}', `\texttt{ii}', ... , |
| 1280 |
% `\texttt{vi}'. (I.e., |\@listiii| is called for a third-level |
| 1281 |
% list.) By convention, |\@listK| should set |\leftmargin| to |
| 1282 |
% |\leftmarginK|. |
| 1283 |
% |
| 1284 |
% \begin{macro}{\leftmargin} |
| 1285 |
% \begin{macro}{\leftmargini} |
| 1286 |
% \begin{macro}{\leftmarginii} |
| 1287 |
% \begin{macro}{\leftmarginiii} |
| 1288 |
% \begin{macro}{\leftmarginiv} |
| 1289 |
% \begin{macro}{\leftmarginv} |
| 1290 |
% \begin{macro}{\leftmarginvi} |
| 1291 |
% For efficiency, level-one list's values are defined at top level, and |
| 1292 |
% |\@listi| is defined to set only |\leftmargin|. |
| 1293 |
% \begin{macrocode} |
| 1294 |
\setlength\leftmargini {2.5em} |
| 1295 |
% \end{macrocode} |
| 1296 |
% The following three are calculated so that they are larger than |
| 1297 |
% the sum of |\labelsep| and the width of the default labels (which |
| 1298 |
% are `(m)', `vii.' and `M.'). |
| 1299 |
% \begin{macrocode} |
| 1300 |
\setlength\leftmarginii {2.2em} |
| 1301 |
\setlength\leftmarginiii {1.87em} |
| 1302 |
\setlength\leftmarginiv {1.7em} |
| 1303 |
\setlength\leftmarginv {1em} |
| 1304 |
\setlength\leftmarginvi {1em} |
| 1305 |
% \end{macrocode} |
| 1306 |
% Here we set the top level leftmargin. |
| 1307 |
% \begin{macrocode} |
| 1308 |
\setlength\leftmargin {\leftmargini} |
| 1309 |
% \end{macrocode} |
| 1310 |
% \end{macro} |
| 1311 |
% \end{macro} |
| 1312 |
% \end{macro} |
| 1313 |
% \end{macro} |
| 1314 |
% \end{macro} |
| 1315 |
% \end{macro} |
| 1316 |
% \end{macro} |
| 1317 |
% |
| 1318 |
% \begin{macro}{\labelsep} |
| 1319 |
% \begin{macro}{\labelwidth} |
| 1320 |
% |\labelsep| is the distance between the label and the text of an |
| 1321 |
% item; |\labelwidth| is the width of the label. |
| 1322 |
% \begin{macrocode} |
| 1323 |
\setlength \labelsep {5\p@} |
| 1324 |
\setlength \labelwidth{\leftmargini} |
| 1325 |
\addtolength\labelwidth{-\labelsep} |
| 1326 |
% \end{macrocode} |
| 1327 |
% \end{macro} |
| 1328 |
% \end{macro} |
| 1329 |
% |
| 1330 |
% \begin{macro}{\partopsep} |
| 1331 |
% When the user leaves a blank line before the environment an extra |
| 1332 |
% vertical space of |\partopsep| is inserted, in addition to |
| 1333 |
% |\parskip| and |\topsep|. |
| 1334 |
% \begin{macrocode} |
| 1335 |
\setlength\partopsep{0\p@} |
| 1336 |
% \end{macrocode} |
| 1337 |
% \end{macro} |
| 1338 |
% |
| 1339 |
% \begin{macro}{\@beginparpenalty} |
| 1340 |
% \begin{macro}{\@endparpenalty} |
| 1341 |
% These penalties are inserted before and after a list or paragraph |
| 1342 |
% environment. They are set to a bonus value to encourage page |
| 1343 |
% breaking at these points. |
| 1344 |
% \begin{macro}{\@itempenalty} |
| 1345 |
% This penalty is inserted between list items. |
| 1346 |
% \begin{macrocode} |
| 1347 |
\@beginparpenalty -\@lowpenalty |
| 1348 |
\@endparpenalty -\@lowpenalty |
| 1349 |
\@itempenalty -\@lowpenalty |
| 1350 |
% \end{macrocode} |
| 1351 |
% \end{macro} |
| 1352 |
% \end{macro} |
| 1353 |
% \end{macro} |
| 1354 |
% |
| 1355 |
% \begin{macro}{\@listI} |
| 1356 |
% \begin{macro}{\@listi} |
| 1357 |
% |\@listI| defines top level and |\@listi| values of |
| 1358 |
% |\leftmargin|, |\parsep|, |\topsep|, and |\itemsep| |
| 1359 |
% |
| 1360 |
% \begin{macrocode} |
| 1361 |
\def\@listI{\setlength\leftmargin{\leftmargini}% |
| 1362 |
\setlength\parsep {0\p@}% |
| 1363 |
\setlength\topsep {.4em}% |
| 1364 |
\setlength\itemsep{.4em}} |
| 1365 |
\let\@listi\@listI |
| 1366 |
% \end{macrocode} |
| 1367 |
% We have to initialize these parameters. |
| 1368 |
% \begin{macrocode} |
| 1369 |
\@listi |
| 1370 |
% \end{macrocode} |
| 1371 |
% \end{macro} |
| 1372 |
% \end{macro} |
| 1373 |
% |
| 1374 |
% \begin{macro}{\@listii} |
| 1375 |
% \begin{macro}{\@listiii} |
| 1376 |
% \begin{macro}{\@listiv} |
| 1377 |
% \begin{macro}{\@listv} |
| 1378 |
% \begin{macro}{\@listvi} |
| 1379 |
% Here are the same macros for the higher level lists. |
| 1380 |
% \begin{macrocode} |
| 1381 |
\def\@listii {\setlength \leftmargin{\leftmarginii}% |
| 1382 |
\setlength \labelwidth{\leftmarginii}% |
| 1383 |
\addtolength\labelwidth{-\labelsep}} |
| 1384 |
\def\@listiii{\setlength \leftmargin{\leftmarginiii}% |
| 1385 |
\setlength \labelwidth{\leftmarginiii}% |
| 1386 |
\addtolength\labelwidth{-\labelsep}% |
| 1387 |
\setlength \topsep {.2em}% |
| 1388 |
\setlength \itemsep {\topsep}} |
| 1389 |
\def\@listiv {\setlength \leftmargin{\leftmarginiv}% |
| 1390 |
\setlength \labelwidth{\leftmarginiv}% |
| 1391 |
\addtolength\labelwidth{-\labelsep}} |
| 1392 |
\def\@listv {\setlength \leftmargin{\leftmarginv}% |
| 1393 |
\setlength \labelwidth{\leftmarginv}% |
| 1394 |
\addtolength\labelwidth{-\labelsep}} |
| 1395 |
\def\@listvi {\setlength \leftmargin{\leftmarginvi}% |
| 1396 |
\setlength \labelwidth{\leftmarginvi}% |
| 1397 |
\addtolength\labelwidth{-\labelsep}} |
| 1398 |
% \end{macrocode} |
| 1399 |
% \end{macro} |
| 1400 |
% \end{macro} |
| 1401 |
% \end{macro} |
| 1402 |
% \end{macro} |
| 1403 |
% \end{macro} |
| 1404 |
% |
| 1405 |
% \subsubsection{Enumerate} |
| 1406 |
% |
| 1407 |
% The enumerate environment uses four counters: \Lcount{enumi}, |
| 1408 |
% \Lcount{enumii}, \Lcount{enumiii} and \Lcount{enumiv}, where |
| 1409 |
% \Lcount{enumN} controls the numbering of the Nth level |
| 1410 |
% enumeration. |
| 1411 |
% |
| 1412 |
% \begin{macro}{\theenumi} |
| 1413 |
% \begin{macro}{\theenumii} |
| 1414 |
% \begin{macro}{\theenumiii} |
| 1415 |
% \begin{macro}{\theenumiv} |
| 1416 |
% The counters are already defined in the \LaTeX{} kernel |
| 1417 |
% (\file{ltlists.dtx}), but their representation is changed here. |
| 1418 |
% |
| 1419 |
% \begin{macrocode} |
| 1420 |
\renewcommand\theenumi{\@arabic\c@enumi} |
| 1421 |
\renewcommand\theenumii{\@alph\c@enumii} |
| 1422 |
\renewcommand\theenumiii{\@roman\c@enumiii} |
| 1423 |
\renewcommand\theenumiv{\@Alph\c@enumiv} |
| 1424 |
% \end{macrocode} |
| 1425 |
% \end{macro} |
| 1426 |
% \end{macro} |
| 1427 |
% \end{macro} |
| 1428 |
% \end{macro} |
| 1429 |
% |
| 1430 |
% \begin{macro}{\labelenumi} |
| 1431 |
% \begin{macro}{\labelenumii} |
| 1432 |
% \begin{macro}{\labelenumiii} |
| 1433 |
% \begin{macro}{\labelenumiv} |
| 1434 |
% The commands |\labelenumi| ... |\labelenumiv| generate the label |
| 1435 |
% for each item. |
| 1436 |
% \begin{macrocode} |
| 1437 |
\newcommand\labelenumi{\theenumi.} |
| 1438 |
\newcommand\labelenumii{(\theenumii)} |
| 1439 |
\newcommand\labelenumiii{\theenumiii.} |
| 1440 |
\newcommand\labelenumiv{\theenumiv.} |
| 1441 |
% \end{macrocode} |
| 1442 |
% \end{macro} |
| 1443 |
% \end{macro} |
| 1444 |
% \end{macro} |
| 1445 |
% \end{macro} |
| 1446 |
% |
| 1447 |
% \begin{macro}{\p@enumii} |
| 1448 |
% \begin{macro}{\p@enumiii} |
| 1449 |
% \begin{macro}{\p@enumiv} |
| 1450 |
% The expansion of |\p@enumN||\theenumN| defines the output of a |
| 1451 |
% |\ref| command when referencing an item of the Nth level of an |
| 1452 |
% enumerated list. |
| 1453 |
% \begin{macrocode} |
| 1454 |
\renewcommand\p@enumii{\theenumi} |
| 1455 |
\renewcommand\p@enumiii{\theenumi(\theenumii)} |
| 1456 |
\renewcommand\p@enumiv{\p@enumiii\theenumiii} |
| 1457 |
% \end{macrocode} |
| 1458 |
% \end{macro} |
| 1459 |
% \end{macro} |
| 1460 |
% \end{macro} |
| 1461 |
% |
| 1462 |
% \subsubsection{Itemize} |
| 1463 |
% |
| 1464 |
% \begin{macro}{\labelitemi} |
| 1465 |
% \begin{macro}{\labelitemii} |
| 1466 |
% \changes{v1.2h}{1994/05/06}{Inserted \cs{normalfont}} |
| 1467 |
% \changes{v1.2u}{1996/08/25}{replaced -{}- with \cs{textendash}} |
| 1468 |
% \begin{macro}{\labelitemiii} |
| 1469 |
% \begin{macro}{\labelitemiv} |
| 1470 |
% Itemization is controlled by |\labelitemi|, |
| 1471 |
% |\labelitemii|, |\labelitemiii|, and |\labelitemiv|, which define |
| 1472 |
% the labels of the various itemization levels: the symbols used are |
| 1473 |
% bullet, bold en-dash, asterisk and centered dot. |
| 1474 |
% |
| 1475 |
% \changes{v1.2n}{1994/07/11}{renamed \cs{labelitemiiii} to |
| 1476 |
% \cs{labelitemiii}} |
| 1477 |
% \changes{v1.2x}{1997/04/16}{Changed to \cs{textbullet}, |
| 1478 |
% \cs{textasteriskcentered} and \cs{textperiodcentered}} |
| 1479 |
% \begin{macrocode} |
| 1480 |
\newcommand\labelitemi {\labelitemfont \textbullet} |
| 1481 |
\newcommand\labelitemii {\labelitemfont \bfseries \textendash} |
| 1482 |
\newcommand\labelitemiii{\labelitemfont \textasteriskcentered} |
| 1483 |
\newcommand\labelitemiv {\labelitemfont \textperiodcentered} |
| 1484 |
% \end{macrocode} |
| 1485 |
% |
| 1486 |
% \begin{macro}{\labelitemfont} |
| 1487 |
% The default definition for \cs{labelitemfont} is to reset the |
| 1488 |
% font to \cs{normalfont} so that always the same symbol is |
| 1489 |
% produced regardless of surrounding conditions. |
| 1490 |
% |
| 1491 |
% \changes{v1.3a}{2020/03/07}{Normalize label fonts} |
| 1492 |
% A possible alternative would be |
| 1493 |
%\begin{verbatim} |
| 1494 |
%\renewcommand\labelitemfont{% |
| 1495 |
% \fontseries\seriesdefault |
| 1496 |
% \fontshape\shapedefault\selectfont} |
| 1497 |
%\end{verbatim} |
| 1498 |
% which resets series and shape doesn't touch the family. |
| 1499 |
% \begin{macrocode} |
| 1500 |
\newcommand\labelitemfont{\normalfont} |
| 1501 |
% \end{macrocode} |
| 1502 |
% \changes{v1.3b}{2020/03/11}{Added a missing \cs{end{macro}} statement} |
| 1503 |
% \end{macro} |
| 1504 |
% \end{macro} |
| 1505 |
% \end{macro} |
| 1506 |
% \end{macro} |
| 1507 |
% \end{macro} |
| 1508 |
% |
| 1509 |
% \subsubsection{Description} |
| 1510 |
% |
| 1511 |
% \begin{environment}{description} |
| 1512 |
% The description environment is defined here -- while the itemize |
| 1513 |
% and enumerate environments are defined in the \LaTeX{} kernel |
| 1514 |
% (\file{ltlists.dtx}). |
| 1515 |
% |
| 1516 |
% \begin{macrocode} |
| 1517 |
\newenvironment{description} |
| 1518 |
{\list{}{\labelwidth\z@ \itemindent-\leftmargin |
| 1519 |
\let\makelabel\descriptionlabel}} |
| 1520 |
{\endlist} |
| 1521 |
% \end{macrocode} |
| 1522 |
% \end{environment} |
| 1523 |
% |
| 1524 |
% \begin{macro}{\descriptionlabel} |
| 1525 |
% To change the formatting of the label, you must redefine |
| 1526 |
% |\descriptionlabel|. |
| 1527 |
% |
| 1528 |
% \changes{v1.2q}{1995/03/14}{made command short} |
| 1529 |
% \begin{macrocode} |
| 1530 |
\newcommand*\descriptionlabel[1]{\hspace\labelsep |
| 1531 |
\normalfont\bfseries #1} |
| 1532 |
% \end{macrocode} |
| 1533 |
% \end{macro} |
| 1534 |
% |
| 1535 |
% \subsection{Defining new environments} |
| 1536 |
% |
| 1537 |
% \subsubsection{Verse} |
| 1538 |
% |
| 1539 |
% \begin{environment}{verse} |
| 1540 |
% The verse environment is defined by making clever use of the |
| 1541 |
% list environment's parameters. The user types |\\| to end a line. |
| 1542 |
% This is implemented by |\let|'ing |\\| equal |\@centercr|. |
| 1543 |
% |
| 1544 |
% \begin{macrocode} |
| 1545 |
\newenvironment{verse} |
| 1546 |
{\let\\=\@centercr |
| 1547 |
\list{}{\setlength\itemsep{\z@}% |
| 1548 |
\setlength\itemindent{-15\p@}% |
| 1549 |
\setlength\listparindent{\itemindent}% |
| 1550 |
\setlength\rightmargin{\leftmargin}% |
| 1551 |
\addtolength\leftmargin{15\p@}}% |
| 1552 |
\item[]} |
| 1553 |
{\endlist} |
| 1554 |
% \end{macrocode} |
| 1555 |
% \end{environment} |
| 1556 |
% |
| 1557 |
% \subsubsection{Quotation} |
| 1558 |
% |
| 1559 |
% \begin{environment}{quotation} |
| 1560 |
% The quotation environment is also defined by making clever use of |
| 1561 |
% the list environment's parameters. The lines in the environment |
| 1562 |
% are set smaller than |\textwidth|. The first line of a paragraph |
| 1563 |
% inside this environment is indented. |
| 1564 |
% |
| 1565 |
% \begin{macrocode} |
| 1566 |
\newenvironment{quotation} |
| 1567 |
{\list{}{\setlength\listparindent{1.5em}% |
| 1568 |
\setlength\itemindent{\listparindent}% |
| 1569 |
\setlength\rightmargin{\leftmargin}}% |
| 1570 |
\item[]} |
| 1571 |
{\endlist} |
| 1572 |
% \end{macrocode} |
| 1573 |
% \end{environment} |
| 1574 |
% |
| 1575 |
% \subsubsection{Quote} |
| 1576 |
% |
| 1577 |
% \begin{environment}{quote} |
| 1578 |
% The quote environment is like the quotation environment except |
| 1579 |
% that paragraphs are not indented. |
| 1580 |
% |
| 1581 |
% \begin{macrocode} |
| 1582 |
\newenvironment{quote} |
| 1583 |
{\list{}{\setlength\rightmargin{\leftmargin}}% |
| 1584 |
\item[]} |
| 1585 |
{\endlist} |
| 1586 |
% \end{macrocode} |
| 1587 |
% \end{environment} |
| 1588 |
% |
| 1589 |
% \subsubsection{Theorem} |
| 1590 |
% |
| 1591 |
% This document class does not define it's own theorem environments, |
| 1592 |
% the defaults, supplied by the \LaTeX{} kernel (\file{ltthm.dtx}) |
| 1593 |
% are available. |
| 1594 |
% |
| 1595 |
% |
| 1596 |
% \subsection{Setting parameters for existing environments} |
| 1597 |
% |
| 1598 |
% \subsubsection{Array and tabular} |
| 1599 |
% |
| 1600 |
% \begin{macro}{\arraycolsep} |
| 1601 |
% The columns in an array environment are separated by |
| 1602 |
% 2|\arraycolsep|. |
| 1603 |
% \begin{macrocode} |
| 1604 |
\setlength\arraycolsep{5\p@} |
| 1605 |
% \end{macrocode} |
| 1606 |
% \end{macro} |
| 1607 |
% |
| 1608 |
% \begin{macro}{\tabcolsep} |
| 1609 |
% The columns in an tabular environment are separated by |
| 1610 |
% 2|\tabcolsep|. |
| 1611 |
% \begin{macrocode} |
| 1612 |
\setlength\tabcolsep{6\p@} |
| 1613 |
% \end{macrocode} |
| 1614 |
% \end{macro} |
| 1615 |
% |
| 1616 |
% \begin{macro}{\arrayrulewidth} |
| 1617 |
% The width of vertical rules in the array and tabular environments |
| 1618 |
% is given by |\arrayrulewidth|. |
| 1619 |
% \begin{macrocode} |
| 1620 |
\setlength\arrayrulewidth{.4\p@} |
| 1621 |
% \end{macrocode} |
| 1622 |
% \end{macro} |
| 1623 |
% |
| 1624 |
% \begin{macro}{\doublerulesep} |
| 1625 |
% The space between adjacent rules in the array and tabular |
| 1626 |
% environments is given by |\doublerulesep|. |
| 1627 |
% \begin{macrocode} |
| 1628 |
\setlength\doublerulesep{2\p@} |
| 1629 |
% \end{macrocode} |
| 1630 |
% \end{macro} |
| 1631 |
% |
| 1632 |
% \subsubsection{Tabbing} |
| 1633 |
% |
| 1634 |
% \begin{macro}{\tabbingsep} |
| 1635 |
% This controls the space that the |\'| command puts in. (See |
| 1636 |
% \LaTeX{} manual for an explanation.) |
| 1637 |
% \begin{macrocode} |
| 1638 |
\setlength\tabbingsep{\labelsep} |
| 1639 |
% \end{macrocode} |
| 1640 |
% \end{macro} |
| 1641 |
% |
| 1642 |
% \subsubsection{Minipage} |
| 1643 |
% |
| 1644 |
% \begin{macro}{\@minipagerestore} |
| 1645 |
% The macro |\@minipagerestore| is called upon entry to a minipage |
| 1646 |
% environment to set up things that are to be handled differently |
| 1647 |
% inside a minipage environment. In the current styles, it does |
| 1648 |
% nothing. |
| 1649 |
% \end{macro} |
| 1650 |
% |
| 1651 |
% \begin{macro}{\@mpfootins} |
| 1652 |
% Minipages have their own footnotes; |\skip||\@mpfootins| plays |
| 1653 |
% same r\^ole for footnotes in a minipage as |\skip||\footins| does |
| 1654 |
% for ordinary footnotes. |
| 1655 |
% |
| 1656 |
% \begin{macrocode} |
| 1657 |
\skip\@mpfootins = \skip\footins |
| 1658 |
% \end{macrocode} |
| 1659 |
% \end{macro} |
| 1660 |
% |
| 1661 |
% \subsubsection{Framed boxes} |
| 1662 |
% |
| 1663 |
% \begin{macro}{\fboxsep} |
| 1664 |
% The space left by |\fbox| and |\framebox| between the box and the |
| 1665 |
% text in it. |
| 1666 |
% \begin{macro}{\fboxrule} |
| 1667 |
% The width of the rules in the box made by |\fbox| and |\framebox|. |
| 1668 |
% \begin{macrocode} |
| 1669 |
\setlength\fboxsep{3\p@} |
| 1670 |
\setlength\fboxrule{.4\p@} |
| 1671 |
% \end{macrocode} |
| 1672 |
% \end{macro} |
| 1673 |
% \end{macro} |
| 1674 |
% |
| 1675 |
% \subsubsection{Equation and eqnarray} |
| 1676 |
% |
| 1677 |
% \begin{macro}{\theequation} |
| 1678 |
% The equation counter will be typeset using arabic numbers. |
| 1679 |
% \begin{macrocode} |
| 1680 |
\renewcommand\theequation{\@arabic\c@equation} |
| 1681 |
% \end{macrocode} |
| 1682 |
% \end{macro} |
| 1683 |
% |
| 1684 |
% \begin{macro}{\jot} |
| 1685 |
% |\jot| is the extra space added between lines of an eqnarray |
| 1686 |
% environment. The default value is used. |
| 1687 |
% \begin{macrocode} |
| 1688 |
% \setlength\jot{3pt} |
| 1689 |
% \end{macrocode} |
| 1690 |
% \end{macro} |
| 1691 |
% |
| 1692 |
% \begin{macro}{\@eqnnum} |
| 1693 |
% The macro |\@eqnnum| defines how equation numbers are to appear in |
| 1694 |
% equations. Again the default is used. |
| 1695 |
% |
| 1696 |
% \begin{macrocode} |
| 1697 |
% \def\@eqnnum{(\theequation)} |
| 1698 |
% \end{macrocode} |
| 1699 |
% \end{macro} |
| 1700 |
% |
| 1701 |
% \subsection{Font changing} |
| 1702 |
% |
| 1703 |
% Here we supply the declarative font changing commands that were |
| 1704 |
% common in \LaTeX\ version 2.09 and earlier. These commands work |
| 1705 |
% in text mode \emph{and} in math mode. They are provided for |
| 1706 |
% compatibility, but one should start using the |\text...| and |
| 1707 |
% |\math...| commands instead. These commands are redefined using |
| 1708 |
% |\@renewfontswitch|, a command with three arguments: the user |
| 1709 |
% command to be defined; \LaTeX\ commands to execute in text mode |
| 1710 |
% and \LaTeX\ commands to execute in math mode. |
| 1711 |
% |
| 1712 |
% \begin{macro}{\rm} |
| 1713 |
% \begin{macro}{\tt} |
| 1714 |
% \begin{macro}{\sf} |
| 1715 |
% The commands to change the family. |
| 1716 |
% \changes{v1.0a}{1993/12/14}{Added compatibility mode support.} |
| 1717 |
% \changes{v1.1}{1993/12/18}{Changed \cs{@newfontswitch} to |
| 1718 |
% \cs{@renewfontswitch}, removed switch.} |
| 1719 |
% \changes{v1.2d}{1994/04/14}{\cs{@renewfontswitch} has become |
| 1720 |
% \cs{DeclareOldFontCommand}} |
| 1721 |
% \begin{macrocode} |
| 1722 |
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm} |
| 1723 |
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf} |
| 1724 |
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt} |
| 1725 |
% \end{macrocode} |
| 1726 |
% \end{macro} |
| 1727 |
% \end{macro} |
| 1728 |
% \end{macro} |
| 1729 |
% |
| 1730 |
% \begin{macro}{\bf} |
| 1731 |
% The command to change to the bold series. One should use |
| 1732 |
% |\mdseries| to explicitly switch back to medium series. |
| 1733 |
% \changes{v1.0a}{1993/12/14}{Added compatibility mode support.} |
| 1734 |
% \changes{v1.1}{1993/12/18}{Changed \cs{@newfontswitch} to |
| 1735 |
% \cs{@renewfontswitch}, removed switch.} |
| 1736 |
% \begin{macrocode} |
| 1737 |
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf} |
| 1738 |
% \end{macrocode} |
| 1739 |
% \end{macro} |
| 1740 |
% |
| 1741 |
% \begin{macro}{\sl} |
| 1742 |
% \begin{macro}{\it} |
| 1743 |
% \begin{macro}{\sc} |
| 1744 |
% |
| 1745 |
% And the commands to change the shape of the font. The slanted and |
| 1746 |
% small caps shapes are not available by default as math alphabets, |
| 1747 |
% so those changes do nothing in math mode. One should use |
| 1748 |
% |\upshape| to explicitly change back to the upright shape. |
| 1749 |
% \changes{v1.0a}{1993/12/14}{Added compatibility mode support.} |
| 1750 |
% \changes{v1.1}{1993/12/18}{Changed \cs{@newfontswitch} to |
| 1751 |
% \cs{@renewfontswitch}, removed switch.} |
| 1752 |
% \changes{v1.1b}{1993/12/20}{Added forgotten re.} |
| 1753 |
% \begin{macrocode} |
| 1754 |
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit} |
| 1755 |
\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\relax} |
| 1756 |
\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\relax} |
| 1757 |
% \end{macrocode} |
| 1758 |
% \end{macro} |
| 1759 |
% \end{macro} |
| 1760 |
% \end{macro} |
| 1761 |
% |
| 1762 |
% \begin{macro}{\cal} |
| 1763 |
% \changes{v1.0a}{1993/12/14}{Macro added} |
| 1764 |
% \begin{macro}{\mit} |
| 1765 |
% \changes{v1.0a}{1993/12/14}{Macro added} |
| 1766 |
% |
| 1767 |
% The commands |\cal| and |\mit| should only be used in math mode, |
| 1768 |
% outside math mode they have no effect. Currently the New Font |
| 1769 |
% Selection Scheme defines these commands to generate warning |
| 1770 |
% messages. Therefore we have to define them `by hand'. |
| 1771 |
% \changes{v1.2p}{1994/12/11}{Now define \cs{cal} and \cs{mit} using |
| 1772 |
% \cs{DeclareRobustCommand*}} |
| 1773 |
% \begin{macrocode} |
| 1774 |
\DeclareRobustCommand*{\cal}{\@fontswitch{\relax}{\mathcal}} |
| 1775 |
\DeclareRobustCommand*{\mit}{\@fontswitch{\relax}{\mathnormal}} |
| 1776 |
% \end{macrocode} |
| 1777 |
% \end{macro} |
| 1778 |
% \end{macro} |
| 1779 |
% |
| 1780 |
% \subsection{Footnotes} |
| 1781 |
% |
| 1782 |
% \begin{macro}{\footnoterule} |
| 1783 |
% Usually, footnotes are separated from the main body of the text |
| 1784 |
% by a small rule. This rule is drawn by the macro |\footnoterule|. |
| 1785 |
% We have to make sure that the rule takes no vertical space (see |
| 1786 |
% \file{plain.tex}) so we compensate for the natural height of the |
| 1787 |
% rule of 0.4pt by adding the right amount of vertical skip. |
| 1788 |
% |
| 1789 |
% To prevent the rule from colliding with the footnote we first add |
| 1790 |
% a little negative vertical skip, then we put the rule and make |
| 1791 |
% sure we end up at the same point where we begun this operation. |
| 1792 |
% \begin{macrocode} |
| 1793 |
\renewcommand\footnoterule{% |
| 1794 |
\kern-\p@ |
| 1795 |
\hrule \@width .4\columnwidth |
| 1796 |
\kern .6\p@} |
| 1797 |
% \end{macrocode} |
| 1798 |
% \end{macro} |
| 1799 |
% |
| 1800 |
% \begin{macro}{\c@footnote} |
| 1801 |
% A counter for footnotes. |
| 1802 |
% \begin{macrocode} |
| 1803 |
% \newcounter{footnote} |
| 1804 |
% \end{macrocode} |
| 1805 |
% \end{macro} |
| 1806 |
% |
| 1807 |
% \begin{macro}{\@makefntext} |
| 1808 |
% \changes{v1.2c}{1994/03/08}{Always call \cs{@makefnmark}.} |
| 1809 |
% The footnote mechanism of \LaTeX{} calls the macro |\@makefntext| |
| 1810 |
% to produce the actual footnote. The macro gets the text of the |
| 1811 |
% footnote as its argument and should use |\@makefnmark| to produce |
| 1812 |
% the mark of the footnote. The macro |\@makefntext| is called when |
| 1813 |
% effectively inside a |\parbox| of width |\columnwidth| (i.e., |
| 1814 |
% with |\hsize| = |\columnwidth|). |
| 1815 |
% |
| 1816 |
% An example of what can be achieved is given by the following piece |
| 1817 |
% of \TeX\ code. |
| 1818 |
% \begin{verbatim} |
| 1819 |
% \long\def\@makefntext#1{% |
| 1820 |
% \@setpar{\@@par |
| 1821 |
% \@tempdima = \hsize |
| 1822 |
% \advance\@tempdima-10pt |
| 1823 |
% \parshape \@ne 10pt \@tempdima}% |
| 1824 |
% \par |
| 1825 |
% \parindent 1em\noindent |
| 1826 |
% \hb@xt@\z@{\hss\@makefnmark}#1} |
| 1827 |
% \end{verbatim} |
| 1828 |
% The effect of this definition is that all lines of the footnote |
| 1829 |
% are indented by 10pt, while the first line of a new paragraph is |
| 1830 |
% indented by 1em. To change these dimensions, just substitute the |
| 1831 |
% desired value for `10pt' (in both places) or `1em'. The mark is |
| 1832 |
% flush right against the footnote. |
| 1833 |
% |
| 1834 |
% In this document class we use a simpler macro, in which the |
| 1835 |
% footnote text is set like an ordinary text paragraph, with no |
| 1836 |
% indentation except on the first line of a paragraph, and the |
| 1837 |
% first line of the footnote. Thus, all the macro must do is set |
| 1838 |
% |\parindent| to the appropriate value for succeeding paragraphs |
| 1839 |
% and put the proper indentation before the mark. |
| 1840 |
% |
| 1841 |
% \changes{v1.3b}{2020/03/11}{make the switch to the use of |
| 1842 |
% \cs{newcommand} complete.} |
| 1843 |
% \begin{macrocode} |
| 1844 |
\newcommand\@makefntext[1]{% |
| 1845 |
\noindent |
| 1846 |
\hangindent 5\p@ |
| 1847 |
\hb@xt@5\p@{\hss\@makefnmark}#1} |
| 1848 |
% \end{macrocode} |
| 1849 |
% \end{macro} |
| 1850 |
% |
| 1851 |
% \begin{macro}{\@makefnmark} |
| 1852 |
% The footnote markers that are printed in the text to point to the |
| 1853 |
% footnotes should be produced by the macro |\@makefnmark|. We use |
| 1854 |
% the default definition for it. |
| 1855 |
% \begin{macrocode} |
| 1856 |
%\renewcommand\@makefnmark{\hbox{$^{\@thefnmark}\m@th$}} |
| 1857 |
% \end{macrocode} |
| 1858 |
% \end{macro} |
| 1859 |
% |
| 1860 |
% \section{Initialization} |
| 1861 |
% |
| 1862 |
% \subsection{Words} |
| 1863 |
% |
| 1864 |
% \begin{macro}{\ccname} |
| 1865 |
% \begin{macro}{\enclname} |
| 1866 |
% \begin{macro}{\pagename} |
| 1867 |
% \begin{macro}{\headtoname} |
| 1868 |
% This document class is for documents prepared in the English |
| 1869 |
% language. To prepare a version for another language, various |
| 1870 |
% English words must be replaced. All the English words that |
| 1871 |
% require replacement are defined below in command names. |
| 1872 |
% \begin{macrocode} |
| 1873 |
\newcommand*\ccname{cc} |
| 1874 |
\newcommand*\enclname{encl} |
| 1875 |
\newcommand*\pagename{Page} |
| 1876 |
\newcommand*\headtoname{To} |
| 1877 |
% \end{macrocode} |
| 1878 |
% \end{macro} |
| 1879 |
% \end{macro} |
| 1880 |
% \end{macro} |
| 1881 |
% \end{macro} |
| 1882 |
% |
| 1883 |
% \subsection{Date} |
| 1884 |
% |
| 1885 |
% \begin{macro}{\today} |
| 1886 |
% This macro uses the \TeX\ primitives |\month|, |\day| and |\year| |
| 1887 |
% to provide the date of the \LaTeX-run. |
| 1888 |
% \begin{macrocode} |
| 1889 |
\newcommand*\today{\ifcase\month\or |
| 1890 |
January\or February\or March\or April\or May\or June\or |
| 1891 |
July\or August\or September\or October\or November\or December\fi |
| 1892 |
\space\number\day, \number\year} |
| 1893 |
% \end{macrocode} |
| 1894 |
% \end{macro} |
| 1895 |
% |
| 1896 |
% \subsection{Two column mode} |
| 1897 |
% |
| 1898 |
% \begin{macro}{\columnsep} |
| 1899 |
% This gives the distance between two columns in two column mode. |
| 1900 |
% \begin{macrocode} |
| 1901 |
\setlength\columnsep{10\p@} |
| 1902 |
% \end{macrocode} |
| 1903 |
% \end{macro} |
| 1904 |
% |
| 1905 |
% \begin{macro}{\columnseprule} |
| 1906 |
% This gives the width of the rule between two columns in two |
| 1907 |
% column mode. We have no visible rule. |
| 1908 |
% \begin{macrocode} |
| 1909 |
\setlength\columnseprule{0\p@} |
| 1910 |
% \end{macrocode} |
| 1911 |
% \end{macro} |
| 1912 |
% |
| 1913 |
% \subsection{The page style} |
| 1914 |
% We have \pstyle{plain} pages in this document class by |
| 1915 |
% default. We use arabic page numbers. |
| 1916 |
% \begin{macrocode} |
| 1917 |
\pagestyle{plain} |
| 1918 |
\pagenumbering{arabic} |
| 1919 |
% \end{macrocode} |
| 1920 |
% |
| 1921 |
% \subsection{Single or double sided printing} |
| 1922 |
% |
| 1923 |
% We don't try to make each page as long as all the others. |
| 1924 |
% \begin{macrocode} |
| 1925 |
\raggedbottom |
| 1926 |
% \end{macrocode} |
| 1927 |
% |
| 1928 |
% \begin{macro}{\@texttop} |
| 1929 |
% The document class letter sets |\@texttop| to |\vskip| 0pt |
| 1930 |
% \texttt{plus} .00006fil on the first page of a letter, which |
| 1931 |
% centers a short letter on the page. This fil value may have to be |
| 1932 |
% changed for other letterheads. This setting has to be done after |
| 1933 |
% |\raggedbottom| is executed, since the latter sets |\@texttop| to |
| 1934 |
% |\relax|. |
| 1935 |
% \begin{macrocode} |
| 1936 |
\def\@texttop{\ifnum\c@page=1\vskip \z@ plus.00006fil\relax\fi} |
| 1937 |
% \end{macrocode} |
| 1938 |
% \end{macro} |
| 1939 |
% |
| 1940 |
% We always start in one column mode. |
| 1941 |
% \begin{macrocode} |
| 1942 |
\onecolumn |
| 1943 |
%</letter> |
| 1944 |
% \end{macrocode} |
| 1945 |
% |
| 1946 |
% |
| 1947 |
% |
| 1948 |
% \Finale |
| 1949 |
% |
| 1950 |
\endinput |