diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-12-29 12:05:23 -0500 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-12-29 12:05:23 -0500 |
commit | 362991042427deb9f6143686548416993fc16482 (patch) | |
tree | 79857cebeb82f427d35bd06b002be414c561580d | |
parent | fe11a4c469b8a780d9431437d12205d79c9e6ed1 (diff) | |
download | wmletterhead-362991042427deb9f6143686548416993fc16482.tar.gz wmletterhead-362991042427deb9f6143686548416993fc16482.zip |
preparation for intelegent page layout switches
-rw-r--r-- | wmletterhead.cls | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/wmletterhead.cls b/wmletterhead.cls index 7d35a3b..4ac2d7b 100644 --- a/wmletterhead.cls +++ b/wmletterhead.cls @@ -83,28 +83,35 @@ \RequirePackage{fancyhdr} % Headers ! \RequirePackage{xcolor} -\definecolor{WMgold}{rgb}{0.73,0.59,0.36} +\colorlet{wmtaglinecolor}{black} + % -------------------------------------------------- % Change the letter class default for signature indent \setlength{\longindentation}{0pt} % this is indent of signature -% -------------------------------------------------- -% below are measured in the Word template -\setlength{\wmlogoheight}{0.65in} -\setlength{\wmlogoWhpos}{0.82in}% same as above -\setlength{\wmlogoWvpos}{.15in}% same as above - -% -------------------------------------------------- -% Required by WM -\setlength{\wmlogoseparation}{0.5in} % header text from main text separation -\setlength{\wmleftmargin}{1.64in} -\setlength{\wmrightmargin}{1.0in} -\setlength{\wmbottommargin}{1.0in} % guessed -\setlength{\wmtopmargin}{1.0in} - -\colorlet{wmtaglinecolor}{WMgold} +\newcommand*{\setonelinelayout}[1]{ + % first parameter intended to be used for template year + % -------------------------------------------------- + + % below are measured in the Word template + \setlength{\wmlogoheight}{0.65in} + \setlength{\wmlogoWhpos}{0.82in}% same as above + \setlength{\wmlogoWvpos}{.15in}% same as above + + % -------------------------------------------------- + % Required by WM + \setlength{\wmlogoseparation}{0.5in} % header text from main text separation + \setlength{\wmleftmargin}{1.64in} + \setlength{\wmrightmargin}{1.0in} + \setlength{\wmbottommargin}{1.0in} % guessed + \setlength{\wmtopmargin}{1.0in} + + \definecolor{WMgold}{rgb}{0.73,0.59,0.36} + \colorlet{wmtaglinecolor}{WMgold} +} +\setonelinelayout{2014} % -------------------------------------------------- % Let's calculate/set page layout |