diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-12-29 11:16:37 -0500 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-12-29 11:16:37 -0500 |
commit | abe992e79e5c7940f09a9e77d0d7243a45caf00c (patch) | |
tree | b1eedd76fb8721cb791e671df13bba4ee5d9210d | |
parent | e077a72dd6719202332ef9ed70a5a0b9948df8ef (diff) | |
download | wmletterhead-abe992e79e5c7940f09a9e77d0d7243a45caf00c.tar.gz wmletterhead-abe992e79e5c7940f09a9e77d0d7243a45caf00c.zip |
moved length definitions forward
-rw-r--r-- | wmletterhead.cls | 53 |
1 files changed, 27 insertions, 26 deletions
diff --git a/wmletterhead.cls b/wmletterhead.cls index 0949621..526e509 100644 --- a/wmletterhead.cls +++ b/wmletterhead.cls @@ -15,6 +15,32 @@ % Recomended use: % \documentclass[12pt,fullcolor]{wmletterhead} +% -------------------------------------------------- +% New length to be used for WM specific things + +% Page layout specific +\newlength{\wmtopmargin} % start position for address or logo +\newlength{\wmleftmargin} +\newlength{\wmrightmargin} +\newlength{\wmbottommargin} +\newlength{\wmlogoseparation} % distance between logo/from address to the main letter + +% WM logos parameters +\newlength{\wmlogoheight} +\newlength{\wmlogowidth} +\newlength{\wmlogohpos} +\newlength{\wmlogovpos} +\newlength{\wmlogoWhpos} % distance from the left logo edge to the 'W' in William +\newlength{\wmlogoWvpos} % distance from the top logo edge to the 'W' in William + +% -------------------------------------------------- +% internal use sizes to lineup logo and from (W&M) address +\newlength{\wmaddressheight} % to be calculated at the opening +\newlength{\wmaddresstotalheight} +\newlength{\wmaddresswidth} +\newlength{\wmaddresshpos} + + %-------------- define WM header logo file --------------------------------- \providecommand{\wmheaderlogo}{}% nologo @@ -71,14 +97,6 @@ \setlength{\longindentation}{0pt} % this is indent of signature % -------------------------------------------------- -% WM logos parameters -\newlength{\wmlogoheight} -\newlength{\wmlogowidth} -\newlength{\wmlogohpos} -\newlength{\wmlogovpos} -\newlength{\wmlogoWhpos} % distance from the left logo edge to the 'W' in William -\newlength{\wmlogoWvpos} % distance from the top logo edge to the 'W' in William - % below are measured in the Word template \setlength{\wmlogoheight}{0.65in} \setlength{\wmlogowidth}{3.64in}% ideally should be scaled from \wmlogoheight @@ -89,32 +107,15 @@ % -------------------------------------------------- % Required by WM -\newlength{\wmlogoseparation} \setlength{\wmlogoseparation}{0.5in} % header text from main text separation - -\newlength{\wmleftmargin} \setlength{\wmleftmargin}{1.64in} - -\newlength{\wmrightmargin} \setlength{\wmrightmargin}{1.0in} - -\newlength{\wmbottommargin} \setlength{\wmbottommargin}{1.0in} % guessed - -\newlength{\wmtopmargin} %start position for address or logo \setlength{\wmtopmargin}{1.0in} \colorlet{wmtaglinecolor}{WMgold} % -------------------------------------------------- -% internal use sizes to lineup logo and from (W&M) address -\newlength{\wmaddressheight} % to be calculated at the opening -\newlength{\wmaddresstotalheight} -\newlength{\wmaddresswidth} -\newlength{\wmaddresshpos} -% -------------------------------------------------- - -% -------------------------------------------------- % Let's calculate/set page layout \geometry{ @@ -151,7 +152,7 @@ \setwmaddresssizes \raisebox{\wmaddressheight-\wmlogoheight+\wmlogoWvpos}[\wmaddressheight]{ \hskip -\wmlogoWhpos% - \includegraphics[height=\wmlogoheight{},keepaspectratio=true]{\wmheaderlogo} + \includegraphics[height=\wmlogoheight{},keepaspectratio=true]{\wmheaderlogo}% } \hfill\wmaddress{}% } |