aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2014-12-17 01:16:13 -0500
committerEugeniy Mikhailov <evgmik@gmail.com>2014-12-17 01:16:13 -0500
commit0c380c94cf1959a98a4c04b8f0d4f7c4da0ed577 (patch)
tree0c68e2dfcc465e62b25b25da3aa28396715f40af
parente56ec94405d5d27d268f2e7426c5307d98572a84 (diff)
downloadwmletterhead-0c380c94cf1959a98a4c04b8f0d4f7c4da0ed577.tar.gz
wmletterhead-0c380c94cf1959a98a4c04b8f0d4f7c4da0ed577.zip
Uniform header and footer definition
for all styles firstpage, plain, and empty
-rw-r--r--wmletterhead.cls21
1 files changed, 7 insertions, 14 deletions
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