aboutsummaryrefslogtreecommitdiff
path: root/wmletterhead.cls
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2014-12-27 22:45:42 -0500
committerEugeniy Mikhailov <evgmik@gmail.com>2014-12-27 22:45:42 -0500
commitf817ae2b4d55f4376d6d6bb651ae2474f1028cd4 (patch)
treeac7c3ed02153d4f571ceee15143073fd81392a56 /wmletterhead.cls
parent632cdaff29e9ccf46e8b1c368ddf62cbf5c0b277 (diff)
downloadwmletterhead-f817ae2b4d55f4376d6d6bb651ae2474f1028cd4.tar.gz
wmletterhead-f817ae2b4d55f4376d6d6bb651ae2474f1028cd4.zip
retab
Diffstat (limited to 'wmletterhead.cls')
-rw-r--r--wmletterhead.cls108
1 files changed, 54 insertions, 54 deletions
diff --git a/wmletterhead.cls b/wmletterhead.cls
index b698aa7..fdb0ba2 100644
--- a/wmletterhead.cls
+++ b/wmletterhead.cls
@@ -6,46 +6,46 @@
% Note logo files belong to W&M
% 'wmletterhead' class accepts all options of the 'letter' class and the following
% additional options which specify the header logo
-% prior2014dec - old logo prior 2014
-% fullcolor - full color logo with yellowish WM cypher
-% black - all black logo
-% green - all green logo
-% white - all white logo (quite use less on white background)
+% prior2014dec - old logo prior 2014
+% fullcolor - full color logo with yellowish WM cypher
+% black - all black logo
+% green - all green logo
+% white - all white logo (quite use less on white background)
% DEFAULT options: [fullcolor]
% Recomended use:
-% \documentclass[12pt,fullcolor]{wmletterhead}
+% \documentclass[12pt,fullcolor]{wmletterhead}
%-------------- define WM header logo file ---------------------------------
\providecommand{\wmheaderlogo}{}% nologo
% this is prior December 2014 logo with Wren building
\DeclareOption{prior2014dec}{%
- \renewcommand{\wmheaderlogo}%
- {wmlogos/wmheader2012}%
+ \renewcommand{\wmheaderlogo}%
+ {wmlogos/wmheader2012}%
}
% full colored logo starting from December 2014
\DeclareOption{fullcolor}{%
- \renewcommand{\wmheaderlogo}%
- {wmlogos/wm_horizontal_single_line_full_color}%
+ \renewcommand{\wmheaderlogo}%
+ {wmlogos/wm_horizontal_single_line_full_color}%
}
% green logo starting from December 2014
\DeclareOption{green}{%
- \renewcommand{\wmheaderlogo}%
- {wmlogos/wm_horizontal_single_line_green}%
+ \renewcommand{\wmheaderlogo}%
+ {wmlogos/wm_horizontal_single_line_green}%
}
% black logo starting from December 2014
\DeclareOption{black}{%
- \renewcommand{\wmheaderlogo}%
- {wmlogos/wm_horizontal_single_line_black}%
+ \renewcommand{\wmheaderlogo}%
+ {wmlogos/wm_horizontal_single_line_black}%
}
% black logo starting from December 2014
\DeclareOption{white}{%
- \renewcommand{\wmheaderlogo}%
- {wmlogos/wm_horizontal_single_line_white}%
+ \renewcommand{\wmheaderlogo}%
+ {wmlogos/wm_horizontal_single_line_white}%
}
%-------------- end of define WM header logo file ------------------------------
@@ -111,65 +111,65 @@
% --------------------------------------------------
\geometry{
- letterpaper,
- top=\wmtopmargin,
- left=\wmleftmargin,
- right=\wmrightmargin,
- bottom=\wmbottommargin,
- marginparwidth=0in,
- marginparsep=0in,
- %showframe % this shows layout frames
+ letterpaper,
+ top=\wmtopmargin,
+ left=\wmleftmargin,
+ right=\wmrightmargin,
+ bottom=\wmbottommargin,
+ marginparwidth=0in,
+ marginparsep=0in,
+ %showframe % this shows layout frames
}
%% WM fancy letter head definition
\newcommand{\wmheader}{
- \fancyhf{}%
- \fancyhead[L]{%
-% \begin{textblock*}{\wmlogowidth}(\wmlogohpos{},\wmlogovpos{})%
+ \fancyhf{}%
+ \fancyhead[L]{%
+% \begin{textblock*}{\wmlogowidth}(\wmlogohpos{},\wmlogovpos{})%
%\adjustbox{valign=t}{
- \hskip -\wmlogoWhpos
- \includegraphics[height=\wmlogoheight{},keepaspectratio=true]{\wmheaderlogo}%
+ \hskip -\wmlogoWhpos
+ \includegraphics[height=\wmlogoheight{},keepaspectratio=true]{\wmheaderlogo}%
%}
-% \end{textblock*}%
- }%
- \renewcommand{\headrulewidth}{0pt}%
- \fancyfoot[C]{\thepage}%
+% \end{textblock*}%
+ }%
+ \renewcommand{\headrulewidth}{0pt}%
+ \fancyfoot[C]{\thepage}%
}
\newcommand{\wmaddress}{
- \ifx\@empty\fromaddress
- {}
- \else
- \raggedleft%
- \begin{tabular}{l@{}}\ignorespaces
- \fromaddress%
- \end{tabular}%
- \fi
+ \ifx\@empty\fromaddress
+ {}
+ \else
+ \raggedleft%
+ \begin{tabular}{l@{}}\ignorespaces
+ \fromaddress%
+ \end{tabular}%
+ \fi
}
\fancypagestyle{empty}{% looks like this has no effect for the letter class
- \wmheader{}%
+ \wmheader{}%
}
\fancypagestyle{plain}{% this takes care of the 2nd and the following pages
- %\wmheader{}%
- \fancyfoot[C]{\thepage}%
+ %\wmheader{}%
+ \fancyfoot[C]{\thepage}%
}
\fancypagestyle{firstpage}{% some how this is the very first page style
- \wmheader{}%
- \newlength{\wmaddresswidth}
- \settowidth{\wmaddresswidth}{\hbox{\wmaddress}}%
- \newlength{\wmaddresshpos}
- \setlength{\wmaddresshpos}{\paperwidth-\wmrightmargin-\wmaddresswidth}
- \fancyhead[R]{%
- %\begin{textblock*}{\wmaddresswidth}(\wmaddresshpos{},\wmlogovpos{})%
- \wmaddress{}%
- %\end{textblock*}%
- }%
+ \wmheader{}%
+ \newlength{\wmaddresswidth}
+ \settowidth{\wmaddresswidth}{\hbox{\wmaddress}}%
+ \newlength{\wmaddresshpos}
+ \setlength{\wmaddresshpos}{\paperwidth-\wmrightmargin-\wmaddresswidth}
+ \fancyhead[R]{%
+ %\begin{textblock*}{\wmaddresswidth}(\wmaddresshpos{},\wmlogovpos{})%
+ \wmaddress{}%
+ %\end{textblock*}%
+ }%
}
\pagestyle{plain}% important! if switched to fancy pages 2, 3, ... do not have logo