diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-12-29 15:54:39 -0500 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-12-29 15:54:39 -0500 |
commit | e55f2671c62dfac414b477aa96010558240e4203 (patch) | |
tree | 5cd9b38a8c0628fdfd0504443c169d5dd7958b07 /wmletterhead.cls | |
parent | b181b5ca71080c317cc94518c30bf1c7ea74db69 (diff) | |
download | wmletterhead-e55f2671c62dfac414b477aa96010558240e4203.tar.gz wmletterhead-e55f2671c62dfac414b477aa96010558240e4203.zip |
properly implemented nologo option
Diffstat (limited to 'wmletterhead.cls')
-rw-r--r-- | wmletterhead.cls | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/wmletterhead.cls b/wmletterhead.cls index 0323dc4..d15c47b 100644 --- a/wmletterhead.cls +++ b/wmletterhead.cls @@ -7,10 +7,11 @@ % '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) +% fullcolor - (default) 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) +% nologo - do not show logo image % DEFAULT options: [fullcolor] % Recomended use: % \documentclass[12pt,fullcolor]{wmletterhead} @@ -19,6 +20,13 @@ \RequirePackage{ifthen} % -------------------------------------------------- +% Global flag +\newif\iflogo + +% by default we want logo +\logotrue + +% -------------------------------------------------- % Tagline color since December 2014 \definecolor{WMgold}{rgb}{0.73,0.59,0.36} @@ -93,11 +101,12 @@ \setonelinelayout{default} % set page layout defaults %-------------- define WM header logo file --------------------------------- -\providecommand{\wmheaderlogo}{}% nologo +\providecommand{\wmheaderlogo}{}% no logo % this is prior December 2014 logo with Wren building \DeclareOption{nologo}{% - \renewcommand{\wmheaderlogo}{}% nologo + \renewcommand{\wmheaderlogo}{}% no logo + \logofalse \setonelinelayout{default}% } @@ -191,10 +200,14 @@ \newcommand{\wmfromwithlogo}{ \setwmaddresssizes + \iflogo \raisebox{\wmaddressheight-\wmlogoheight+\wmlogoWvpos}[\wmaddressheight]{ \hskip -\wmlogoWhpos% \includegraphics[height=\wmlogoheight{},keepaspectratio=true]{\wmheaderlogo}% } + \else% + % do nothing + \fi% \hfill\wmaddress{}% } |