\typeout{Document Style 'UMDEE-letter'.
Derived from other versions and letter.sty by RIG.}

% letterhead stuff added:

% From U. of Maryland with modifications by RIG
\def\letterhead{\universityletterhead} % RIG modification 3/20/90

\newdimen\nameboxindentation \nameboxindentation=3.8truein
\font\smallheadfont=cmss10 at 10.95truept
\font\largeheadfont=cmss10 at 14.4truept 
\font\smallsmallheadfont=cmss8 at 8truept
\font\smallnameheadfont=cmss9 at 9truept
\input umlogo.tex
\def\umlogoline{\hbox to \hsize{\leaders\hrule height1.65truept \hskip .3truein
                \umlogo\kern4.5truept\leaders\hrule height 1.65truept\hfill}}
\def\namebox{\vbox{\parindent=\nameboxindentation
   \parskip=0pt  % added by RIG
   \baselineskip=7.6truept
   \vskip 1truept
   \smallnameheadfont
   \par \ifx\@empty\fromname\fromsig\else\fromname\fi
   \vskip1truept\smallsmallheadfont
   \ifx\fromlocation\@empty\else\par \fromlocation\fi
   \ifx\telephonenum\@empty\else\par Telephone: \telephonenum\fi
   \ifx\netaddress\@empty\else\par Electronic mail: \netaddress\fi
   \ifx\faxnum\@empty\else\par Fax: \faxnum\fi}}
\def\universityletterhead{
   {\smallheadfont \centerline {Department of Electrical Engineering}}
   \vskip 2truept
   {\largeheadfont \centerline {University of Maryland}}
   \vskip 2truept
   {\smallheadfont \centerline {College Park, MD 20742%-3025
}}
   \vglue -15truept
   \umlogoline
   \namebox
   \bigskip
}

% redefine \letter, \opening, and \closing

\long\def\letter#1{\newpage
 \c@page\@ne
 \interlinepenalty=200 \@processto{#1}
 \ifx\@empty\fromaddress
 \thispagestyle{firstpage}
 \letterhead % added by RIG
 \noindent\hspace*{\longindentation}\@date\par % RIG modification
 \else \thispagestyle{empty} 
 {\raggedleft\begin{tabular}{l}\ignorespaces\fromaddress \\*[2\parskip]
 \@date \end{tabular}\par}
 \fi
 \vspace{2\parskip}
}

\def\opening#1{
 {\raggedright \toname \\ \toaddress \par}\vspace{2\parskip}
 \noindent #1\par\nobreak} % \noindent added by RIG in case \parindent not 0
\long\def\closing#1{\par\nobreak\vspace{\parskip} 
 \stopbreaks
 \noindent
 \hspace*{\longindentation}% RIG: Was in \if to be done only if \address used.
 \parbox{\indentedwidth}{\raggedright
 \ignorespaces #1\\[6\medskipamount] \ifx\@empty\fromsig 
 \fromname
 \else \fromsig \fi\strut}
 \par}

% add \netaddress and \faxnum for use by letterhead

\def\email#1{\def\netaddress{#1}} % two lines added by RIG
\def\netaddress{}
\def\fax#1{\def\faxnum{#1}}  % two lines added by RIG
\def\faxnum{}

% redefine \ps@firstpage

\def\ps@firstpage{\def\@oddhead{}\def\@oddfoot{}
\def\@evenhead{}\def\@evenfoot{}
}
