%        File: !comp!expand("%:p:t")!comp!
%          By: H.A.Trujillo
%     Created: !comp!strftime("%a %e %b %Y, %H:%M %Z")!comp!
% Last Change:     21 Aug 2014
%    Template: 28 Jan 2014

% Fits a letter onto Wilkes letterhead.  
%    Can also generate the letterhead itself (for PDF letters)
%    and the letterhead with a "Fax-To" box.

\documentclass[10pt]{letter}
\usepackage[utf8]{inputenc} 
%\usepackage{amsmath} 
%\usepackage[osf]{mathpazo}		%     Palatino
\usepackage{cfr-lm}
\usepackage{fancyhdr}
\usepackage[margin=1in,bottom=0.75in]{geometry}	
%   \geometry{rmargin=3in}		%     Large margin for editing
    \setlength{\footskip}{35pt}
    \setlength{\headsep}{20pt}		
    \setlength{\parindent}{0pt}		% default is to indent ~1/4"
\usepackage{microtype}
\usepackage{setspace}
%\usepackage[usenames,dvipsnames]{xcolor} 				%#d
%\usepackage{tikz}							%#d
%
\newenvironment{headers}{\singlespacing}{}
\newlength{\parspread}
%	footer
\thispagestyle{fancy}
\fancyhfoffset[R]{40pt}
\rfoot {\sf \footnotesize \begin{tabular}{p{3ex}l}
	  XXX\\[5pt]
          Tel: & (xxx) xxx-xxxx\\
	  Fax: & (xxx) xxx-xxxx\\[2pt]
	  XXX\kern 0.5pt{@}\kern 0.5pt MyDomain.xxx
      \end{tabular}}
\cfoot{}
\renewcommand{\headrulewidth}{0pt}
\raggedright


%%%   Values to tweak to Resize the Document  %%% 
\setlength{\parspread}{5.3\parskip plus 5mm minus 2\parskip} % gap between blocks
\setlength{\parskip}{3ex plus 0.5ex minus 1.2ex}	     % gap between paragraphs
\linespread{1.25}
%%% 


\begin{document}

%%%   MULTI-PAGE	<<<
%%%	Uncomment this block if >1 page...
%
%\renewcommand{\thepage}{-- \arabic{page} \kern -0.10ex --}
%\cfoot{\thepage\hspace*{40pt}} 
%\addtolength{\footskip}{5pt}\addtolength{\textheight}{-5pt}
%%
%%	...and place the following *at* the page-break if also using FlyingW
%%	   	caution: this inserts a \clearpage
%%\newgeometry{margin=1in}						%#d
%%>>>

%% 	`mkdraft' to generate Flying-W header
%%%   FLYING-W	  <<<
%
% \colorlet{fwYell}{Goldenrod}						%#d
% \colorlet{fwBlue}{black!40!blue}					%#d

% \lhead{\vspace*{3mm}\hspace*{-18mm}					%#d
%     \parbox[b]{3.4cm}{ \centering					%#d
%	 \input FlyingW.tex \\[-3pt]					%#d
%	 \color{fwBlue} \bf\textsf{\Large WILKES\\[3pt]UNIVERSITY}      %#d
%	 \vspace*{-5 mm}						%#d
%     }    								%#d
%     {\color{fwBlue}\hrulefill} 					%#d
% } 									%#d
% \rhead{\small\sf \color{fwBlue} 84 W. South Street\\Wilkes-Barre\\ 	%#d
%       Pennsylvania 18766\\(570)\,408-5000\\\textbf{www.wilkes.edu}\\	%#d
% }									%#d
%		  
%%>>>

\newlength{\BodyIndent}
\setlength{\BodyIndent} {0 mm}	% Adjust (0-30 mm) to tweak margins

% <<<
\begin{headers}
\vspace*{10.7 mm}
{\flushright \sf {\emph{\small XYZ Department}}\par}
\advance\leftskip\BodyIndent
\advance\rightskip\BodyIndent  %>>>

%%	`mkdraft' then uncomment for Fax Address-Box
%%%   FAX Address-Box			<<<
%
%%{\centering\framebox{\framebox{\small \begin{tabular}{l@{ }p{1.5in}r@{ }l}%#d
%%	To:    		& YYY	& Fax:& YYY \\	%#d
%%	\quad attn:	& YYY	& Tel\,:&YYY\\	%#d
%%	From:  & YYY	\\	%#d
%%	Pages: & {\lstyle YYY} \\		%#d
%%	Re:    & \mbox{YYY}			%#d
%%    \end{tabular} }}\par}			%#d

\addvspace {0.75\BodyIndent}
\addvspace {15pt}
%% >>>

<+ DATE +>

\vskip \parspread
{\obeycr
    <+ ADDRESS +>
}

\vskip \parspread

Dear <++>:

\end{headers} 			%<<<
\advance\leftskip \BodyIndent
\advance\rightskip\BodyIndent	%>>>

<+ BODY +>

\vskip \parspread \parbox{2in}{	
		Sincerely,
\vskip 6ex	XXX }


%%%   Enclosures, etc	<<<
% cc: ?
%
%\vfill\vfill\small
%\begin{tabular}{ll} 
%cc:&XXXX, Title\\
%   &XXXX, Title
%\end{tabular}
%\vfill
%>>>

\end{document}


%							 vim: tw=75 nowrap
