%        File: NewLetterhead.ltx
%          By: H.A.Trujillo
%     Created: Tue  8 Jan 2019, 18:16 EST
% Last Change:      9 Jan 2019
%    Template: Letter_Template.tex, 8 Jan 2019

% 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[T1]{fontenc}		% delete after all fields filled in
%\usepackage{amsmath} 
%\usepackage[osf]{mathpazo}		%     Palatino
\usepackage[oldstylenums]{kpfonts}	%     less chisled than Palatino
    \sfcode"11 0	% make ” inherit interword spacing  (like '' does)
\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{everyshi}
%\usepackage[usenames,dvipsnames]{xcolor} 				%#d
%\usepackage{tikz}							%#d

\newenvironment{headers}{\singlespacing}{}

\newlength{\parspread}
\newlength{\BodyIndent}
\newif\ifFax

%	define “header-font” to match serif masthead (#f) or as sans (#d)
%\let\hdrfont=\sf							%#d
\newcommand{\hdrfont}{\fontfamily{LinuxLibertineT-TLF}\selectfont}	%#f

%	footer
\thispagestyle{fancy}
%\fancyhfoffset[R]{40pt} 						%#d
\fancyhfoffset[R]{22pt} 						%#f
\rfoot {\hdrfont \footnotesize \begin{tabular}{p{3ex}l}
	  Hernando~A.\,Trujillo\\[5pt]
          Tel: & (570) 408-4637\\
	  Fax: & (570) 408-7862\\[2pt]
	  Trujillo\kern 0.5pt{@}\kern 0.5pt Wilkes.edu
      \end{tabular}}
\cfoot{}
\renewcommand{\headrulewidth}{0pt}
\raggedright

\input{$HOME/Ltx/Letterhead_Measurements}       % get letterhead dimensions


%%%   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{\textheight}{-5pt} \footskip=0.5in
%\AtNextShipout{%	1" margins for 2nd pg and beyond		%#f
%    \topmargin=-\headheight \global\advance\topmargin-\the\headsep	%#f
%    \global\footskip=0.45in \global\textheight=9in}			%#f
%%\AtNextShipout{%    reset margins to 1" if using flying-W		%#d
%%    \global\topmargin=-37pt \global\headheight=12 pt \global\headsep=25pt %#d
%%    \global\textheight=9in  \global\footskip=0.45in			%#d
%%    }									%#d
%%>>>

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

% \lhead{\vspace*{5mm}\hspace*{-18mm}					%#d
%   \scalebox{0.80}{%							%#d
%     \parbox[b]{3.4cm}{ \centering					%#d
%	 \input FlyingW.tex \\[-3pt]					%#d
%	 \color{fwBlue} \bf\textsf{\Large WILKES\\[3pt]UNIVERSITY}      %#d
%	 \vspace*{-1 mm}						%#d
%       }								%#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
%		  
%%>>>

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

% <<<
\begin{headers}
%    uncomment as appropriate
%\vspace*{9 mm}% 	    Home Printed BIG blue/yellow flying W	%#d
\vspace*{\MastheadHeight}   % defined in ~/Ltx/Letterhead_Measurements  %#f
%
%{\flushright \sf {\emph{\small Chemistry Department}}\par}		%#d
\rule {20.5mm}{0pt} \raisebox{2mm}{%			%#f
  {{\hdrfont Chemistry Department}}\par}	%#f
\advance\leftskip\BodyIndent
\advance\rightskip\BodyIndent  %>>>

%\Faxtrue			% Uncomment to include Fax Address-box
%%%   FAX Address-Box			<<<
\ifFax
\let\lstyle=\classicstylenums	% kpfont's version of non-osf
\kern 1\parskip
{\centering\framebox{\framebox{\small \begin{tabular}{l@{ }p{1.5in}r@{ }l}
	To:    		& YYY	& Fax:& YYY \\
	\quad attn:	& YYY	& Tel\,:&YYY\\
	From:  & Hernando A. Trujillo	\\
	Pages: & {\lstyle YYY} \\
	Re:    & \mbox{YYY}
    \end{tabular} }}\par}
\fi

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

« DATE »

\vskip \parspread
{\obeycr
    « ADDRESS»% (end last line w/  % )
}

\vskip \parspread

Dear «»:

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

« BODY »

\vskip \parspread \parbox{2in}{	
		Sincerely,
\vskip 6ex	Hernando A. Trujillo }


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

\end{document}


%							 vim: tw=75 nowrap
