Debian Codegraph @

texmf-dist/tex/latex/extsizes/extletter.cls

raw
1 %% This is file `extletter.cls',
2 %% Copyright 1993 1994 1995 1996 1997 1998 1999
3 %% The LaTeX3 Project and any individual authors listed elsewhere
4 %% in this file.
5 \NeedsTeXFormat{LaTeX2e}[1996/06/01]
6 \ProvidesClass{extletter}
7 [1999/02/09 v1.2z
8 NON-Standard LaTeX document class]
9 \newcommand\@ptsize{}
10 \DeclareOption{a4paper}
11 {\setlength\paperheight {297mm}%
12 \setlength\paperwidth {210mm}}
13 \DeclareOption{a5paper}
14 {\setlength\paperheight {210mm}%
15 \setlength\paperwidth {148mm}}
16 \DeclareOption{b5paper}
17 {\setlength\paperheight {250mm}%
18 \setlength\paperwidth {176mm}}
19 \DeclareOption{letterpaper}
20 {\setlength\paperheight {11in}%
21 \setlength\paperwidth {8.5in}}
22 \DeclareOption{legalpaper}
23 {\setlength\paperheight {14in}%
24 \setlength\paperwidth {8.5in}}
25 \DeclareOption{executivepaper}
26 {\setlength\paperheight {10.5in}%
27 \setlength\paperwidth {7.25in}}
28 \DeclareOption{landscape}
29 {\setlength\@tempdima {\paperheight}%
30 \setlength\paperheight {\paperwidth}%
31 \setlength\paperwidth {\@tempdima}}
32 \DeclareOption{8pt}{\renewcommand\@ptsize{8}}
33 \DeclareOption{9pt}{\renewcommand\@ptsize{9}}
34 \DeclareOption{10pt}{\renewcommand\@ptsize{10}}
35 \DeclareOption{11pt}{\renewcommand\@ptsize{11}}
36 \DeclareOption{12pt}{\renewcommand\@ptsize{12}}
37 \DeclareOption{14pt}{\renewcommand\@ptsize{14}}
38 \DeclareOption{17pt}{\renewcommand\@ptsize{17}}
39 \DeclareOption{20pt}{\renewcommand\@ptsize{20}}
40 \DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
41 \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
42 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
43 \DeclareOption{final}{\setlength\overfullrule{0pt}}
44 \DeclareOption{leqno}{\input{leqno.clo}}
45 \DeclareOption{fleqn}{\input{fleqn.clo}}
46 \ExecuteOptions{letterpaper,10pt,oneside,onecolumn,final}
47 \ProcessOptions
48 \def\EC@family#1#2#3#4#5{%
49 \DeclareFontShape{#1}{#2}{#3}{#4}%
50 {<5><6><7><8><9><10><10.95><12><14.4>%
51 <17.28><20.74><24.88><29.86><35.83><42.99><51.59>genb*#5}{}}
52 \EC@family{T1}{cmr}{m}{n}{ecrm}
53 \EC@family{T1}{cmr}{m}{sl}{ecsl}
54 \EC@family{T1}{cmr}{m}{it}{ecti}
55 \EC@family{T1}{cmr}{m}{sc}{eccc}
56 \EC@family{T1}{cmr}{bx}{n}{ecbx}
57 \EC@family{T1}{cmr}{b}{n}{ecrb}
58 \EC@family{T1}{cmr}{bx}{it}{ecbi}
59 \EC@family{T1}{cmr}{bx}{sl}{ecbl}
60 \EC@family{T1}{cmr}{bx}{sc}{ecxc}
61 \EC@family{T1}{cmr}{m}{ui}{ecui}
62 \DeclareFontShape{OT1}{cmr}{m}{n}%
63 {<5><6><7><8><9><10><12>gen*cmr%
64 <10.95>cmr10%
65 <14.4>cmr12%
66 <17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmr17}{}
67 \DeclareFontShape{OT1}{cmr}{m}{sl}%
68 {<5><6><7>cmsl8%
69 <8><9>gen*cmsl%
70 <10><10.95>cmsl10%
71 <12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmsl12%
72 }{}
73 \DeclareFontShape{OT1}{cmr}{m}{it}%
74 {<5><6><7>cmti7%
75 <8>cmti8%
76 <9>cmti9%
77 <10><10.95>cmti10%
78 <12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmti12%
79 }{}
80 \DeclareFontShape{OT1}{cmr}{m}{sc}%
81 {<5><6><7><8><9><10><10.95><12>%
82 <14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmcsc10%
83 }{}
84 \DeclareFontShape{OT1}{cmr}{m}{ui}
85 {<5><6><7><8><9><10><10.95><12>%
86 <14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmu10%
87 }{}
88 \DeclareFontShape{OT1}{cmr}{b}{n}
89 {<5><6><7><8><9><10><10.95><12>%
90 <14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmb10%
91 }{}
92 \DeclareFontShape{OT1}{cmr}{bx}{n}
93 {<5><6><7><8><9>gen*cmbx%
94 <10><10.95>cmbx10%
95 <12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmbx12%
96 }{}
97 \DeclareFontShape{OT1}{cmr}{bx}{sl}
98 {<5><6><7><8><9>%
99 <10><10.95><12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmbxsl10%
100 }{}
101 \DeclareFontShape{OT1}{cmr}{bx}{it}
102 {<5><6><7><8><9>%
103 <10><10.95><12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmbxti10%
104 }{}
105 \input{size\@ptsize.clo}
106 \RequirePackage{exscale}
107 \setlength\lineskip{1\p@}
108 \setlength\normallineskip{1\p@}
109 \renewcommand\baselinestretch{}
110 \setlength\parskip{0.7em}
111 \setlength\parindent{0\p@}
112 \@lowpenalty 51
113 \@medpenalty 151
114 \@highpenalty 301
115 \setlength\headheight{12\p@}
116 \setlength\headsep {45\p@}
117 \setlength\footskip{25\p@}
118 \setlength\@tempdima{\paperwidth}
119 \addtolength\@tempdima{-2in}
120 \addtolength\@tempdima{-\textwidth}
121 \setlength\oddsidemargin {.5\@tempdima}
122 \setlength\evensidemargin {\oddsidemargin}
123 \setlength\marginparwidth {90\p@}
124 \setlength\marginparsep {11\p@}
125 \setlength\marginparpush{5\p@}
126 \setlength\topmargin{27pt}
127 \setlength\footnotesep{12\p@}
128 \setlength{\skip\footins}{10\p@ \@plus 2\p@ \@minus 4\p@}
129 \if@twoside
130 \def\ps@headings{%
131 \let\@oddfoot\@empty\let\@evenfoot\@empty
132 \def\@oddhead{\slshape\headtoname{} \ignorespaces\toname
133 \hfil \@date
134 \hfil \pagename{} \thepage}%
135 \let\@evenhead\@oddhead}
136 \else
137 \def\ps@headings{%
138 \let\@oddfoot\@empty
139 \def\@oddhead{\slshape\headtoname{} \ignorespaces\toname
140 \hfil \@date
141 \hfil \pagename{} \thepage}}
142 \fi
143 \def\ps@empty{%
144 \let\@oddfoot\@empty\let\@oddhead\@empty
145 \let\@evenfoot\@empty\let\@evenhead\@empty}
146 \def\ps@firstpage{%
147 \let\@oddhead\@empty
148 \def\@oddfoot{\raisebox{-45\p@}[\z@]{%
149 \hb@xt@\textwidth{\hspace*{100\p@}%
150 \ifcase \@ptsize\relax
151 \normalsize
152 \or
153 \small
154 \or
155 \footnotesize
156 \fi
157 \fromlocation \hfill \telephonenum}}\hss}}
158 \def\ps@plain{%
159 \let\@oddhead\@empty
160 \def\@oddfoot{\normalfont\hfil\thepage\hfil}%
161 \def\@evenfoot{\normalfont\hfil\thepage\hfil}}
162 \newcommand*{\name}[1]{\def\fromname{#1}}
163 \newcommand*{\signature}[1]{\def\fromsig{#1}}
164 \newcommand*{\address}[1]{\def\fromaddress{#1}}
165 \newcommand*{\location}[1]{\def\fromlocation{#1}}
166 \newcommand*{\telephone}[1]{\def\telephonenum{#1}}
167 \name{}
168 \signature{}
169 \address{}
170 \location{}
171 \telephone{}
172 \newcommand*{\makelabels}{%
173 \AtBeginDocument{%
174 \let\@startlabels\startlabels
175 \let\@mlabel\mlabel
176 \if@filesw
177 \immediate\write\@mainaux{\string\@startlabels}\fi}%
178 \AtEndDocument{%
179 \if@filesw\immediate\write\@mainaux{\string\clearpage}\fi}}
180 \@onlypreamble\makelabels
181 \newenvironment{letter}[1]
182 {\newpage
183 \if@twoside \ifodd\c@page
184 \else\thispagestyle{empty}\null\newpage\fi
185 \fi
186 \c@page\@ne
187 \c@footnote\@ne
188 \interlinepenalty=200 % smaller than the TeXbook value
189 \@processto{\leavevmode\ignorespaces #1}}
190 {\stopletter\@@par\pagebreak\@@par
191 \if@filesw
192 \begingroup
193 \let\\=\relax
194 \let\protect\@unexpandable@protect
195 \immediate\write\@auxout{%
196 \string\@mlabel{\returnaddress}{\toname\\\toaddress}}%
197 \endgroup
198 \fi}
199 \long\def\@processto#1{%
200 \@xproc #1\\@@@%
201 \ifx\toaddress\@empty
202 \else
203 \@yproc #1@@@%
204 \fi}
205 \long\def\@xproc #1\\#2@@@{\def\toname{#1}\def\toaddress{#2}}
206 \long\def\@yproc #1\\#2@@@{\def\toaddress{#2}}
207 \newcommand*{\stopbreaks}{%
208 \interlinepenalty\@M
209 \def\par{\@@par\nobreak}%
210 \let\\\@nobreakcr
211 \let\vspace\@nobreakvspace}
212 \DeclareRobustCommand\@nobreakvspace
213 {\@ifstar\@nobreakvspacex\@nobreakvspacex}
214 \def\@nobreakvspacex#1{%
215 \ifvmode
216 \nobreak\vskip #1\relax
217 \else
218 \@bsphack\vadjust{\nobreak\vskip #1}\@esphack
219 \fi}
220 \def\@nobreakcr{\@ifstar{\@normalcr*}{\@normalcr*}}
221 \newcommand*{\startbreaks}{%
222 \let\\\@normalcr
223 \interlinepenalty 200%
224 \def\par{\@@par\penalty 200\relax}}
225 \newdimen\longindentation
226 \longindentation=.5\textwidth
227 \newdimen\indentedwidth
228 \indentedwidth=\textwidth
229 \advance\indentedwidth -\longindentation
230 \newcommand*{\opening}[1]{\ifx\@empty\fromaddress
231 \thispagestyle{firstpage}%
232 {\raggedleft\@date\par}%
233 \else % home address
234 \thispagestyle{empty}%
235 {\raggedleft\begin{tabular}{l@{}}\ignorespaces
236 \fromaddress \\*[2\parskip]%
237 \@date \end{tabular}\par}%
238 \fi
239 \vspace{2\parskip}%
240 {\raggedright \toname \\ \toaddress \par}%
241 \vspace{2\parskip}%
242 #1\par\nobreak}
243 \newcommand{\closing}[1]{\par\nobreak\vspace{\parskip}%
244 \stopbreaks
245 \noindent
246 \ifx\@empty\fromaddress\else
247 \hspace*{\longindentation}\fi
248 \parbox{\indentedwidth}{\raggedright
249 \ignorespaces #1\\[6\medskipamount]%
250 \ifx\@empty\fromsig
251 \fromname
252 \else \fromsig \fi\strut}%
253 \par}
254 \medskipamount=\parskip
255 \newcommand*{\cc}[1]{%
256 \par\noindent
257 \parbox[t]{\textwidth}{%
258 \@hangfrom{\normalfont\ccname: }%
259 \ignorespaces #1\strut}\par}
260 \newcommand*{\encl}[1]{%
261 \par\noindent
262 \parbox[t]{\textwidth}{%
263 \@hangfrom{\normalfont\enclname: }%
264 \ignorespaces #1\strut}\par}
265 \newcommand*{\ps}{\par\startbreaks}
266 \newcommand*{\stopletter}{}
267 \newcommand*{\returnaddress}{}
268 \newcount\labelcount
269 \newcommand*{\startlabels}{\labelcount\z@
270 \pagestyle{empty}%
271 \let\@texttop\relax
272 \topmargin -50\p@
273 \headsep \z@
274 \oddsidemargin -35\p@
275 \evensidemargin -35\p@
276 \textheight 10in
277 \@colht\textheight \@colroom\textheight \vsize\textheight
278 \textwidth 550\p@
279 \columnsep 26\p@
280 \ifcase \@ptsize\relax
281 \normalsize
282 \or
283 \small
284 \or
285 \footnotesize
286 \fi
287 \baselineskip \z@
288 \lineskip \z@
289 \boxmaxdepth \z@
290 \parindent \z@
291 \twocolumn\relax}
292 \let\@startlabels=\relax
293 \newcommand*{\mlabel}[2]{%
294 \parbox[b][2in][c]{262\p@}{\strut\ignorespaces #2}%
295 }
296 \let\@mlabel=\@gobbletwo
297 \setlength\leftmargini {2.5em}
298 \setlength\leftmarginii {2.2em}
299 \setlength\leftmarginiii {1.87em}
300 \setlength\leftmarginiv {1.7em}
301 \setlength\leftmarginv {1em}
302 \setlength\leftmarginvi {1em}
303 \setlength\leftmargin {\leftmargini}
304 \setlength \labelsep {5\p@}
305 \setlength \labelwidth{\leftmargini}
306 \addtolength\labelwidth{-\labelsep}
307 \setlength\partopsep{0\p@}
308 \@beginparpenalty -\@lowpenalty
309 \@endparpenalty -\@lowpenalty
310 \@itempenalty -\@lowpenalty
311 \def\@listI{\setlength\leftmargin{\leftmargini}%
312 \setlength\parsep {0\p@}%
313 \setlength\topsep {.4em}%
314 \setlength\itemsep{.4em}}
315 \let\@listi\@listI
316 \@listi
317 \def\@listii {\setlength \leftmargin{\leftmarginii}%
318 \setlength \labelwidth{\leftmarginii}%
319 \addtolength\labelwidth{-\labelsep}}
320 \def\@listiii{\setlength \leftmargin{\leftmarginiii}%
321 \setlength \labelwidth{\leftmarginiii}%
322 \addtolength\labelwidth{-\labelsep}%
323 \setlength \topsep {.2em}%
324 \setlength \itemsep {\topsep}}
325 \def\@listiv {\setlength \leftmargin{\leftmarginiv}%
326 \setlength \labelwidth{\leftmarginiv}%
327 \addtolength\labelwidth{-\labelsep}}
328 \def\@listv {\setlength \leftmargin{\leftmarginv}%
329 \setlength \labelwidth{\leftmarginv}%
330 \addtolength\labelwidth{-\labelsep}}
331 \def\@listvi {\setlength \leftmargin{\leftmarginvi}%
332 \setlength \labelwidth{\leftmarginvi}%
333 \addtolength\labelwidth{-\labelsep}}
334 \renewcommand\theenumi{\@arabic\c@enumi}
335 \renewcommand\theenumii{\@alph\c@enumii}
336 \renewcommand\theenumiii{\@roman\c@enumiii}
337 \renewcommand\theenumiv{\@Alph\c@enumiv}
338 \newcommand\labelenumi{\theenumi.}
339 \newcommand\labelenumii{(\theenumii)}
340 \newcommand\labelenumiii{\theenumiii.}
341 \newcommand\labelenumiv{\theenumiv.}
342 \renewcommand\p@enumii{\theenumi}
343 \renewcommand\p@enumiii{\theenumi(\theenumii)}
344 \renewcommand\p@enumiv{\p@enumiii\theenumiii}
345 \newcommand\labelitemi{\textbullet}
346 \newcommand\labelitemii{\normalfont\bfseries \textendash}
347 \newcommand\labelitemiii{\textasteriskcentered}
348 \newcommand\labelitemiv{\textperiodcentered}
349 \newenvironment{description}
350 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
351 \let\makelabel\descriptionlabel}}
352 {\endlist}
353 \newcommand*{\descriptionlabel}[1]{\hspace\labelsep
354 \normalfont\bfseries #1}
355 \newenvironment{verse}
356 {\let\\=\@centercr
357 \list{}{\setlength\itemsep{\z@}%
358 \setlength\itemindent{-15\p@}%
359 \setlength\listparindent{\itemindent}%
360 \setlength\rightmargin{\leftmargin}%
361 \addtolength\leftmargin{15\p@}}%
362 \item[]}
363 {\endlist}
364 \newenvironment{quotation}
365 {\list{}{\setlength\listparindent{1.5em}%
366 \setlength\itemindent{\listparindent}%
367 \setlength\rightmargin{\leftmargin}}%
368 \item[]}
369 {\endlist}
370 \newenvironment{quote}
371 {\list{}{\setlength\rightmargin{\leftmargin}}%
372 \item[]}
373 {\endlist}
374 \setlength\arraycolsep{5\p@}
375 \setlength\tabcolsep{6\p@}
376 \setlength\arrayrulewidth{.4\p@}
377 \setlength\doublerulesep{2\p@}
378 \setlength\tabbingsep{\labelsep}
379 \skip\@mpfootins = \skip\footins
380 \setlength\fboxsep{3\p@}
381 \setlength\fboxrule{.4\p@}
382 \renewcommand\theequation{\@arabic\c@equation}
383 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
384 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
385 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
386 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
387 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
388 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\relax}
389 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\relax}
390 \DeclareRobustCommand*{\cal}{\@fontswitch{\relax}{\mathcal}}
391 \DeclareRobustCommand*{\mit}{\@fontswitch{\relax}{\mathnormal}}
392 \renewcommand\footnoterule{%
393 \kern-\p@
394 \hrule \@width .4\columnwidth
395 \kern .6\p@}
396 \long\def\@makefntext#1{%
397 \noindent
398 \hangindent 5\p@
399 \hb@xt@5\p@{\hss\@makefnmark}#1}
400 \newcommand*{\ccname}{cc}
401 \newcommand*{\enclname}{encl}
402 \newcommand*{\pagename}{Page}
403 \newcommand*{\headtoname}{To}
404 \newcommand*{\today}{\ifcase\month\or
405 January\or February\or March\or April\or May\or June\or
406 July\or August\or September\or October\or November\or December\fi
407 \space\number\day, \number\year}
408 \setlength\columnsep{10\p@}
409 \setlength\columnseprule{0\p@}
410 \pagestyle{plain}
411 \pagenumbering{arabic}
412 \raggedbottom
413 \def\@texttop{\ifnum\c@page=1\vskip \z@ plus.00006fil\relax\fi}
414 \onecolumn
415 \endinput