From e9166acca98c426a3ff707063ebcb9300452f45e Mon Sep 17 00:00:00 2001
From: Eugeniy Mikhailov <evgmik@gmail.com>
Date: Wed, 17 Dec 2014 00:58:00 -0500
Subject: improved formatting and extra comments for header styles

---
 wmletterhead.cls | 26 +++++++++++++++++++-------
 1 file changed, 19 insertions(+), 7 deletions(-)

(limited to 'wmletterhead.cls')

diff --git a/wmletterhead.cls b/wmletterhead.cls
index f5a3001..10588e8 100644
--- a/wmletterhead.cls
+++ b/wmletterhead.cls
@@ -65,11 +65,23 @@
 
 
 %% WM fancy letter head definition
-\fancypagestyle{firstpage}{\fancyhf{}\fancyhead[R]{\includegraphics[height=0.5in,
-	keepaspectratio=true]{\wmheaderlogo}}}
-\fancypagestyle{plain}{\fancyhf{}\fancyhead[L]{\includegraphics[height=0.5in,
-	keepaspectratio=true]{\wmheaderlogo}}}
-\fancypagestyle{empty}{\fancyhf{}\fancyhead[L]{\includegraphics[height=0.5in,
-	keepaspectratio=true]{\wmheaderlogo}}}
-\pagestyle{plain}
+\fancypagestyle{firstpage}{% looks like this has no effect for the letter class
+	\fancyhf{}%
+	\fancyhead[R]{%
+		\includegraphics[height=0.5in,keepaspectratio=true]{\wmheaderlogo}%
+	}%
+}
+\fancypagestyle{plain}{% this takes care of the 2nd and the following pages
+	\fancyhf{}%
+	\fancyhead[L]{%
+		\includegraphics[height=0.5in,keepaspectratio=true]{\wmheaderlogo}%
+	}%
+}
+\fancypagestyle{empty}{% some how this is the very first page style
+	\fancyhf{}%
+	\fancyhead[L]{%
+		\includegraphics[height=0.5in,keepaspectratio=true]{\wmheaderlogo}%
+	}%
+}
+\pagestyle{plain}% important! if switched to fancy pages 2, 3, ... do not have logo
 
-- 
cgit v1.2.3

