From 0c380c94cf1959a98a4c04b8f0d4f7c4da0ed577 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Wed, 17 Dec 2014 01:16:13 -0500 Subject: Uniform header and footer definition for all styles firstpage, plain, and empty --- wmletterhead.cls | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) (limited to 'wmletterhead.cls') diff --git a/wmletterhead.cls b/wmletterhead.cls index 40f1ba2..eb91038 100644 --- a/wmletterhead.cls +++ b/wmletterhead.cls @@ -66,29 +66,22 @@ %% WM fancy letter head definition \renewcommand{\wmlogoheight}{0.65in}% -\fancypagestyle{firstpage}{% looks like this has no effect for the letter class +\renewcommand{\wmheader}{ \fancyhf{}% - \fancyhead[R]{% + \fancyhead[L]{% \includegraphics[height=\wmlogoheight,keepaspectratio=true]{\wmheaderlogo}% }% \renewcommand{\headrulewidth}{0pt}% \fancyfoot[C]{\thepage}% } +\fancypagestyle{firstpage}{% looks like this has no effect for the letter class + \wmheader{}% +} \fancypagestyle{plain}{% this takes care of the 2nd and the following pages - \fancyhf{}% - \fancyhead[L]{% - \includegraphics[height=\wmlogoheight,keepaspectratio=true]{\wmheaderlogo}% - }% - \renewcommand{\headrulewidth}{0pt}% - \fancyfoot[C]{\thepage}% + \wmheader{}% } \fancypagestyle{empty}{% some how this is the very first page style - \fancyhf{}% - \fancyhead[L]{% - \includegraphics[height=\wmlogoheight,keepaspectratio=true]{\wmheaderlogo}% - }% - \renewcommand{\headrulewidth}{0pt}% - \fancyfoot[C]{\thepage}% + \wmheader{}% } \pagestyle{plain}% important! if switched to fancy pages 2, 3, ... do not have logo -- cgit v1.2.3