aboutsummaryrefslogtreecommitdiff
path: root/wmletterhead.cls
diff options
context:
space:
mode:
Diffstat (limited to 'wmletterhead.cls')
-rw-r--r--wmletterhead.cls18
1 files changed, 14 insertions, 4 deletions
diff --git a/wmletterhead.cls b/wmletterhead.cls
index 82b5977..cf6f9aa 100644
--- a/wmletterhead.cls
+++ b/wmletterhead.cls
@@ -62,7 +62,9 @@
\RequirePackage{graphicx}
\RequirePackage{geometry} % easy page layout manipulation
\RequirePackage{fancyhdr} % Headers !
+\RequirePackage{xcolor}
+\definecolor{WMgold}{rgb}{0.73,0.59,0.36}
% --------------------------------------------------
% Change the letter class default for signature indent
@@ -102,7 +104,10 @@
\newlength{\wmtopmargin} %start position for address or logo
\setlength{\wmtopmargin}{1.0in}
+\colorlet{wmtaglinecolor}{WMgold}
+% --------------------------------------------------
+% internal use sizes to lineup logo and from (W&M) address
\newlength{\wmaddressheight} % to be calculated at the opening
\newlength{\wmaddresstotalheight}
\newlength{\wmaddresswidth}
@@ -154,6 +159,10 @@
\hfill\wmaddress{}%
}
+% -------------------------------------------------------------------
+% This takes care of WM tagline which we will put in the central footer
+\newcommand*{\tagline}[1]{\def\lettertagline{#1}}
+\tagline{}
% -------------------------------------------------------------------
% fancyheader definitions
@@ -166,14 +175,15 @@
\fancypagestyle{plain}{% this takes care of the 2nd and the following pages
\renewcommand{\headrulewidth}{0pt}
\fancyfoot[C]{\thepage}%
- \renewcommand{\headrulewidth}{0pt}
}
-
\fancypagestyle{firstpage}{% some how this is the very first page style
\renewcommand{\headrulewidth}{0pt}
- \fancyfoot[C]{\thepage}%
- \renewcommand{\headrulewidth}{0pt}
+ \ifx\lettertagline\@empty
+ \fancyfoot[C]{\thepage}%
+ \else
+ \fancyfoot[C]{{\color{wmtaglinecolor}\lettertagline}\\\thepage}%
+ \fi
}
\pagestyle{plain}% important! if switched to fancy pages 2, 3, ... do not have logo