home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 3 / Meeting_Pearls_III.iso / Pearls / texmf / inputs / latex209 / sty / letter.sty < prev    next >
Text File  |  1992-03-31  |  13KB  |  494 lines

  1. % LETTER STANDARD DOCUMENT STYLE -- Released 25 March 92
  2. %    for LaTeX version 2.09
  3. % Copyright (C) 1991 by Leslie Lamport
  4.  
  5. \typeout{Standard Document Style `letter' <25 Mar 92>.}
  6.  
  7. \def\ccname{cc}
  8. \def\enclname{encl}
  9. \def\pagename{Page}
  10. \def\headtoname{To}
  11.  
  12. \def\@ptsize{0}
  13. \@namedef{ds@11pt}{\def\@ptsize{1}}
  14. \@namedef{ds@12pt}{\def\@ptsize{2}}
  15.  
  16. \@twosidefalse
  17.  
  18. \def\ds@draft{\overfullrule 5\p@}
  19.  
  20. \@options
  21.  
  22. \lineskip 1pt
  23. \normallineskip 1pt
  24. \def\baselinestretch{1}
  25.  
  26. \ifcase \@ptsize\relax
  27.  
  28. \def\@normalsize{\@setsize\normalsize{12pt}\xpt\@xpt
  29. \abovedisplayskip 10\p@ plus2\p@ minus5\p@
  30. \belowdisplayskip \abovedisplayskip
  31. \abovedisplayshortskip  \z@ plus3\p@
  32. \belowdisplayshortskip  6\p@ plus3\p@ minus3\p@
  33. \let\@listi\@listI}
  34.  
  35. \def\small{\@setsize\small{11pt}\ixpt\@ixpt
  36. \abovedisplayskip 8.5\p@ plus3\p@ minus4\p@
  37. \belowdisplayskip \abovedisplayskip
  38. \abovedisplayshortskip \z@ plus2\p@
  39. \belowdisplayshortskip 4\p@ plus2\p@ minus2\p@
  40. \def\@listi{\leftmargin\leftmargini
  41. \topsep 4\p@ plus2\p@ minus2\p@\parsep 2\p@ plus\p@ minus\p@
  42. \itemsep \parsep}}
  43.  
  44. \def\footnotesize{\@setsize\footnotesize{9.5pt}\viiipt\@viiipt
  45. \abovedisplayskip 6\p@ plus2\p@ minus4\p@
  46. \belowdisplayskip \abovedisplayskip
  47. \abovedisplayshortskip \z@ plus\p@
  48. \belowdisplayshortskip 3\p@ plus\p@ minus2\p@
  49. \def\@listi{\leftmargin\leftmargini
  50. \topsep 3\p@ plus\p@ minus\p@\parsep 2\p@ plus\p@ minus\p@
  51. \itemsep \parsep}}
  52.  
  53. \def\scriptsize{\@setsize\scriptsize{8pt}\viipt\@viipt}
  54. \def\tiny{\@setsize\tiny{6pt}\vpt\@vpt}
  55. \def\large{\@setsize\large{14pt}\xiipt\@xiipt}
  56. \def\Large{\@setsize\Large{18pt}\xivpt\@xivpt}
  57. \def\LARGE{\@setsize\LARGE{22pt}\xviipt\@xviipt}
  58. \def\huge{\@setsize\huge{25pt}\xxpt\@xxpt}
  59. \def\Huge{\@setsize\Huge{30pt}\xxvpt\@xxvpt}
  60.  
  61. \or
  62.  
  63. \def\@normalsize{\@setsize\normalsize{13.6pt}\xipt\@xipt
  64. \abovedisplayskip 11\p@ plus3\p@ minus6\p@
  65. \belowdisplayskip \abovedisplayskip
  66. \abovedisplayshortskip  \z@ plus3\p@
  67. \belowdisplayshortskip  6.5\p@ plus3.5\p@ minus3\p@
  68. \let\@listi\@listI}
  69.  
  70. \def\small{\@setsize\small{12pt}\xpt\@xpt
  71. \abovedisplayskip 10\p@ plus2\p@ minus5\p@
  72. \belowdisplayskip \abovedisplayskip
  73. \abovedisplayshortskip  \z@ plus3\p@
  74. \belowdisplayshortskip  6\p@ plus3\p@ minus3\p@
  75. \def\@listi{\leftmargin\leftmargini
  76. \topsep 6\p@ plus2\p@ minus2\p@\parsep 3\p@ plus2\p@ minus\p@
  77. \itemsep \parsep}}
  78.  
  79. \def\footnotesize{\@setsize\footnotesize{11pt}\ixpt\@ixpt
  80. \abovedisplayskip 8\p@ plus2\p@ minus4\p@
  81. \belowdisplayskip \abovedisplayskip
  82. \abovedisplayshortskip \z@ plus\p@
  83. \belowdisplayshortskip 4\p@ plus2\p@ minus2\p@
  84. \def\@listi{\leftmargin\leftmargini
  85. \topsep 4\p@ plus2\p@ minus2\p@\parsep 2\p@ plus\p@ minus\p@
  86. \itemsep \parsep}}
  87.  
  88. \def\scriptsize{\@setsize\scriptsize{9.5pt}\viiipt\@viiipt}
  89. \def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}
  90. \def\large{\@setsize\large{14pt}\xiipt\@xiipt}
  91. \def\Large{\@setsize\Large{18pt}\xivpt\@xivpt}
  92. \def\LARGE{\@setsize\LARGE{22pt}\xviipt\@xviipt}
  93. \def\huge{\@setsize\huge{25pt}\xxpt\@xxpt}
  94. \def\Huge{\@setsize\Huge{30pt}\xxvpt\@xxvpt}
  95.  
  96. \or
  97.  
  98. \def\@normalsize{\@setsize\normalsize{15pt}\xiipt\@xiipt
  99. \abovedisplayskip 12\p@ plus3\p@ minus7\p@
  100. \belowdisplayskip \abovedisplayskip
  101. \abovedisplayshortskip  \z@ plus3\p@
  102. \belowdisplayshortskip  6.5\p@ plus3.5\p@ minus3\p@
  103. \let\@listi\@listI}
  104.  
  105. \def\small{\@setsize\small{13.6pt}\xipt\@xipt
  106. \abovedisplayskip 11\p@ plus3\p@ minus6\p@
  107. \belowdisplayskip \abovedisplayskip
  108. \abovedisplayshortskip  \z@ plus3\p@
  109. \belowdisplayshortskip  6.5\p@ plus3.5\p@ minus3\p@
  110. \def\@listi{\leftmargin\leftmargini
  111. \parsep 4.5\p@ plus2\p@ minus\p@
  112.             \itemsep \parsep
  113.             \topsep 9\p@ plus3\p@ minus5\p@}}
  114.  
  115. \def\footnotesize{\@setsize\footnotesize{12pt}\xpt\@xpt
  116. \abovedisplayskip 10\p@ plus2\p@ minus5\p@
  117. \belowdisplayskip \abovedisplayskip
  118. \abovedisplayshortskip  \z@ plus3\p@
  119. \belowdisplayshortskip  6\p@ plus3\p@ minus3\p@
  120. \def\@listi{\leftmargin\leftmargini
  121. \topsep 6\p@ plus2\p@ minus2\p@\parsep 3\p@ plus2\p@ minus\p@
  122. \itemsep \parsep}}
  123.  
  124. \def\scriptsize{\@setsize\scriptsize{9.5pt}\viiipt\@viiipt}
  125. \def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}
  126. \def\large{\@setsize\large{18pt}\xivpt\@xivpt}
  127. \def\Large{\@setsize\Large{22pt}\xviipt\@xviipt}
  128. \def\LARGE{\@setsize\LARGE{25pt}\xxpt\@xxpt}
  129. \def\huge{\@setsize\huge{30pt}\xxvpt\@xxvpt}
  130. \let\Huge=\huge
  131. \fi
  132.  
  133. \normalsize
  134.  
  135. \oddsidemargin   53pt
  136. \evensidemargin  53pt
  137. \marginparwidth  90pt
  138. \marginparsep    11pt
  139.  
  140. \marginparpush 5pt
  141.  
  142. \topmargin 27pt
  143.  
  144. \headheight 12pt
  145. \headsep 45pt
  146.  
  147. \footheight 12pt
  148. \footskip 25pt
  149.  
  150. \textheight 505pt
  151.  
  152. \textwidth 365pt
  153.  
  154. \columnsep 10pt
  155. \columnseprule 0pt
  156.  
  157. \raggedbottom
  158.  
  159. \footnotesep 12pt
  160.  
  161. \skip\footins 10pt plus 2pt minus 4pt
  162.  
  163. \floatsep 12pt plus 2pt minus 2pt
  164. \textfloatsep  20pt plus 2pt minus 4pt
  165. \intextsep 12pt plus 2pt minus 2pt
  166. \dblfloatsep 12pt plus 2pt minus 2pt
  167. \dbltextfloatsep 20pt plus 2pt minus 4pt
  168. \@maxsep 20pt
  169. \@dblmaxsep 20pt
  170. \@fptop 0pt plus 1fil
  171. \@fpsep 8pt plus 2fil
  172. \@fpbot 0pt plus 1fil
  173. \@dblfptop 0pt plus 1fil
  174. \@dblfpsep 8pt plus 2fil
  175. \@dblfpbot 0pt plus 1fil
  176.  
  177. \newdimen\longindentation
  178. \longindentation=.5\textwidth
  179. \newdimen\indentedwidth
  180. \indentedwidth=\textwidth
  181. \advance\indentedwidth -\longindentation
  182.  
  183. \def\opening#1{\ifx\@empty\fromaddress
  184.   \thispagestyle{firstpage}%
  185.     {\raggedleft\@date\par}%
  186.   \else
  187.     \thispagestyle{empty}%
  188.     {\raggedleft\begin{tabular}{l}\ignorespaces
  189.       \fromaddress \\*[2\parskip]%
  190.       \@date \end{tabular}\par}%
  191.   \fi
  192.   \vspace{2\parskip}%
  193.   {\raggedright \toname \\ \toaddress \par}%
  194.   \vspace{2\parskip}%
  195.   #1\par\nobreak}
  196.  
  197. \long\def\closing#1{\par\nobreak\vspace{\parskip}%
  198.   \stopbreaks
  199.   \noindent
  200.   \ifx\@empty\fromaddress\else
  201.   \hspace*{\longindentation}\fi
  202.   \parbox{\indentedwidth}{\raggedright
  203.        \ignorespaces #1\\[6\medskipamount]%% changed 20 Jan 88
  204.        \ifx\@empty\fromsig
  205.            \fromname
  206.        \else \fromsig \fi\strut}%
  207.    \par}
  208.  
  209. \def\ps{\par\startbreaks}
  210.  
  211. \def\cc#1{\par\noindent
  212. \parbox[t]{\textwidth}{\@hangfrom{\reset@font\rm \ccname: }%
  213.                        \ignorespaces #1\strut}\par}
  214.  
  215. \def\encl#1{\par\noindent
  216. \parbox[t]{\textwidth}{\@hangfrom{\reset@font\rm \enclname: }%
  217.                        \ignorespaces #1\strut}\par}
  218.  
  219. \def\stopletter{}
  220.  
  221. \def\returnaddress{}
  222. \newcount\labelcount
  223.  
  224. \def\startlabels{\labelcount\z@
  225. \pagestyle{empty}%
  226. \let\@texttop\relax
  227. \topmargin -50\p@
  228. \headsep \z@
  229. \oddsidemargin -35\p@
  230. \evensidemargin -35\p@
  231. \textheight 10in
  232. \@colht\textheight  \@colroom\textheight \vsize\textheight
  233. \textwidth 550\p@
  234. \columnsep 25\p@
  235. \ifcase \@ptsize\relax
  236.   \normalsize
  237.  \or
  238.   \small
  239.  \or
  240.   \footnotesize
  241.  \fi
  242. \baselineskip \z@
  243. \lineskip \z@
  244. \boxmaxdepth \z@
  245. \parindent \z@
  246. \twocolumn\relax}
  247.  
  248. \def\mlabel#1#2{\setbox0\vbox{\parbox[b]{3.6in}%
  249.                                         {\strut\ignorespaces #2}}%
  250.          \vbox to 2in{\vss \box0 \vss}}
  251.  
  252. \long\def\letter#1{\newpage
  253.   \c@page\@ne
  254.   \interlinepenalty=200
  255.   \@processto{\leavevmode\ignorespaces #1}}
  256.  
  257. \def\endletter{\stopletter\@@par\pagebreak\@@par
  258.   \if@filesw
  259.     \begingroup
  260.       \let\\=\relax
  261.       \def\protect##1{\string##1\space}%
  262.         \immediate\write\@auxout{\string\mlabel{\returnaddress}{\toname
  263.            \\\toaddress}}%
  264.     \endgroup
  265.   \fi}
  266.  
  267. \long\def\@processto#1{\@xproc #1\\@@@\ifx\toaddress\@empty
  268.     \else \@yproc #1@@@\fi}
  269. \long\def\@xproc #1\\#2@@@{\def\toname{#1}\def\toaddress{#2}}
  270. \long\def\@yproc #1\\#2@@@{\def\toaddress{#2}}
  271.  
  272. \def\stopbreaks{\interlinepenalty \@M
  273.    \def\par{\@@par\nobreak}\let\\=\@nobreakcr
  274.    \let\vspace\@nobreakvspace}
  275.  
  276. \def\@nobreakvspace{\@ifstar{\@nobreakvspacex}{\@nobreakvspacex}}
  277.  
  278. \def\@nobreakvspacex#1{\ifvmode\nobreak\vskip #1\relax\else
  279.                \@bsphack\vadjust{\nobreak\vskip #1}\@esphack\fi}
  280.  
  281. \def\@nobreakcr{\vadjust{\penalty\@M}\@ifstar{\@xnewline}{\@xnewline}}
  282.  
  283. \def\startbreaks{\let\\=\@normalcr
  284.    \interlinepenalty 200\def\par{\@@par\penalty 200\relax}}
  285.  
  286. \def\name#1{\def\fromname{#1}}
  287. \def\fromname{}
  288.  
  289. \def\signature#1{\def\fromsig{#1}}
  290. \def\fromsig{}
  291.  
  292. \long\def\address#1{\def\fromaddress{#1}}
  293. \def\fromaddress{}
  294.  
  295. \def\location#1{\def\fromlocation{#1}}
  296. \def\fromlocation{}
  297.  
  298. \def\telephone#1{\def\telephonenum{#1}}
  299. \def\telephonenum{}
  300.  
  301. \def\document{\endgroup
  302.   \@colht\textheight  \@colroom\textheight \vsize\textheight
  303.    \columnwidth\textwidth \@clubpenalty\clubpenalty
  304.    \if@twocolumn \advance\columnwidth -\columnsep
  305.       \divide\columnwidth\tw@ \hsize\columnwidth \@firstcolumntrue
  306.    \fi
  307.   \hsize\columnwidth \linewidth\hsize
  308.   \begingroup\@floatplacement\@dblfloatplacement\endgroup
  309.   \if@filesw \immediate\openout\@mainaux=\jobname.aux
  310.    \immediate\write\@mainaux
  311.     {\string\startlabels\string\@startlabels}\fi
  312.   \csname process@table\endcsname
  313.   \let\glb@currsize\@empty
  314.   \def\do##1{\let ##1\@notprerr}%
  315.   \@preamblecmds
  316.   \let\do\noexpand
  317.   \@normalsize\everypar{}\@noskipsecfalse}
  318.  
  319. \def\enddocument{\@checkend{document}\newpage\begingroup
  320. \if@filesw \immediate\closeout\@mainaux
  321. \makeatletter\input \jobname.aux\clearpage
  322. \fi\endgroup\deadcycles\z@\@@end}
  323.  
  324. \def\makelabels{\@fileswtrue}
  325.  
  326. \def\@startlabels{}
  327.  
  328. \def\@texttop{\ifnum\c@page=1\vskip \z@ plus.00006fil\relax\fi}
  329.  
  330. \def\ps@headings{\def\@oddhead{\sl \headtoname{} \ignorespaces\toname
  331.     \hfil \@date
  332.     \hfil \pagename{} \thepage}\def\@oddfoot{}}
  333.  
  334. \def\ps@empty{\def\@oddhead{}\def\@oddfoot{}%
  335. \def\@evenhead{}\def\@evenfoot{}}
  336.  
  337. \def\ps@firstpage{\def\@oddhead{}\def\@oddfoot{\raisebox
  338.    {-45\p@}[\z@]{\hbox to \textwidth{\hspace*{100\p@}%
  339.     \ifcase \@ptsize\relax
  340.       \normalsize
  341.     \or
  342.       \small
  343.     \or
  344.       \footnotesize
  345.     \fi
  346.     \fromlocation \hfill \telephonenum}}\hss}%
  347.   \def\@evenhead{}\def\@evenfoot{}}
  348.  
  349. \def\ps@plain{\def\@oddhead{}\def\@oddfoot{\rm\hfil\thepage
  350.      \hfil}\def\@evenhead{}\let\@evenfoot\@oddfoot}
  351.  
  352. \parskip .7em
  353. \parindent 0pt
  354.  
  355. \partopsep 0pt
  356.  
  357. \@lowpenalty   51
  358. \@medpenalty  151
  359. \@highpenalty 301
  360.  
  361. \@beginparpenalty -\@lowpenalty
  362.  
  363. \@endparpenalty   -\@lowpenalty
  364.  
  365. \@itempenalty     -\@lowpenalty
  366.  
  367. \leftmargini   2.5em
  368. \leftmarginii  2.2em
  369. \leftmarginiii 1.87em
  370. \leftmarginiv  1.7em
  371. \leftmarginv   1em
  372. \leftmarginvi  1em
  373.  
  374. \leftmargin\leftmargini
  375. \labelwidth\leftmargini\advance\labelwidth-\labelsep
  376. \labelsep 5pt
  377. \parsep 0pt
  378.  
  379. \def\@listI{\leftmargin\leftmargini
  380.  \topsep .4em\relax
  381.  \itemsep .4em\relax}
  382.  
  383. \let\@listi\@listI
  384. \@listi
  385.  
  386. \def\@listii{\leftmargin\leftmarginii
  387.    \labelwidth\leftmarginii\advance\labelwidth-\labelsep}
  388.  
  389. \def\@listiii{\leftmargin\leftmarginiii
  390.     \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
  391.     \topsep .2em
  392.     \itemsep \topsep}
  393.  
  394. \def\@listiv{\leftmargin\leftmarginiv
  395.      \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
  396.  
  397. \def\@listv{\leftmargin\leftmarginv
  398.      \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
  399.  
  400. \def\@listvi{\leftmargin\leftmarginvi
  401.      \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
  402.  
  403. \def\labelenumi{\theenumi.}
  404. \def\theenumi{\arabic{enumi}}
  405.  
  406. \def\labelenumii{(\theenumii)}
  407. \def\theenumii{\alph{enumii}}
  408. \def\p@enumii{\theenumi}
  409.  
  410. \def\labelenumiii{\theenumiii.}
  411. \def\theenumiii{\roman{enumiii}}
  412. \def\p@enumiii{\theenumi(\theenumii)}
  413.  
  414. \def\labelenumiv{\theenumiv.}
  415. \def\theenumiv{\Alph{enumiv}}
  416. \def\p@enumiv{\p@enumiii\theenumiii}
  417.  
  418. \def\labelitemi{$\m@th\bullet$}
  419. \def\labelitemii{\bf --}
  420. \def\labelitemiii{$\m@th\ast$}
  421. \def\labelitemiv{$\m@th\cdot$}
  422.  
  423. \def\verse{\let\\=\@centercr
  424.   \list{}{\itemsep\z@ \itemindent -15\p@\listparindent \itemindent
  425.           \rightmargin\leftmargin\advance\leftmargin 15\p@}\item[]}
  426. \let\endverse\endlist
  427.  
  428. \def\quotation{\list{}{\listparindent 1.5em
  429.     \itemindent\listparindent
  430.     \rightmargin\leftmargin}\item[]}
  431. \let\endquotation=\endlist
  432.  
  433. \def\quote{\list{}{\rightmargin\leftmargin}\item[]}
  434. \let\endquote=\endlist
  435.  
  436. \def\descriptionlabel#1{\hspace\labelsep \bf #1}
  437. \def\description{\list{}{\labelwidth\z@ \itemindent-\leftmargin
  438.        \let\makelabel\descriptionlabel}}
  439.  
  440. \let\enddescription\endlist
  441.  
  442. \def\theequation{\arabic{equation}}
  443.  
  444. \arraycolsep 5pt
  445.  
  446. \tabcolsep 6pt
  447.  
  448. \arrayrulewidth .4pt
  449. \doublerulesep 2pt
  450.  
  451. \tabbingsep \labelsep
  452.  
  453. \skip\@mpfootins = \skip\footins
  454.  
  455. \fboxsep = 3pt
  456.  
  457. \fboxrule = .4pt
  458.  
  459. \def\footnoterule{\kern-1\p@
  460.   \hrule width .4\columnwidth
  461.   \kern .6\p@}
  462.  
  463. \long\def\@makefntext#1{\noindent
  464.     \hangindent 5\p@\hbox
  465.     to5\p@{\hss $\m@th^{\@thefnmark}$}#1}
  466.  
  467. \c@topnumber=2
  468. \def\topfraction{.7}
  469. \c@bottomnumber=1
  470. \def\bottomfraction{.3}
  471. \c@totalnumber=3
  472. \def\textfraction{.2}
  473. \def\floatpagefraction{.5}
  474. \c@dbltopnumber= 2
  475. \def\dbltopfraction{.7}
  476. \def\dblfloatpagefraction{.5}
  477.  
  478. \def\today{\ifcase\month\or
  479.   January\or February\or March\or April\or May\or June\or
  480.   July\or August\or September\or October\or November\or December\fi
  481.   \space\number\day, \number\year}
  482.  
  483. \smallskipamount=.5\parskip
  484.  
  485. \medskipamount=\parskip
  486. \bigskipamount=2\parskip
  487.  
  488. \ps@plain
  489. \pagenumbering{arabic}
  490. \onecolumn
  491. \@fileswfalse
  492.  
  493. \endinput
  494.