diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-12-27 15:39:53 -0500 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-12-27 15:39:53 -0500 |
commit | 3d07ddc2658c87dd2d7c0923d78df3e42af014d1 (patch) | |
tree | 7e808ee92d02c8ae505091d212795ab61bc27c4c | |
parent | 0b15c89a4a89dd34ded0994c6196113592064174 (diff) | |
download | wmletterhead-3d07ddc2658c87dd2d7c0923d78df3e42af014d1.tar.gz wmletterhead-3d07ddc2658c87dd2d7c0923d78df3e42af014d1.zip |
header redone
-rw-r--r-- | wmletterhead.cls | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/wmletterhead.cls b/wmletterhead.cls index 45fea3a..0d3b28d 100644 --- a/wmletterhead.cls +++ b/wmletterhead.cls @@ -114,18 +114,24 @@ } \newcommand{\wmaddress}{ - {\raggedleft\begin{tabular}{l@{}}\ignorespaces - \fromaddress \\*[2\parskip]% - \@date \end{tabular}}% + \ifx\@empty\fromaddress + {} + \else + \raggedleft% + \begin{tabular}{l@{}}\ignorespaces + \fromaddress% + \end{tabular}% + \fi } -\fancypagestyle{firstpage}{% looks like this has no effect for the letter class +\fancypagestyle{empty}{% looks like this has no effect for the letter class \wmheader{}% } \fancypagestyle{plain}{% this takes care of the 2nd and the following pages - \wmheader{}% + %\wmheader{}% + \fancyfoot[C]{\thepage}% } -\fancypagestyle{empty}{% some how this is the very first page style +\fancypagestyle{firstpage}{% some how this is the very first page style \wmheader{}% \settoheight{\headheight}{\hbox{\wmaddress}}% \newlength{\wmaddresswidth} @@ -142,13 +148,10 @@ % ------------------------------------------------------------------- % Now let redefine opening so address goes to the right of logo -\renewcommand*{\opening}[1]{\ifx\@empty\fromaddress +\renewcommand*{\opening}[1]{ \thispagestyle{firstpage}% - {\raggedleft\@date\par}% - \else % home address - \thispagestyle{empty}% - \fi + {\raggedleft\@date\par}% {\raggedright \toname \\ \toaddress \par}% - \vspace{2\parskip}% + %\vspace{2\parskip}% #1\par\nobreak} % ------------------------------------------------------------------- |