From 073fcdee9bda6881723253b8cc54e5328e5d2467 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Mon, 15 Dec 2014 23:55:36 -0500 Subject: added version 1.0 of wmletterhead class and usage example --- Makefile | 35 + example_wmletter.tex | 78 + wmletterhead.cls | 75 + wmlogos/wm_horizontal_single_line_black.eps | Bin 0 -> 475606 bytes wmlogos/wm_horizontal_single_line_black.pdf | Bin 0 -> 27434 bytes wmlogos/wm_horizontal_single_line_full_color.eps | Bin 0 -> 476522 bytes wmlogos/wm_horizontal_single_line_full_color.pdf | Bin 0 -> 28248 bytes wmlogos/wm_horizontal_single_line_green.eps | Bin 0 -> 476638 bytes wmlogos/wm_horizontal_single_line_green.pdf | Bin 0 -> 28273 bytes wmlogos/wm_horizontal_single_line_white.eps | Bin 0 -> 465666 bytes wmlogos/wm_horizontal_single_line_white.pdf | Bin 0 -> 22637 bytes wmlogos/wmheader2012.eps | 31499 +++++++++++++++++++++ wmlogos/wmheader2012.png | Bin 0 -> 20179 bytes 13 files changed, 31687 insertions(+) create mode 100644 Makefile create mode 100644 example_wmletter.tex create mode 100644 wmletterhead.cls create mode 100644 wmlogos/wm_horizontal_single_line_black.eps create mode 100644 wmlogos/wm_horizontal_single_line_black.pdf create mode 100644 wmlogos/wm_horizontal_single_line_full_color.eps create mode 100644 wmlogos/wm_horizontal_single_line_full_color.pdf create mode 100644 wmlogos/wm_horizontal_single_line_green.eps create mode 100644 wmlogos/wm_horizontal_single_line_green.pdf create mode 100644 wmlogos/wm_horizontal_single_line_white.eps create mode 100644 wmlogos/wm_horizontal_single_line_white.pdf create mode 100644 wmlogos/wmheader2012.eps create mode 100644 wmlogos/wmheader2012.png diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..abb0fdd --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +# -*- make -*- +# FILE: "/mnt/light_huge_archive/home/evmik/jobs/jobs_seek/recommendation_by_me/recommendation4KevinCox/Makefile" +# LAST MODIFICATION: "Mon, 22 Nov 2010 00:44:43 -0500 (evmik)" +# (C) 2005 by Eugeniy Mikhailov, +# $Id:$ + +source_files = $(wildcard *.tex) +source_basename = $(source_files:%.tex=%) + +tex_targets = $(wildcard *.tex) +pdf_targets = $(tex_targets:%.tex=%.pdf) +dir_with_incluses = ./body/ +tex_includes = $(wildcard $(dir_with_incluses)/*.tex) + +pdf: $(pdf_targets) + +$(pdf_targets): %.pdf : %.tex + #pdflatex --interaction nonstopmode $(source_basename).tex + rubber -d $< + +clean: + rm -f $(tex_targets:%.tex=%.dvi) + rm -f $(tex_targets:%.tex=%.log) + rm -f $(tex_targets:%.tex=%.aux) + rm -f $(tex_targets:%.tex=%.nav) + rm -f $(tex_targets:%.tex=%.out) + rm -f $(tex_targets:%.tex=%.snm) + rm -f $(tex_targets:%.tex=%.toc) + rm -f $(tex_targets:%.tex=%.vrb) + rm -f missfont.log + + +real_clean: clean + rm -f $(pdf_targets) + diff --git a/example_wmletter.tex b/example_wmletter.tex new file mode 100644 index 0000000..5360c5a --- /dev/null +++ b/example_wmletter.tex @@ -0,0 +1,78 @@ +\documentclass[12pt,fullcolor]{wmletterhead} +% '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} + +\address{ + Dr. Eugeniy E. Mikhailov, \\ + Assistant Professor,\\ + Department of Physics,\\ + The College of William\&Mary,\\ + P.O. Box 8795,\\ + Williamsburg, VA 23187-8795\\ +} + +\date{} +\signature{ + Eugeniy E. Mikhailov% +} + +\begin{document} +\begin{letter}{} + +\opening{ +\vskip -0.8in +Dear Colleagues, +} + +I hope that you will find `{\tt wmletterhead.cls}' useful. Its use is quite +analogous to the \LaTeX{} `{\tt letter.cls}', in fact you can specify the +{\tt letter} class options as options for {\tt wmletterhead}. For exaple +you can specify a letter font size with +\begin{verbatim} +\documentclass[12pt]{wmletterhead} +\end{verbatim} +or +\begin{verbatim} +\documentclass[10pt]{wmletterhead} +\end{verbatim} +However, there are some modifications and extra requirements. +The margins are +redefined with `{\tt geometry}' package and there are 2 extra dependencies to +output the fancy graphical header, namely, `{\tt graphicx}' and `{\tt fancyhdr}' packages. + +The main feature of the package is that you can specify old and new (since +December 2014) W\&M logos. By selecting a particular option + +\begin{itemize} + \item + {\tt prior2014dec} - old logo prior 2014 + \item + {\tt fullcolor} - full color logo with yellowish WM cypher + \item + {\tt black} - all black logo + \item + {\tt green} - all green logo + \item + {\tt white} - all white logo (quite use less on white background) +\end{itemize} + +The recommended usage is +\begin{verbatim} +\documentclass[12pt,fullcolor]{wmletterhead} +\end{verbatim} +which produces the output similar to this letter. + + +\closing{Sincerely,} +\end{letter} + +\end{document} +\end 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} + diff --git a/wmlogos/wm_horizontal_single_line_black.eps b/wmlogos/wm_horizontal_single_line_black.eps new file mode 100644 index 0000000..bd4bda2 Binary files /dev/null and b/wmlogos/wm_horizontal_single_line_black.eps differ diff --git a/wmlogos/wm_horizontal_single_line_black.pdf b/wmlogos/wm_horizontal_single_line_black.pdf new file mode 100644 index 0000000..ff0d864 Binary files /dev/null and b/wmlogos/wm_horizontal_single_line_black.pdf differ diff --git a/wmlogos/wm_horizontal_single_line_full_color.eps b/wmlogos/wm_horizontal_single_line_full_color.eps new file mode 100644 index 0000000..b65face Binary files /dev/null and b/wmlogos/wm_horizontal_single_line_full_color.eps differ diff --git a/wmlogos/wm_horizontal_single_line_full_color.pdf b/wmlogos/wm_horizontal_single_line_full_color.pdf new file mode 100644 index 0000000..8ffaef2 Binary files /dev/null and b/wmlogos/wm_horizontal_single_line_full_color.pdf differ diff --git a/wmlogos/wm_horizontal_single_line_green.eps b/wmlogos/wm_horizontal_single_line_green.eps new file mode 100644 index 0000000..50e6fa6 Binary files /dev/null and b/wmlogos/wm_horizontal_single_line_green.eps differ diff --git a/wmlogos/wm_horizontal_single_line_green.pdf b/wmlogos/wm_horizontal_single_line_green.pdf new file mode 100644 index 0000000..188e2db Binary files /dev/null and b/wmlogos/wm_horizontal_single_line_green.pdf differ diff --git a/wmlogos/wm_horizontal_single_line_white.eps b/wmlogos/wm_horizontal_single_line_white.eps new file mode 100644 index 0000000..d44a061 Binary files /dev/null and b/wmlogos/wm_horizontal_single_line_white.eps differ diff --git a/wmlogos/wm_horizontal_single_line_white.pdf b/wmlogos/wm_horizontal_single_line_white.pdf new file mode 100644 index 0000000..48284a5 Binary files /dev/null and b/wmlogos/wm_horizontal_single_line_white.pdf differ diff --git a/wmlogos/wmheader2012.eps b/wmlogos/wmheader2012.eps new file mode 100644 index 0000000..7305ae4 --- /dev/null +++ b/wmlogos/wmheader2012.eps @@ -0,0 +1,31499 @@ +%!PS-Adobe-3.0 EPSF-3.0 +%%BoundingBox: 0 0 374 57 +%%HiResBoundingBox: 0.000000 0.000000 373.500000 56.500000 +%........................................... +%%Creator: GPL Ghostscript 905 (epswrite) +%%CreationDate: 2013/02/06 22:15:51 +%%DocumentData: Clean7Bit +%%LanguageLevel: 2 +%%EndComments +%%BeginProlog +% This copyright applies to everything between here and the %%EndProlog: +% Copyright (C) 2010 Artifex Software, Inc. All rights reserved. +%%BeginResource: procset GS_epswrite_2_0_1001 1.001 0 +/GS_epswrite_2_0_1001 80 dict dup begin +/PageSize 2 array def/setpagesize{ PageSize aload pop 3 index eq exch +4 index eq and{ pop pop pop}{ PageSize dup 1 +5 -1 roll put 0 4 -1 roll put dup null eq {false} {dup where} ifelse{ exch get exec} +{ pop/setpagedevice where +{ pop 1 dict dup /PageSize PageSize put setpagedevice} +{ /setpage where{ pop PageSize aload pop pageparams 3 {exch pop} repeat +setpage}if}ifelse}ifelse}ifelse} bind def +/!{bind def}bind def/#{load def}!/N/counttomark # +/rG{3{3 -1 roll 255 div}repeat setrgbcolor}!/G{255 div setgray}!/K{0 G}! +/r6{dup 3 -1 roll rG}!/r5{dup 3 1 roll rG}!/r3{dup rG}! +/w/setlinewidth #/J/setlinecap # +/j/setlinejoin #/M/setmiterlimit #/d/setdash #/i/setflat # +/m/moveto #/l/lineto #/c/rcurveto # +/p{N 2 idiv{N -2 roll rlineto}repeat}! +/P{N 0 gt{N -2 roll moveto p}if}! +/h{p closepath}!/H{P closepath}! +/lx{0 rlineto}!/ly{0 exch rlineto}!/v{0 0 6 2 roll c}!/y{2 copy c}! +/re{4 -2 roll m exch dup lx exch ly neg lx h}! +/^{3 index neg 3 index neg}! +/f{P fill}!/f*{P eofill}!/s{H stroke}!/S{P stroke}! +/q/gsave #/Q/grestore #/rf{re fill}! +/Y{P clip newpath}!/Y*{P eoclip newpath}!/rY{re Y}! +/|={pop exch 4 1 roll 1 array astore cvx 3 array astore cvx exch 1 index def exec}! +/|{exch string readstring |=}! +/+{dup type/nametype eq{2 index 7 add -3 bitshift 2 index mul}if}! +/@/currentfile #/${+ @ |}! +/B{{2 copy string{readstring pop}aload pop 4 array astore cvx +3 1 roll}repeat pop pop true}! +/Ix{[1 0 0 1 11 -2 roll exch neg exch neg]exch}! +/,{true exch Ix imagemask}!/If{false exch Ix imagemask}!/I{exch Ix image}! +/Ic{exch Ix false 3 colorimage}! +/F{/Columns counttomark 3 add -2 roll/Rows exch/K -1/BlackIs1 true>> +/CCITTFaxDecode filter}!/FX{<