aboutsummaryrefslogtreecommitdiff
path: root/wmletterhead.cls
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2014-12-15 23:55:36 -0500
committerEugeniy Mikhailov <evgmik@gmail.com>2014-12-16 00:55:46 -0500
commit073fcdee9bda6881723253b8cc54e5328e5d2467 (patch)
tree85f2c49c24f10f3b6e643e7cf33afd8df4e63314 /wmletterhead.cls
downloadwmletterhead-073fcdee9bda6881723253b8cc54e5328e5d2467.tar.gz
wmletterhead-073fcdee9bda6881723253b8cc54e5328e5d2467.zip
added version 1.0 of wmletterhead class and usage example
Diffstat (limited to 'wmletterhead.cls')
-rw-r--r--wmletterhead.cls75
1 files changed, 75 insertions, 0 deletions
diff --git a/wmletterhead.cls b/wmletterhead.cls
new file mode 100644
index 0000000..f5a3001
--- /dev/null
+++ b/wmletterhead.cls
@@ -0,0 +1,75 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{wmletterhead}[2014/12/15 provides LaTeX WM letter head class]
+
+% Created by Eugeniy E. Mikhailov
+% v1.0 2014/12/15
+% 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)
+% DEFAULT options: [fullcolor]
+% Recomended use:
+% \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}%
+}
+
+% full colored logo starting from December 2014
+\DeclareOption{fullcolor}{%
+ \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}%
+}
+
+% black logo starting from December 2014
+\DeclareOption{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}%
+}
+%-------------- end of define WM header logo file ------------------------------
+
+
+% by default all unknown options are passed to 'letter' class
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{letter}}
+
+% DEFAULT options
+\ExecuteOptions{fullcolor}
+\ProcessOptions\relax
+
+\LoadClass{letter}
+
+\RequirePackage{graphicx}
+\RequirePackage[margin=1in,letterpaper]{geometry}
+\RequirePackage{fancyhdr}
+
+
+%% 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}
+