From 362991042427deb9f6143686548416993fc16482 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Mon, 29 Dec 2014 12:05:23 -0500 Subject: preparation for intelegent page layout switches --- wmletterhead.cls | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) (limited to 'wmletterhead.cls') 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 -- cgit v1.2.3