% LETTER DOCUMENT STYLE -- version 0.6 for LaTeX version 0.9

\warning{Document Style 'letter' -- version 0.6 for LaTeX version 0.9}
\warning{}


%    ****************************************
%    *           LETTER COMMANDS            *
%    ****************************************
%
%  The letter environment: creates a new letter, starting from
%  page 1.  (First page unnumbered.)  Skips appropriate space at
%  top of first page.
%
%  \date : creates a date line, left-justified for SRI style
%  \opening{TXT}: argument the opening salutation -- e.g., "Dear Henry,"
%  \closing{TXT}: argument the closing salutation -- e.g., "Sincerely,"
%  \signed{TXT}:  the writer's name -- leaves a blank space above it for
%            the signature
%
%  cc environment (also, \cc{...} for short: a list of people, separated
%    by \CR's
% 
%  address environment: the address of the sendee, with lines separated
%    by \CR.
%
\def\~beginletter{\newpage\thispagestyle{empty}\setpagenumber{1}\vspacer
{.15in}\vskip 0pt plus .5fil minus .15in}
\def\~endletter{\newpage}

\def\date{\par\noindent\today\par}

\def\opening#1{\par\noindent #1\par}

\def\closing#1{\nopagebreak\par\noindent #1\nopagebreak\par}

\def\signed#1{\nopagebreak\par\vspace{.3in}\noindent #1\par}

\def\~beginaddress{\par\vspace{.2in}\~beginflushleft}
\def\~endaddress{\~endflushleft}

\def\~ds~eleven{\input eleven.sty \parindent 0pt
\def\~parskip{10pt plus 1.2pt}\parskip\~parskip}

\def\~ds~twelve{\input twelve.sty \parindent 0pt
\def\~parskip{11pt plus 1.3pt}\parskip\~parskip}

\def\~begincc{\def\CR{\par}\def\CRSP##1{\vspace{##1}\par\ignorespaces}%
\~beginlist{}{\parsep{0pt}\leftmarginof{cc:\hspace{\~d~labelsep}}%
\labelwidthof{cc:}}\labelitem{cc:}}
\def\~endcc{\~endlist}

\def\cc#1{\begin{cc}#1\end{cc}}


%    ****************************************
%    *               FONTS                  *
%    ****************************************
%
% THESE DEFINITIONS ARE ALL TEMPORARY UNTIL MORE FONTS ARE
% LOADED.

\let\~mainsize=\tenpoint
\tenpoint
\def\~parskip{9pt plus 1pt}
\parskip\~parskip
\parindent 0pt

% Environment names for type styles
% Note that the \~end... commands are left undefined, since
% TeX turns an undefined \begincsname ... \endcsname into \relax

\def\~beginroman{\rm\ignorespaces}
\def\~beginitalic{\it\ignorespaces}
\def\~begintypewriter{\tt\ignorespaces}
\def\~beginboldface{\bf\ignorespaces}
\def\~beginsansserif{\sf\ignorespaces}
\def\~beginsmallcaps{\sc\ignorespaces}

% type size commands

\def\~beginnormal{\tenpoint\def\~parskip{4pt plus 1pt}\parskip\~parskip
    \ignorespaces}

\def\tit{\twelvepoint\def\~parskip{5pt plus 2pt}\parskip\~parskip}
\def\~begintitle{\tit\ignorespaces}

\def\Tit{\eighteenpoint}
\def\~beginTitle{\Tit\ignorespaces}

\def\~beginsmall{\ninepoint\def\~parskip{3pt plus 1pt}\parskip\~parskip
      \ignorespaces}
\def\~beginfootnotesize{\eightpoint
     \def\~parskip{3pt plus 1pt}\parskip\~parskip\ignorespaces}

\def\~beginscriptsize{\sevenpoint
     \def\~parskip{3pt plus 1pt}\parskip\~parskip\ignorespaces}



%    ****************************************
%    *            PAGE STYLES               *
%    ****************************************
%
%  
%  Only styles available are:
%    empty 
%    plain  - page numbers at bottom of page
%    topnum - page numbers at top of page
%



\def\~ps~empty{\def\~oddhead{}\def\~oddfoot{}%
\def\~evenhead{}\def\~evenfoot{}}

\def\~ps~plain{\def\~oddhead{}\def\~oddfoot{\rm\hfil\~pagenum
     \hfil}\def\~evenhead{}\def\~evenfoot{\rm\hfil
     \~pagenum\hfil}}

\def\~ps~topnum{\def\~oddfoot{}\def\~oddhead{\rm\hfil\~pagenum
     \hfil}\def\~evenfoot{}\def\~evenhead{\rm\hfil
     \~pagenum\hfil}}





%    ****************************************
%    *           ENVIRONMENTS               *
%    ****************************************
%

% DEFAULT VALUES FOR list ENVIRONMENT
\def\~d~leftmargin{15pt}
\def\~d~labelwidth{11pt}
\def\~d~labelsep{4pt}


%                PARAGRAPH-FORMATTING ENVIRONMENTS
%                ---------------------------------
% VERSE
%   \CR ends line
%   Line continuations indented further.
%   Blank line makes new paragraph with \parskip space
%
\def\~beginverse{\def\CR{\item}\def\CRSP##1{\par\vskip ##1 \item}\~beginlist
      {}{\itemsep{0pt}
      \listparindent{-15pt}\leftmargin{30pt}\rightmargin{15pt}}\item}
\let\~endverse=\~endlist

% QUOTATION
%   Fills lines
%   Indents paragraph
%   
\def\~beginquotation{\~beginlist{}{\listparindent{15pt}}\item}
\let\~endquotation=\~endlist

% QUOTE -- same as quotation except no paragraph indentation,
\def\~beginquote{\~beginlist{}{}\item}
\let\~endquote=\~endlist

%                 LIST-MAKING ENVIRONMENTS
%                 ------------------------
%
% PARAMETERS FOR enumerate

\namedef{~co~enum1}{\~arabic{\backslash{~c~enum1}}.}
\namedef{~co~enum2}{(\~alph{\backslash{~c~enum2}})}
\namedef{~co~enum3}{\~roman{\backslash{~c~enum3}}.}
\namedef{~co~enum4}{\~Alph{\backslash{~c~enum4}}.}
\pnamedef{~cr~enum1}{#1}{\~arabic{#1}}
\pnamedef{~cr~enum2}{#1#2}{\~arabic{#1}(\~alph{#2})}
\pnamedef{~cr~enum3}{#1#2#3}{\~arabic{#1}(\~alph{#2})\~roman{#3}}
\pnamedef{~cr~enum4}{#1#2#3#4}{\~arabic{#1}(\~alph{#2})\~roman{#3}-\~Alph{#4}}
\namedef{~ca~enum1}{{\backslash{~c~enum1}}}
\namedef{~ca~enum2}{{\backslash{~c~enum1}}{\backslash{~c~enum2}}}
\namedef{~ca~enum3}{\backslash{~ca~enum2}{\backslash{~c~enum3}}}
\namedef{~ca~enum4}{\backslash{~ca~enum3}{\backslash{~c~enum4}}}
\namedef{~enum1margin}{26pt} 
\namedef{~enum2margin}{25pt}
\namedef{~enum3margin}{25pt}
\namedef{~enum4margin}{25pt}
\~definecounter{enum1}
\~definecounter{enum2}
\~definecounter{enum3}
\~definecounter{enum4}

% PARAMETERS FOR itemize

\namedef{~item1}{$\bullet$}
\namedef{~item2}{--}
\namedef{~item3}{$\ast$}
\namedef{~item4}{$\cdot$}
\namedef{~item1margin}{26pt}
\namedef{~item2margin}{25pt}
\namedef{~item3margin}{25pt}
\namedef{~item4margin}{25pt}


% ARRAY AND TABULAR ENVIRONMENT PARAMETERS
% TEMPORARY DEFINITIONS

\def\~ar~spacer{\hbox to 11pt{}}
\def\~ar~rule{\hbox to 5.3pt{}\vrule width .4pt\hbox to 5.3pt{}}
\def\~tb~spacer{\hbox to 11pt{}}
\def\~tb~rule{\hbox to 5.3pt{}\vrule width .4pt\hbox to 5.3pt{}}
\def\~tb~lrule{\vrule width .4pt\hbox to 5.3pt{}}
\def\~tb~rrule{\hbox to 5.3pt{}\vrule width .4pt}
\def\hline{\hrule height .4pt}



%    ****************************************
%    *          MISCELLANEOUS               *
%    ****************************************
%
% Spacing and rule width for \boxit
%
\def\~maxmsgs{24} 
\def\~boxitsep{.2em}
\def\~boxitrule{.4pt}
% 
% Date

\def\today{\ifcase\the\month\or
  January\or February\or March\or April\or May\or June\or
  July\or August\or September\or October\or November\or December\fi
  \space\number\the\day, \number\the\year}




%    ****************************************
%    *             FOOTNOTES                *
%    ****************************************
%
\def\~footinsertskip{10pt plus2pt minus4pt}
\def\~topinsertskip{11pt plus2pt minus4pt}
\def\~topinsertskipdim{11pt}
\def\~footruleheight{.4pt}
\def\~footruleshift{4pt}
\setdimen\~footinsert=\textheight
\setskip\~footinsert=\~footinsertskip
%TEMPORARY DEFINITION
\splittopskip=9pt  %broken footnotes will have this as the top baseline
\~definecounter{footnote}
\def\~co~footnote{\~arabic{\~c~footnote}}
\def\~cr~footnote#1{\~arabic{#1}}
\def\~makefootnote#1#2{\eightpoint\par\noindent\hangindent 5pt\hbox 
    to 5pt{\hss $^{#1}$}\strut #2\strut}



%  EQUATION 
%
%\~addtoreset{equation}{chapter}
\def\~co~equation{(\~arabic{\~c~equation})}
\def\~ca~equation{{\~c~equation}}
\def\~cr~equation#1#2{\~arabic{#2}}
%\def\~cra~equation#1#2{\~cra~chapter{#1}.\~arabic{#2}}




%    ****************************************
%    *           INITIALIZATION             *
%    ****************************************
% Default initializations
\~ps~plain
\pagenumbering{arabic}
\~makesinglecolumn
\nofiles
% TEMPORARY
\let\~ps~endchapter=\~ps~plain

