| 1 |
%% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright (C) 1999-2009 Paul Thompson |
| 4 |
% This program is free software; you can redistribute it and/or |
| 5 |
% modify it under the terms of the GNU General Public License |
| 6 |
% as published by the Free Software Foundation; either version 2 |
| 7 |
% of the License, or (at your option) any later version. |
| 8 |
% |
| 9 |
% This is file `newlfm.dtx'. It provides newlfm.cls, after processing |
| 10 |
% latex newlfm.ins |
| 11 |
% It provides the documentation after processing |
| 12 |
% latex newlfm.dtx |
| 13 |
% At this time, the documentation is divided into three sections: |
| 14 |
% a) manual - pp. 1-12 |
| 15 |
% b) command summary - pp. 13 |
| 16 |
% c) code - pp. 14-35 |
| 17 |
% |
| 18 |
% This is modified from |
| 19 |
% fax.sty -- John Conover |
| 20 |
% letter.cls -- LaTeX 2e team |
| 21 |
% lettre.sty -- D. Megevand |
| 22 |
% ltrfax.cls -- Paul A. Thompson |
| 23 |
% lfmp.cls -- Ross Boylan |
| 24 |
% |
| 25 |
% Copyright 1998-2009 Paul A. Thompson |
| 26 |
% |
| 27 |
% IMPORTANT NOTICE: |
| 28 |
% |
| 29 |
% You are not allowed to change this file. |
| 30 |
% |
| 31 |
% If you do change the file, you must change the name. |
| 32 |
% \fi |
| 33 |
% |
| 34 |
%% \CharacterTable |
| 35 |
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |
| 36 |
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |
| 37 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 38 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 39 |
%% Dollar \$ Percent \% Ampersand \& |
| 40 |
%% Acute accent \' Left paren \( Right paren \) |
| 41 |
%% Asterisk \* Plus \+ Comma \, |
| 42 |
%% Minus \- Point \. Solidus \/ |
| 43 |
%% Colon \: Semicolon \; Less than \< |
| 44 |
%% Equals \= Greater than \> Question mark \? |
| 45 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 46 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 47 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 48 |
%% Right brace \} Tilde \~} |
| 49 |
% |
| 50 |
% \iffalse |
| 51 |
% \MakeShortVerb{\|} |
| 52 |
% |
| 53 |
% \section{Identification} |
| 54 |
% |
| 55 |
% \askforoverwritefalse |
| 56 |
% |
| 57 |
% This document class can only be used with \LaTeXe, so we make |
| 58 |
% sure that an appropriate message is displayed when another \TeX{} |
| 59 |
% format is used. |
| 60 |
% \begin{macrocode} |
| 61 |
%<+package>\NeedsTeXFormat{LaTeX2e}[1996/06/01] |
| 62 |
%<+addrset>\NeedsTeXFormat{LaTeX2e}[1996/06/01] |
| 63 |
%<+setdim>\NeedsTeXFormat{LaTeX2e}[1996/06/01] |
| 64 |
% \end{macrocode} |
| 65 |
% |
| 66 |
% Announce the Class name and its version. |
| 67 |
% \begin{macrocode} |
| 68 |
%<+package>\ProvidesClass{newlfm} |
| 69 |
%<+addrset>\ProvidesPackage{addrset} |
| 70 |
%<+setdim>\ProvidesPackage{setdim} |
| 71 |
%<*driver> |
| 72 |
\ProvidesFile{newlfm.drv}% |
| 73 |
%</driver> |
| 74 |
%<+package> [2009/04/10 v9.4 |
| 75 |
%<+package> Letter-Fax-Memo LaTeX Document Class] |
| 76 |
%<+addrset> [2009/04/10 v9.4 |
| 77 |
%<+addrset> Address macros]% |
| 78 |
%<+setdim> [2009/04/10 v9.4 |
| 79 |
%<+setdim> Address macros] |
| 80 |
% \end{macrocode} |
| 81 |
% |
| 82 |
% \section{The documentation driver file} |
| 83 |
% |
| 84 |
% We have our own document class to format the \LaTeXe{} |
| 85 |
% documentation. |
| 86 |
% \fi |
| 87 |
% \changes{v1.0}{1998/11/11}{Final cls file version of newlfm set up. Class |
| 88 |
% file set as a docstrip file, so that proper documentation could be |
| 89 |
% maintained with the file. Class file set up to inherit all definitions |
| 90 |
% from letter.cls, the standard \LaTeX\ letter class. Class file posted to |
| 91 |
% CTAN 1998/12/01.} |
| 92 |
% \changes{v1.3}{1999/03/25}{Removed the streamlist and here packages from |
| 93 |
% the list of required packages. These were not actually used.} |
| 94 |
% \changes{v1.4}{1999/03/25}{Fixed the timestamp macro, using a fix from |
| 95 |
% Michael Dritschel, Purdue University. Posted 5/5/99.} |
| 96 |
% \changes{v1.5}{1999/07/25}{Fixed the Blank macros, enabling the header and |
| 97 |
% footer information to be properly blanked. Added two macros to print form |
| 98 |
% letters.} |
| 99 |
% \changes{v1.6}{1999/07/27}{Fixed the specification of @f@f, which was set |
| 100 |
% to blank, rather than to 0in. Added specifications for different orders |
| 101 |
% of the printing of dates, from-block and to-block.} |
| 102 |
% \changes{v1.7}{1999/09/16}{Added ability to specify different point sizes, |
| 103 |
% which was not present before. In addition, different paper types are now |
| 104 |
% able to be specified as well. Bug noted by William Slough, [email protected], |
| 105 |
% Department of Mathematics, Eastern Illinois University, Charleston, IL |
| 106 |
% 61920. Thanks, William!!!} |
| 107 |
% \changes{v1.8}{1999/09/16}{Many of the options, macros and terms have been |
| 108 |
% rewritten to a more ``user-friendly'' approach, thanks to a Friendly user, |
| 109 |
% who is Michael Friendly. Thanks for your suggestion, Mike!!! NOTE TO |
| 110 |
% PREVIOUS NEWLFM USERS: Some of these changes (space and skip commands) are |
| 111 |
% not upward compatible.} |
| 112 |
% \changes{v3.0}{2000/10/30}{Package substantially revised. Items in |
| 113 |
% wrapper macros are now neutral, rather than ``from'' or ``to'' items. In |
| 114 |
% that way, the address items are used for storage, not letter preparation. |
| 115 |
% Two new service macros, {\tt setadrfr} and {\tt setadrto}, convert the |
| 116 |
% items in the wrapper into either ``from'' or ``to'' items. The |
| 117 |
% {\tt memosec} command has been revised and simplified. Commands set up |
| 118 |
% to change terms for the words used in letters. Manual entirely |
| 119 |
% rewritten.} |
| 120 |
% \changes{v3.1}{2001/3/01}{Several errors in handling margin items are |
| 121 |
% fixed. Documentation revised.} |
| 122 |
% \changes{v3.2}{2001/11/15}{Incorporated all functionality of envlab package |
| 123 |
% into newlfm. Documentation margins and text width adjusted to something |
| 124 |
% approximating a nice document. Documentation extensively edited to |
| 125 |
% incorporate all new commands. Example files edited to display new |
| 126 |
% functions.} |
| 127 |
% \changes{v3.4}{2002/3/15}{Allow printing of addresses side-by-side. Fixed up |
| 128 |
% several small errors. Essentially a minor features upgrade.} |
| 129 |
% \changes{v5.0}{2001/8/16}{The page structure of the letterhead page, the |
| 130 |
% fax header page and all other pages are allowed to vary in important ways. |
| 131 |
% Package geometry removed from newlfm, as newlfm code duplicates functionality |
| 132 |
% of geometry. Keyval functionality set into newlfm, to allow all parameters |
| 133 |
% to be input either through the documentstyle option line or through a keyval item. |
| 134 |
% The keyval item can be placed into the letter itself or into the letrinfo file.} |
| 135 |
% \changes{v6.0}{2003/1/09}{The options, formerly placed in the options |
| 136 |
% section of the \LaTeX\ opening command |
| 137 |
% can now be placed in several calls within the letter itself. These can |
| 138 |
% be stored in the letter database.} |
| 139 |
% \changes{v7.0}{2004/5/02}{Single key-value option set up.} |
| 140 |
% \changes{v8.0}{2004/7/04}{Envelope option fixed. 4 different |
| 141 |
% Avery label options added. Manual rewritten. Output routine hacked to |
| 142 |
% ensure that letterhead and subsequent pages have the appropriate |
| 143 |
% margins. Extensive checks in place to ensure that almost everything |
| 144 |
% works, finally!!} |
| 145 |
% \changes{v8.1}{2004/7/07}{Fixed header margin position problem. Fixed |
| 146 |
% unprintable area problem. Additionally, fixed some problems with the |
| 147 |
% letrinfo.tex file for the examples.} |
| 148 |
% \changes{v8.2}{2004/10/15}{Fixed incorrect use of iffixt macro. Fixed |
| 149 |
% incorrect use of sigcenter, sigleft, sigright. Fixed error in useenvlab |
| 150 |
% Added press-release features, following development contributed by Ross |
| 151 |
% Boylan. Thanks, Ross.} |
| 152 |
% \changes{v8.3}{2004/11/02}{Election special. Cello-window option added.} |
| 153 |
% \changes{v8.4}{2004/11/06}{Fixed a number of other errors, including |
| 154 |
% multiple repeated envelope labels.} |
| 155 |
% \changes{v9.1}{2009/1/09}{Added ability to add letterhead paper as a background to |
| 156 |
% the normal processing. Add restlettera, restletterb, restletterc, restletterd, restlettere |
| 157 |
% designation for information to be printed on a page(s) after the signature.} |
| 158 |
% \changes{v9.2}{2009/1/14}{Redid the box-up process to more fully and correctly |
| 159 |
% handle text material in the header and footer sections. Approach now uses lrbox |
| 160 |
% and minipage rather than sbox. lrbox/minipage can handle multi-line sections, and |
| 161 |
% sizes them correctly.} |
| 162 |
% \changes{v9.3}{2009/3/24}{Added facility to include extra pages after the signature, for |
| 163 |
% letter material to be structured in a normal and simple manner. Defaults for several |
| 164 |
% important commands have now been added; prior to this, omitting some commands has led |
| 165 |
% to crucial errors.} |
| 166 |
% \changes{v9.4}{2009/4/10}{Adjusted headheight to properly satisfy fancyhdr.} |
| 167 |
% |
| 168 |
% \iffalse |
| 169 |
% \begin{macrocode} |
| 170 |
%<*driver> |
| 171 |
\documentclass{ltxdoc}% |
| 172 |
\usepackage{geometry,mdwlist,layout}% |
| 173 |
\geometry{right=1in,left=1in,top=1in,bottom=1in}% |
| 174 |
% \end{macrocode} |
| 175 |
|
| 176 |
%\DocInput{multicol,fancyvrb,mdwlist} |
| 177 |
% |
| 178 |
% We don't want everything to appear in the index. |
| 179 |
% \begin{macrocode} |
| 180 |
\DoNotIndex{\@Alph,\@alph,\@arabic,\@badmath}% |
| 181 |
\DoNotIndex{\@centercr}% |
| 182 |
\DoNotIndex{\@empty,\@ignoretrue}% |
| 183 |
\DoNotIndex{\@ixpt}% |
| 184 |
\DoNotIndex{\@M,\@minus,\@ne,\@plus}% |
| 185 |
\DoNotIndex{\\,\addtolength}% |
| 186 |
\DoNotIndex{\advance}% |
| 187 |
\DoNotIndex{\ast,\begin,\begingroup,\bfseries,\bgroup,\box}% |
| 188 |
\DoNotIndex{\bullet}% |
| 189 |
\DoNotIndex{\cdot,\cr,\day,\DeclareOption}% |
| 190 |
\DoNotIndex{\def,\DocInput,\documentclass}% |
| 191 |
\DoNotIndex{\DoNotIndex,\egroup,\ifx,\else,\fi,\endtrivlist}% |
| 192 |
\DoNotIndex{\EnableCrossrefs,\end,\end@dblfloat,\end@float,\endgroup}% |
| 193 |
\DoNotIndex{\endlist,\everycr,\ExecuteOptions}% |
| 194 |
\DoNotIndex{\filedate,\filename,\fileversion}% |
| 195 |
\DoNotIndex{\global,\halign,\hangindent,\hbox,\hfil,\hfill,\hrule}% |
| 196 |
\DoNotIndex{\hsize,\hskip,\hspace,\hss,\ifcase,\or,\fi}% |
| 197 |
\DoNotIndex{\ifvmode,\fi,\ifnum,\fi,\input}% |
| 198 |
\DoNotIndex{\kern,\leavevmode,\let,\leftmark}% |
| 199 |
\DoNotIndex{\list,\llap,\long,\m@ne,\m@th,\mark}% |
| 200 |
\DoNotIndex{\month,\newcommand,\newcounter,\newenvironment}% |
| 201 |
\DoNotIndex{\NeedsTeXFormat,\newdimen}% |
| 202 |
\DoNotIndex{\newpage,\nobreak,\noindent,\number}% |
| 203 |
\DoNotIndex{\p@}% |
| 204 |
\DoNotIndex{\pagestyle,\par}% |
| 205 |
\DoNotIndex{\penalty,\PrintChanges,\PrintIndex,\ProcessOptions}% |
| 206 |
\DoNotIndex{\protect,\ProvidesClass,\raggedbottom,\raggedright}% |
| 207 |
\DoNotIndex{\refstepcounter,\relax,\renewcommand,\reset@font}% |
| 208 |
\DoNotIndex{\rightmargin,\rlap,\rmfamily}% |
| 209 |
\DoNotIndex{\setbox,\setcounter,\setlength}% |
| 210 |
\DoNotIndex{\skip,\slshape,\space}% |
| 211 |
\DoNotIndex{\trivlist,\typeout,\tw@}% |
| 212 |
\DoNotIndex{\vskip,\vspace,\year,\z@}% |
| 213 |
\CodelineNumbered% |
| 214 |
\CodelineIndex% |
| 215 |
\EnableCrossrefs% |
| 216 |
\RecordChanges% |
| 217 |
% \end{macrocode}% |
| 218 |
% Set the \texttt{StandardModuleDepth} counter to 1.% |
| 219 |
% \begin{macrocode}% |
| 220 |
\setcounter{StandardModuleDepth}{1}% |
| 221 |
% \end{macrocode}% |
| 222 |
% Some commonly used abbreviations% |
| 223 |
% \begin{macrocode}% |
| 224 |
\def\Lopt#1{\textsf{#1}}% |
| 225 |
\def\file#1{\texttt{#1}}% |
| 226 |
\def\Lcount#1{\textsl{\small#1}}% |
| 227 |
\def\pstyle#1{\textsl{#1}}% |
| 228 |
% \end{macrocode}% |
| 229 |
% We also want the full details.% |
| 230 |
% \begin{macrocode}% |
| 231 |
\begin{document}% |
| 232 |
\DocInput{newlfm.dtx}% |
| 233 |
\end{document}% |
| 234 |
%</driver> |
| 235 |
% \end{macrocode} |
| 236 |
% \fi |
| 237 |
% |
| 238 |
% \iffalse |
| 239 |
% Copyright (C) 1998-2009 Paul A. Thompson, Ph.D., all rights reserved. |
| 240 |
% \fi |
| 241 |
% |
| 242 |
% \author{Paul A. Thompson, Ph.D. \\ Division of Biostatistics \\ Washington |
| 243 |
% University of St. Louis, MO, USA \\ \texttt{[email protected]}} |
| 244 |
% |
| 245 |
% \title{|newlfm.cls| \\ A New Letter, Fax, Memo Document Class for \LaTeX2e{}} |
| 246 |
% |
| 247 |
% \newcommand{\rec}{recipient} |
| 248 |
% \newcommand{\tabr}[1]{Table \ref{tab:#1}} |
| 249 |
% \newcommand{\tabrb}[2]{Tables \ref{tab:#1} and \ref{tab:#2}} |
| 250 |
% \newcommand{\info}{information} |
| 251 |
% \newcommand{\Info}{Information} |
| 252 |
% \newcommand{\tabref}[1]{Table \ref{tab:#1}} |
| 253 |
% \newcommand{\tabpage}[1]{Table \ref{page:#1}} |
| 254 |
% \newcommand{\mx}[1]{{\ensuremath{#1}}} |
| 255 |
% \newcounter{mytabs}\setcounter{mytabs}{0} |
| 256 |
% \newcommand{\tabset}[2]{\addtocounter{mytabs}{1} |
| 257 |
% \centerline{Table \arabic{mytabs}: #2} |
| 258 |
% \vspace*{-.25in}} |
| 259 |
% \newcommand{\tabpagr}[1]{Table \ref{tab:#1}, on Page \pageref{tab:#1}} |
| 260 |
% \newcommand{\pages}[1]{Page \pageref{tab:#1}} |
| 261 |
% \newcommand{\pagex}[1]{Page \pageref{page:#1}} |
| 262 |
% \newcommand{\tabsetx}[3]{\vspace*{.09375in} |
| 263 |
% \refstepcounter{mytabs} \label{tab:#3} |
| 264 |
% \centerline{Table \arabic{mytabs}: #2} |
| 265 |
% \vspace*{-.0325in} |
| 266 |
% } |
| 267 |
% \hyphenation{Lan-guage lan-guage choi-ces prin-ted de-fi-ni-tion} |
| 268 |
% |
| 269 |
% \maketitle |
| 270 |
% \begin{multicols}{2} |
| 271 |
% |
| 272 |
% \makeatletter |
| 273 |
% \renewcommand{\l@section}{\@dottedtocline{1}{.05em}{1.65em}} |
| 274 |
% \renewcommand{\l@subsection}{\@dottedtocline{2}{1.65em}{3em}} |
| 275 |
% \makeatother |
| 276 |
% |
| 277 |
% \tableofcontents |
| 278 |
% \end{multicols} |
| 279 |
% |
| 280 |
% \newpage |
| 281 |
% |
| 282 |
% \newcommand{\hdr}[1]{\multicolumn{1}{c}{\textbf{ #1}}} |
| 283 |
% |
| 284 |
% \section{The \texttt{newlfm.cls} class} |
| 285 |
% \newcommand{\reffit}[1]{(Section \ref{#1}, Page \pageref{#1})} |
| 286 |
% |newlfm|~ is a {\tt new} {\tt l}etter, {\tt f}ax and {\tt m}emo class. |
| 287 |
% It gives the user control over many elements of letter construction. |
| 288 |
% It enables the user to construct a simple database of letter |
| 289 |
% information for letter information storage. It includes commands to |
| 290 |
% print labels, and issue form letters to multiple recipients. |
| 291 |
% Additionally, the class includes tools to produce standard press |
| 292 |
% releases. |
| 293 |
% |
| 294 |
% \subsection{Writing a simple letter} |
| 295 |
% Here is an example of a very simple letter: |
| 296 |
% \begin{verbatim} |
| 297 |
% \documentclass[stdletter]{newlfm} |
| 298 |
% \nameto{George Bush} \addrto{\parbox{2in}{The White House \\ Washington, DC}} |
| 299 |
% \namefrom{Paul Thompson} \addrfrom{\parbox{2in}{The Pink House \\ Belleville, IL}} |
| 300 |
% \begin{document} |
| 301 |
% \closeline{Sincerely yours,} \greetto{Dear Mr. Bush,} |
| 302 |
% \begin{newlfm} |
| 303 |
% How are the azaleas? |
| 304 |
% \end{newlfm} |
| 305 |
% \end{document} |
| 306 |
% \end{verbatim} |
| 307 |
% This produces a simple letter with very standard features. The letter |
| 308 |
% produced in this way has odd-looking spacing. Additionally, the |
| 309 |
% information in the ``from'' specification is very likely to be repeated |
| 310 |
% in letter after letter. Although the user can copy this information, |
| 311 |
% it is much more convenient to put this information in an address |
| 312 |
% database. |
| 313 |
% |
| 314 |
% \subsection{Option specification} |
| 315 |
% \label{sec:opt} |
| 316 |
% The |newlfm| package features a wide variety of options to specify |
| 317 |
% options for letters, faxes and memos. |
| 318 |
% Options may be specified in one of two ways: |
| 319 |
% \begin{enumerate} |
| 320 |
% \item They may be placed in the options section of the |\documentclass| |
| 321 |
% statement. Thus, the options would be specified as follows, with |
| 322 |
% several other statements to provide context: |
| 323 |
% \begin{verbatim} |
| 324 |
% \documentclass[dvips,faxheaderpage,letterpaper,% |
| 325 |
% stdmemo,dateno,memoaddrto]{newlfm} |
| 326 |
% \lthOfficeA\setadrto{\adrMainCust} |
| 327 |
% \leftmarginsize{.75in}\rightmarginsize{1.385in} |
| 328 |
% \begin{document}\begin{newlfm} |
| 329 |
% Now is the time for all good men to come to the aid of the party. |
| 330 |
% \end{newlfm}\end{document} |
| 331 |
% \end{verbatim} |
| 332 |
% This is called the ``document-header'' approach. |
| 333 |
% Options may be specified in the preamble area (after the |
| 334 |
% |documentclass| specification and before the \verb|\begin{document}| |
| 335 |
% specification). |
| 336 |
% The terms |\lthOfficeA| and |\adrMainCust| refer to specifications in the |
| 337 |
% letter information database, which is described in Section |
| 338 |
% \ref{sect:wrapper}. Note the use of the ``\verb|%|'' to set all spaces |
| 339 |
% after the comma on the first line to comments; this functions to create |
| 340 |
% a single unified line. |
| 341 |
% \item Options may also be placed in a statement in |
| 342 |
% the letter itself, or stored in the letter database file |
| 343 |
% |letrinfo.tex|. Using this approach, options are specified as follows: |
| 344 |
% \begin{verbatim} |
| 345 |
% \documentclass[dvips]{newlfm} |
| 346 |
% \newlfmP{letterpaper,stdmemo,dateno,letrh=OfficeA,addrt=MainCust,memoaddrto,faxheaderpage} |
| 347 |
% \begin{document}\begin{newlfm} |
| 348 |
% Now is the time for all good men to come to the aid of the party. |
| 349 |
% \end{newlfm}\end{document} |
| 350 |
% \end{verbatim} |
| 351 |
% This is called the ``keyed-value'' approach. In previous versions, |
| 352 |
% several distinct ``keyed-value'' specifications were used, but |
| 353 |
% currently all options are placed in the |newlfmP| key specification. |
| 354 |
% The terms |OfficeA| and |MainCust| refer to specifications in the |
| 355 |
% letter information database, which is described in Section \ref{sect:wrapper}. |
| 356 |
% \end{enumerate} |
| 357 |
% The approaches may be intermingled without effect. Options are applied |
| 358 |
% in order of encounter, so the last option encountered over-rides |
| 359 |
% earlier ones. |
| 360 |
% |
| 361 |
% \section{Available styles} |
| 362 |
% \subsection{Letter styles} |
| 363 |
% \label{sec:let}% |
| 364 |
% |newlfm| defines several letter styles. These styles are chosen using |
| 365 |
% options (in either selection method). Letters include some or all of the following components: |
| 366 |
% 1) date, 2) from-address, 3) to-address, 4) opening salutation, 5) |
| 367 |
% closing phrase, 6) signature, and 7) name and title of signer. |
| 368 |
% Justification of the components is shown in \tabr{addrloc} below. |
| 369 |
% |
| 370 |
% \subsection{Memo styles} |
| 371 |
% \label{sec:mem} |
| 372 |
% Memos are headed as: |
| 373 |
% \begin{center} |
| 374 |
% \begin{tabular}{lll} |
| 375 |
% To: & J Smith & \today \\ |
| 376 |
% From: & P A Thom & \\ |
| 377 |
% Re: & Gnu info & \\ |
| 378 |
% \end{tabular} |
| 379 |
% \end{center} |
| 380 |
% A number of options control whether more \info{} is printed for the |
| 381 |
% memo, including printing the address, phone number and FAX number of |
| 382 |
% both the ``from'' and ``to'' persons (after the |
| 383 |
% name). There are two forms of the memo style, as shown in |
| 384 |
% \tabr{addrloc} below. The user may use their |
| 385 |
% own version of the memo block. |
| 386 |
% |
| 387 |
% \subsection{A list of styles in \texttt{newlfm}} |
| 388 |
% \tabr{addrloc} shows the components of a letter, and indicates when |
| 389 |
% they will be used in letters: |
| 390 |
% |
| 391 |
% \tabsetx{3}{Letter and memo structures}{addrloc} |
| 392 |
% \begin{center} |
| 393 |
% \begin{tabular}{lllllllllll} |
| 394 |
% \hdr{Class} & \hdr{Style} & \hdr{D} & \hdr{F} & \hdr{T} & \hdr{G} & |
| 395 |
% \hdr{C} & \hdr{S} & \hdr{N} & \hdr{Option name}\\ \hline |
| 396 |
% Letter & Business & L & L & L & L & L & L & L & |busletter| \\ |
| 397 |
% & B, No from & L & O & L & L & L & L & L & |busletternofrom| \\ |
| 398 |
% & Standard & R & R & L & L & R & R & R & |stdletter| \\ |
| 399 |
% & S, No from & R & O & L & L & R & R & R & |stdletternofrom| \\ \hline |
| 400 |
% Memo & Standard & R & L & L & O & O & O & O & |stdmemo| \\ |
| 401 |
% & Full & F & F & F & O & O & O & O & |fullmemo| \\ \hline |
| 402 |
% Press Release & Standard & L & L & O & O & O & O & L & |pressrelease| \\ \hline |
| 403 |
% \multicolumn{11}{l}{\parbox[t]{4.4in}{Headers --- |D|: Date; |F|: |
| 404 |
% From-address; |T|: To-address; |G|: |
| 405 |
% Greeting; |C|: Closing; |S|: Signature; |
| 406 |
% |N|: Name. Body entries --- |R|: Right-justified; |L|: Left-justified; |O|: |
| 407 |
% Omitted; |F|: Full}} |
| 408 |
% \end{tabular} |
| 409 |
% \end{center} |
| 410 |
% |
| 411 |
% \subsection{FAX cover pages} |
| 412 |
% A FAX cover page can be used for either the letter or the memo style. This |
| 413 |
% page shows the page count, time and date of composition, and the addresses |
| 414 |
% of sender and recipient. In addition, the letter can include a FAX message |
| 415 |
% in a message line. |
| 416 |
% |
| 417 |
% \section{Letter and memo options} |
| 418 |
% \subsection{Use of options} |
| 419 |
% \label{sec:leto} |
| 420 |
% In |newlfm|, the various components of the letter can be modified. |
| 421 |
% This is done using options (placed in the ``document-header'' or |
| 422 |
% ``keyed-value'' approaches). |
| 423 |
% |
| 424 |
% The following example illustrates option placement in the document |
| 425 |
% header line: |
| 426 |
% \begin{verbatim} |
| 427 |
% \documentclass[busletter,nofromaddress,dateright,dateyes]{newlfm}% |
| 428 |
% \lthMyLtr |
| 429 |
% \begin{document} |
| 430 |
% \begin{newlfm} |
| 431 |
% \end{verbatim} |
| 432 |
% This prints a business letter, with no ``from''-address, and date printed |
| 433 |
% right-justified. Since some options can over-ride actions of others, |
| 434 |
% the options are executed in the order encountered. Long specifications which |
| 435 |
% cannot nicely fit on a single line should be terminated with the command |
| 436 |
% character \verb|%|, which omits spaces in the specification list. The |
| 437 |
% list may continue as long as is necessary. |
| 438 |
% |
| 439 |
% The \info{} may also be specified using the ``keyed-value'' approach: |
| 440 |
% \begin{verbatim} |
| 441 |
% \documentclass{newlfm}% |
| 442 |
% \newlfmP{letrh=MyLtr,busletter,nofromaddress,dateright,dateyes} |
| 443 |
% \begin{document} |
| 444 |
% \begin{newlfm} |
| 445 |
% \end{verbatim} |
| 446 |
% The ``keyed-value'' method is very flexible. Values may be |
| 447 |
% specified either as above (before the |\begin{document}| specification) |
| 448 |
% or within the letter database. Thus, the approach gives the user the |
| 449 |
% flexibility of storing letter characteristics within the address |
| 450 |
% system, so that the selection of a certain recipient defines a letter |
| 451 |
% of a certain type. |
| 452 |
% |
| 453 |
% \subsection{Letter options} |
| 454 |
% Letter options involve the inclusion of elements into ``from-address'' |
| 455 |
% and ``to-address'' blocks (including email and telephone numbers) and |
| 456 |
% the placement of blocks on the page. Blocks may also be omitted. Options |
| 457 |
% may be defined using either options specification method: |
| 458 |
% |
| 459 |
% \tabsetx{3}{Letter options}{letteropt} |
| 460 |
% \begin{center} |
| 461 |
% \begin{tabular}{lllll} |
| 462 |
% \hdr{Component} & \hdr{Option} & \hdr{Description} & |
| 463 |
% \hdr{Option} & \hdr{Description} \\ \hline |
| 464 |
% ``From'' address & |noaddrfrom| & Omit address |
| 465 |
% &|printallfrom| & Print all components \\ |
| 466 |
% &|addrfromleft| & Left-justified block |
| 467 |
% &|addrfromright| & Right-justified \\ |
| 468 |
% &|addrfromemail| & Include e-mail |
| 469 |
% &|addrfromphone| & Include phone \\ |
| 470 |
% &|addrfromfax| & Include fax \\ \hline |
| 471 |
% ``To'' address & |
| 472 |
% |printallto| & Print all components |
| 473 |
% &|addrtoleft| & Left-justified block \\ |
| 474 |
% &|addrtoright| & Right-justified |
| 475 |
% &|addrtoemail| & Include e-mail \\ |
| 476 |
% &|addrtophone| & Include phone |
| 477 |
% &|addrtofax| & Include fax \\ \hline |
| 478 |
% Date & |
| 479 |
% |dateright| & Right-justified |
| 480 |
% &|dateleft| & Left-justified \\ |
| 481 |
% &|datecenter| & Centered |
| 482 |
% &|dateno| & Omit \\ |
| 483 |
% &|dateyes| & Force date to print \\ \hline |
| 484 |
% Order & |
| 485 |
% |orderdatefromto| & Date, From, To |
| 486 |
% &|orderfromdateto| & From, Date, To \\ |
| 487 |
% &|orderfromtodate| & From, To, Date \\ \hline |
| 488 |
% Signature & |
| 489 |
% |sigright| & Right-justified |
| 490 |
% &|sigleft| & Left-justified \\ |
| 491 |
% &|sigcenter| & Centered \\ |
| 492 |
% \hline |
| 493 |
% \end{tabular} |
| 494 |
% \end{center} |
| 495 |
% |
| 496 |
% \subsection{Memo options} |
| 497 |
% \label{sec:memo} |
| 498 |
% Memo options involve the inclusion of elements into ``from-address'' |
| 499 |
% and ``to-address'' blocks (including email and telephone numbers) and |
| 500 |
% the placement of blocks on the page. Blocks may also be omitted. These |
| 501 |
% may be placed either in the ``document-header'' option section, or in |
| 502 |
% the command |\newlfmP|. |
| 503 |
% \tabsetx{3}{Memo options}{memoopt} |
| 504 |
% \label{page:memoo} |
| 505 |
% \begin{center} |
| 506 |
% \begin{tabular}{lllll} |
| 507 |
% \hline |
| 508 |
% \hdr{Block} & \hdr{Option} & \hdr{Function}& \hdr{Option} & \hdr{Function} \\ |
| 509 |
% ``From'' block & |
| 510 |
% |memonofrom| & Omit block |
| 511 |
% &|memoaddrfrom| & Address \\ |
| 512 |
% &|memoemailfrom| & E-mail |
| 513 |
% &|memopagerfrom| & Pager \# \\ |
| 514 |
% &|memophonefrom| & Telephone \# |
| 515 |
% &|memofaxfrom| & FAX \# \\ \hline |
| 516 |
% ``To'' block & |
| 517 |
% |memonoto| & Omit block |
| 518 |
% &|memoaddrto| & Address \\ |
| 519 |
% &|memoemailto| & E-mail |
| 520 |
% &|memophoneto| & Telephone \# \\ |
| 521 |
% &|memopagerto| & Pager \# |
| 522 |
% &|memofaxto| & FAX \# \\ \hline |
| 523 |
% Other & |
| 524 |
% |memodate| & Set date on memo |
| 525 |
% &|memonore| & Omit ``Re:'' line \\ |
| 526 |
% &|fullmemo| & Use all optional items \\ \hline |
| 527 |
% \end{tabular} |
| 528 |
% \end{center} |
| 529 |
% |
| 530 |
% \subsection{Memo block structure} |
| 531 |
% The default memo block code was shown previously. The memo style is |
| 532 |
% stored internally, but as |\newlfm| is processed, it looks for a file |
| 533 |
% |memosec.tex|, and reads the memo header block definition in that file |
| 534 |
% if it is found. If an alternative to the default memo header block |
| 535 |
% structure is desired, the user may feel free to hack the code found in |
| 536 |
% |smemosec.tex| and save it in |memosec.tex|. Thus, you may alter |
| 537 |
% that file to make changes in the memo block. To simplify the process, |
| 538 |
% you may wish to 1) set up the main |
| 539 |
% parameters for |\newlfm| successfully, and 2) alter the code in |
| 540 |
% |memosec.tex| to look as you wish. Using this approach, you may |
| 541 |
% find that the alteration process works in a more dependable fashion. No |
| 542 |
% support for modification of code is able to be offered, unfortunately. |
| 543 |
% The code for |\memosec| is presented and commented on Page |
| 544 |
% \pageref{page:memosec}. |
| 545 |
% |
| 546 |
% \subsection{Fax options} |
| 547 |
% \label{sec:faxo} |
| 548 |
% Fax options involve the selection of one of several fax block styles. |
| 549 |
% |test1.tex| shows an example of the use of |faxheaderpage| (separate |
| 550 |
% fax page), while |faxhba| shows an example of the use of |faxhba| (fax |
| 551 |
% information in header block). |
| 552 |
% The code for |\faxpage| is presented and commented on Page |
| 553 |
% \pageref{page:faxsec}. |
| 554 |
% |
| 555 |
% \tabsetx{3}{FAX options}{faxopt} |
| 556 |
% \label{page:faxo} |
| 557 |
% \begin{center} |
| 558 |
% \begin{tabular}{llll} |
| 559 |
% \hline |
| 560 |
% \hdr{Option} & \hdr{FAX item} & \hdr{Option} & \hdr{FAX item} \\ |
| 561 |
% \hline |
| 562 |
% |faxheaderpage| & Print FAX page & |
| 563 |
% |faxhba| & In Rheader \\ |
| 564 |
% |faxblocka| & Block A style & |
| 565 |
% |faxblockb| & Block B style \\ |
| 566 |
% \hline |
| 567 |
% \end{tabular} |
| 568 |
% \end{center} |
| 569 |
% |
| 570 |
% \subsection{Press Release style} |
| 571 |
% \label{sec:pr} |
| 572 |
% There is only one press release style. A press release includes |
| 573 |
% the following elements, in this order: |
| 574 |
% \begin{enumerate} |
| 575 |
% \item The information about the contact, address, etc. of the contact |
| 576 |
% person is taken from the current ``from-address'' information. So, to |
| 577 |
% insert a person into the ``Contact'' line specified below, use the |
| 578 |
% |addrf| specification or the other methods of indicating the |
| 579 |
% ``from-information.'' |
| 580 |
% \item On the upper left, below the letterhead, information about |
| 581 |
% when the release may be used. Usually this is {\bf FOR IMMEDIATE |
| 582 |
% RELEASE}. This phrase is modified using the command |\release|. |
| 583 |
% \item Contact information, drawn from the from information used in |
| 584 |
% the other styles. The option |PhrContact| allows the user to |
| 585 |
% substitute another term for ``Contact:''. |
| 586 |
% \item Headline, usually in boldface with the first letters of |
| 587 |
% words capitalized. This is specified with the |\headline| command. |
| 588 |
% The press release style automatically inserts a header into the |
| 589 |
% center block of the head section for all subsequent pages. This is |
| 590 |
% the same as the |headline| information, unless a different value is |
| 591 |
% defined with the |\shorthead| command. |
| 592 |
% \item Dateline, usually a city. The date is appended automatically. |
| 593 |
% \item The main body of the press release. |
| 594 |
% \item The end marker, usually \# \# \#. |
| 595 |
% \end{enumerate} |
| 596 |
% |
| 597 |
% Because recipients like to scribble notes on press releases, they |
| 598 |
% have 1 inch margins (that is the default anyway) and double |
| 599 |
% spacing; the command |dspace| will also set double spacing, while |
| 600 |
% |sspace| retains single spacing. |
| 601 |
% \footnote{Do not put a |onehalfspace| environment |
| 602 |
% directly inside the default |doublespace|. The former multiplies |
| 603 |
% whatever spacing is in effect.} |
| 604 |
% |
| 605 |
% A press release should also try not to break paragraphs across |
| 606 |
% pages (not yet implemented), and, if there are multiple pages, put |
| 607 |
% ``--- more ---'' at the bottom and the headline (or a short form of |
| 608 |
% it) at the top of subsequent pages. |
| 609 |
% |
| 610 |
% If faxing a press release, remember to pick a good fax font. As |
| 611 |
% this matter is not specific to press releases, and is system |
| 612 |
% dependent, this press release environment does nothing special to |
| 613 |
% your fonts. Usually, sans serif fonts work better when faxing, so |
| 614 |
% you might want to specify |\sffamily| right after |
| 615 |
% |\begin{document}|. |
| 616 |
% |
| 617 |
% A press release does not have a signature or closing phrase at |
| 618 |
% the end. |
| 619 |
% |
| 620 |
% \subsection{Press Release options} |
| 621 |
% Press releases are inherently subjective in construction. What works |
| 622 |
% for one person will not work for another. The style defined in |
| 623 |
% |newlfm| is servicable, but not particularily elegant. For that |
| 624 |
% reason, a very easy method of customization is set up. The file |
| 625 |
% |sprsrls.tex| includes the default press release style. To change the |
| 626 |
% style: |
| 627 |
% \begin{enumerate} |
| 628 |
% \item Copy the file to |prsrls.tex|; |
| 629 |
% \item Modify the style as needed; |
| 630 |
% \item Test using a press release of your choosing. |
| 631 |
% \end{enumerate} |
| 632 |
% |
| 633 |
% \section{Spacing commands} |
| 634 |
% \label{sec:spac} |
| 635 |
% |newlfm| has a number of commands which allow the user to define the |
| 636 |
% position of items within the letter. Some of these commands control |
| 637 |
% the space for structural elements of the document, and some control |
| 638 |
% spacing within these structural elements. |
| 639 |
% |
| 640 |
% \subsection{Structure of a \LaTeX\ document} |
| 641 |
% A \LaTeX\ document has a number of structural elements, summarized in |
| 642 |
% Figure \ref{fig:lay}. |
| 643 |
% \begin{figure}[htbp] |
| 644 |
% \begin{center} |
| 645 |
% \leavevmode |
| 646 |
% \layout |
| 647 |
% \vspace{3cm} |
| 648 |
% \caption{Page elements. The values shown are those in effect in the |
| 649 |
% current document, not the defaults.} |
| 650 |
% \label{fig:lay} |
| 651 |
% \end{center} |
| 652 |
% \end{figure} |
| 653 |
% Examining this figure, there are three sections vertically (header, |
| 654 |
% text body, footer) and three sections horizontally (left margin, text |
| 655 |
% body, right margin). Each of these sections is placed in reference to the |
| 656 |
% paper boundaries. Vertically, the header is offset from the top of the |
| 657 |
% page, there is a separation to the text body, there is a separation |
| 658 |
% from the text body to the footer, and the footer is offset from the |
| 659 |
% bottom of the page. |
| 660 |
% |
| 661 |
% \subsection{Vertical spacing} |
| 662 |
% Vertical spacing commands are shown in \tabr{spacever}. This table |
| 663 |
% shows the various components of the \LaTeX\ page, along with the |
| 664 |
% commands which are used to define or modify these elements in |newlfm|. |
| 665 |
% Naturally, since the physical page has a physical |
| 666 |
% dimension, the size of one component can be defined by the other |
| 667 |
% dimensions save one. In |newlfm|, commands which give the structure of |
| 668 |
% the overall document are amplified and extended by commands which give |
| 669 |
% the structure of the document within the text body itself. These |
| 670 |
% additional items are shown in \tabr{spvextitem}. |
| 671 |
% |
| 672 |
% For many of these terms, they may be used alone or within the |
| 673 |
% |newlfmP| specification. If used alone, they are specified as \LaTeX\ |
| 674 |
% commands, while if used within the |newlfmP| specification, they are |
| 675 |
% used without the backslash: |
| 676 |
% \begin{verbatim} |
| 677 |
% \topmarginskip{1in} |
| 678 |
% \newlfmP{topmarginskip=1in} |
| 679 |
% \end{verbatim} |
| 680 |
% |
| 681 |
% \tabsetx{8}{Vertical spacing commands}{spacever} |
| 682 |
% \begin{center} |
| 683 |
% \setlength{\tabcolsep}{3pt} |
| 684 |
% \begin{tabular}{lllllp{120pt}l} \hline |
| 685 |
% \hdr{Page} & \hdr{\LaTeX} & \hdr{\texttt{newlfm}} & \hdr{Default} & \hdr{Included} & \hdr{Function} \\ |
| 686 |
% \hdr{Section} & \hdr{Name} & \hdr{Name} & & \hdr{Items} & \hdr{Description} \\ \hline |
| 687 |
% Top Margin & |\topmargin| & |unprtop| & & & Top unprintable area \\ |
| 688 |
% & & |topmarginskip| & & & Top of page to header block \\ |
| 689 |
% Header & |\headheight| & |MinHead| & & Group 1 & Header section \\ |
| 690 |
% & & |headermarginsize| & 72pt & & Header section \\ |
| 691 |
% Header Skip & |\headsep| & |headermarginskip| & 20pt & & Skip from header to text block top \\ |
| 692 |
% Text Height & |\textheight| & |textheightsize| & & Group 2 & \\ |
| 693 |
% Footer skip & |\footskip| & |bottommarginskip| & 20pt & & Skip from bottom of text to footer \\ |
| 694 |
% Footer & |\footskip| & |MinFoot| & 72pt & Group 3 & Footer section \\ |
| 695 |
% & & |footermarginsize| & & & \\ |
| 696 |
% & & |unprbottom| & & & Bottom unprintable area \\ \hline |
| 697 |
% \multicolumn{7}{l}{\parbox[t]{6in}{Group 1: \texttt{Cheader}, \texttt{Rheader}, |
| 698 |
% \texttt{Lheader}, \texttt{cheader}, \texttt{rheader}, \texttt{lheader}. Group 2: \texttt{date}, |
| 699 |
% to-address, from-address, \texttt{greetto}, \texttt{signature}. Group 3: |
| 700 |
% \texttt{Cfooter}, \texttt{Rfooter}, |
| 701 |
% \texttt{Lfooter}, \texttt{cfooter}, \texttt{rfooter}, \texttt{lfooter}}} |
| 702 |
% \end{tabular} |
| 703 |
% \end{center} |
| 704 |
% |
| 705 |
% \tabsetx{8}{Vertical spacing commands}{spvextitem} |
| 706 |
% \begin{center} |
| 707 |
% \setlength{\tabcolsep}{3pt} |
| 708 |
% \begin{tabular}{lllll} \hline |
| 709 |
% \hdr{Function} & \hdr{\texttt{newlfm}}&\hdr{Section}& \hdr{Space} & \hdr{Space} \\ |
| 710 |
% \hdr{Name} & \hdr{Structure} & \hdr{Size} & \hdr{Before} & \hdr{After} \\ \hline |
| 711 |
% Date & |\dateset| & & |dateskipbefore| & |dateskipafter| \\ |
| 712 |
% ``From'' address & |\adrsetfr{XXX}| & & |addrfromskipbefore| & |addrfromskipafter| \\ |
| 713 |
% ``To'' address & |\adrsetto{XXX}| & & |addrtoskipbefore| & |addrtoskipafter| \\ |
| 714 |
% Greeting & |\greetto| & & |greettoskipbefore| & |greettoskipafter| \\ |
| 715 |
% Text Block & & |textheight| & & \\ |
| 716 |
% Left Margin Block & |\Lmargin| & & |leftmargintopdist| & \\ |
| 717 |
% Right Margin Block& |\Rmargin| & & |rightmargintopdist| & \\ |
| 718 |
% Close line & |\closeline| & & |closeskipbefore| & |closeskipafter| \\ |
| 719 |
% Signature & |\signature| & |sigsize| & |sigskipbefore| & |sigskipafter| \\ |
| 720 |
% & |\siglist| & & & \\ |
| 721 |
% |Ps|, |PPs|, etc & Various & & |postsigskipbefore| & |postsigskipafter| \\ |
| 722 |
% Memo block & Various & & |memoskipbefore| & |memoskipafter| \\ \hline |
| 723 |
% \end{tabular} |
| 724 |
% \end{center} |
| 725 |
% |
| 726 |
% Here are several rules which are used to define the sizes of items: |
| 727 |
% \begin{itemize*} |
| 728 |
% \item If header margin specifications (|\Cheader|, etc.) are not used, |
| 729 |
% |headermarginskip| and |topmarginskip| are ignored. In this |
| 730 |
% case, |topmargin| alone is sufficient to specify the size of the top margin. |
| 731 |
% If |unprtop| is specified, and $|unprtop| > |\topmargin|$, |
| 732 |
% |unprtop| is used in place of |topmargin|. |
| 733 |
% If |\unprtop| is specified, and $|\unprtop| > |\topmarginskip|$, |
| 734 |
% |\unprtop| is used in place of |\topmarginskip|. |
| 735 |
% \item If any of the footer margin specifications (|\Cfooter|, |
| 736 |
% |\Rfooter|, or |\Lfooter|) are used to specify a footer margin block, |
| 737 |
% |\bottommarginskipbelow| and |\bottommarginskip| are both used to position |
| 738 |
% the bottom- or footer-margin block relative to the text. Additionally, |
| 739 |
% the overall height (including depth) of the largest of the three |
| 740 |
% footer-margin placement blocks |
| 741 |
% is used to specify the value of |\footermarginsize|. |
| 742 |
% If |\unprbottom| is specified, and $|\unprbottom| > |\bottommargin|$, |
| 743 |
% |\unprbottom| is used in place of |\bottommarginsize|. |
| 744 |
% \item |\topmarginsize| and |\bottommarginsize| are sufficient to specify the |
| 745 |
% positions of blocks vertically. If |\textheight| is also specified, it |
| 746 |
% is used last, and over-rides the specification of text height by subtraction. |
| 747 |
% \item If a left margin text block is specified using |\Lmargin|, |
| 748 |
% |\leftmargintopdist| sets the space that the left margin block is placed |
| 749 |
% from the top of the page. By default, the left margin is placed flush |
| 750 |
% with the bottom of the header section. Any choice here sets the top |
| 751 |
% of the header block a certain distance from the top of the page. |
| 752 |
% \item The use of space-after commands is not recommended in the general |
| 753 |
% case, as they can complicate item placement. |
| 754 |
% \end{itemize*} |
| 755 |
% |
| 756 |
% \subsection{Horizontal spacing} Horizontal spacing commands are shown in |
| 757 |
% \tabr{spacehor}. |
| 758 |
% |
| 759 |
% \label{page:skipc} |
| 760 |
% \tabsetx{8}{Horizontal spacing commands}{spacehor} |
| 761 |
% \begin{center} |
| 762 |
% \setlength{\tabcolsep}{3pt} |
| 763 |
% \begin{tabular}{lllllp{100pt}l} \hline |
| 764 |
% \hdr{Page} & \hdr{\LaTeX} & \hdr{\texttt{newlfm}}& \hdr{Default} & \hdr{Included} & \hdr{Function} \\ |
| 765 |
% \hdr{Section} & \hdr{Name} & \hdr{Name} & & \hdr{Items} & \hdr{Description} \\ \hline |
| 766 |
% Left Margin & |\oddsidemargin| & |unprleft| & & & Left unprintable area \\ |
| 767 |
% & & |leftmarginskipleft|& & |
| 768 |
% & Page left side to margin block \\ |
| 769 |
% Left Print Area& & |MinLeft| & & Group 4 & Left print section \\ |
| 770 |
% & & |leftmarginsize| & 72pt & & Header section \\ |
| 771 |
% Left Margin Gap& & |leftmarginskipright|& 10pt & & Dist from margin block to text \\ |
| 772 |
% Text Width & |\textwidth| & |textwidthsize| & & & \\ |
| 773 |
% Right margin & |\evensidemargin|& |rightmarginsize| & & Group 5 & \\ \hline |
| 774 |
% \multicolumn{7}{l}{\parbox[t]{6.4in}{Group 4: \texttt{Lmargin}, \texttt{lmargin} |
| 775 |
% Group 5: \texttt{Rmargin}, \texttt{rmargin}}} |
| 776 |
% \end{tabular} |
| 777 |
% \end{center} |
| 778 |
% |
| 779 |
% Usage of these spacing commands: |
| 780 |
% \begin{itemize*} |
| 781 |
% \item The size of the left margin text block is set by the width of the |
| 782 |
% minimum of the |\Lmargin| block or by the |MinLeft| value. |
| 783 |
% \item When |\Lmargin| is used for a left margin block, both |
| 784 |
% |leftmarginskipleft| and |leftmarginskipright| are used to position |
| 785 |
% the left-margin block relative to the text. Additionally, the width of |
| 786 |
% |\Lmargin| is used to specify the value of |\leftmarginsize|. |
| 787 |
% If |\unprleft| is specified, and $|\unprleft| > |\leftmarginskipleft|$, |
| 788 |
% |\unprleft| is used in place of |\leftmarginskipleft|. |
| 789 |
% \item If |\Lmargin| is not used, |
| 790 |
% |leftmarginskipleft| and |leftmarginskipright| are ignored. In this |
| 791 |
% case, |\leftmarginsize| alone is sufficient to specify the size of the left margin. |
| 792 |
% If |\unprleft| is specified, and $|\unprleft| > |\leftmarginsize|$, |
| 793 |
% |\unprleft| is used in place of |\leftmarginsize|. |
| 794 |
% \item If |\Rmargin| is not used, and $|\unprright| > |\rightmarginsize|$, |
| 795 |
% |\unprright| is substituted for |\rightmarginsize|. |
| 796 |
% \item |\rightmarginsize| and |\leftmarginsize| are sufficient to specify the |
| 797 |
% positions of blocks horizontally. If |\textwidth| is also specified, it |
| 798 |
% is used last, and over-rides the specification of text width by subtraction. |
| 799 |
% \end{itemize*} |
| 800 |
% |
| 801 |
% \subsection{Ordering of elements:} |
| 802 |
% Date, from-address and to-address are generally printed |
| 803 |
% in that order. Other orders are set up using options. |
| 804 |
% \begin{itemize*} |
| 805 |
% \item |orderdatefromto|: date, from-address, to-address |
| 806 |
% \item |orderfromdateto|: from-address, date, to-address |
| 807 |
% \item |orderfromtodate|: from-address, to-address, date |
| 808 |
% \end{itemize*} |
| 809 |
% |
| 810 |
% \section{Address components} |
| 811 |
% \label{sec:adrz} |
| 812 |
% Information about the names, addresses, telephone numbers and the |
| 813 |
% other types of data is specified using these commands. |
| 814 |
% |
| 815 |
% \subsection{Address commands} |
| 816 |
% Address \info{} is specified using the commands in \tabr{adrtoc}. |
| 817 |
% These commands are used for both ``from-address'' and ``to-address.'' |
| 818 |
% However, the information stored using these commands must be converted |
| 819 |
% to specific ``from-address'' or ``to-address'' information, as |
| 820 |
% discussed below in Section \ref{sect:wrapper} below. |
| 821 |
% |
| 822 |
% \tabsetx{5}{Address item commands}{adrtoc} |
| 823 |
% \begin{center} |
| 824 |
% \begin{tabular}{llllll} \hline |
| 825 |
% \hdr{Command} & \hdr{Stores \ldots} & |
| 826 |
% \hdr{Command} & \hdr{Stores \ldots} & |
| 827 |
% \hdr{Command} & \hdr{Stores \ldots} \\ \hline |
| 828 |
% |\addr| & Address & |
| 829 |
% |\byline| & Byline & |
| 830 |
% |\city| & City \\ |
| 831 |
% |\dept| & Department & |
| 832 |
% |\email| & E-mail address & |
| 833 |
% |\emailb| & E-mail address b \\ |
| 834 |
% |\emailc| & E-mail address c & |
| 835 |
% |\fax| & FAX \# & |
| 836 |
% |\fname| & First name \\ |
| 837 |
% |\greet| & Greeting & |
| 838 |
% |\institute| & Institution & |
| 839 |
% |\lname| & Last name \\ |
| 840 |
% |\mname| & Middle name & |
| 841 |
% |\name| & Name & |
| 842 |
% |\pager| & Pager \# \\ |
| 843 |
% |\phone| & Telephone \# & |
| 844 |
% |\phonea| & Telephone \# a & |
| 845 |
% |\phoneb| & Telephone \# b \\ |
| 846 |
% |\phonec| & Telephone \# c & |
| 847 |
% |\phoned| & Telephone \# d & |
| 848 |
% |\phoneo| & Office \# \\ |
| 849 |
% |\phoneh| & Home \# & |
| 850 |
% |\position| & Position & |
| 851 |
% |\regarding| & ``Regarding'' line \\ |
| 852 |
% |\release| & ``Immediate Release'' & |
| 853 |
% |\role| & Role & |
| 854 |
% |\socsec| & Social Security \# \\ |
| 855 |
% |\staddr| & Street address & |
| 856 |
% |\state| & State & |
| 857 |
% |\subdept| & Sub-department \\ |
| 858 |
% |\title| & Title & |
| 859 |
% |\zip| & zip-code \\ |
| 860 |
% \hline |
| 861 |
% \end{tabular} |
| 862 |
% \end{center} |
| 863 |
% |
| 864 |
% \subsection{Phrase commands} |
| 865 |
% \label{sec:phras} |
| 866 |
% Letters and memos have certain phrases which identify sections. These |
| 867 |
% include the terms for ``To'' and ``From'' in the memo, and the phrases |
| 868 |
% identifying the other sections of letters. These phrases may be modified |
| 869 |
% using the commands listed here. They are used as: |
| 870 |
% \begin{verbatim} |
| 871 |
% \begin{newlfm} |
| 872 |
% .... |
| 873 |
% \PhrPhone{Telephone Number} |
| 874 |
% .... |
| 875 |
% \end{verbatim} |
| 876 |
% This term will be used whenever the phrase for ``Telephone Number'' |
| 877 |
% should be printed. |
| 878 |
% |
| 879 |
% \tabsetx{4}{Phrase commands}{phraseopt} |
| 880 |
% \begin{center} |
| 881 |
% \begin{tabular}{llllll} |
| 882 |
% \hline |
| 883 |
% \hdr{Command} & \hdr{Use} & \hdr{Command} & \hdr{Use} & \hdr{Command} & \hdr{Use} \\ |
| 884 |
% \hline |
| 885 |
% |\PhrFAXcovp| & FAX Cover page & |
| 886 |
% |\PhrFAXpgcnt| & FAX Page Count & |
| 887 |
% |\PhrPager| & Pager \\ |
| 888 |
% |\PhrEmail| & E-mail & |
| 889 |
% |\PhrDocument| & Document & |
| 890 |
% |\PhrPhone| & Telephone \\ |
| 891 |
% |\PhrRe| & re & |
| 892 |
% |\PhrSubre| & re & |
| 893 |
% |\PhrCc| & cc \\ |
| 894 |
% |\PhrPs| & ps & |
| 895 |
% |\PhrMessage| & Message & |
| 896 |
% |\PhrPps| & pps \\ |
| 897 |
% |\PhrPpps| & ppps & |
| 898 |
% |\PhrEncl| & Encl & |
| 899 |
% |\PhrPage| & page \\ |
| 900 |
% |\PhrTo| & To & |
| 901 |
% |\PhrFrom| & From & |
| 902 |
% |\PhrRegard| & Regarding \\ |
| 903 |
% |\PhrContact| & Contact & |
| 904 |
% |\PhrRelease| & For Immediate Release & |
| 905 |
% |\PhrMore| & --- more -- \\ |
| 906 |
% |\PhrPREnd| & \# \# \# & |
| 907 |
% & \\ |
| 908 |
% \hline |
| 909 |
% \end{tabular} |
| 910 |
% \end{center} |
| 911 |
% |
| 912 |
% \section{Letterhead tools} |
| 913 |
% \label{sect:lhead} |
| 914 |
% \subsection{Inclusion of logos} |
| 915 |
% Logos and other \info{}, stored as encapsulated PostScript objects (for |
| 916 |
% standard \LaTeX\ production using |latex file| and |dvips file|) or |
| 917 |
% .pdf files (for \LaTeX\ production using |pdflatex file|), |
| 918 |
% can be placed in the header and footer of letters. However, sizing the |
| 919 |
% resulting letter can be challenging. |newlfm| automatically adjusts |
| 920 |
% letter dimensions to accomodate the inclusion of such objects, if these |
| 921 |
% objects are included as boxed text (|\sbox|, |\fbox|, |\parbox|, |
| 922 |
% |minipage|, etc.). In the discussion that follows, the first page of |
| 923 |
% the letter is called the ``letterhead'' page, while subsequent pages |
| 924 |
% are the ``non-letterhead'' pages. |
| 925 |
% |
| 926 |
% Using |fancyhdr.sty| of Piet van Oostrom, |newlfm| handles letterhead |
| 927 |
% \info{} in a simple and straightforward manner. In |newlfm|, |
| 928 |
% \info{} for the letterhead page is entered using the |
| 929 |
% commands shown in \tabr{letterhopt}. |
| 930 |
% |
| 931 |
% \tabsetx{4}{Marginal material commands}{letterhopt} |
| 932 |
% \begin{center} |
| 933 |
% \begin{tabular}{lllllll} |
| 934 |
% \hline |
| 935 |
% \hdr{Page} & \hdr{Location} & \hdr{Left} & \hdr{Center} & \hdr{Right} \\ \hline |
| 936 |
% Letterhead & Footer & |\Lfooter| & |\Cfooter| & |\Rfooter| \\ |
| 937 |
% & Header & |\Lheader| & |\Cheader| & |\Rheader| \\ |
| 938 |
% & Margin & |\Lmargin| & & |\Rmargin| \\ |
| 939 |
% \hline \hline |
| 940 |
% Page & Location & Left & Center & Right \\ \hline |
| 941 |
% Non-letterhead & Footer & |\lfooter| & |\cfooter| & |\rfooter| \\ |
| 942 |
% & Header & |\lheader| & |\cheader| & |\rheader| \\ |
| 943 |
% & Margin & |\lmargin| & & |\rmargin| \\ |
| 944 |
% \hline |
| 945 |
% \end{tabular} |
| 946 |
% \end{center} |
| 947 |
% |
| 948 |
% In order to simply use letterhead logos and other PostScript pictorial |
| 949 |
% \info{} (logos, etc.), the program automatically calculates the |
| 950 |
% heights of the header and footer and optimally places them on the page. |
| 951 |
% In order for this to work, {\bfseries \itshape all \info{} for the |
| 952 |
% header and footer must be included in boxed formats}. That is, to use a |
| 953 |
% letterhead, logos, pictures, addresses, whatever must be placed in a |
| 954 |
% \LaTeX\ box structure. The boxed formatted items |
| 955 |
% may be included in a wrapper program. |
| 956 |
% |
| 957 |
% For example, if a logo is to be included from an external file, this |
| 958 |
% should be inserted into an |\sbox| and used as follows: |
| 959 |
% \begin{verbatim} |
| 960 |
% \newsavebox{\Lpalmb} |
| 961 |
% \sbox{\Lpalmb}{\parbox[t]{1.75in}{\includegraphics[scale=.4,ext=.pdf,% |
| 962 |
% angle=101,trim=-50 245 125 125]{palm}}}% |
| 963 |
% \makelth{Homea}{\Lheader{\usebox{\Lpalms}}}% |
| 964 |
% \end{verbatim} |
| 965 |
% |
| 966 |
% \subsection{Marginal material} |
| 967 |
% The left and right margins may also contain a box of text. This is placed in |
| 968 |
% |\Lmargin| or |\Rmargin|. The size of the margin is automatically calculated from |
| 969 |
% the box size. The box is placed a very small distance from the edge |
| 970 |
% of the paper (10pt), and the margin gap from the box to the text box of |
| 971 |
% the letter is set to be 10pt as well. |
| 972 |
% |
| 973 |
% In some cases, the header and footer margins may be too small when |
| 974 |
% fitted to the boxed-up header and footer items. For this reason, |
| 975 |
% four commands allow the headers and footers to have a given minimum |
| 976 |
% size. These commands are |minhead=xxpt| (minimum size for header of |
| 977 |
% non-letterhead page; xxpt is a dimensional value such as |5in| or |
| 978 |
% |12pt|), |MinHead=xxpt| (minimum size for header of |
| 979 |
% letterhead page), |minfoot=xxpt| (minimum size for footer of |
| 980 |
% non-letterhead page) and |MinFoot=xxpt| (minimum size for footer of |
| 981 |
% letterhead page). These ensure that the headers and footers have given |
| 982 |
% minimum sizes. |
| 983 |
% |
| 984 |
% \subsection{Graphical objects} |
| 985 |
% Here is a step-by-step description of the process of incorporating a |
| 986 |
% graphical object: |
| 987 |
% \begin{itemize*} |
| 988 |
% \item \textbf{Insert the object:} |
| 989 |
% Insert the graphical object into the document (|\includegraphics|). |
| 990 |
% \item \textbf{Check object:} |
| 991 |
% Ensure that the graphical object is included correctly. Prior to |
| 992 |
% attempting to use |newlfm| to print the object, ensure that |
| 993 |
% |\includegraphics| has inserted the \info{} correctly. Using the |
| 994 |
% |\fbox| specification to allow the box edges to be examined carefully, |
| 995 |
% print the boxed \info{} to ensure that the object is correctly |
| 996 |
% specified, and that the size is correct. If the appearance is |
| 997 |
% appropriate, use the wide range of options in the |\includegraphics| |
| 998 |
% command (|clip|, |view|, |bb|, |trim|, |size|, etc.) to make the |
| 999 |
% object appear as you wish it. |
| 1000 |
% \item \textbf{Use object:} |
| 1001 |
% Use the resulting trimmed, clipped and selected object in one of the |
| 1002 |
% commands for inclusion in a |newlfm| letter or memo. |
| 1003 |
% \item \textbf{Usage tip:} |
| 1004 |
% Run \LaTeX{} twice to ensure that dimensions are correctly interpreted. |
| 1005 |
% \end{itemize*} |
| 1006 |
% |
| 1007 |
% \subsection{Example use of external object:} |
| 1008 |
% Here is an example of the inclusion of an external object and its use |
| 1009 |
% in constructing a letterhead page. A |\newsavebox| is constructed and |
| 1010 |
% used to store the object. |\includegraphics| is used to insert the |
| 1011 |
% object. If commands to produce a .ps file are used (|latex file|, |
| 1012 |
% |dvips file|), \LaTeX\ will search for a file with the .ps or .eps |
| 1013 |
% suffix. If commands to produce a .pdf file are used (|pdflatex file|), |
| 1014 |
% \LaTeX\ will search for a file with the .pdf suffix. For |
| 1015 |
% flexibility, omit the suffix. |
| 1016 |
% \begin{verbatim} |
| 1017 |
% \newsavebox{\Logob}% |
| 1018 |
% \sbox{\Logob}{\parbox[t]{\vdim}{\includegraphics[scale=.8]{wulogo3}}}% |
| 1019 |
% \makeaddress{PAT}{% |
| 1020 |
% \name{Paul A. Thompson, Ph.D.}% |
| 1021 |
% \addr{\parbox[b]{2.65in}{Washington University School of Medicine \\% |
| 1022 |
% at Washington University Medical Center \\ Box 8067, 660 S. Euclid \\% |
| 1023 |
% St. Louis, MO 63110-1093}}% |
| 1024 |
% \phone{(314) 747-3793}\fax{(314) 362-2693}\email{[email protected]}% |
| 1025 |
% } |
| 1026 |
% \makeaddress{GRQ}{% |
| 1027 |
% \name{Roger Q. Grollier}% |
| 1028 |
% \addr{\parbox[b]{2.65in}{25 N. Eastwind Rd.\\Westend, OH 43431}}% |
| 1029 |
% \phone{(412) 555-2324}\fax{(412) 555-6923}\email{[email protected]}% |
| 1030 |
% } |
| 1031 |
% \makeletterhead{WULHb}{% |
| 1032 |
% \setadrfr{\adrPAT}\Lheader{\usebox{\Logob}}% |
| 1033 |
% \Rheader{{\large\bf Division of Biostatistics}}\rheader{\@name@fr}% |
| 1034 |
% \lheader{Page \thepage}\Lfooter{\smallform}\closeline{Sincerely yours,}% |
| 1035 |
% }% |
| 1036 |
% \end{verbatim} |
| 1037 |
% |
| 1038 |
% The two |makeaddress| specificiations set up wrapper commands (see |
| 1039 |
% Section \ref{sect:wrapper} below) which encapsulate the relevant |
| 1040 |
% information. The |\setadrfr| specification in the example converts the |
| 1041 |
% address information in |\adrPAT| from neutral to ``from-address'' |
| 1042 |
% formats. This can also be done using the wrapper ID specification, where it |
| 1043 |
% would be stated as |\setadrto{\fixadr{GRQ}}|, where the |\fixadr| |
| 1044 |
% specification converts the wrapper ID to the wrapper internally. |
| 1045 |
% |
| 1046 |
% In a letter, this is used as: |
| 1047 |
% \begin{verbatim} |
| 1048 |
% \documentclass[dvips]{newlfm} |
| 1049 |
% \lthWULHb\setadrto{\adrGRQ} |
| 1050 |
% \begin{document} |
| 1051 |
% \begin{newlfm} |
| 1052 |
% .... |
| 1053 |
% \end{verbatim} |
| 1054 |
% For this example, the object found in |wulogo3| was boxed up using |
| 1055 |
% the |\sbox| specification. It will be placed in the |
| 1056 |
% left section of the header block for the letterhead page. The logo was |
| 1057 |
% examined earlier to ensure that it |
| 1058 |
% is printed exactly as required. |
| 1059 |
% |
| 1060 |
% \paragraph*{Usage tip:} |
| 1061 |
% Examine the example of the inclusion of the graphical object above |
| 1062 |
% carefully. Note that all lines are terminated with the comment |
| 1063 |
% character ``\verb|%|''. All wrapper macros should be constructed in |
| 1064 |
% this manner, to ensure that no blank spaces are inadvertently placed in the |
| 1065 |
% wrapper macro \textbf{between commands}, other than those placed within |
| 1066 |
% a command (for instance, the |\addr| command has blanks). The wrapper |
| 1067 |
% macros should not have blanks around commands, either before the start |
| 1068 |
% of a command or after the end of one. The wrappers are ``unpacked'' |
| 1069 |
% during active text construction, and the presence of blanks can |
| 1070 |
% result in odd, difficult-to-trace minor justification anomalies. In |
| 1071 |
% many cases, the author has found it helpful to ensure that all lines in |
| 1072 |
% the wrapper addresses and terms are terminated with the ``\verb|%|'' |
| 1073 |
% comment character, to ensure that end-of-line characters are not |
| 1074 |
% translated into hard-to-detect space characters. |
| 1075 |
% |
| 1076 |
% \subsection{Including a pre-set sheet as background} |
| 1077 |
% In some cases, the letterhead or pre-set form is to be included as a full sheet of |
| 1078 |
% letterhead information. In this case, the pre-set form may be designated |
| 1079 |
% using the command |Background| (for letterhead form for the first page), and |background| |
| 1080 |
% (for pre-set form for subsequent pages after the first page). The form to be |
| 1081 |
% included should be set up as a valid graphical object. In the case of the use of |
| 1082 |
% the |pdflatex| process, it should be set up as a |.pdf| form, and in the case of |
| 1083 |
% |latex| processing, it should be set up as a valid |.ps| form, using the |
| 1084 |
% encapsulated PostScript approach with a valid bounding box. |
| 1085 |
% |
| 1086 |
% \subsection{Blank block printing commands} |
| 1087 |
% In some cases, the user wishes to use the included graphical objects to |
| 1088 |
% size the header and footer areas (covered in Section \ref{sect:lhead} |
| 1089 |
% below), and then not actually print the objects |
| 1090 |
% {\itshape per se}. For instance, the letter may be printed on letterhead |
| 1091 |
% stock, using the letterhead objects included to size the letter. In that |
| 1092 |
% case, the options shown in \tabr{blankopt} are available to blank out the various |
| 1093 |
% parts of the letterhead \info{} after it is used to set margin sizes. |
| 1094 |
% |
| 1095 |
% \tabsetx{4}{Options for blanking}{blankopt} |
| 1096 |
% \begin{center} |
| 1097 |
% \begin{tabular}{llllll} |
| 1098 |
% \hline |
| 1099 |
% \hdr{Option} & \hdr{Blanks \ldots} & \hdr{Option} & \hdr{Blanks \ldots} & |
| 1100 |
% \hdr{Option} & \hdr{Blanks \ldots} \\ \hline |
| 1101 |
% |blankheader| & |r,l,cheader| & |
| 1102 |
% |blankfooter| & |r,l,cfooter| & |
| 1103 |
% |blanklmargin| & |lmargin| \\ |
| 1104 |
% |blankrmargin| & |rmargin| & |
| 1105 |
% |Blankheader| & |R,L,Cheader| & |
| 1106 |
% |Blankfooter| & |R,L,Cfooter| \\ |
| 1107 |
% |Blanklmargin| & |Lmargin| & |
| 1108 |
% |Blankrmargin| & |Rmargin| & |
| 1109 |
% |Blankall| & All upper-case \\ |
| 1110 |
% |blankall| & All lower-case & |
| 1111 |
% |Blank| & All \\ |
| 1112 |
% \hline |
| 1113 |
% \end{tabular} |
| 1114 |
% \end{center} |
| 1115 |
% |
| 1116 |
% \section{The letter database} |
| 1117 |
% \label{sect:wrapper} |
| 1118 |
% \subsection{Letter database {\tt letrinfo.tex}} |
| 1119 |
% \Info{} for letters may be stored in a file. The default name of the |
| 1120 |
% file is |letrinfo.tex|. This file |
| 1121 |
% stores \info{} in two ways: unconditionally and conditionally. The |
| 1122 |
% conditional \info{}, such as lists of addresses associated with |
| 1123 |
% names, is stored in ``wrappers'', which carry the \info{} from |
| 1124 |
% the file |letrinfo.tex| to each letter. The |
| 1125 |
% information stored in the letter database file |letrinfo.tex| is letter |
| 1126 |
% information (i.e., |\name{Paul Thompson}|, |\PhrPhone{Telephone #}|). |
| 1127 |
% |
| 1128 |
% Several types of \info{} are stored in the file |letrinfo.tex|. These |
| 1129 |
% different types of \info{} may be stored in several ways. It may be |
| 1130 |
% stored unconditionally, by placing it into the file |letrinfo.tex|. |
| 1131 |
% All \info{}, used in the order listed, will be available for all letters. |
| 1132 |
% |
| 1133 |
% Most \info{} is not unconditional, however. For this reason, the \info{} |
| 1134 |
% will almost always be stored in address ``wrappers''. This |
| 1135 |
% includes \info{} about the ``from'' person, as this \info{} may |
| 1136 |
% change based on the style of letter, etc. The \info{} may be divided into |
| 1137 |
% three different types, and is thus placed into three types of |
| 1138 |
% wrapper commands. |
| 1139 |
% |
| 1140 |
% \subsection{Address \info{}} |
| 1141 |
% \label{page:wrapc} |
| 1142 |
% Address \info{} is stored in an address wrapper. The address wrapper |
| 1143 |
% has an wrapper ID and a body. The wrapper is set up using the command: |
| 1144 |
% \begin{verbatim} |
| 1145 |
% \makeaddress{IDENT}{stuff}. |
| 1146 |
% \end{verbatim} |
| 1147 |
% The wrapper ID is |IDENT|. |
| 1148 |
% This makes a wrapper for |
| 1149 |
% addresses, |\adrIDENT|. Commands placed in the wrapper are then carried into |
| 1150 |
% the document when the wrapper command is placed in the letter as: |
| 1151 |
% \begin{verbatim} |
| 1152 |
% \begin{document} |
| 1153 |
% \setadrto{\adrIDENT} |
| 1154 |
% \setadrfr{\adrOTHID} |
| 1155 |
% \begin{newlfm} |
| 1156 |
% ...... |
| 1157 |
% \end{verbatim} |
| 1158 |
% Note that the wrapper command is placed after |\begin{document}| and |
| 1159 |
% before |\begin{newlfm}|. |
| 1160 |
% All items entered into the |IDENT| wrapper are then activated in that |
| 1161 |
% particular document. This enables \info{} to be centrally stored in the |
| 1162 |
% |letrinfo.tex| file, and used in each actual letter. |
| 1163 |
% |
| 1164 |
% The wrappers may also be indicated using the |newlfmP| |
| 1165 |
% key-value specification: |
| 1166 |
% \begin{verbatim} |
| 1167 |
% \begin{document} |
| 1168 |
% \newlfmP{addrt=IDENT,addrf=OTHID} |
| 1169 |
% \begin{newlfm} |
| 1170 |
% ...... |
| 1171 |
% \end{verbatim} |
| 1172 |
% This also sets up |IDENT| as the ``to'' address and |OTHID| as the |
| 1173 |
% ``from'' address. |
| 1174 |
% |
| 1175 |
% Wrapper commands have two parameters. |
| 1176 |
% \begin{itemize*} |
| 1177 |
% \item The wrapper ID is the first parameter in the |\makeaddress| |
| 1178 |
% specification. The wrapper ID is used to set up |
| 1179 |
% a new command |\adrIDENT|, and is used in many other places by itself. |
| 1180 |
% In general, a simple identifier is best (i.e., addressee's initials). |
| 1181 |
% \item The actual items are placed in the second set of braces. The |
| 1182 |
% wrapper ID is case-sensitive. |
| 1183 |
% Whatever is placed there is used in the command, and carried along |
| 1184 |
% whenever it is used. The user may choose to place a wide variety of |
| 1185 |
% information in the wrapper. Commands usually used in address wrapper commands |
| 1186 |
% are shown in \tabr{adrtoc}. |
| 1187 |
% \end{itemize*} |
| 1188 |
% |
| 1189 |
% The address \info{} for a certain individual usually does not change |
| 1190 |
% from letter to letter, although different persons are used in different |
| 1191 |
% letters. By using address info{} wrappers, the \info{} can |
| 1192 |
% be handled and used easily with the single wrapper command. This |
| 1193 |
% information may be used for either the sender or the addressee for the |
| 1194 |
% letter. |
| 1195 |
% |
| 1196 |
% \paragraph{Designating a sender:} To use the address information for |
| 1197 |
% the sender or ``from-person,'' use the |\setadrfr| command or the |
| 1198 |
% |addrf| term in the |newlfmP| command: |
| 1199 |
% \begin{verbatim} |
| 1200 |
% \setadrfr{\adrPAT} |
| 1201 |
% \setadrfr{\fixadr{PAT}} |
| 1202 |
% \newlfmP{addrf=PAT} |
| 1203 |
% \end{verbatim} |
| 1204 |
% This sets up the information in the |PAT| wrapper to be |
| 1205 |
% placed in the ``from'' blanks of the letter. |
| 1206 |
% If the wrapper ID is used in the |\setadrfr| command, the |\fixadr| command |
| 1207 |
% converts the wrapper ID to the correct form. |
| 1208 |
% \paragraph{Designating a recipient:} To use the address |
| 1209 |
% information for the recipient, use the |\setadrto| command or the |
| 1210 |
% |addrt| term in the |newlfmP| command: |
| 1211 |
% \begin{verbatim} |
| 1212 |
% \setadrto{\adrPAT} |
| 1213 |
% \newlfmP{addrt=PAT} |
| 1214 |
% \setadrto{\fixadr{PAT}} |
| 1215 |
% \end{verbatim} |
| 1216 |
% This would set up the information in the |PAT| wrapper to be |
| 1217 |
% placed in the ``to'' blanks of the letter. |
| 1218 |
% |
| 1219 |
% \subsection{Letterhead \info{}} |
| 1220 |
% Letterhead \info{} is stored in a letterhead wrapper. The wrapper is |
| 1221 |
% prepared using the command: |
| 1222 |
% \begin{verbatim} |
| 1223 |
% \makeletterhead{LIDENT}{stuff} |
| 1224 |
% \end{verbatim} |
| 1225 |
% The wrapper usually contains \info about the header, footer and margin |
| 1226 |
% objects, which are used to set up the letterhead. This wrapper is |
| 1227 |
% used like the |\makeaddress| command. |
| 1228 |
% In many cases, the return address of the letter author is set up in the |
| 1229 |
% letterhead wrapper, because this does not change: |
| 1230 |
% \begin{verbatim} |
| 1231 |
% \makeletterhead{HomeA}{% |
| 1232 |
% \rheader{this}% |
| 1233 |
% \setadrfr{\adrPAT}% |
| 1234 |
% }% |
| 1235 |
% \end{verbatim} |
| 1236 |
% |
| 1237 |
% \subsection{Signature \info{}} |
| 1238 |
% Signature \info{} is stored in an signature wrapper. The wrapper is |
| 1239 |
% prepared using the command |
| 1240 |
% \begin{verbatim} |
| 1241 |
% \makesignature{SIDENT}{stuff} |
| 1242 |
% \end{verbatim} |
| 1243 |
% This wrapper is used like the |\makeaddress| command. |
| 1244 |
% The \info{} shown in \tabr{sigsc} is usually included in the |
| 1245 |
% |\makesignature| wrapper. |
| 1246 |
% |
| 1247 |
% \tabsetx{6}{Signature Commands}{sigsc} |
| 1248 |
% \begin{center} |
| 1249 |
% \begin{tabular}{llll} \hline |
| 1250 |
% \hdr{Command} & \hdr{Use}& \hdr{Command} & \hdr{Use} \\ \hline |
| 1251 |
% |\signature| & Boxed-up signature & |\signame| & Printed name \\ |
| 1252 |
% |\closeline| & Letter closing line \\ \hline |
| 1253 |
% \end{tabular} |
| 1254 |
% \end{center} |
| 1255 |
% |
| 1256 |
% In some cases, multiple signatures are required. These are listed in a |
| 1257 |
% command |\siglist|: |
| 1258 |
% \begin{verbatim} |
| 1259 |
% \siglist{AAA,BBB,CCC} |
| 1260 |
% \end{verbatim} |
| 1261 |
% In this case, three signatures are printed. By default, they are |
| 1262 |
% printed in a left-justified column. To print them in a row, use |
| 1263 |
% |\sigacross{2}| to indicate the number of signature blocks printed in |
| 1264 |
% each row (the maximum number is 4). Each signature is printed in a |
| 1265 |
% block of the height and width of the largest signature block. For this |
| 1266 |
% approach, the letter will look odd and unbalanced if signatures are of |
| 1267 |
% different sizes. The user must ensure that all signatures are of the same |
| 1268 |
% size, as the program cannot ensure this. Additionally, each signature |
| 1269 |
% wrapper is unpacked to determine closing line and printed name. |
| 1270 |
% Spacing between signature block columns is set by |\sigskipcolumn|, and |
| 1271 |
% spacing between signature block rows is set by |\sigskiprow|. |
| 1272 |
% |
| 1273 |
% \subsection{Closing \info{}} |
| 1274 |
% Other closing items may be included in the letter itself, in the |
| 1275 |
% file |letrinfo.tex|. These include the following: |
| 1276 |
% |
| 1277 |
% \tabsetx{6}{Closing commands}{eolc} |
| 1278 |
% \begin{center} |
| 1279 |
% \begin{tabular}{llllll} \hline |
| 1280 |
% \hdr{Command} & \hdr{Usage} & \hdr{Command} & \hdr{Usage} & |
| 1281 |
% \hdr{Command} & \hdr{Usage} \\ \hline |
| 1282 |
% |\cclist| & Routing list & |
| 1283 |
% |\encllist| & Enclosures list & |
| 1284 |
% |\initials| & Sender initials \\ |
| 1285 |
% |\faxmssg| & FAX cover message & |
| 1286 |
% |\psitem| & Ps line & |
| 1287 |
% |\ppsitem| & Pps line \\ |
| 1288 |
% |\pppsitem| & ppps line & |
| 1289 |
% |\re| & re line & |
| 1290 |
% |\subre| & Second re line \\ \hline |
| 1291 |
% \end{tabular} |
| 1292 |
% \end{center} |
| 1293 |
% |
| 1294 |
% \subsection{Setting up wrapper macros} |
| 1295 |
% \paragraph{File {\tt letrinfo.tex}:} |
| 1296 |
% \begin{verbatim} |
| 1297 |
% \makesignature{PT}{\newsavebox{\Signature} |
| 1298 |
% \sbox{\Sigx}{\includegraphics[bb=16 9 597 784,viewport=180 350 400 |
| 1299 |
% 425,scale=6,% |
| 1300 |
% height=.6in,width=1.375in,clip]{sigfile}% |
| 1301 |
% }% |
| 1302 |
% \signature{\usebox{\Sigx}}% |
| 1303 |
% \signame{\raisebox{.5in}{\parbox[t]{5in}{Paul A. Thompson \\% |
| 1304 |
% Associate Professor \\ Div. Biostatistics \\% |
| 1305 |
% Washington University School of Mecicine}}}% |
| 1306 |
% }% |
| 1307 |
% \makeaddress{JS}{\name{Joe Smith}% |
| 1308 |
% \address{12 Center Street \\ Greenville, OH 55555}% |
| 1309 |
% \phone{(312) 333-4444}\greet{Dear Joe,}% |
| 1310 |
% }% |
| 1311 |
% \makeaddress{PAT}{\name{Paul A. Thompson, Ph.D.}% |
| 1312 |
% \addr{\parbox[b]{2.75in}{Washington University School of Medicine \\% |
| 1313 |
% Box 8067, 660 S. Euclid \\ St. Louis, MO 63110-1093}}% |
| 1314 |
% \phone{(314) 747-3793}\fax{(314) 362-2693}% |
| 1315 |
% }% |
| 1316 |
% \newsavebox{\Logob}% |
| 1317 |
% \sbox{\Logob}{\parbox[t]{\vdim}{\includegraphics[scale=.8]{wulogo3}}}% |
| 1318 |
% % |
| 1319 |
% \makeletterhead{WULHa}{% |
| 1320 |
% \sigPT% |
| 1321 |
% \Lheader{\usebox{\Logob}}\setadrfr{\adrPAT}% |
| 1322 |
% }% |
| 1323 |
% \end{verbatim} |
| 1324 |
% |
| 1325 |
% \paragraph{Use in a letter:} |
| 1326 |
% \begin{verbatim} |
| 1327 |
% \documentclass[american]{newlfm} |
| 1328 |
% \newlfmP{letrh=WULHa,addrt=JS} |
| 1329 |
% \begin{document} |
| 1330 |
% \begin{newlfm} |
| 1331 |
% ... |
| 1332 |
% \end{newlfm} |
| 1333 |
% \end{document} |
| 1334 |
% \end{verbatim} |
| 1335 |
% |
| 1336 |
% This letter will be addressed to Joe Smith, using the letterhead stored |
| 1337 |
% in |WULHa|. The signature is taken from signature wrapper |PT|, which is carried |
| 1338 |
% along with the letterhead wrapper |WULHa|. |
| 1339 |
% In this way, the letters can be addressed to Joe Smith very easily, by |
| 1340 |
% merely including the file |letrinfo.tex| on the \LaTeX{} path, and |
| 1341 |
% including the wrapper as shown above in the file. Although initials for |
| 1342 |
% the recipient need not be used as the wrapper identifier tag, this is |
| 1343 |
% convenient and makes the wrapper designation easy to do. |
| 1344 |
% |
| 1345 |
% The wrapper commands may be used in a nested fashion. Consider this |
| 1346 |
% sequence: |
| 1347 |
% \begin{verbatim} |
| 1348 |
% \makeaddress{Main}{\name{Paul A. Thompson}% |
| 1349 |
% \addr{WU School of Medicine}}% |
| 1350 |
% \makeaddress{YouA}{\adrMain \name{Love A} |
| 1351 |
% \addr{Whereever you are}}% |
| 1352 |
% \makeaddress{YouB}{\adrMain \name{Love B}% |
| 1353 |
% \addr{The White House}}% |
| 1354 |
% \end{verbatim} |
| 1355 |
% |
| 1356 |
% In this case, the \info{} in |adrmain| is carried into the wrappers |
| 1357 |
% |adrYouA| and |adrYouB| and is available there. This is similar to the |
| 1358 |
% concept of inheritence in object-oriented programming. |
| 1359 |
% |
| 1360 |
% \subsection{Multiple information datasets} |
| 1361 |
% By default, |newlfm| looks for a file |letrinfo.tex| on the \TeX\ |
| 1362 |
% path. If this file is found, it is read in during the initialization |
| 1363 |
% process of the |newlfm| environment. If an alternative file is |
| 1364 |
% needed, it may be indicated using the command |
| 1365 |
% |\InfoFileName{check.tex}|. This file will then be used in place of |
| 1366 |
% |letrinfo.tex|. |
| 1367 |
% |
| 1368 |
% \subsection{Rules for use of wrapper IDs} |
| 1369 |
% The wrapper IDs used to construct the letterhead database can be used in two |
| 1370 |
% different ways. First, the address or letterhead wrappers may be used |
| 1371 |
% by themselves as |\adrSETA| or |\ltrSETB|. Second, the wrapper IDs may |
| 1372 |
% be used in many situations without the |\adr|. Here are the general |
| 1373 |
% rules for usage: |
| 1374 |
% \begin{enumerate} |
| 1375 |
% \item The wrapper macro |\adrXXX| may be used at any point in a letter. |
| 1376 |
% To properly set up margins, it should be used as |\setadrto{\adrXXX}| |
| 1377 |
% and |\setadrfr{\adrXXX}| (used to convert neutral address |
| 1378 |
% information into to-address and from-address information) prior to the |
| 1379 |
% |\begin{newlfm}| command. This |
| 1380 |
% will ensure that proper spacing decisions are made. The |
| 1381 |
% |\doletter| construction also uses this form of wrapper (note: this |
| 1382 |
% command is now obsolete - please use |\oneletter| as described below). |
| 1383 |
% \item Wrapper IDs can be used as |\setadrto{\fixadr{XXX}}| to |
| 1384 |
% convert neutral addresses to to-addresses and from-addresses (again, |
| 1385 |
% prior to |\begin{newlfm}|. |
| 1386 |
% Additionally, |\oneletter{XXX}| is used to send a form letter to |
| 1387 |
% address |XXX|, |\multletter{XXX,YYY,ZZZ}| to multiple addresses, and |
| 1388 |
% |\newlfmP{addrt=AAA,addrf=BBB}| are used to convert addresses using the |
| 1389 |
% |\newlfmP| mechanism. |
| 1390 |
% \end{enumerate} |
| 1391 |
% |
| 1392 |
% \section{Form letters} |
| 1393 |
% \label{sec:form} |
| 1394 |
% The use of the address wrapper commands makes it very easy to set up form |
| 1395 |
% letters. \verb|newlfm| has a simple approach to form letters, using two |
| 1396 |
% commands: |
| 1397 |
% \begin{itemize*} |
| 1398 |
% \item \verb|\letterbody|: This command is used to set up the body of the |
| 1399 |
% letter. The body is the text of the letter. When you set up the body, |
| 1400 |
% it is very easy to further customize the letters by setting up commands |
| 1401 |
% within the letter. |
| 1402 |
% \item \verb|\oneletter|: This is the command to print the different |
| 1403 |
% letters. The command has a mandatory argument of the label of the |
| 1404 |
% ``to'' address. |
| 1405 |
% \item \verb|\multletter|: This command allows the use of a list of |
| 1406 |
% address wrapper labels that will all be used to print a form letter. The |
| 1407 |
% address wrapper labels must all be separated by the comma (``,''). When |
| 1408 |
% printing form letters in this manner, specific tailoring can only be |
| 1409 |
% done if the tailoring information is included in the address wrapper. |
| 1410 |
% Thus, this can be used to print any number of identical letters, or |
| 1411 |
% letters which have been tailored or modified using information in the |
| 1412 |
% address wrappers. |
| 1413 |
% \end{itemize*} |
| 1414 |
% |
| 1415 |
% \subsection{Example form letter} |
| 1416 |
% Here is an example of the use of the form-letter commands. In this |
| 1417 |
% example, the two wrapper commands \verb|\adrAA| and \verb|\adrBB| can be |
| 1418 |
% used to address letters which are both the same to the persons listed |
| 1419 |
% in these wrappers: |
| 1420 |
% \begin{verbatim} |
| 1421 |
% \letterbody{This is an example of a form letter. \tailor End of the letter.}% |
| 1422 |
% \newcommand{\tailor}{First special version.} |
| 1423 |
% \oneletter{AA} |
| 1424 |
% \letterbody{This is a second example of a form letter, but this approach does not allow for |
| 1425 |
% individualization. It is being sent to \printnameto.} |
| 1426 |
% \multletter{AA,BB} |
| 1427 |
% \renewcommand{\tailor} |
| 1428 |
|
| 1429 |
% {Second special version.} |
| 1430 |
% \oneletter{BB} |
| 1431 |
% \end{verbatim} |
| 1432 |
% |
| 1433 |
% \section{Printing envelopes and labels} |
| 1434 |
% \label{sec:env} |
| 1435 |
% |newlfm| includes a set of commands which print labels. Some invoke the functionality of the |
| 1436 |
% |envlab| package. To use this functionality, follow these steps: |
| 1437 |
% \begin{enumerate*} |
| 1438 |
% \item Ensure that |envlab| is properly installed in your \TeX |
| 1439 |
% installation, and that the installation database has been properly |
| 1440 |
% refreshed. This will ensure that \LaTeX{} can find the files. |
| 1441 |
% \item Use the option |useenvlab| on the command line: |
| 1442 |
% \begin{verbatim} |
| 1443 |
% \documentclass[useenvlab]{newlfm} |
| 1444 |
% \end{verbatim} |
| 1445 |
% This will issue the |\makelabels| command at the start of the run, issue |
| 1446 |
% the |\startlabels| command at the end of the run, insert the |
| 1447 |
% ``from-address'' and ``to-address'' into appropriate structures for |
| 1448 |
% |envlab| and otherwise complete the printing of the envelope using |
| 1449 |
% internal information. |
| 1450 |
% \item Options which are needed for |envlab| may also be entered into the |
| 1451 |
% \LaTeX\ command line, just as with any normal use of |envlab| during any |
| 1452 |
% \LaTeX. |
| 1453 |
% \item Several types of Avery labels may be used. The specifications |
| 1454 |
% for Avery labels 5160, 5161, 5162, 5163 and 5164 are pre-set in |
| 1455 |
% |newlfm|. These are summarized in the table below. |
| 1456 |
% |
| 1457 |
% \tabsetx{6}{Label definitions}{labels} |
| 1458 |
% \label{tab:d} |
| 1459 |
% \begin{center} |
| 1460 |
% \begin{tabular}{lrrlrrrr} \hline |
| 1461 |
% Option & Ht & Wt & t & l & Btw & Col & Row \\ \hline |
| 1462 |
% Avery5160 & 1 & 2.75 & .5 & .19 & .16 &3 & 10 \\ |
| 1463 |
% Avery5161 & 1 & 4.19 & .5 & .16 &.19 &2 & 10 \\ |
| 1464 |
% Avery5162 & 1 & 4.19 & .83 & .16 &.19 &2 & 7 \\ |
| 1465 |
% Avery5163 & 1 & 4.19 & .5 & .16 &.19 &2 & 5 \\ |
| 1466 |
% Avery5164 & 1 & 4.19 & .5 & .16 &.19 &2 & 3 \\ \hline |
| 1467 |
% \end{tabular} |
| 1468 |
% \end{center} |
| 1469 |
% |
| 1470 |
% \item Several options exist for address selection during label printing. The default |
| 1471 |
% is |labto|, in which the ``to-address'' only is printed. If |
| 1472 |
% |labrowfrto| is selected, both ``from-address'' and ``to-address'' are |
| 1473 |
% printed in a row: |
| 1474 |
% \begin{verbatim} |
| 1475 |
% From: Paul A. Thompson To: George W. Bush |
| 1476 |
% 25 Signal Hill Blvd 1400 W. Turkey Rd. |
| 1477 |
% Belleville, IL 62223 Crawford, TX 49281 |
| 1478 |
% \end{verbatim} If |
| 1479 |
% |labcolfrto| is selected, both ``from-address'' and ``to-address'' are |
| 1480 |
% printed in a column: |
| 1481 |
% \begin{verbatim} |
| 1482 |
% From: Paul A. Thompson |
| 1483 |
% 25 Signal Hill Blvd |
| 1484 |
% Belleville, IL 62223 |
| 1485 |
% To: George W. Bush |
| 1486 |
% 1400 W. Turkey Rd. |
| 1487 |
% Crawford, TX 49281 |
| 1488 |
% \end{verbatim} |
| 1489 |
% The user is responsible for ensuring that the label printing options |
| 1490 |
% can fit on the label selected; Avery5160 is generally suitable only for |
| 1491 |
% |labto|, but other choices can fit on other labels. |
| 1492 |
% \item Other printing sizes may be selected during label printing using |
| 1493 |
% |labsize=\size|: |
| 1494 |
% \begin{verbatim} |
| 1495 |
% labsize=\small |
| 1496 |
% \end{verbatim} |
| 1497 |
% \end{enumerate*} |
| 1498 |
% |
| 1499 |
% \section{Miscellaneous topics} |
| 1500 |
% \subsection{Lines} |
| 1501 |
% By default, |newlfm| demarcates the header and footer sections with |
| 1502 |
% lines. These may be eliminated using the commands |noHeadline|, |noFootline|, |
| 1503 |
% |noLines| (for the letterhead page), and |noheadline|, |nofootline|, |
| 1504 |
% |nolines| (for subsequent pages). These commands eliminate lines in either the |
| 1505 |
% letterhead page or the non-letterhead page. Line widths may be set as |
| 1506 |
% well, using the commands |Headlinewd| (sets head linewidth for |
| 1507 |
% letterhead page), |headlinewd| (sets head linewidth for |
| 1508 |
% non-letterhead page), |Footlinewd| (sets foot linewidth for |
| 1509 |
% letterhead page), and |footlinewd| (sets foot linewidth for |
| 1510 |
% non-letterhead page). These final four commands issued either in the |
| 1511 |
% command line or in the |newlfmP| commands as: |
| 1512 |
% \begin{verbatim} |
| 1513 |
% \newlfmP{Headlinewd=.5pt,footlinewd=.75pt} |
| 1514 |
% \end{verbatim} |
| 1515 |
% If a line width is set to 0pt, the line is not printed. |
| 1516 |
% \subsection{Printing information on additional pages} |
| 1517 |
% In many letters, the letterhead page is to be followed by additional information |
| 1518 |
% on additional, non-letterhead pages. This may be done using the |
| 1519 |
% |\restlettera{text}|, |\restletterb{text}|, |\restletterc{text}|, |
| 1520 |
% |\restletterd{text}|, and |\restlettere{text}| |
| 1521 |
% commands. Following the issuance of the signature, a |\newpage| command is |
| 1522 |
% issued, and the information contained in the |
| 1523 |
% |\restlettera{text}|, |\restletterb{text}|, |\restletterc{text}|, |
| 1524 |
% |\restletterd{text}|, and |\restlettere{text}| blocks are printed. These |
| 1525 |
% need not be used sequentially. |
| 1526 |
% These blocks must not have spaces. If paragraphs are to be used, use |\paragraph| |
| 1527 |
% to force the new paragraph without an actual blank line. In addition, extra material |
| 1528 |
% in each section is limited to a single page. The letterhead rules for the extra |
| 1529 |
% pages follow the rules for the non-first page. |
| 1530 |
% \subsection{Setting the date} |
| 1531 |
% The date for the letter is set to be the date upon which the letter is |
| 1532 |
% typeset. To change the date, use |\dateset{May 20, 1974}| (feel free |
| 1533 |
% to use other dates as needed). |
| 1534 |
% |\dateset{\today}| prints today's date. |
| 1535 |
% |
| 1536 |
% \subsection{Language option definitions:} |
| 1537 |
% \label{sec:othlang} |
| 1538 |
% These options define the language for the letter. These macros are not |
| 1539 |
% frequently manipulated. Basically, the strings defined here |
| 1540 |
% set up the printing of structural elements of a memo or letter, such as |
| 1541 |
% the ``From'' or ``To'' strings. |
| 1542 |
% |
| 1543 |
% These terms are used at various points in printing letters and memos. |
| 1544 |
% They are American terms; your mileage may vary. Inclusion of other |
| 1545 |
% terms is encouraged, especially when another language group is served. |
| 1546 |
% This may be done as follows: |
| 1547 |
% \begin{enumerate} |
| 1548 |
% \item Change the letters ``am'' to either ``fr'' for French, ``gr'' for |
| 1549 |
% German, ``en'' for English, ``ot'' for other or ``pl'' for pig-Latin. If |
| 1550 |
% you feel that I have unfairly cast disrespect on your language, feel free |
| 1551 |
% to add appropriate code in the section above for your language. Change |
| 1552 |
% phrases in the following terms to the appropriate terms for the language |
| 1553 |
% in question: |
| 1554 |
% \begin{verbatim} |
| 1555 |
% \newcommand{\@am@phr}{% |
| 1556 |
% \renewcommand*{\@fax@cover@line} |
| 1557 |
% {FAX Cover Page}% |
| 1558 |
% \renewcommand*{\@fax@page@count} |
| 1559 |
% {FAX Page Count}% |
| 1560 |
% \renewcommand*{\@fax@phr}{FAX}% |
| 1561 |
% \renewcommand*{\@pager@phr}{Pager}% |
| 1562 |
% \renewcommand*{\@doc@phr}{Document}% |
| 1563 |
% \renewcommand*{\@phn@phr}{Phone}% |
| 1564 |
% \renewcommand*{\@email@phr}{E-mail}% |
| 1565 |
% \renewcommand*{\@re@phr}{Re}% |
| 1566 |
% \renewcommand*{\@subre@phr} |
| 1567 |
% {\ensuremath{\mathrm{Re}_2}}% |
| 1568 |
% \renewcommand*{\@cc@phr}{cc}% |
| 1569 |
% \renewcommand*{\@ps@phr}{Ps}% |
| 1570 |
% \renewcommand*{\@m@phr}{Message}% |
| 1571 |
% \renewcommand*{\@pps@phr}{Pps}% |
| 1572 |
% \renewcommand*{\@ppps@phr}{Ppps}% |
| 1573 |
% \renewcommand*{\@encl@phr}{Encl}% |
| 1574 |
% \renewcommand*{\@pager@phr}{Page}% |
| 1575 |
% \renewcommand*{\@hnto@phr}{To}% |
| 1576 |
% \renewcommand*{\@hnfr@phr}{From}% |
| 1577 |
% } |
| 1578 |
% \end{verbatim} |
| 1579 |
% \item Use file |extracd.tex| to store the new commands. This file |
| 1580 |
% should be placed in the same subdirectory as |newlfm.cls|. When the |
| 1581 |
% program executes, it includes the file if it is found. |
| 1582 |
% \item Use the appropriate option to include the correct code. |
| 1583 |
% \end{enumerate} |
| 1584 |
% \subsection{Printing the address information} |
| 1585 |
% The |newlfm| package prints a variety of address \info{} in |
| 1586 |
% specific ways which are appropriate and standard for letters. In some |
| 1587 |
% cases, you may wish to print other \info{} from the addresses in more |
| 1588 |
% flexible ways. For this purpose, certain printing macros are defined. |
| 1589 |
% These are shown in \tabr{printcom}. |
| 1590 |
% |
| 1591 |
% \tabsetx{4}{Printing address information}{printcom} |
| 1592 |
% \begin{center} |
| 1593 |
% \begin{tabular}{lllll} |
| 1594 |
% \hline |
| 1595 |
% Select & Command & Item & Command & Item \\ \hline |
| 1596 |
% ``To'' & |\printnameto| & Name & |
| 1597 |
% |\printaddrto| & address \\ |
| 1598 |
% & |\printphoneto| & phone & |
| 1599 |
% |\printphoneato| & phone A \\ |
| 1600 |
% & |\printphonebto| & phone B & |
| 1601 |
% |\printphonecto| & phone C \\ |
| 1602 |
% & |\printphonedto| & phone D & |
| 1603 |
% |\printphoneoto| & phone O \\ |
| 1604 |
% & |\printphonehto| & phone H & |
| 1605 |
% |\printpagerto| & pager \\ |
| 1606 |
% & |\printfaxto| & FAX & |
| 1607 |
% |\printgreetto| & greeting \\ |
| 1608 |
% & |\printemailto| & email & |
| 1609 |
% |\printemailbto| & email \\ |
| 1610 |
% & |\printemailcto| & email C & |
| 1611 |
% |\printlnameto| & last name \\ |
| 1612 |
% |\printfnameto| & first name \\ |
| 1613 |
% ``From'' & |\printnamefrom| & name & |
| 1614 |
% |\printaddrfrom| & address \\ |
| 1615 |
% & |\printphonefrom| & phone & |
| 1616 |
% |\printphoneafrom| & phone A \\ |
| 1617 |
% & |\printphonebfrom| & phone B & |
| 1618 |
% |\printphonecfrom| & phone C\ \\ |
| 1619 |
% & |\printphonedfrom| & phone D & |
| 1620 |
% |\printphoneofrom| & phone O \\ |
| 1621 |
% & |\printphonehfrom| & phone H & |
| 1622 |
% |\printpagerfrom| & pager \\ |
| 1623 |
% & |\printfaxfrom| & FAX & |
| 1624 |
% |\printgreetfrom| & greet \\ing |
| 1625 |
% & |\printemailfrom| & email & |
| 1626 |
% |\printemailbfrom| & email \\ |
| 1627 |
% & |\printemailcfrom| & email C & |
| 1628 |
% |\printlnamefrom| & last name \\ |
| 1629 |
% & |\printfnamefrom| & first name \\ |
| 1630 |
% \hline |
| 1631 |
% \end{tabular} |
| 1632 |
% \end{center} |
| 1633 |
% |
| 1634 |
% These commands can be issued in any letter to print the \info{} for the |
| 1635 |
% particular address component. |
| 1636 |
% |
| 1637 |
% \subsection{Cellophane-window envelopes} |
| 1638 |
% Letters are sometimes set up to be printed for a cellophane-window |
| 1639 |
% envelope. Using this approach, the ``to-address'' must be placed into |
| 1640 |
% a specific orientation. In |newlfm|, this is particularily |
| 1641 |
% challenging, as the class attempts to grant users great flexibility. |
| 1642 |
% |
| 1643 |
% In |newlfm|, users can specify the use of a cellophane-window |
| 1644 |
% envelope. The |cellowindow| option specifies this choice. The |
| 1645 |
% ``to-address'' block is positioned down from the top (using |cellodown| |
| 1646 |
% to specify the length down; default = 2.5 inches) and left from the side (using |celloleft| |
| 1647 |
% to specify the length from the left; default = 1 inch). If the user specifies the |
| 1648 |
% printing of a ``from-address'' and a date, it may not be possible to |
| 1649 |
% print the ``to-address'' in the correct location; in this case, the |
| 1650 |
% user should carefully examine the log and the output screen to |
| 1651 |
% determine if the specified locations can be used in the context of |
| 1652 |
% other options. |
| 1653 |
% The user can also specify the height and width of the ``to-address'' |
| 1654 |
% block as |cellowidth| (default = 4 inches) and |celloheight| (default = |
| 1655 |
% 1 inch). |
| 1656 |
% |
| 1657 |
% \subsection{Examples} |
| 1658 |
% |newlfm| includes a large number of examples specified as |test1.tex| |
| 1659 |
% through |test12.tex|. These examples all specify their options using |
| 1660 |
% the |newlfmP| mechanism. Each file is also set up using the |
| 1661 |
% |\documentclass| specification, on |test1alt.tex| through |
| 1662 |
% |test8alt.tex|. When preparing examples, both |pdflatex| and |latex| are |
| 1663 |
% both used to prepare examples. |
| 1664 |
% |
| 1665 |
% \newcommand{\pdfLaTeX}{\texttt{pdf}\LaTeX} |
| 1666 |
% \subsection{\LaTeX\ vs. \pdfLaTeX} |
| 1667 |
% \pdfLaTeX\ is becoming more and more common in document production in |
| 1668 |
% the \TeX\ family. It is not the standard yet, and there remain tools |
| 1669 |
% which work only in the \LaTeX\ system (i.e., |pstricks|). |
| 1670 |
% |
| 1671 |
% The author uses |.eps| files, constructed to ensure that the bounding |
| 1672 |
% box accurately encapsulates the active text area of the |.eps| figure. |
| 1673 |
% Each of the figures was then converted to |.pdf| encoding using |
| 1674 |
% |GSview|. However, the bounding box in the |.pdf| files does not seem |
| 1675 |
% to act to crop the image in the same manner. Using the same code for |
| 1676 |
% both \pdfLaTeX\ and \LaTeX\ processing does not result in the same |
| 1677 |
% appearance of the output page. |
| 1678 |
% |
| 1679 |
% For this reason, functionality of H. Oberdiek's |ifpdf.sty| file is |
| 1680 |
% included in |newlfm|. This tool allows one option to be performed |
| 1681 |
% when \pdfLaTeX is used for processing, and another option to be |
| 1682 |
% executed in the \LaTeX\ environment. Use of this tool is illustrated in the |
| 1683 |
% |letrinfo.tex| file included in the |newlfm| package. |
| 1684 |
% |
| 1685 |
% Here is an example: |
| 1686 |
% \begin{verbatim} |
| 1687 |
% \newsavebox{\Lpalme}% |
| 1688 |
% \ifpdf |
| 1689 |
% \savebox{\Lpalme}{\parbox[t][1in][t]{2in}% |
| 1690 |
% {\includegraphics[scale=.1,viewport=135 624 360 700]{palm}\vspace{.5in} \\ |
| 1691 |
% \rule{2in}{2pt} \\ |
| 1692 |
% 25 Signal Hill Blvd} |
| 1693 |
% } |
| 1694 |
% \else |
| 1695 |
% \savebox{\Lpalme}{\parbox[t]{2in}% |
| 1696 |
% {\includegraphics[scale=.1]{palm} \\ |
| 1697 |
% \rule{2in}{2pt} \\ |
| 1698 |
% 25 Signal Hill Blvd} |
| 1699 |
% } |
| 1700 |
% \fi |
| 1701 |
% \end{verbatim} |
| 1702 |
% Note that the |\ifpdf| construction includes the entire |\savebox| |
| 1703 |
% specification. Although this is not the only manner in which this |
| 1704 |
% system will work, it is a reliable method. Problems can be found, |
| 1705 |
% which are very hard to diagnose, when the |\ifpdf-\fi| construction is |
| 1706 |
% used to control processing of portions of a specification. |
| 1707 |
% |
| 1708 |
% \subsection{Usage tips} |
| 1709 |
% As with any complex program, there are certain tips which can enhance |
| 1710 |
% the use of the program. Here are several. If you come up with new |
| 1711 |
% ones, please forward them to {\tt [email protected]}; complete |
| 1712 |
% files demonstrating useful ideas are the most helpful. |
| 1713 |
% |
| 1714 |
% \begin{itemize} |
| 1715 |
% \item |geometry| is no longer used for dimension setting. Rather, all |
| 1716 |
% dimensions are set internally. This is done using a combination of |
| 1717 |
% default values, header and footer sizes and values input from the user. |
| 1718 |
% These include primarily the page size commands |leftmarginsize|, |
| 1719 |
% |textwidthsize| and |rightmarginsize|. |
| 1720 |
% \item When size commands are used, they will be overridden by structures. |
| 1721 |
% Additionally, dimensional commands are applied in order. Inconsistencies |
| 1722 |
% are resolved by attending to the most recent commands, and ignoring |
| 1723 |
% earlier inconsistent ones. |
| 1724 |
% \end{itemize} |
| 1725 |
% |
| 1726 |
% \newpage |
| 1727 |
% |
| 1728 |
% \section{Command Summary} |
| 1729 |
% \label{sec:summ} |
| 1730 |
% \begin{verbatim} |
| 1731 |
% \documentstyle[options]{newlfm} |
| 1732 |
% |
| 1733 |
% \topmarginsize{.25in} \addrfrom{Paul A. Thompson} |
| 1734 |
% \adr{PAT} |
| 1735 |
% \NewlfmP{leftmarginsize=1.25in} |
| 1736 |
% |
| 1737 |
% \begin{document} |
| 1738 |
% \begin{newlfm} |
| 1739 |
% text text text |
| 1740 |
% \end{newlfm} |
| 1741 |
% \end{document} |
| 1742 |
% \end{verbatim} |
| 1743 |
% |
| 1744 |
% \vspace*{-.125in} |
| 1745 |
% |
| 1746 |
% \begin{raggedright} |
| 1747 |
% \begin{description} |
| 1748 |
% \item \textbf{Letter styles:} |stdletter|, |stdletternofrom|, |busletter|, |
| 1749 |
% |busletternofrom| |
| 1750 |
% (\tabpagr{letteropt}) |
| 1751 |
% \item \textbf{Letter options:} |noaddrfrom|, |printallfrom|, |printallto|, |
| 1752 |
% |dateright|, |dateleft|, |datecenter|, |sigright|, |
| 1753 |
% |sigleft|, |sigcenter|, |addrtoemail|, |addrtophone|, |addrtofax|, |
| 1754 |
% |addrfromemail|, |addrfromphone|, |addrfromfax| |
| 1755 |
% (\tabpagr{letteropt} --- can be specified |
| 1756 |
% either in the document-header option block or in the |
| 1757 |
% |\newlfmP| command) |
| 1758 |
% \item \textbf{Letter date information:} |\dateset| |
| 1759 |
% \item \textbf{Back-ground information:} |\Background|, |\background| |
| 1760 |
% \item \textbf{Memo styles:} |stdmemo|, |fullmemo| (\tabpagr{memoopt}) |
| 1761 |
% \item \textbf{Memo options:} |memoaddrto|, |memoemailto|, |memophoneto|, |
| 1762 |
% |memofaxto|, |memoaddrfrom|, |memoemailfrom|, |memophonefrom|, |
| 1763 |
% |memofaxfrom|, |memopagerto|, |memopagerfrom| (\tabpagr{memoopt} --- can be specified |
| 1764 |
% either in the letter |\documentclass| option block or in the |
| 1765 |
% |\newlfmP| command) |
| 1766 |
% \item {\bf{FAX styles:}} |faxheaderpage|, |faxhba|, |faxhbb| (\tabpagr{faxopt}) |
| 1767 |
% \item {\bf{FAX options:}} |faxblocka|, |faxblockb| (\tabpagr{faxopt} --- can be specified |
| 1768 |
% either in the letter |\documentclass| option block or in the |
| 1769 |
% |\newlfmP| command) |
| 1770 |
% \item {{\bf Press Release Styles:}} |stdpressrelease|% |
| 1771 |
% \item {{\bf Press Release Options:}} |dspace|,|sspace|% |
| 1772 |
% \item {{\bf Cellophane-window envelopes:}} |cellowindow|% |
| 1773 |
% \item {{\bf Cellophane-window options:}} |cellodown|,|celloleft|,|cellowidth|,|celloheight| |
| 1774 |
% \item {\bf{Address item order options:}} |orderdatefromto|, |
| 1775 |
% |orderfromdateto|, |orderfromtodate| (can be specified |
| 1776 |
% either in the document-header option block or in the |
| 1777 |
% |\newlfmP| command) |
| 1778 |
% \item {\textbf{\texttt{envlab} options:}} |useenvlab| |
| 1779 |
% \item {\bf{To-Address commands:}} |\nameto|, |\addressto|, |\phoneto|, |
| 1780 |
% |\phonebto|, |\phonecto|, |\phonedto|, |\faxto|, |\emailto|, |\greetto|, |
| 1781 |
% |\setadrto{\adrXXX}|, |\setadrto{\fixadr{XXX}}| |\regarding|, |
| 1782 |
% |\fnameto|, |\lnameto|, |\addrt|, |
| 1783 |
% \item {\bf{From-Address commands:}} |\namefrom|, |\name|, |\address|, |
| 1784 |
% |\addrfrom|, |\phone|, |\phonefrom|, |\phonebfrom|, |\phonecfrom|, |
| 1785 |
% |\phonedfrom|, |\fax|, |\faxfrom|, |\emailfrom|, |
| 1786 |
% |\setadrfr{\adrXXX}|, |\setadrfr{\fixadr{XXX}}|, |\fnamefrom|, |\lnamefrom|, |\addrf| |
| 1787 |
% \item {{\bf Press Release commands:}} |\byline|, |\headline|, |
| 1788 |
% |\release|, |\shorthead| |
| 1789 |
% \item {\bf{End of letter commands:}} |\cclist|, |\encllist|, |\initials|, |
| 1790 |
% |\faxmssg|, |\psitem|, |\ppsitem|, |\pppsitem|, |\re|, |\subre| |
| 1791 |
% (\tabpagr{eolc}) |
| 1792 |
% \item {\bf{Signature commands:}} |\signature|, |\signame|, |\siglist|, |\sigacross|, |
| 1793 |
% |\closeline|, |\sigtr| |
| 1794 |
% (\tabpagr{sigsc}) |
| 1795 |
% \item {\bf{Horizontal spacing and sizing commands:}} |
| 1796 |
% |\unprleft|, |\leftmarginskipleft|, |\leftmarginsize|, |
| 1797 |
% |\leftmarginskipright|, |\textwidth|, |\rightmarginsize|, |
| 1798 |
% |\unprright|, |MinLeft|, |MinRight|, |minleft|, |minright| |
| 1799 |
% (\tabpagr{spacehor} --- can be specified |
| 1800 |
% either in the letter itself or in the |
| 1801 |
% |\newlfmP| command; when specified in the NewlfmP statement, they are |
| 1802 |
% specified without the ``|\|'') |
| 1803 |
% \item {\bf{Vertical spacing and sizing commands:}} |
| 1804 |
% |\unprtop|, |\topmarginskip|, |\headermarginsize|, |\headermarginskip|, |
| 1805 |
% |\leftmargintopdist|, |\rightmargintopdist|, |\memoskipbefore|, |\memoskipafter|, |
| 1806 |
% |\dateskipbefore|, |\dateskipafter|, |\addrfromskipbefore|, |
| 1807 |
% |\addrfromskipafter|, |\addrtoskipbefore|, |\addrtoskipafter|, |
| 1808 |
% |\greettoskipbefore|, |\greettoskipafter|, |\textheight|, |
| 1809 |
% |\closeskipbefore|, |\closeskipafter|, |
| 1810 |
% |\sigskipbefore|, |\sigsize|, |\sigskipafter|,|\sigskipcolumn|, |
| 1811 |
% |\sigskiprow|, |\postsigskipbefore|, |
| 1812 |
% |\postsigskipafter|, |\bottommarginskip|, |\footermarginsize|, |
| 1813 |
% |\unprbottom|, |MinHead|, |MinFoot|, |minhead|, |minfoot| |
| 1814 |
% (\tabpagr{spacever} --- can be specified |
| 1815 |
% either in the letter itself or in the |
| 1816 |
% |\newlfmP| command; when specified in the NewlfmP statement, they are |
| 1817 |
% specified without the ``|\|'') |
| 1818 |
% \item {\bf{Wrapper commands:}} |\makeaddress{XXX}{xxx info}| creates a |
| 1819 |
% command |\adrXXX| containing the ``xxx info'', |
| 1820 |
% |\makeletterhead{XXX}{stuff}| creates a command |\lthXXX| containing |
| 1821 |
% ``stuff'' and |\makesignature{XXX}{sigstuff}| |
| 1822 |
% creates a command |\sigXXX| with ``sigstuff'' (\pagex{wrapc}). |
| 1823 |
% \item {\bf{Form letters:}} |
| 1824 |
% |\letterbody| sets the body of a form letter, while |\doletter{zz}| |
| 1825 |
% prints the letter, |zz| is any command to be issued before the |
| 1826 |
% letter, which will usually be a wrapper command name. |
| 1827 |
% \item {\bf{Letterhead commands:}} |\Lfooter|, |\Cfooter|, |\Rfooter|, |
| 1828 |
% |\Lheader|, |\Cheader|, |\Rheader|, |\Lmargin|, |\Rmargin|, |
| 1829 |
% |\lfooter|, |\cfooter|, |\rfooter|, |\lheader|, |\cheader|, |
| 1830 |
% |\rheader|, |\lmargin|, |\rmargin|, |\letrh| (\tabpagr{letterhopt}) |
| 1831 |
% \item {\bf{Blanking options:}} |blankheader|, |blankfooter|, |
| 1832 |
% |blankrmargin|, |blanklmargin|, |Blankheader|, |Blankfooter|, |
| 1833 |
% |Blankrmargin|, |Blanklmargin|, |blankall|, |Blankall|, |
| 1834 |
% |Blank| (\tabpagr{blankopt}) |
| 1835 |
% \item Extended letters: |\restlettera{text}|, |\restletterb{text}|, |
| 1836 |
% |\restletterc{text}|, |\restletterd{text}|, and |\restlettere{text}| prints |
| 1837 |
% additional pages after the signature with additional information. |
| 1838 |
% \item {\textbf{Printing commands:}} |\printnameto|, |\printaddrto|, |
| 1839 |
% |\printphoneto|, |\printphoneato|, |\printphonebto|, |\printphonecto|, |
| 1840 |
% |\printphonedto|, |\printphoneoto|, |\printphonehto|, |\printpagerto|, |
| 1841 |
% |\printfaxto|, |\printgreetto|, |\printemailto|, |\printemailbto|, |
| 1842 |
% |\printemailcto|, |\printlnameto|, |\printfnameto|, |\printnamefrom|, |
| 1843 |
% |\printaddrfrom|, |\printphonefrom|, |\printphoneafrom|, |
| 1844 |
% |\printphonebfrom|, |\printphonecfrom|, |\printphonedfrom|, |
| 1845 |
% |\printphoneofrom|, |\printphonehfrom|, |\printpagerfrom|, |
| 1846 |
% |\printfaxfrom|, |\printgreetfrom|, |\printemailfrom|, |
| 1847 |
% |\printemailbfrom|, |\printemailcfrom|, |\printlnamefrom|, |
| 1848 |
% |\printfnamefrom| (\tabpagr{printcom}) |
| 1849 |
% \end{description} |
| 1850 |
% \end{raggedright} |
| 1851 |
% |
| 1852 |
% \newpage |
| 1853 |
% |
| 1854 |
% \StopEventually |
| 1855 |
% |
| 1856 |
% \section{Code} |
| 1857 |
% \begin{macrocode} |
| 1858 |
%<*package> |
| 1859 |
% \end{macrocode} |
| 1860 |
% \subsection{Preliminaries} |
| 1861 |
% In this part we define a few commands that are used later on. |
| 1862 |
% |
| 1863 |
% These commands are used for printing control during debugging. |
| 1864 |
% \begin{macrocode} |
| 1865 |
\def\ifta{0}\def\iftb{0}% |
| 1866 |
\def\txa#1{\ifthenelse{\equal{\ifta}{1}}{\typeout{#1}}{}}% |
| 1867 |
\def\txb#1{}%\ifthenelse{\iftb=1}{\typeout{#1}}{}}% |
| 1868 |
% \end{macrocode} |
| 1869 |
% |
| 1870 |
% A number of packages are needed by this approach to letter construction. |
| 1871 |
% These are entered here. These packages include the following: |
| 1872 |
% \begin{itemize*} |
| 1873 |
% \item |keyval|: Read in key values from a single or multiple lines |
| 1874 |
% \item |ifthen|: Good control over conditional logic --- this actually |
| 1875 |
% was included above so that the boolean constructions |
| 1876 |
% can be used during the class file |
| 1877 |
% \item |setdim|: Sets page dimensions -- similar to |chngpage| |
| 1878 |
% \item |fancyhdr|: Control over header and footer, and several structures |
| 1879 |
% at one time |
| 1880 |
% \item |envlab|: Prints envelopes and labels in flexible ways |
| 1881 |
% \item |calc|: Better arithmatic in the program |
| 1882 |
% \item |graphicx|: External handling of graphical \info |
| 1883 |
% \end{itemize*} |
| 1884 |
% |
| 1885 |
% \begin{macrocode} |
| 1886 |
\RequirePackage{keyval}% |
| 1887 |
\RequirePackage{ifthen}[1997/11/02]% |
| 1888 |
\RequirePackage{ifpdf}% |
| 1889 |
\RequirePackage{setdim}% |
| 1890 |
\RequirePackage{fancyhdr}% |
| 1891 |
\RequirePackage{eso-pic}% |
| 1892 |
\RequirePackage{setspace}% |
| 1893 |
\RequirePackage{lastpage}% |
| 1894 |
\@ifundefined{ps@@empty}{% |
| 1895 |
\ClassError{newlfm}{Version of fancyhdr.sty is not current. \MessageBreak Please obtain% |
| 1896 |
a recent copy of fancyhdr.sty (Version 1.99d or later) from CTAN.} {Go to CTAN and% |
| 1897 |
download the current version of fancyhdr.sty}}{}% |
| 1898 |
\RequirePackage{calc}[1997/11/11]% |
| 1899 |
\RequirePackage{graphicx}[1997/06/09]% |
| 1900 |
\RequirePackage{rotating}[1997/06/09]% |
| 1901 |
% \end{macrocode} |
| 1902 |
% \paragraph{\texttt{newlength} definitions:} |
| 1903 |
% Begin by defining all newlength commands here, and then additionally set the |
| 1904 |
% lengths for all those which need initialization: |
| 1905 |
% \begin{macrocode} |
| 1906 |
\newlength{\@addr@fr@sk@b}\setlength{\@addr@fr@sk@b}{0in}% |
| 1907 |
\newlength{\@addr@fr@sk@a}\setlength{\@addr@fr@sk@a}{0in}% |
| 1908 |
\newlength{\@addr@to@sk@b}\setlength{\@addr@to@sk@b}{0in}% |
| 1909 |
\newlength{\@addr@to@sk@a}\setlength{\@addr@to@sk@a}{0in}% |
| 1910 |
\newlength{\@blka@b}\setlength{\@blka@b}{0in}% |
| 1911 |
\newlength{\@blka@a}\setlength{\@blka@a}{0in}% |
| 1912 |
\newlength{\@blkb@b}\setlength{\@blkb@b}{0in}% |
| 1913 |
\newlength{\@blkb@a}\setlength{\@blkb@a}{0in}% |
| 1914 |
\newlength{\@blkc@b}\setlength{\@blkc@b}{0in}% |
| 1915 |
\newlength{\@blkc@a}\setlength{\@blkc@a}{0in}% |
| 1916 |
\newlength{\@caption@skip@above}\setlength{\@caption@skip@above}{0in}% |
| 1917 |
\newlength{\@caption@skip@below}\setlength{\@caption@skip@below}{0in}% |
| 1918 |
\newlength{\@cello@h}\setlength{\@cello@h}{1in}% |
| 1919 |
\newlength{\@cello@w}\setlength{\@cello@w}{3in}% |
| 1920 |
\newlength{\@cello@d}\setlength{\@cello@d}{2.5in}% |
| 1921 |
\newlength{\@cello@l}\setlength{\@cello@l}{1in}% |
| 1922 |
\newlength{\@dt@sk@b}\setlength{\@dt@sk@b}{0in}% |
| 1923 |
\newlength{\@dt@sk@a}\setlength{\@dt@sk@a}{0in}% |
| 1924 |
\newlength{\@Dth@H@L}\setlength{\@Dth@H@L}{0in}% |
| 1925 |
\newlength{\@Dth@H@C}\setlength{\@Dth@H@C}{0in}% |
| 1926 |
\newlength{\@Dth@H@R}\setlength{\@Dth@H@R}{0in}% |
| 1927 |
\newlength{\@Dth@F@L}\setlength{\@Dth@F@L}{0in}% |
| 1928 |
\newlength{\@Dth@F@C}\setlength{\@Dth@F@C}{0in}% |
| 1929 |
\newlength{\@Dth@F@R}\setlength{\@Dth@F@R}{0in}% |
| 1930 |
\newlength{\@Dth@h@l}\setlength{\@Dth@h@l}{0in}% |
| 1931 |
\newlength{\@Dth@h@c}\setlength{\@Dth@h@c}{0in}% |
| 1932 |
\newlength{\@Dth@h@r}\setlength{\@Dth@h@r}{0in}% |
| 1933 |
\newlength{\@Dth@f@l}\setlength{\@Dth@f@l}{0in}% |
| 1934 |
\newlength{\@Dth@f@c}\setlength{\@Dth@f@c}{0in}% |
| 1935 |
\newlength{\@Dth@f@r}\setlength{\@Dth@f@r}{0in}% |
| 1936 |
\newlength{\@greet@to@sk@b}\setlength{\@greet@to@sk@b}{0in}% |
| 1937 |
\newlength{\@greet@to@sk@a}\setlength{\@greet@to@sk@a}{0in}% |
| 1938 |
\newlength{\@Hgt@Head}\setlength{\@Hgt@Head}{0in}% |
| 1939 |
\newlength{\@Hrw}\setlength{\@Hrw}{1pt}% |
| 1940 |
\newlength{\@hrw}\setlength{\@hrw}{1pt}% |
| 1941 |
\newlength{\@extr@hor}\setlength{\@extr@hor}{0pt}% |
| 1942 |
\newlength{\@Frw}\setlength{\@Frw}{1pt}% |
| 1943 |
\newlength{\@frw}\setlength{\@frw}{1pt}% |
| 1944 |
\newlength{\@Hgt@Foot}\setlength{\@Hgt@Foot}{0in}% |
| 1945 |
\newlength{\@Hgt@head}\setlength{\@Hgt@head}{0in}% |
| 1946 |
\newlength{\@Hgt@foot}\setlength{\@Hgt@foot}{0in}% |
| 1947 |
\newlength{\@Hgt@H@L}\setlength{\@Hgt@H@L}{0in}% |
| 1948 |
\newlength{\@Hgt@H@C}\setlength{\@Hgt@H@C}{0in}% |
| 1949 |
\newlength{\@Hgt@H@R}\setlength{\@Hgt@H@R}{0in}% |
| 1950 |
\newlength{\@Hgt@F@L}\setlength{\@Hgt@F@L}{0in}% |
| 1951 |
\newlength{\@Hgt@F@C}\setlength{\@Hgt@F@C}{0in}% |
| 1952 |
\newlength{\@Hgt@F@R}\setlength{\@Hgt@F@R}{0in}% |
| 1953 |
\newlength{\@Hgt@h@l}\setlength{\@Hgt@h@l}{0in}% |
| 1954 |
\newlength{\@Hgt@h@c}\setlength{\@Hgt@h@c}{0in}% |
| 1955 |
\newlength{\@Hgt@h@r}\setlength{\@Hgt@h@r}{0in}% |
| 1956 |
\newlength{\@Hgt@f@l}\setlength{\@Hgt@f@l}{0in}% |
| 1957 |
\newlength{\@Hgt@f@c}\setlength{\@Hgt@f@c}{0in}% |
| 1958 |
\newlength{\@Hgt@f@r}\setlength{\@Hgt@f@r}{0in}% |
| 1959 |
\newlength{\@lab@bl}\setlength{\@lab@bl}{0in}% |
| 1960 |
\newlength{\@lab@pl}\setlength{\@lab@pl}{0in}% |
| 1961 |
\newlength{\@lab@pw}\setlength{\@lab@pw}{0in}% |
| 1962 |
\newlength{\@lab@bh}\setlength{\@lab@bh}{0in}% |
| 1963 |
\newlength{\@lab@bw}\setlength{\@lab@bw}{0in}% |
| 1964 |
\newlength{\@lab@th}\setlength{\@lab@th}{0in}% |
| 1965 |
\newlength{\@lab@lm}\setlength{\@lab@lm}{0in}% |
| 1966 |
\newlength{\@marg@lt}\setlength{\@marg@lt}{1in}% |
| 1967 |
\newlength{\@marg@rt}\setlength{\@marg@rt}{1in}% |
| 1968 |
\newlength{\@marg@tp}\setlength{\@marg@tp}{1in}% |
| 1969 |
\newlength{\@marg@bt}\setlength{\@marg@bt}{1in}% |
| 1970 |
\newlength{\@marg@tp@a}\setlength{\@marg@tp@a}{0in}% |
| 1971 |
\newlength{\@marg@bt@a}\setlength{\@marg@bt@a}{0in}% |
| 1972 |
\newlength{\@marg@bt@b}\setlength{\@marg@bt@b}{0in}% |
| 1973 |
\newlength{\@marg@tp@b}\setlength{\@marg@tp@b}{0in}% |
| 1974 |
\newlength{\@marg@tp@s}\setlength{\@marg@tp@s}{0in}% |
| 1975 |
\newlength{\@marg@lt@r}\setlength{\@marg@lt@r}{0in}% |
| 1976 |
\newlength{\@marg@lt@l}\setlength{\@marg@lt@l}{0in}% |
| 1977 |
\newlength{\@marg@rt@r}\setlength{\@marg@rt@r}{0in}% |
| 1978 |
\newlength{\@marg@rt@l}\setlength{\@marg@rt@l}{0in}% |
| 1979 |
\newlength{\@marg@lt@tp@d}\setlength{\@marg@lt@tp@d}{0pt}% |
| 1980 |
\newlength{\@marg@rt@tp@d}\setlength{\@marg@rt@tp@d}{0pt}% |
| 1981 |
\newlength{\@Min@Hgt@Head}\setlength{\@Min@Hgt@Head}{0in}% |
| 1982 |
\newlength{\@Min@Hgt@head}\setlength{\@Min@Hgt@head}{0in}% |
| 1983 |
\newlength{\@Min@Hgt@Foot}\setlength{\@Min@Hgt@Foot}{0in}% |
| 1984 |
\newlength{\@Min@Hgt@foot}\setlength{\@Min@Hgt@foot}{0in}% |
| 1985 |
\newlength{\@Min@Hgt@Right}\setlength{\@Min@Hgt@Right}{0in}% |
| 1986 |
\newlength{\@Min@Hgt@right}\setlength{\@Min@Hgt@right}{0in}% |
| 1987 |
\newlength{\@Min@Hgt@Left}\setlength{\@Min@Hgt@Left}{0in}% |
| 1988 |
\newlength{\@Min@Hgt@left}\setlength{\@Min@Hgt@left}{0in}% |
| 1989 |
\newlength{\@Plg}\setlength{\@Plg}{0in}% |
| 1990 |
\newlength{\@Pwd}\setlength{\@Pwd}{0in}% |
| 1991 |
\newlength{\@plg}\setlength{\@plg}{0in}% |
| 1992 |
\newlength{\@pwd}\setlength{\@pwd}{0in}% |
| 1993 |
\newlength{\@post@sig@sp@a}\setlength{\@post@sig@sp@a}{0in}% |
| 1994 |
\newlength{\@post@sig@sp@b}\setlength{\@post@sig@sp@b}{0in}% |
| 1995 |
\newlength{\@pre@memo@sp}\setlength{\@pre@memo@sp}{0in}% |
| 1996 |
\newlength{\@post@memo@sp}\setlength{\@post@memo@sp}{0in}% |
| 1997 |
\newlength{\@sig@sp}\setlength{\@sig@sp}{0in}% |
| 1998 |
\newlength{\@text@width}\setlength{\@text@width}{0in}% |
| 1999 |
\newlength{\@sig@sk@a}\setlength{\@sig@sk@a}{5pt}% |
| 2000 |
\newlength{\@sig@sk@b}\setlength{\@sig@sk@b}{5pt}% |
| 2001 |
\newlength{\@sig@sk@c}\setlength{\@sig@sk@c}{5pt}% |
| 2002 |
\newlength{\@sig@sk@r}\setlength{\@sig@sk@r}{5pt}% |
| 2003 |
\newlength{\@cls@sk@a}\setlength{\@cls@sk@a}{1em}% |
| 2004 |
\newlength{\@cls@sk@b}\setlength{\@cls@sk@b}{1em}% |
| 2005 |
\newlength{\@text@height}\setlength{\@text@height}{0in}% |
| 2006 |
\newlength{\@unpr@tp}\setlength{\@unpr@tp}{0in}% |
| 2007 |
\newlength{\@unpr@bm}\setlength{\@unpr@bm}{0in}% |
| 2008 |
\newlength{\@unpr@rt}\setlength{\@unpr@rt}{0in}% |
| 2009 |
\newlength{\@unpr@lt}\setlength{\@unpr@lt}{0in}% |
| 2010 |
\newlength{\@util}\setlength{\@util}{0in}% |
| 2011 |
\newlength{\@utila}\setlength{\@utila}{0in}% |
| 2012 |
\newlength{\@utilb}\setlength{\@utilb}{0in}% |
| 2013 |
\newlength{\@utilc}\setlength{\@utilc}{0in}% |
| 2014 |
\newlength{\@utild}\setlength{\@utild}{0in}% |
| 2015 |
\newlength{\@utile}\setlength{\@utile}{0in}% |
| 2016 |
\newlength{\@utilf}\setlength{\@utilf}{0in}% |
| 2017 |
\newlength{\@utilg}\setlength{\@utilg}{0in}% |
| 2018 |
\newlength{\@utilh}\setlength{\@utilh}{0in}% |
| 2019 |
\newlength{\@utili}\setlength{\@utili}{0in}% |
| 2020 |
\newlength{\@utilj}\setlength{\@utilj}{0in}% |
| 2021 |
\newlength{\@utilk}\setlength{\@utilk}{0in}% |
| 2022 |
\newlength{\@utill}\setlength{\@utill}{0in}% |
| 2023 |
\newlength{\@xda}\setlength{\@xda}{0in}% |
| 2024 |
\newlength{\@xdb}\setlength{\@xdb}{0in}% |
| 2025 |
\newlength{\@xdc}\setlength{\@xdc}{0in}% |
| 2026 |
\newlength{\@xdd}\setlength{\@xdd}{0in}% |
| 2027 |
\newlength{\@xde}\setlength{\@xde}{0in}% |
| 2028 |
\newlength{\@xdf}\setlength{\@xdf}{0in}% |
| 2029 |
\newlength{\@xdg}\setlength{\@xdg}{0in}% |
| 2030 |
\newlength{\@xdh}\setlength{\@xdh}{0in}% |
| 2031 |
\newlength{\@xdi}\setlength{\@xdi}{0in}% |
| 2032 |
\txa{newlength done}% |
| 2033 |
% \end{macrocode} |
| 2034 |
% \paragraph{\texttt{newsavebox} definitions:} |
| 2035 |
% Define all newsavebox commands here: |
| 2036 |
% \begin{macrocode} |
| 2037 |
\newsavebox{\@sig@box@a}\newsavebox{\b@addr@fr}\newsavebox{\b@addr@to}% |
| 2038 |
\newsavebox{\@x@c}\newsavebox{\@x@l}\newsavebox{\@x@r}% |
| 2039 |
\newsavebox{\fba}\newsavebox{\adrfr}\newsavebox{\adrto}% |
| 2040 |
\newsavebox{\@sig@box@b}\newsavebox{\@sig@box@c}\newsavebox{\@sig@box@d}% |
| 2041 |
\newsavebox{\@sig@box@e}\newsavebox{\@sig@box@f}\newsavebox{\@sig@box@g}% |
| 2042 |
\newsavebox{\@sig@box@h}\newsavebox{\@sig@box@i}\newsavebox{\@sig@box@j}% |
| 2043 |
\newsavebox{\@rest@ltr}\newsavebox{\@resta@ltr}\newsavebox{\@restb@ltr}% |
| 2044 |
\newsavebox{\@restc@ltr}\newsavebox{\@restd@ltr}\newsavebox{\@reste@ltr}% |
| 2045 |
\txa{newsavebox done}% |
| 2046 |
% \end{macrocode} |
| 2047 |
% \paragraph{\texttt{newcounter} definitions:} |
| 2048 |
% Define all newcounter commands here: |
| 2049 |
% \begin{macrocode} |
| 2050 |
\newcounter{@c@pos}\newcounter{figure}\newcounter{table}% |
| 2051 |
\newcounter{@sig@tot}\newcounter{@lab@tot@row}% |
| 2052 |
\newcounter{@lab@tot@col}\newcounter{@lab@cnt@row}\newcounter{@lab@cnt@col}% |
| 2053 |
\newcount\@nlfm@addr% |
| 2054 |
\newcount\@nlfm@util% |
| 2055 |
\newcount\@nlfm@uta% |
| 2056 |
\newcount\@nlfm@utb% |
| 2057 |
\txa{newcount done}% |
| 2058 |
% \end{macrocode} |
| 2059 |
% \paragraph{\texttt{newboolean} definitions:} |
| 2060 |
% Boolean variables are defined here. Package |ifthen| defines |
| 2061 |
% |\newboolean|. Booleans are a good approach for simple decision-making support. In |
| 2062 |
% many cases, a default value is set after the boolean is declared. |
| 2063 |
% \begin{macrocode} |
| 2064 |
\newboolean{@addr@fr@l}% |
| 2065 |
\newboolean{@addr@fr@p}% |
| 2066 |
\newboolean{@addr@fr@e}\setboolean{@addr@fr@e}{false}% |
| 2067 |
\newboolean{@addr@fr@f}\setboolean{@addr@fr@f}{false}% |
| 2068 |
\newboolean{@addr@fr@t}\setboolean{@addr@fr@t}{false}% |
| 2069 |
\newboolean{@addr@swtch}\setboolean{@addr@swtch}{true}% |
| 2070 |
\newboolean{@addr@to@l}% |
| 2071 |
\newboolean{@addr@to@p}% |
| 2072 |
\newboolean{@addr@to@f}\setboolean{@addr@to@f}{false}% |
| 2073 |
\newboolean{@addr@to@e}\setboolean{@addr@to@e}{false}% |
| 2074 |
\newboolean{@addr@to@t}\setboolean{@addr@to@t}{false}% |
| 2075 |
\newboolean{@b@h}\setboolean{@b@h}{false}% |
| 2076 |
\newboolean{@b@f}\setboolean{@b@f}{false}% |
| 2077 |
\newboolean{@b@r}\setboolean{@b@r}{false}% |
| 2078 |
\newboolean{@b@l}\setboolean{@b@l}{false}% |
| 2079 |
\newboolean{@B@h}\setboolean{@B@h}{false}% |
| 2080 |
\newboolean{@B@f}\setboolean{@B@f}{false}% |
| 2081 |
\newboolean{@B@r}\setboolean{@B@r}{false}% |
| 2082 |
\newboolean{@B@l}\setboolean{@B@l}{false}% |
| 2083 |
\newboolean{@bg@use}\setboolean{@bg@use}{false}% |
| 2084 |
\newboolean{@Bg@use}\setboolean{@Bg@use}{false}% |
| 2085 |
\newboolean{@cello@win}\setboolean{@cello@win}{false}% |
| 2086 |
\newboolean{@cf@use}\setboolean{@cf@use}{false}% |
| 2087 |
\newboolean{@Ch@use}\setboolean{@Ch@use}{false}% |
| 2088 |
\newboolean{@Cf@use}\setboolean{@Cf@use}{false}% |
| 2089 |
\newboolean{@COf@use}\setboolean{@COf@use}{false}% |
| 2090 |
\newboolean{@CUh@use}\setboolean{@CUh@use}{false}% |
| 2091 |
\newboolean{@ch@use}\setboolean{@ch@use}{false}% |
| 2092 |
\newboolean{@do@any}% |
| 2093 |
\newboolean{@dt@l}\setboolean{@dt@l}{true}% |
| 2094 |
\newboolean{@dt@c}\setboolean{@dt@c}{false}% |
| 2095 |
\newboolean{@dt@p}% |
| 2096 |
\newboolean{@env@open}\setboolean{@env@open}{false}% |
| 2097 |
\newboolean{@env@close}\setboolean{@env@close}{false}% |
| 2098 |
\newboolean{@fax@m@run}\setboolean{@fax@m@run}{false}% |
| 2099 |
\newboolean{@fax@hdr@pg}% |
| 2100 |
\newboolean{@fax@RA}% |
| 2101 |
\newboolean{@fax@RU}% |
| 2102 |
\newboolean{@fax@bla}\setboolean{@fax@bla}{true}% |
| 2103 |
\newboolean{@fax@blb}\setboolean{@fax@blb}{false}% |
| 2104 |
\newboolean{@fl}\setboolean{@fl}{true}% |
| 2105 |
\newboolean{@Fl}\setboolean{@Fl}{true}% |
| 2106 |
\newboolean{@greet@p}% |
| 2107 |
\newboolean{@greet@l}% |
| 2108 |
\newboolean{@hl}\setboolean{@hl}{true}% |
| 2109 |
\newboolean{@Hl}\setboolean{@Hl}{true}% |
| 2110 |
\newboolean{@in@tab}% |
| 2111 |
\newboolean{@in@makeenv}\setboolean{@in@makeenv}{false}% |
| 2112 |
\newboolean{@l@am}\setboolean{@l@am}{true}% |
| 2113 |
\newboolean{@l@en}\setboolean{@l@en}{false}% |
| 2114 |
\newboolean{@l@ge}\setboolean{@l@ge}{false}% |
| 2115 |
\newboolean{@l@fr}\setboolean{@l@fr}{false}% |
| 2116 |
\newboolean{@l@ot}\setboolean{@l@ot}{false}% |
| 2117 |
\newboolean{@l@pi}\setboolean{@l@pi}{false}% |
| 2118 |
\newboolean{@lab@t}\setboolean{@lab@t}{true}% |
| 2119 |
\newboolean{@lab@cft}\setboolean{@lab@cft}{false}% |
| 2120 |
\newboolean{@lab@rft}\setboolean{@lab@rft}{false}% |
| 2121 |
\newboolean{@Lf@use}\setboolean{@Lf@use}{false}% |
| 2122 |
\newboolean{@lf@use}\setboolean{@lf@use}{false}% |
| 2123 |
\newboolean{@Lh@use}\setboolean{@Lh@use}{false}% |
| 2124 |
\newboolean{@lh@use}\setboolean{@lh@use}{false}% |
| 2125 |
\newboolean{@LOf@use}\setboolean{@LOf@use}{false}% |
| 2126 |
\newboolean{@LUh@use}\setboolean{@LUh@use}{false}% |
| 2127 |
\newboolean{@marg@lt@fl@tp}\setboolean{@marg@lt@fl@tp}{false}% |
| 2128 |
\newboolean{@marg@rt@fl@tp}\setboolean{@marg@rt@fl@tp}{false}% |
| 2129 |
\newboolean{@marg@luse}\setboolean{@marg@luse}{false}% |
| 2130 |
\newboolean{@marg@ruse}\setboolean{@marg@ruse}{false}% |
| 2131 |
\newboolean{@marg@Luse}\setboolean{@marg@Luse}{false}% |
| 2132 |
\newboolean{@marg@Ruse}\setboolean{@marg@Ruse}{false}% |
| 2133 |
\newboolean{@memo@bl}% |
| 2134 |
\newboolean{@memo@a}% |
| 2135 |
\newboolean{@memo@b}\setboolean{@memo@b}{false}% |
| 2136 |
\newboolean{@memo@c}\setboolean{@memo@c}{false}% |
| 2137 |
\newboolean{@memo@d}\setboolean{@memo@d}{false}% |
| 2138 |
\newboolean{@memo@e}\setboolean{@memo@e}{true}% |
| 2139 |
\newboolean{@memo@f}\setboolean{@memo@f}{true}% |
| 2140 |
\newboolean{@memo@g}\setboolean{@memo@g}{true}% |
| 2141 |
\newboolean{@memo@h}\setboolean{@memo@h}{false}% |
| 2142 |
\newboolean{@memo@i}\setboolean{@memo@i}{false}% |
| 2143 |
\newboolean{@memo@j}\setboolean{@memo@j}{false}% |
| 2144 |
\newboolean{@memo@k}\setboolean{@memo@k}{false}% |
| 2145 |
\newboolean{@memo@l}\setboolean{@memo@l}{false}% |
| 2146 |
\newboolean{@memo@m}\setboolean{@memo@m}{false}% |
| 2147 |
\newboolean{@memo@n}\setboolean{@memo@n}{false}% |
| 2148 |
\newboolean{@no@cen}\setboolean{@no@cen}{false}% |
| 2149 |
\newboolean{@no@spc}\setboolean{@no@spc}{false}% |
| 2150 |
\newboolean{@rest@l}\setboolean{@rest@l}{false}% |
| 2151 |
\newboolean{@resta@l}\setboolean{@resta@l}{false}% |
| 2152 |
\newboolean{@restb@l}\setboolean{@restb@l}{false}% |
| 2153 |
\newboolean{@restc@l}\setboolean{@restc@l}{false}% |
| 2154 |
\newboolean{@restd@l}\setboolean{@restd@l}{false}% |
| 2155 |
\newboolean{@reste@l}\setboolean{@reste@l}{false}% |
| 2156 |
\newboolean{@ROf@use}\setboolean{@ROf@use}{false}% |
| 2157 |
\newboolean{@Rf@use}\setboolean{@Rf@use}{false}% |
| 2158 |
\newboolean{@rf@use}\setboolean{@rf@use}{false}% |
| 2159 |
\newboolean{@Rh@use}\setboolean{@Rh@use}{false}% |
| 2160 |
\newboolean{@RUh@use}\setboolean{@RUh@use}{false}% |
| 2161 |
\newboolean{@rh@use}\setboolean{@rh@use}{false}% |
| 2162 |
\newboolean{@ov@a}\setboolean{@ov@a}{true}% |
| 2163 |
\newboolean{@ov@t}\setboolean{@ov@t}{false}% |
| 2164 |
\newboolean{@ov@l}\setboolean{@ov@l}{false}% |
| 2165 |
\newboolean{@ov@f}\setboolean{@ov@f}{false}% |
| 2166 |
\newboolean{@ov@s}\setboolean{@ov@s}{false}% |
| 2167 |
\newboolean{@pt@regard}\setboolean{@pt@regard}{false}% |
| 2168 |
\newboolean{@s@b@s}\setboolean{@s@b@s}{false}% |
| 2169 |
\newboolean{@set@env}\setboolean{@set@env}{false}% |
| 2170 |
\newboolean{@sig@p}% |
| 2171 |
\newboolean{@sig@mp}% |
| 2172 |
\newboolean{@sig@l}\setboolean{@sig@l}{false}% |
| 2173 |
\newboolean{@sig@c}\setboolean{@sig@c}{false}% |
| 2174 |
\newboolean{@space@d}\setboolean{@space@d}{true}% |
| 2175 |
\newboolean{@space@s}\setboolean{@space@s}{false}% |
| 2176 |
\newboolean{@mult@sig}\setboolean{@mult@sig}{false}% |
| 2177 |
\newboolean{@use@sig}% |
| 2178 |
\newboolean{@use@close}% |
| 2179 |
\newboolean{@use@sig@nm}% |
| 2180 |
\newboolean{@use@all@fr}% |
| 2181 |
\newboolean{@use@all@to}% |
| 2182 |
\newboolean{@use@envlab}\setboolean{@use@envlab}{false}% |
| 2183 |
\newboolean{@use@water}\setboolean{@use@water}{false}% |
| 2184 |
\newboolean{@ztila}\newboolean{@ztilb}% |
| 2185 |
\newboolean{@pr@p}\setboolean{@pr@p}{false}% |
| 2186 |
\newboolean{@pr@by}% |
| 2187 |
\txa{newboolean done}% |
| 2188 |
% \end{macrocode} |
| 2189 |
% |
| 2190 |
% \subsection{newlfm commands} |
| 2191 |
% Now begin defining new commands. |
| 2192 |
% \paragraph{Ordering of date, from-address and to-address:} |
| 2193 |
% These commands allow the ordering of date, to-block and from-block: |
| 2194 |
% \begin{macrocode} |
| 2195 |
\def\@d@pos#1{\def\@intd@pos{#1}}% |
| 2196 |
\def\@t@pos#1{\def\@intt@pos{#1}}% |
| 2197 |
\def\@f@pos#1{\def\@intf@pos{#1}}% |
| 2198 |
% \end{macrocode} |
| 2199 |
% |
| 2200 |
% \paragraph{\texttt{keyval} processing:} When using the |keyval| |
| 2201 |
% approach to option specification, something similar to the next code |
| 2202 |
% must be used. At this point, this is not 100 \% correct, and so it |
| 2203 |
% will be altered as soon as I can figger it out. |
| 2204 |
% \begin{macrocode} |
| 2205 |
\def\newlfmParam{\@ifnextchar[%]% |
| 2206 |
\newlx@i{\newlx@i[]}}% |
| 2207 |
\def\newlx@i[#1]{{\setkeys{ov}{#1}}}% |
| 2208 |
\def\Dimens{\@ifnextchar[%]% |
| 2209 |
\Dimens@i{\Dimens@i[]}}% |
| 2210 |
\def\Dimens@i[#1]{{\setkeys{ov}{#1}}}% |
| 2211 |
\def\Language{\@ifnextchar[%]% |
| 2212 |
\Lang@i{\Lang@i[]}}% |
| 2213 |
\def\Lang@i[#1]{{\setkeys{ov}{#1}}}% |
| 2214 |
\def\MemoParam{\@ifnextchar[%]% |
| 2215 |
\MemoP@i{\MemoP@i[]}}% |
| 2216 |
\def\MemoP@i[#1]{{\setkeys{ov}{#1}}}% |
| 2217 |
\def\LetterParam{\@ifnextchar[%]% |
| 2218 |
\LetrP@i{\LetrP@i[]}}% |
| 2219 |
\def\LetrP@i[#1]{{\setkeys{ov}{#1}}}% |
| 2220 |
\def\FAZParam{\@ifnextchar[%]% |
| 2221 |
\FAXP@i{\FAXP@i[]}}% |
| 2222 |
\def\FAXP@i[#1]{{\setkeys{ov}{#1}}}% |
| 2223 |
\def\LetterP#1{\setkeys{ov}{#1}}% |
| 2224 |
\def\newlfmP#1{\setkeys{ov}{#1}}% |
| 2225 |
\def\LanguageP#1{\setkeys{ov}{#1}}% |
| 2226 |
\def\FAXP#1{\setkeys{ov}{#1}}% |
| 2227 |
\def\DimensP#1{\setkeys{ov}{#1}}% |
| 2228 |
\def\MemoP#1{\setkeys{ov}{#1}}% |
| 2229 |
\def\iffixt#1#2{\ifthenelse{\equal{#1}{true}}{\setboolean{#2}{true}}{}}% |
| 2230 |
\def\iffixf#1#2{\ifthenelse{\equal{#1}{true}}{\setboolean{#2}{false}}{}}% |
| 2231 |
\def\iffixq#1#2{\ifthenelse{\equal{#1}{true}}{#2}{}}% |
| 2232 |
\txa{Done with key definitions sections}% |
| 2233 |
% \end{macrocode} |
| 2234 |
% |
| 2235 |
% \paragraph{Language option definitions:} |
| 2236 |
% These options define the language for the letter. These macros are not |
| 2237 |
% frequently manipulated. Basically, the strings defined here |
| 2238 |
% set up the printing of structural elements of a memo or letter, such as |
| 2239 |
% the ``From'' or ``To'' strings. |
| 2240 |
% These terms are used at various points in printing letters and memos. |
| 2241 |
% They are American terms; your mileage may vary. Inclusion of other |
| 2242 |
% terms is encouraged, especially when another language group is served. |
| 2243 |
% \begin{macrocode} |
| 2244 |
\def\DatePhrase#1{\def\@date@phr{#1}}% |
| 2245 |
\def\PhrFAXcovp#1{\def\@fax@cover@line{#1}}% |
| 2246 |
\def\PhrFAXpgcnt#1{\def\@fax@page@count{#1}}% |
| 2247 |
\def\PhrEmail#1{\def\@email@phr{#1}}% |
| 2248 |
\def\PhrFax#1{\def\@fax@phr{#1}}% |
| 2249 |
\def\PhrPager#1{\def\@pager@phr{#1}}% |
| 2250 |
\def\PhrDocument#1{\def\@doc@phr{#1}}% |
| 2251 |
\def\PhrPhone#1{\def\@phn@phr{#1}}% |
| 2252 |
\def\PhrRe#1{\def\@re@phr{#1}}% |
| 2253 |
\def\PhrSubre#1{\def\@subre@phr{#1}}% |
| 2254 |
\def\PhrCc#1{\def\@cc@phr{#1}}% |
| 2255 |
\def\PhrPs#1{\def\@ps@phr{#1}}% |
| 2256 |
\def\PhrMessage#1{\def\@m@phr{#1}}% |
| 2257 |
\def\PhrPps#1{\def\@pps@phr{#1}}% |
| 2258 |
\def\PhrPpps#1{\def\@ppps@phr{#1}}% |
| 2259 |
\def\PhrEncl#1{\def\@encl@phr{#1}}% |
| 2260 |
\def\PhrTo#1{\def\@hnto@phr{#1}}% |
| 2261 |
\def\PhrFrom#1{\def\@hnfr@phr{#1}}% |
| 2262 |
\def\PhrRegard#1{\def\@regard@phr{#1}}% |
| 2263 |
\def\PhrContact#1{\def\@contact@phr{#1}}% |
| 2264 |
\def\PhrRelease#1{\def\@release@phr{#1}}% |
| 2265 |
\def\PhrMore#1{\def\@more@phr{#1}}% |
| 2266 |
\def\PhrPRend#1{\def\@PRend@phr{#1}}% |
| 2267 |
\def\lth{}\def\sig{}\def\adr{}% |
| 2268 |
\def\letrh#1{\def\@ltr@h{#1}\setboolean{@ov@l}{true}}% |
| 2269 |
\define@key{ov}{letrh}{\def\@ltr@h{#1}\setboolean{@ov@l}{true}}% |
| 2270 |
\txa{Done with phr defs}% |
| 2271 |
\def\waterpage#1{\def\@water@page{#1}\setboolean{@use@water}{true}}% |
| 2272 |
\define@key{ov}{waterpage}{\def\@water@page{#1}\setboolean{@use@water}{true}}% |
| 2273 |
\txa{Waterpage}% |
| 2274 |
\def\Background#1{\def\@Backgrnd{#1}\setboolean{@Bg@use}{true}}% |
| 2275 |
\txa{Z}% |
| 2276 |
\define@key{ov}{Background}{\def\@Backgrnd{#1}\setboolean{@Bg@use}{true}}% |
| 2277 |
\def\background#1{\setboolean{@bg@use}{true}\def\@backgrnd{#1}}% |
| 2278 |
\define@key{ov}{background}{\setboolean{@bg@use}{true}\def\@backgrnd{#1}}% |
| 2279 |
\def\@adr@t{}\def\@adr@f{}\def\@ltr@h{}\def\@sig@b{}% |
| 2280 |
\def\addrt#1{\def\@adr@t{#1}\setboolean{@ov@t}{true}}% |
| 2281 |
\define@key{ov}{addrt}{\def\@adr@t{#1}\setboolean{@ov@t}{true}}% |
| 2282 |
\def\addrf#1{\def\@adr@f{#1}\setboolean{@ov@f}{true}}% |
| 2283 |
\define@key{ov}{addrf}{\def\@adr@f{#1}\setboolean{@ov@f}{true}}% |
| 2284 |
\def\sigtr#1{\def\@sig@b{#1}\setboolean{@ov@s}{true}}%% |
| 2285 |
\define@key{ov}{sigtr}{\def\@sig@b{#1}\setboolean{@ov@s}{true}}% |
| 2286 |
\def\MinHead#1{\setlength{\@Min@Hgt@Head}{#1}}% |
| 2287 |
\define@key{ov}{MinHead}{\setlength{\@Min@Hgt@Head}{#1}}% |
| 2288 |
\def\minhead#1{\setlength{\@Min@Hgt@head}{#1}}% |
| 2289 |
\define@key{ov}{minhead}{\setlength{\@Min@Hgt@head}{#1}}% |
| 2290 |
\def\MinLeft#1{\setlength{\@Min@Hgt@Left}{#1}}% |
| 2291 |
\define@key{ov}{MinLeft}{\setlength{\@Min@Hgt@Left}{#1}}% |
| 2292 |
\def\minleft#1{\setlength{\@Min@Hgt@left}{#1}}% |
| 2293 |
\define@key{ov}{minleft}{\setlength{\@Min@Hgt@left}{#1}}% |
| 2294 |
\def\MinFoot#1{\setlength{\@Min@Hgt@Foot}{#1}}% |
| 2295 |
\define@key{ov}{MinFoot}{\setlength{\@Min@Hgt@Foot}{#1}}% |
| 2296 |
\def\minfoot#1{\setlength{\@Min@Hgt@foot}{#1}}% |
| 2297 |
\define@key{ov}{minfoot}{\setlength{\@Min@Hgt@foot}{#1}}% |
| 2298 |
\def\MinRight#1{\setlength{\@Min@Hgt@Right}{#1}}% |
| 2299 |
\define@key{ov}{MinRight}{\setlength{\@Min@Hgt@Right}{#1}}% |
| 2300 |
\def\minright#1{\setlength{\@Min@Hgt@right}{#1}}% |
| 2301 |
\define@key{ov}{minright}{\setlength{\@Min@Hgt@right}{#1}}% |
| 2302 |
\def\@def@l{american}% |
| 2303 |
\def\@am@phr{% |
| 2304 |
\DatePhrase{Date}% |
| 2305 |
\PhrFAXcovp{FAX Cover Page}% |
| 2306 |
\PhrFAXpgcnt{FAX Page Count}% |
| 2307 |
\PhrFax{FAX}% |
| 2308 |
\PhrPager{Pager}% |
| 2309 |
\PhrEmail{E-mail}% |
| 2310 |
\PhrDocument{Document}% |
| 2311 |
\PhrPhone{Telephone}% |
| 2312 |
\PhrRe{Re}% |
| 2313 |
\PhrSubre{\ensuremath{\mathrm{Re}_2}}% |
| 2314 |
\PhrCc{cc}% |
| 2315 |
\PhrPs{Ps}% |
| 2316 |
\PhrMessage{Message}% |
| 2317 |
\PhrPps{Pps}% |
| 2318 |
\PhrPpps{Ppps}% |
| 2319 |
\PhrEncl{Encl}% |
| 2320 |
\PhrPager{Page}% |
| 2321 |
\PhrTo{To}% |
| 2322 |
\PhrFrom{From}% |
| 2323 |
\PhrRegard{Regarding}% |
| 2324 |
\PhrContact{Contact}% |
| 2325 |
\PhrRelease{For Immediate Release}% |
| 2326 |
\PhrMore{--- more ---}% |
| 2327 |
\PhrPRend{\# \# \#}% |
| 2328 |
}% |
| 2329 |
\InputIfFileExists{extracd.tex}% |
| 2330 |
{\typeout{Reading alternative macro definitions from extracd.tex}}% |
| 2331 |
{\typeout{All language information must be in newlfm.cls}}% |
| 2332 |
\DeclareOption{french}% |
| 2333 |
{\def\@def@l{french}\setboolean{@l@fr}{true} \@fr@phr}% |
| 2334 |
\define@key{ov}{french}[true]% |
| 2335 |
{\iffixq{#1}{\def\@def@l{french}\setboolean{@l@fr}{true} \@fr@phr}}% |
| 2336 |
\DeclareOption{german}{\def\@def@l{german}\setboolean{@l@ge}{true} \@gr@phr}% |
| 2337 |
\define@key{ov}{german}[true]% |
| 2338 |
{\iffixq{#1}{\def\@def@l{german}\setboolean{@l@ge}{true} \@gr@phr}}% |
| 2339 |
\DeclareOption{american}% |
| 2340 |
{\def\@def@l{american}\setboolean{@l@am}{true} \@am@phr}% |
| 2341 |
\define@key{ov}{american}[true]% |
| 2342 |
{\iffixq{#1}{\def\@def@l{american}\setboolean{@l@am}{true} \@am@phr}}% |
| 2343 |
\DeclareOption{english}% |
| 2344 |
{\def\@def@l{english}\setboolean{@l@en}{true} \@en@phr}% |
| 2345 |
\define@key{ov}{english}[true]% |
| 2346 |
{\iffixq{#1}{\def\@def@l{english}\setboolean{@l@en}{true} \@en@phr}}% |
| 2347 |
\DeclareOption{othlang}% |
| 2348 |
{\renewco@lgnd{\@def@l}{othlang}\setboolean{@l@ot}{true} \@ot@phr}% |
| 2349 |
\define@key{ov}{othlang}[true]% |
| 2350 |
{\iffixq{#1}{\def\@def@l{othlang}\setboolean{@l@ot}{true} \@ot@phr}}% |
| 2351 |
\DeclareOption{piglatin}% |
| 2352 |
{\def\@def@l{piglatin}\setboolean{@l@pi}{true} \@pl@phr}% |
| 2353 |
\define@key{ov}{piglatin}[true]% |
| 2354 |
{\iffixq{#1}{\def\@def@l{piglatin}\setboolean{@l@pi}{true} \@pl@phr}}% |
| 2355 |
% \end{macrocode} |
| 2356 |
% |
| 2357 |
% \begin{macro}{Lengths} |
| 2358 |
% Length definitions are set up here. This is done by setting options mostly. |
| 2359 |
% These commands are either internal (begin with |@|) or user-optional (do |
| 2360 |
% not begin with |@|). User-optional commands are defined in the text |
| 2361 |
% above. |
| 2362 |
% \begin{macrocode} |
| 2363 |
\define@key{ov}{textwidthsize}{\setlength{\@text@width}{#1}}% |
| 2364 |
\def\textwidthsize#1{\setlength{\@text@width}{#1}}% |
| 2365 |
\define@key{ov}{textheightsize}{\setlength{\@text@height}{#1}}% |
| 2366 |
\def\textheightsize#1{\setlength{\@text@height}{#1}}% |
| 2367 |
\define@key{ov}{bottommarginskip}{\setlength{\@marg@bt@a}{#1}}% |
| 2368 |
\def\bottommarginskip#1{\setlength{\@marg@bt@a}{#1}}% |
| 2369 |
\define@key{ov}{bottommarginskipbelow}{\setlength{\@marg@bt@b}{#1}}% |
| 2370 |
\def\bottommarginskipbelow#1{\setlength{\@marg@bt@b}{#1}}% |
| 2371 |
\def\topmarginskip#1{\setlength{\@marg@tp@a}{#1}}% |
| 2372 |
\define@key{ov}{topmarginskip}{\setlength{\@marg@tp@a}{#1}}% |
| 2373 |
\def\topmarginsize#1{\setlength{\@marg@tp@s}{#1}}% |
| 2374 |
\define@key{ov}{topmarginsize}{\setlength{\@marg@tp@s}{#1}}% |
| 2375 |
\def\headermarginskip#1{\setlength{\@marg@tp@b}{#1}}% |
| 2376 |
\define@key{ov}{headermarginskip}{\setlength{\@marg@tp@b}{#1}}% |
| 2377 |
\def\rightmarginsize#1{\setlength{\@marg@rt}{#1}}% |
| 2378 |
\define@key{ov}{rightmarginsize}{\setlength{\@marg@rt}{#1}}% |
| 2379 |
\def\leftmarginsize#1{\setlength{\@marg@lt}{#1}}% |
| 2380 |
\define@key{ov}{leftmarginsize}{\setlength{\@marg@lt}{#1}}% |
| 2381 |
\def\headermarginsize#1{\setlength{\@marg@tp}{#1}}% |
| 2382 |
\define@key{ov}{headermarginsize}{\setlength{\@marg@tp}{#1}}% |
| 2383 |
\def\footermarginsize#1{\setlength{\@marg@bt}{#1}}% |
| 2384 |
\define@key{ov}{footermarginsize}{\setlength{\@marg@bt}{#1}}% |
| 2385 |
\def\leftmargintopdist#1% |
| 2386 |
{\setlength{\@marg@lt@tp@d}{#1}\setboolean{@marg@lt@fl@tp}{true}}% |
| 2387 |
\define@key{ov}{leftmargintopdist}% |
| 2388 |
{\setlength{\@marg@lt@tp@d}{#1}\setboolean{@marg@lt@fl@tp}{true}}% |
| 2389 |
\def\rightmargintopdist#1% |
| 2390 |
{\setlength{\@marg@rt@tp@d}{#1}\setboolean{@marg@rt@fl@tp}{true}}% |
| 2391 |
\define@key{ov}{rightmargintopdist}% |
| 2392 |
{\setlength{\@marg@rt@tp@d}{#1}\setboolean{@marg@rt@fl@tp}{true}}% |
| 2393 |
\define@key{ov}{leftmarginskipleft}% |
| 2394 |
{\setlength{\@marg@lt@l}{#1}\setboolean{@marg@lt@fl@tp}{false}}% |
| 2395 |
\def\leftmarginskipleft#1{\setlength{\@marg@lt@l}{#1}}% |
| 2396 |
\define@key{ov}{rightmarginskipleft}% |
| 2397 |
{\setlength{\@marg@rt@l}{#1}\setboolean{@marg@lt@fl@tp}{false}}% |
| 2398 |
\def\rightmarginskipleft#1{\setlength{\@marg@rt@l}{#1}}% |
| 2399 |
\def\leftmarginskipright#1{\setlength{\@marg@lt@r}{#1}}% |
| 2400 |
\define@key{ov}{leftmarginskipright}{\setlength{\@marg@lt@r}{#1}}% |
| 2401 |
\def\rightmarginskipright#1{\setlength{\@marg@rt@r}{#1}}% |
| 2402 |
\define@key{ov}{rightmarginskipright}{\setlength{\@marg@rt@r}{#1}}% |
| 2403 |
\def\dateskipbefore#1{\setlength{\@dt@sk@b}{#1}}% |
| 2404 |
\define@key{ov}{dateskipbefore}{\setlength{\@dt@sk@b}{#1}}% |
| 2405 |
\def\dateskipafter#1{\setlength{\@dt@sk@a}{#1}}% |
| 2406 |
\define@key{ov}{dateskipafter}{\setlength{\@dt@sk@a}{#1}}% |
| 2407 |
\def\addrfromskipafter#1{\setlength{\@addr@fr@sk@a}{#1}}% |
| 2408 |
\define@key{ov}{addrfromskipafter}{\setlength{\@addr@fr@sk@a}{#1}}% |
| 2409 |
\def\addrfromskipbefore#1{\setlength{\@addr@fr@sk@b}{#1}}% |
| 2410 |
\define@key{ov}{addrfromskipbefore}{\setlength{\@addr@fr@sk@b}{#1}}% |
| 2411 |
\def\addrtoskipafter#1{\setlength{\@addr@to@sk@a}{#1}}% |
| 2412 |
\define@key{ov}{addrtoskipafter}{\setlength{\@addr@to@sk@a}{#1}}% |
| 2413 |
\def\addrtoskipbefore#1{\setlength{\@addr@to@sk@b}{#1}}% |
| 2414 |
\define@key{ov}{addrtoskipbefore}{\setlength{\@addr@to@sk@b}{#1}}% |
| 2415 |
\def\greettoskipafter#1{\setlength{\@greet@to@sk@a}{#1}}% |
| 2416 |
\define@key{ov}{greettoskipafter}{\setlength{\@greet@to@sk@a}{#1}}% |
| 2417 |
\def\sigskipbefore#1{\setlength{\@sig@sk@b}{#1}}% |
| 2418 |
\define@key{ov}{sigskipbefore}{\setlength{\@sig@sk@b}{#1}}% |
| 2419 |
\def\sigskipafter#1{\setlength{\@sig@sk@a}{#1}}% |
| 2420 |
\define@key{ov}{sigskipafter}{\setlength{\@sig@sk@a}{#1}}% |
| 2421 |
\def\closeskipbefore#1{\setlength{\@cls@sk@b}{#1}}% |
| 2422 |
\define@key{ov}{closeskipbefore}{\setlength{\@cls@sk@b}{#1}}% |
| 2423 |
\def\closeskipafter#1{\setlength{\@cls@sk@a}{#1}}% |
| 2424 |
\define@key{ov}{closeskipafter}{\setlength{\@cls@sk@a}{#1}}% |
| 2425 |
\def\sigskipcolumn#1{\setlength{\@sig@sk@c}{#1}}% |
| 2426 |
\define@key{ov}{sigskipcolumn}{\setlength{\@sig@sk@c}{#1}}% |
| 2427 |
\def\sigskiprow#1{\setlength{\@sig@sk@r}{#1}}% |
| 2428 |
\define@key{ov}{sigskiprow}{\setlength{\@sig@sk@r}{#1}}% |
| 2429 |
\def\sigsize#1{\setlength{\@sig@sp}{#1}}% |
| 2430 |
\define@key{ov}{sigsize}{\setlength{\@sig@sp}{#1}}% |
| 2431 |
\def\postsigskipafter#1{\setlength{\@post@sig@sp@a}{#1}}% |
| 2432 |
\define@key{ov}{postsigskipafter}{\setlength{\@post@sig@sp@a}{#1}}% % |
| 2433 |
\def\postsigskipbefore#1{\setlength{\@post@sig@sp@b}{#1}}% |
| 2434 |
\define@key{ov}{postsigskipbefore}{\setlength{\@post@sig@sp@b}{#1}}% % |
| 2435 |
\def\memoskipafter#1{\setlength{\@post@memo@sp}{#1}}% |
| 2436 |
\define@key{ov}{memoskipafter}{\setlength{\@post@memo@sp}{#1}}% |
| 2437 |
\def\memoskipbefore#1{\setlength{\@pre@memo@sp}{#1}}% |
| 2438 |
\define@key{ov}{memoskipbefore}{\setlength{\@pre@memo@sp}{#1}}% |
| 2439 |
\def\restletter#1{\setboolean{@resta@l}{true}% |
| 2440 |
\begin{lrbox}{\@resta@ltr}\begin{minipage}{\textwidth}#1\end{minipage}\end{lrbox}}% |
| 2441 |
\def\restlettera#1{\setboolean{@resta@l}{true}% |
| 2442 |
\begin{lrbox}{\@resta@ltr}\begin{minipage}{\textwidth}#1\end{minipage}\end{lrbox}}% |
| 2443 |
\def\restletterb#1{\setboolean{@restb@l}{true}% |
| 2444 |
\begin{lrbox}{\@restb@ltr}\begin{minipage}{\textwidth}#1\end{minipage}\end{lrbox}}% |
| 2445 |
\def\restletterc#1{\setboolean{@restc@l}{true}% |
| 2446 |
\begin{lrbox}{\@restc@ltr}\begin{minipage}{\textwidth}#1\end{minipage}\end{lrbox}}% |
| 2447 |
\def\restletterd#1{\setboolean{@restd@l}{true}% |
| 2448 |
\begin{lrbox}{\@restd@ltr}\begin{minipage}{\textwidth}#1\end{minipage}\end{lrbox}}% |
| 2449 |
\def\restlettere#1{\setboolean{@reste@l}{true}% |
| 2450 |
\begin{lrbox}{\@reste@ltr}\begin{minipage}{\textwidth}#1\end{minipage}\end{lrbox}}% |
| 2451 |
\def\unprtop#1{\setlength{\@unpr@tp}{#1}}% |
| 2452 |
\define@key{ov}{unprtop}{\setlength{\@unpr@tp}{#1}}% |
| 2453 |
\def\unprbottom#1{\setlength{\@unpr@bm}{#1}}% |
| 2454 |
\define@key{ov}{unprbottom}{\setlength{\@unpr@bm}{#1}}% |
| 2455 |
\def\unprright#1{\setlength{\@unpr@rt}{#1}}% |
| 2456 |
\define@key{ov}{unprright}{\setlength{\@unpr@rt}{#1}}% |
| 2457 |
\def\unprleft#1{\setlength{\@unpr@lt}{#1}}% |
| 2458 |
\define@key{ov}{unprleft}{\setlength{\@unpr@lt}{#1}}% |
| 2459 |
% \end{macrocode} |
| 2460 |
% \end{macro} |
| 2461 |
% |
| 2462 |
% \begin{macro}{Memos} |
| 2463 |
% Memo definitions are set up here. This is done by setting options |
| 2464 |
% (for the options block in the |\documentclass| statement) or by |
| 2465 |
% entering them into the |MemoParam| statement. |
| 2466 |
% In the current approach to |newlfm|, both keyval and class option |
| 2467 |
% approaches are maintained for all commands. This requires that all |
| 2468 |
% options be processed both using |DeclareOption| and |define@key| |
| 2469 |
% approaches. This, at this point, does require simply duplication of |
| 2470 |
% the code required to be processed. |
| 2471 |
% |
| 2472 |
% \begin{macrocode} |
| 2473 |
\def\@opt@stm{% |
| 2474 |
\setboolean{@addr@fr@p}{false}% |
| 2475 |
\setboolean{@addr@to@p}{false}% |
| 2476 |
\setboolean{@memo@bl}{true}% |
| 2477 |
\setboolean{@greet@p}{false}% |
| 2478 |
\setboolean{@dt@l}{false}% |
| 2479 |
\setboolean{@dt@c}{false}% |
| 2480 |
\setboolean{@dt@p}{false}% |
| 2481 |
\setboolean{@sig@p}{false}% |
| 2482 |
\setboolean{@sig@mp}{true}% |
| 2483 |
}% |
| 2484 |
\def\@opt@stpr{% |
| 2485 |
\setboolean{@addr@fr@p}{false}% |
| 2486 |
\setboolean{@addr@to@p}{false}% |
| 2487 |
\setboolean{@memo@bl}{true}% |
| 2488 |
\setboolean{@greet@p}{false}% |
| 2489 |
\setboolean{@dt@l}{false}% |
| 2490 |
\setboolean{@dt@c}{false}% |
| 2491 |
\setboolean{@dt@p}{false}% |
| 2492 |
\setboolean{@sig@p}{false}% |
| 2493 |
\setboolean{@sig@mp}{true}% |
| 2494 |
}% |
| 2495 |
\def\@opt@flm{% |
| 2496 |
\setboolean{@addr@fr@p}{false}% |
| 2497 |
\setboolean{@addr@to@p}{false}% |
| 2498 |
\setboolean{@memo@bl}{true}% |
| 2499 |
\setboolean{@greet@p}{false}% |
| 2500 |
\setboolean{@dt@l}{false}% |
| 2501 |
\setboolean{@dt@c}{false}% |
| 2502 |
\setboolean{@dt@p}{false}% |
| 2503 |
\setboolean{@sig@p}{false}% |
| 2504 |
\setboolean{@sig@mp}{false}% |
| 2505 |
\setboolean{@memo@b}{true}% |
| 2506 |
\setboolean{@memo@c}{true}% |
| 2507 |
\setboolean{@memo@d}{true}% |
| 2508 |
\setboolean{@memo@h}{true}% |
| 2509 |
\setboolean{@memo@i}{true}% |
| 2510 |
\setboolean{@memo@j}{true}% |
| 2511 |
\setboolean{@memo@k}{true}% |
| 2512 |
\setboolean{@memo@l}{true}% |
| 2513 |
\setboolean{@memo@m}{true}% |
| 2514 |
\setboolean{@memo@n}{true}% |
| 2515 |
}% |
| 2516 |
\DeclareOption{memoaddrto}{\setboolean{@memo@b}{true}}% |
| 2517 |
\define@key{ov}{memoaddrto}[true]{\iffixt{#1}{@memo@b}}% |
| 2518 |
\DeclareOption{memoemailto}{\setboolean{@memo@k}{true}}% |
| 2519 |
\define@key{ov}{memoemailto}[true]{\iffixt{#1}{@memo@k}}% |
| 2520 |
\DeclareOption{memophoneto}{\setboolean{@memo@c}{true}}% |
| 2521 |
\define@key{ov}{memophoneto}[true]{\iffixt{#1}{@memo@c}}% |
| 2522 |
\DeclareOption{memopagerto}{\setboolean{@memo@n}{true}}% |
| 2523 |
\define@key{ov}{memopagerto}[true]{\iffixt{#1}{@memo@n}}% |
| 2524 |
\DeclareOption{memofaxto}{\setboolean{@memo@d}{true}}% |
| 2525 |
\define@key{ov}{memofaxto}[true]{\iffixt{#1}{@memo@d}}% |
| 2526 |
\DeclareOption{memoaddrfrom}{\setboolean{@memo@h}{true}}% |
| 2527 |
\define@key{ov}{memoaddrfrom}[true]{\iffixt{#1}{@memo@h}}% |
| 2528 |
\DeclareOption{memoemailfrom}{\setboolean{@memo@l}{true}}% |
| 2529 |
\define@key{ov}{memoemailfrom}[true]{\iffixt{#1}{@memo@l}}% |
| 2530 |
\DeclareOption{memopagerfrom}{\setboolean{@memo@m}{true}}% |
| 2531 |
\define@key{ov}{memopagerfrom}[true]{\iffixt{#1}{@memo@m}}% |
| 2532 |
\DeclareOption{memophonefrom}{\setboolean{@memo@i}{true}}% |
| 2533 |
\define@key{ov}{memophonefrom}[true]{\iffixt{#1}{@memo@i}}% |
| 2534 |
\DeclareOption{memofaxfrom}{\setboolean{@memo@j}{true}}% |
| 2535 |
\define@key{ov}{memofaxfrom}[true]{\iffixt{#1}{@memo@j}}% |
| 2536 |
\DeclareOption{memodate}{\setboolean{@dt@p}{true}}% |
| 2537 |
\define@key{ov}{memodate}[true]{\iffixt{#1}{@dt@p}}% |
| 2538 |
\DeclareOption{memonofrom}{\setboolean{@memo@e}{true}}% |
| 2539 |
\define@key{ov}{memonofrom}[true]{\iffixt{#1}{@memo@e}}% |
| 2540 |
\DeclareOption{memonoto}{\setboolean{@memo@g}{true}}% |
| 2541 |
\define@key{ov}{memonoto}[true]{\iffixt{#1}{@memo@g}}% |
| 2542 |
\DeclareOption{memonore}{\setboolean{@memo@f}{true}}% |
| 2543 |
\define@key{ov}{memonore}[true]{\iffixt{#1}{@memo@f}}% |
| 2544 |
\DeclareOption{fullmemo}{\@opt@flm}% |
| 2545 |
\define@key{ov}{fullmemo}[true]{\iffixq{#1}{\@opt@flm}}% |
| 2546 |
\DeclareOption{stdmemo}{\@opt@stm}% |
| 2547 |
\define@key{ov}{stdmemo}[true]{\iffixq{#1}{\@opt@stm}}% |
| 2548 |
% \end{macrocode} |
| 2549 |
% \end{macro} |
| 2550 |
% |
| 2551 |
% \begin{macro}{Press Releases} |
| 2552 |
% Press release definitions are set up here. |
| 2553 |
% Currently, there are no options. |
| 2554 |
% |
| 2555 |
% \begin{macrocode} |
| 2556 |
\def\@opt@pr{% |
| 2557 |
\setboolean{@addr@fr@p}{true}% |
| 2558 |
\setboolean{@addr@to@p}{false}% |
| 2559 |
\setboolean{@pr@p}{true}% |
| 2560 |
\setboolean{@greet@p}{false}% |
| 2561 |
\setboolean{@dt@l}{false}% |
| 2562 |
\setboolean{@dt@c}{false}% |
| 2563 |
\setboolean{@dt@p}{false}% |
| 2564 |
\setboolean{@sig@p}{false}% |
| 2565 |
\setboolean{@sig@mp}{false}% |
| 2566 |
}% |
| 2567 |
\DeclareOption{pressrelease}{\@opt@pr}% |
| 2568 |
\define@key{ov}{pressrelease}[true]{\iffixq{#1}{\@opt@pr}}% |
| 2569 |
\DeclareOption{stdpressrelease}{\@opt@pr}% |
| 2570 |
\define@key{ov}{stdpressrelease}[true]{\iffixq{#1}{\@opt@pr}}% |
| 2571 |
\DeclareOption{dspace}{\setboolean{@space@d}{true}\setboolean{@space@s}{false}}% |
| 2572 |
\DeclareOption{sspace}{\setboolean{@space@s}{true}\setboolean{@space@d}{false}}% |
| 2573 |
\define@key{ov}{dspace}[true]{% |
| 2574 |
\iffixq{#1}{\setboolean{@space@d}{true}\setboolean{@space@s}{false}}}% |
| 2575 |
\define@key{ov}{sspace}[true]{% |
| 2576 |
\iffixq{#1}{\setboolean{@space@s}{true}\setboolean{@space@d}{false}}}% |
| 2577 |
% \end{macrocode} |
| 2578 |
% \end{macro} |
| 2579 |
% |
| 2580 |
% \begin{macro}{Faxes} |
| 2581 |
% These commands define the overall structures for |
| 2582 |
% fax pages, fax blocks and fax choices. |
| 2583 |
% \begin{macrocode} |
| 2584 |
\DeclareOption{faxhp}{\setboolean{@fax@hdr@pg}{true}\setboolean{@fax@RA}{false}}% |
| 2585 |
\DeclareOption{faxheaderpage}{\setboolean{@fax@hdr@pg}{true}\setboolean{@fax@RA}{false}}% |
| 2586 |
\define@key{ov}{faxheaderpage}[true]% |
| 2587 |
{\iffixq{#1}{\setboolean{@fax@hdr@pg}{true}\setboolean{@fax@RA}{false}}}% |
| 2588 |
\DeclareOption{faxhba}% Print fax header block on leader in right top-margin. |
| 2589 |
{\setboolean{@fax@RA}{true}\setboolean{@fax@hdr@pg}{false}}% |
| 2590 |
\define@key{ov}{faxhba}[true]% Print fax header block on leader in right top-margin. |
| 2591 |
{\iffixq{#1}{\setboolean{@fax@RA}{true}\setboolean{@fax@hdr@pg}{false}}}% |
| 2592 |
\DeclareOption{faxhbb}% Print fax header block - leader - upper right quad letter |
| 2593 |
{\setboolean{@fax@RU}{true}\setboolean{@fax@hdr@pg}{false}}% |
| 2594 |
\DeclareOption{faxbla}% Print FAX block in \Rheader |
| 2595 |
{\setboolean{@fax@bla}{true}\setboolean{@fax@blb}{false}}% |
| 2596 |
\DeclareOption{faxblb}% |
| 2597 |
{\setboolean{@fax@blb}{true}\setboolean{@fax@bla}{false}}% |
| 2598 |
\DeclareOption{faxblocka}%Print FAX block in \Rheader |
| 2599 |
{\setboolean{@fax@bla}{true}\setboolean{@fax@blb}{false}}% |
| 2600 |
\define@key{ov}{faxblocka}[true]% |
| 2601 |
{\iffixq{#1}{\setboolean{@fax@bla}{true}\setboolean{@fax@blb}{false}}}% |
| 2602 |
\DeclareOption{faxblockb}% |
| 2603 |
{\setboolean{@fax@blb}{true}\setboolean{@fax@bla}{false}}% |
| 2604 |
\define@key{ov}{faxblockb}[true]% |
| 2605 |
{\iffixq{#1}{\setboolean{@fax@blb}{true}\setboolean{@fax@bla}{false}}}% |
| 2606 |
% \end{macrocode} |
| 2607 |
% \end{macro} |
| 2608 |
% |
| 2609 |
% \begin{macro}{Letters} |
| 2610 |
% Letter definitions. These commands define the overall structures for |
| 2611 |
% standard letters (with and without from-addresses). There are commands |
| 2612 |
% for blanking of sections (blankrightmargin, etc.). There are commands |
| 2613 |
% for ordering of sections. There are commands for inclusion of various |
| 2614 |
% types of information. |
| 2615 |
% \begin{macrocode} |
| 2616 |
\def\@opt@slr{% |
| 2617 |
\setboolean{@addr@fr@l}{false}% |
| 2618 |
\setboolean{@addr@fr@p}{true}% |
| 2619 |
\setboolean{@addr@to@p}{true}% |
| 2620 |
\setboolean{@dt@p}{true}% |
| 2621 |
\setboolean{@dt@l}{false}% |
| 2622 |
\setboolean{@dt@c}{false}% |
| 2623 |
\setboolean{@greet@p}{true}% |
| 2624 |
\setboolean{@sig@p}{true}% |
| 2625 |
\setboolean{@sig@mp}{false}% |
| 2626 |
\setboolean{@addr@to@l}{true}% |
| 2627 |
\setboolean{@memo@bl}{false}% |
| 2628 |
\setboolean{@dt@l}{false}% |
| 2629 |
\txa{In @opt@slr}% |
| 2630 |
\setboolean{@sig@l}{false}% |
| 2631 |
\setboolean{@sig@c}{false}% |
| 2632 |
\@d@pos{1}\@t@pos{3}\@f@pos{2}\setboolean{@s@b@s}{false}}% |
| 2633 |
\DeclareOption{stdletter}{\@opt@slr}% |
| 2634 |
\define@key{ov}{stdletter}[true]{\iffixq{#1}{\@opt@slr}}% |
| 2635 |
\def\@opt@sln{\setboolean{@addr@fr@l}{false}% |
| 2636 |
\setboolean{@addr@fr@p}{false}% |
| 2637 |
\setboolean{@addr@to@p}{true}% |
| 2638 |
\setboolean{@dt@p}{true}% |
| 2639 |
\setboolean{@dt@l}{false}% |
| 2640 |
\setboolean{@dt@c}{false}% |
| 2641 |
\setboolean{@greet@p}{true}% |
| 2642 |
\setboolean{@sig@p}{true}% |
| 2643 |
\setboolean{@sig@mp}{false}% |
| 2644 |
\setboolean{@addr@to@l}{true}% |
| 2645 |
\setboolean{@memo@bl}{false}% |
| 2646 |
\setboolean{@dt@l}{false}% |
| 2647 |
\txa{In @opt@sln}% |
| 2648 |
\setboolean{@sig@l}{false}% |
| 2649 |
\setboolean{@sig@c}{false}% |
| 2650 |
\@d@pos{1}\@t@pos{3}\@f@pos{2}\setboolean{@s@b@s}{false}}% |
| 2651 |
\DeclareOption{stdletternofrom} {\@opt@sln}% |
| 2652 |
\define@key{ov}{stdletternofrom}[true]{\iffixq{#1}{\@opt@sln}}% |
| 2653 |
\def\@opt@blr{\setboolean{@addr@fr@l}{true}% |
| 2654 |
\setboolean{@addr@fr@p}{true}% |
| 2655 |
\setboolean{@memo@bl}{false}% |
| 2656 |
\setboolean{@addr@to@l}{true}% |
| 2657 |
\setboolean{@dt@l}{true}% |
| 2658 |
\setboolean{@dt@c}{false}% |
| 2659 |
\txa{In @opt@blr}% |
| 2660 |
\setboolean{@sig@l}{true}% |
| 2661 |
\setboolean{@sig@c}{false}% |
| 2662 |
\setboolean{@sig@p}{true}% |
| 2663 |
\setboolean{@sig@mp}{false}% |
| 2664 |
\@d@pos{1}\@t@pos{3}\@f@pos{2}\setboolean{@s@b@s}{false}}% |
| 2665 |
\DeclareOption{busletter} {\@opt@blr}% |
| 2666 |
\define@key{ov}{busletter}[true]{\iffixq{#1}{\@opt@blr}}% |
| 2667 |
\def\@opt@bln{\setboolean{@addr@fr@l}{true}% |
| 2668 |
\setboolean{@addr@fr@p}{false}% |
| 2669 |
\setboolean{@memo@bl}{false}% |
| 2670 |
\setboolean{@addr@to@l}{true}% |
| 2671 |
\setboolean{@dt@l}{true}% |
| 2672 |
\setboolean{@dt@c}{false}% |
| 2673 |
\txa{In @opt@bln}% |
| 2674 |
\setboolean{@sig@l}{true}% |
| 2675 |
\setboolean{@sig@p}{true}% |
| 2676 |
\setboolean{@sig@mp}{false}% |
| 2677 |
\setboolean{@sig@c}{false}% |
| 2678 |
\@d@pos{1}\@t@pos{3}\@f@pos{2}\setboolean{@s@b@s}{false}}% |
| 2679 |
\DeclareOption{busletternofrom} {\@opt@bln}% |
| 2680 |
\newboolean{@test@opt}\setboolean{@test@opt}{false}% |
| 2681 |
\define@key{ov}{busletternofrom}[true]{\iffixq{#1}{\@opt@bln}}% |
| 2682 |
\DeclareOption{addrfromleft} {\setboolean{@addr@fr@l}{true}}% |
| 2683 |
\define@key{ov}{addrfromleft}[true]{\iffixt{#1}{@addr@fr@l}}% |
| 2684 |
\DeclareOption{addrfromright}{\setboolean{@addr@fr@l}{false}}% |
| 2685 |
\define@key{ov}{addrfromright}[true]{\iffixf{#1}{@addr@fr@l}}% |
| 2686 |
\DeclareOption{addrtoleft} {\setboolean{@addr@to@l}{true}}% |
| 2687 |
\define@key{ov}{addrtoleft}[true]{\iffixt{#1}{@addr@to@l}}% |
| 2688 |
\DeclareOption{addrtoright} {\setboolean{@addr@to@l}{false}}% |
| 2689 |
\define@key{ov}{addrtoright}[true]{\iffixf{#1}{@addr@to@l}}% |
| 2690 |
\DeclareOption{addrtoemail} {\setboolean{@addr@to@e}{true}}% |
| 2691 |
\define@key{ov}{addrtoemail}[true]{\iffixt{#1}{@addr@to@e}}% |
| 2692 |
\DeclareOption{addrtophone} {\setboolean{@addr@to@t}{true}}% |
| 2693 |
\define@key{ov}{addrtophone}[true]{\iffixt{#1}{@addr@to@t}}% |
| 2694 |
\DeclareOption{addrtofax} {\setboolean{@addr@to@f}{true}}% |
| 2695 |
\DeclareOption{addrfromemail}{\setboolean{@addr@fr@e}{true}}% |
| 2696 |
\define@key{ov}{addrfromemail}[true]{\iffixt{#1}{@addr@fr@e}}% |
| 2697 |
\DeclareOption{addrfromphone}{\setboolean{@addr@fr@t}{true}}% |
| 2698 |
\define@key{ov}{addrfromphone}[true]{\iffixt{#1}{@addr@fr@t}}% |
| 2699 |
\DeclareOption{addrfromfax} {\setboolean{@addr@fr@f}{true}}% |
| 2700 |
\define@key{ov}{addrfromfax}[true]{\iffixt{#1}{@addr@fr@f}}% |
| 2701 |
\providecommand{\boxht}{}\providecommand{\boxwd}{}\providecommand{\btwlb}{}% |
| 2702 |
\providecommand{\topht}{}\providecommand{\lftwd}{}% |
| 2703 |
\def\labpl#1{\setlength{\@lab@pl}{#1}}% |
| 2704 |
\def\boxht#1{\setlength{\@lab@bh}{#1}}% |
| 2705 |
\def\boxwd#1{\setlength{\@lab@bw}{#1}}% |
| 2706 |
\def\topht#1{\setlength{\@lab@th}{#1}}% |
| 2707 |
\def\lftwd#1{\setlength{\@lab@lm}{#1}}% |
| 2708 |
\def\btwlb#1{\setlength{\@lab@bl}{#1}}% |
| 2709 |
\def\@labname{nolines,dateno}% |
| 2710 |
\def\Alaba{\def\@labname{Avery5160,nolines,dateno}% |
| 2711 |
\setboolean{@set@env}{true}\setboolean{@use@envlab}{false} \def\@tab@just{rrr}\labpl{10.125in}% |
| 2712 |
\setcounter{@lab@tot@row}{10} \setcounter{@lab@tot@col}{3} \btwlb{5pt}% |
| 2713 |
\boxht{67pt} \boxwd{174pt} \topht{38pt} \lftwd{-77pt} \setlength{\@Hgt@Foot}{0pt}}% |
| 2714 |
\def\Alabb{\def\@labname{Avery5161,nolines,dateno}% |
| 2715 |
\setboolean{@set@env}{true}\setboolean{@use@envlab}{false} \def\@tab@just{rr}\labpl{10.125in}% |
| 2716 |
\setcounter{@lab@tot@row}{10} \setcounter{@lab@tot@col}{2} \btwlb{8pt}% |
| 2717 |
\boxht{67pt} \boxwd{274pt} \topht{37pt} \lftwd{-80pt} \setlength{\@Hgt@Foot}{0pt}}% |
| 2718 |
\def\Alabc{\def\@labname{Avery5162,nolines,dateno}% |
| 2719 |
\setboolean{@set@env}{true}\setboolean{@use@envlab}{false} \def\@tab@just{rr}\labpl{9.5in}% |
| 2720 |
\setcounter{@lab@tot@row}{7} \setcounter{@lab@tot@col}{2} \btwlb{8pt}% |
| 2721 |
\boxht{93pt} \boxwd{274pt} \topht{62pt} \lftwd{-80pt} \setlength{\@Hgt@Foot}{0pt}}% |
| 2722 |
\def\Alabd{\def\@labname{Avery5163,nolines,dateno}% |
| 2723 |
\setboolean{@set@env}{true}\setboolean{@use@envlab}{false} \def\@tab@just{rr}\labpl{10.125in}% |
| 2724 |
\setcounter{@lab@tot@row}{5} \setcounter{@lab@tot@col}{2} \btwlb{8pt}% |
| 2725 |
\boxht{139pt} \boxwd{274pt} \topht{38pt} \lftwd{-80pt} \setlength{\@Hgt@Foot}{0pt}}% |
| 2726 |
\def\Alabe{\def\@labname{Avery5164,nolines,dateno}% |
| 2727 |
\setboolean{@set@env}{true}\setboolean{@use@envlab}{false} \def\@tab@just{rr}\labpl{10.125in}% |
| 2728 |
\setcounter{@lab@tot@row}{3} \setcounter{@lab@tot@col}{2} \btwlb{8pt}% |
| 2729 |
\boxht{232pt} \boxwd{274pt} \topht{38pt} \lftwd{-80pt} \setlength{\@Hgt@Foot}{0pt}}% |
| 2730 |
\DeclareOption{Avery5160}{\Alaba}% |
| 2731 |
\DeclareOption{Avery5161}{\Alabb}% |
| 2732 |
\DeclareOption{Avery5261}{\Alabb}% |
| 2733 |
\DeclareOption{Avery5162}{\Alabc}% |
| 2734 |
\DeclareOption{Avery5163}{\Alabd}% |
| 2735 |
\DeclareOption{Avery5164}{\Alabe}% |
| 2736 |
\DeclareOption{Avery5264}{\Alabe}% |
| 2737 |
\DeclareOption{labto}{\setboolean{@lab@t}{true}}% |
| 2738 |
\DeclareOption{labrowfrto}{\setboolean{@lab@rft}{true}\setboolean{@lab@t}{false}}% |
| 2739 |
\DeclareOption{labcolfrto}{\setboolean{@lab@cft}{true}\setboolean{@lab@t}{false}}% |
| 2740 |
\def\labsize#1{\def\@lab@size{#1}}% |
| 2741 |
\define@key{ov}{Avery5160}[true]{\iffixq{#1}{\Alaba}}% |
| 2742 |
\define@key{ov}{Avery5161}[true]{\iffixq{#1}{\Alabb}}% |
| 2743 |
\define@key{ov}{Avery5261}[true]{\iffixq{#1}{\Alabb}}% |
| 2744 |
\define@key{ov}{Avery5162}[true]{\iffixq{#1}{\Alabc}}% |
| 2745 |
\define@key{ov}{Avery5163}[true]{\iffixq{#1}{\Alabd}}% |
| 2746 |
\define@key{ov}{Avery5164}[true]{\iffixq{#1}{\Alabe}}% |
| 2747 |
\define@key{ov}{Avery5264}[true]{\iffixq{#1}{\Alabe}}% |
| 2748 |
\define@key{ov}{labto}[true]{\iffixq{#1}{\setboolean{@lab@t}{true}}}% |
| 2749 |
\define@key{ov}{labrowfrto}[true]{\iffixq{#1}% |
| 2750 |
{\setboolean{@lab@rft}{true}\setboolean{@lab@t}{false}}}% |
| 2751 |
\define@key{ov}{labsize}{\def\@lab@size{#1}} |
| 2752 |
\define@key{ov}{labcolfrto}[true]{\iffixq{#1}% |
| 2753 |
{\setboolean{@lab@cft}{true}\setboolean{@lab@t}{false}}}% |
| 2754 |
\DeclareOption{setuplabel}{\setboolean{@set@env}{true}\setboolean{@use@envlab}{false}}% |
| 2755 |
\define@key{ov}{setuplabel}[true]{% |
| 2756 |
\iffixq{#1}{\setboolean{@set@env}{true}\setboolean{@use@envlab}{false}}}% |
| 2757 |
\def\@dodtf{\@d@pos{1}\@t@pos{3}\@f@pos{2}\setboolean{@s@b@s}{false}}% |
| 2758 |
\def\@dofdt{\@d@pos{2}\@t@pos{3}\@f@pos{1}\setboolean{@s@b@s}{false}}% |
| 2759 |
\def\@doftd{\@d@pos{3}\@t@pos{2}\@f@pos{1}\setboolean{@s@b@s}{false}}% |
| 2760 |
\def\@dosbs{\@d@pos{1}\@t@pos{0}\@f@pos{0}\setboolean{@s@b@s}{true}}% |
| 2761 |
\DeclareOption{orderdatefromto}{\@dodtf}% |
| 2762 |
\define@key{ov}{orderdatefromto}[true]{\iffixq{#1}{\@dodtf}}% |
| 2763 |
\DeclareOption{orderfromdateto}{\@dofdt}% |
| 2764 |
\define@key{ov}{orderfromdateto}[true]{\iffixq{#1}{\@dofdt}}% |
| 2765 |
\DeclareOption{orderfromtodate}{\@doftd}% |
| 2766 |
\define@key{ov}{orderfromtodate}[true]{\iffixq{#1}{\@doftd}}% |
| 2767 |
\DeclareOption{sidebyside}{\@dosbs}% |
| 2768 |
\define@key{ov}{sidebyside}[true]{\iffixq{#1}{\@dosbs}}% |
| 2769 |
% Set right block flush top page |
| 2770 |
\DeclareOption{margflush}{\setboolean{@marg@lt@fl@tp}{true}}% |
| 2771 |
\define@key{ov}{margflush}[true]{\iffixt{#1}{@marg@lt@fl@tp}}% |
| 2772 |
% Set the marginal gap 20p |
| 2773 |
\DeclareOption{biggap}{\setboolean{@gap@small}{false}}% |
| 2774 |
% Do not print from-address. |
| 2775 |
\DeclareOption{addrfromno}{\setboolean{@addr@fr@p}{false}}% |
| 2776 |
\DeclareOption{noaddrfr}{\setboolean{@addr@fr@p}{false}}% |
| 2777 |
\DeclareOption{noaddrfrom}{\setboolean{@addr@fr@p}{false}}% |
| 2778 |
\define@key{ov}{noaddrfrom}[true]{\iffixf{#1}{@addr@fr@p}}% |
| 2779 |
% Do not print to-address. |
| 2780 |
\DeclareOption{addrtono}{\setboolean{@addr@to@p}{false}}% |
| 2781 |
\DeclareOption{noaddrto}{\setboolean{@addr@to@p}{false}}% |
| 2782 |
\define@key{ov}{noaddrto}[true]{\iffixf{#1}{@addr@to@p}}% |
| 2783 |
% Do not print greeting |
| 2784 |
\DeclareOption{greetno}{\setboolean{@greet@p}{false}}% |
| 2785 |
\define@key{ov}{nogreet}[true]{\iffixf{#1}{@greet@p}}% |
| 2786 |
% Use cello envelope |
| 2787 |
\DeclareOption{cellowindow}{\setboolean{@cello@win}{true}}% |
| 2788 |
\define@key{ov}{cellowindow}[true]{\iffixt{#1}{@cello@win}}% |
| 2789 |
% Cello dimensions |
| 2790 |
\def\celloheight#1{\setlength{\@cello@h}{#1}}% |
| 2791 |
\def\cellowidth#1{\setlength{\@cello@w}{#1}}% |
| 2792 |
\define@key{ov}{celloheight}{\celloheight{#1}}% |
| 2793 |
\define@key{ov}{cellowidth}{\cellowidth{#1}}% |
| 2794 |
% Cello placement |
| 2795 |
\def\cellodown#1{\setlength{\@cello@d}{#1}}% |
| 2796 |
\def\celloleft#1{\setlength{\@cello@l}{#1}}% |
| 2797 |
\define@key{ov}{cellodown}{\cellodown{#1}}% |
| 2798 |
\define@key{ov}{celloleft}{\celloleft{#1}}% |
| 2799 |
% Print date right-justified |
| 2800 |
\DeclareOption{dateright}{\setboolean{@dt@l}{false}\setboolean{@dt@c}{false}}% |
| 2801 |
\define@key{ov}{dateright}[true]{\iffixq{#1}{\setboolean{@dt@l}{false}\setboolean{@dt@c}{false}}}% |
| 2802 |
\def\dateright#1{\iffixq{#1}{\setboolean{@dt@l}{false}\setboolean{@dt@c}{false}}}% |
| 2803 |
% Print date left-justified |
| 2804 |
\DeclareOption{dateleft}{\setboolean{@dt@l}{true}\setboolean{@dt@c}{false}}% |
| 2805 |
\define@key{ov}{dateleft}[true]{\iffixq{#1}{\setboolean{@dt@l}{true}\setboolean{@dt@c}{false}}}% |
| 2806 |
\def\dateleft#1{\iffixq{#1}{\setboolean{@dt@l}{true}\setboolean{@dt@c}{false}}}% |
| 2807 |
% Print date centered |
| 2808 |
\DeclareOption{datecenter}{\setboolean{@dt@l}{false}\setboolean{@dt@c}{true}}% |
| 2809 |
\define@key{ov}{datecenter}[true]{\iffixq{#1}{\setboolean{@dt@l}{false}\setboolean{@dt@c}{true}}}% |
| 2810 |
\def\datecenter#1{\iffixq{#1}{\setboolean{@dt@l}{false}\setboolean{@dt@c}{true}}}% |
| 2811 |
% Do not print date |
| 2812 |
\DeclareOption{dateno}{\setboolean{@dt@p}{false}}% |
| 2813 |
\define@key{ov}{dateno}[true]{\iffixf{#1}{@dt@p}}% |
| 2814 |
\def\dateno#1{\iffixf{#1}{@dt@p}}% |
| 2815 |
% Print date |
| 2816 |
\DeclareOption{dateyes}{\setboolean{@dt@p}{true}}% |
| 2817 |
% Print signature left-justified |
| 2818 |
\def\setsigl{\setboolean{@sig@l}{true}\setboolean{@sig@c}{false}} |
| 2819 |
\def\setsigc{\setboolean{@sig@l}{false}\setboolean{@sig@c}{true}} |
| 2820 |
\def\setsigr{\setboolean{@sig@l}{false}\setboolean{@sig@c}{false}} |
| 2821 |
\DeclareOption{signatureleft}{\txa{DO fsignl}\setsigl}% |
| 2822 |
\define@key{ov}{signatureleft}[true]{\iffixq{#1}{\txa{DK fsignl}\setsigl}}% |
| 2823 |
\def\signatureleft#1{\txa{SO fsignl}\setsigl}% |
| 2824 |
\DeclareOption{sigleft}{\txa{DO asignl}\setsigl}% |
| 2825 |
\define@key{ov}{sigleft}[true]{\iffixq{#1}{\txa{DK asignl}\setsigl}}% |
| 2826 |
\def\sigleft#1{\txa{SO asignl}\setsigl}% |
| 2827 |
% Print signature centered |
| 2828 |
\DeclareOption{signaturecenter}{\txa{DO fsignc}\setsigc}% |
| 2829 |
\define@key{ov}{signaturecenter}[true]{\iffixq{#1}{\txa{DK fsignc}\setsigc}}% |
| 2830 |
\def\signaturecenter#1{\txa{SO fsignc}\setsigc}% |
| 2831 |
\DeclareOption{sigcenter}{\txa{DO asignc}\setsigc}% |
| 2832 |
\define@key{ov}{sigcenter}[true]{\iffixq{#1}{\txa{DK asignc}\setsigc}}% |
| 2833 |
\def\sigcenter#1{\txa{SO asignc}\setsigc}% |
| 2834 |
% Print signature right-justified |
| 2835 |
\DeclareOption{signatureright}{\txa{DO fsignr}\setsigr}% |
| 2836 |
\define@key{ov}{signatureright}[true]{\iffixq{#1}{\txa{DK fsignr}\setsigr}}% |
| 2837 |
\def\signatureright#1{\txa{SO fsignr}\setsigr}% |
| 2838 |
\DeclareOption{sigright}{\txa{DO asignr}\setsigr}% |
| 2839 |
\define@key{ov}{sigright}[true]{\iffixq{#1}{\txa{DK asignr}\setsigr}}% |
| 2840 |
\def\sigright#1{\txa{SO asignr}\setsigr}% |
| 2841 |
% No signature |
| 2842 |
\DeclareOption{signatureno}{\setboolean{@sig@p}{false}}% |
| 2843 |
\define@key{ov}{signatureno}[true]{\iffixf{#1}{\setboolean{@sig@p}{false}}}% |
| 2844 |
\def\signatureno#1{\setboolean{@sig@p}{false}}% |
| 2845 |
% Print all fr \info. |
| 2846 |
\def\@fix@all@fr{% |
| 2847 |
\setboolean{@use@all@fr}{true}\setboolean{@addr@fr@p}{true}\setboolean{@addr@fr@l}{true}% |
| 2848 |
\setboolean{@addr@fr@f}{true}\setboolean{@addr@fr@e}{true}\setboolean{@addr@fr@t}{true}}% |
| 2849 |
% Print all fr \info. |
| 2850 |
\DeclareOption{printallfrom}{\@fix@all@fr}% |
| 2851 |
\define@key{ov}{printallfrom}[true]{\iffixq{#1}{\@fix@all@fr}}% |
| 2852 |
% Print all to \info. |
| 2853 |
\def\@fix@all@to{ |
| 2854 |
\setboolean{@use@all@to}{true}\setboolean{@addr@to@p}{true}\setboolean{@addr@to@l}{true}% |
| 2855 |
\setboolean{@addr@to@f}{true}\setboolean{@addr@to@e}{true}\setboolean{@addr@to@t}{true}}% |
| 2856 |
\DeclareOption{printallto}{\@fix@all@to}% |
| 2857 |
\define@key{ov}{printallto}[true]{\iffixq{#1}{\@fix@all@to}}% |
| 2858 |
% Set header components to blank |
| 2859 |
\DeclareOption{blankheader}{\setboolean{@b@h}{true}}% |
| 2860 |
\define@key{ov}{blankheader}[true]{\iffixt{#1}{@b@h}}% |
| 2861 |
\DeclareOption{Blankheader}{\setboolean{@B@h}{true}}% |
| 2862 |
\define@key{ov}{Blankheader}[true]{\iffixt{#1}{@B@h}}% |
| 2863 |
% Set footer components to blank |
| 2864 |
\DeclareOption{blankfooter}{\setboolean{@b@f}{true}}% |
| 2865 |
\define@key{ov}{blankfooter}[true]{\iffixt{#1}{@b@f}}% |
| 2866 |
\DeclareOption{Blankfooter}{\setboolean{@B@f}{true}}% |
| 2867 |
\define@key{ov}{Blankfooter}[true]{\iffixt{#1}{@B@f}}% |
| 2868 |
% Set left margin components to blank |
| 2869 |
\DeclareOption{blanklmargin}{\setboolean{@b@l}{true}}% |
| 2870 |
\DeclareOption{blankleftmargin}{\setboolean{@b@l}{true}}% |
| 2871 |
\define@key{ov}{blankleftmargin}[true]{\iffixt{#1}{@b@l}}% |
| 2872 |
\DeclareOption{Blankleftmargin}{\setboolean{@B@l}{true}}% |
| 2873 |
\define@key{ov}{Blankleftmargin}[true]{\iffixt{#1}{@B@l}}% |
| 2874 |
% Set right margin components to blank |
| 2875 |
\DeclareOption{blankrmargin}{\setboolean{@b@r}{true}}% |
| 2876 |
\DeclareOption{blankrightmargin}{\setboolean{@b@r}{true}}% |
| 2877 |
\define@key{ov}{blankrightmargin}[true]{\iffixt{#1}{@b@r}}% |
| 2878 |
\DeclareOption{Blankrightmargin}{\setboolean{@B@r}{true}}% |
| 2879 |
\define@key{ov}{Blankrightmargin}[true]{\iffixt{#1}{@B@r}}% |
| 2880 |
% Set all components to blank |
| 2881 |
\DeclareOption{Blankall}{\setboolean{@B@f}{true}\setboolean{@B@l}{true}% |
| 2882 |
\setboolean{@B@h}{true}\setboolean{@B@r}{true}}% |
| 2883 |
\define@key{ov}{Blankall}[true]% |
| 2884 |
{\iffixq{#1}{\setboolean{@B@f}{true}\setboolean{@B@l}{true}% |
| 2885 |
\setboolean{@B@h}{true}\setboolean{@B@r}{true}}}% |
| 2886 |
\DeclareOption{blankall}{\setboolean{@b@f}{true}\setboolean{@b@l}{true}% |
| 2887 |
\setboolean{@b@h}{true}\setboolean{@b@r}{true}}% |
| 2888 |
\define@key{ov}{blankall}[true]% |
| 2889 |
{\iffixq{#1}{\setboolean{@b@f}{true}\setboolean{@b@l}{true}% |
| 2890 |
\setboolean{@b@h}{true}\setboolean{@b@r}{true}}}% |
| 2891 |
\DeclareOption{BlankTotal}% Fixed |
| 2892 |
{\setboolean{@B@f}{true}\setboolean{@B@l}{true}\setboolean{@B@h}{true}\setboolean{@B@r}{true}% |
| 2893 |
\setboolean{@b@f}{true}\setboolean{@b@l}{true}\setboolean{@b@h}{true}\setboolean{@b@r}{true}}% |
| 2894 |
\define@key{ov}{BlankTotal}[true]% |
| 2895 |
{\iffixq{#1}{\setboolean{@B@f}{true}\setboolean{@B@l}{true}\setboolean{@B@h}{true}\setboolean{@B@r}{true}% |
| 2896 |
\setboolean{@b@f}{true}\setboolean{@b@l}{true}% |
| 2897 |
\setboolean{@b@h}{true}\setboolean{@b@r}{true}}}% |
| 2898 |
\DeclareOption{useenvlab}{\setboolean{@set@env}{false}\setboolean{@use@envlab}{true}}% |
| 2899 |
\define@key{ov}{useenvlab}[true]{% |
| 2900 |
\iffixq{#1}{\setboolean{@use@envlab}{true}\setboolean{@set@env}{false}}}% |
| 2901 |
\def\@paper@type{letterpaper}% |
| 2902 |
\def\ifta{0} |
| 2903 |
\DeclareOption{letterpaper}{\def\@paper@type{letterpaper}}% |
| 2904 |
\define@key{ov}{letterpaper}[true]{\iffixq{#1}{\def\@paper@type{letterpaper}}}% |
| 2905 |
\DeclareOption{legalpaper}{\def\@paper@type{legalpaper}}% |
| 2906 |
\define@key{ov}{legalpaper}[true]{\iffixq{#1}{\def\@paper@type{legalpaper}}}% |
| 2907 |
\DeclareOption{a4paper}{\def\@paper@type{a4paper}}% |
| 2908 |
\define@key{ov}{a4paper}[true]{\iffixq{#1}{\def\@paper@type{a4paper}}}% |
| 2909 |
\DeclareOption{a3paper}{\def\@paper@type{a3paper}}% |
| 2910 |
\define@key{ov}{a3paper}[true]{\iffixq{#1}{\def\@paper@type{a3paper}}}% |
| 2911 |
\setkeys{ov}{textwidthsize=0pt,textheightsize=0pt,bottommarginskip=5pt,% |
| 2912 |
headermarginskip=0pt,rightmarginsize=72pt,leftmarginsize=72pt,bottommarginskipbelow=5pt,% |
| 2913 |
leftmargintopdist=0pt,addrtoskipafter=18pt,unprright=0pt,labsize=\normalsize,% |
| 2914 |
leftmarginskipleft=10pt,leftmarginskipright=10pt,dateskipbefore=20pt,% |
| 2915 |
dateskipafter=36pt,addrfromskipafter=36pt,addrfromskipbefore=0pt,% |
| 2916 |
greettoskipafter=18pt,sigskipbefore=12pt,sigskipafter=12pt,sigsize=72pt,% |
| 2917 |
postsigskipafter=10pt,memoskipafter=15pt,memoskipbefore=35pt,unprtop=0pt,unprbottom=0pt,% |
| 2918 |
unprleft=0pt}% |
| 2919 |
% \end{macrocode}% |
| 2920 |
% \end{macro} |
| 2921 |
% \subsection{Executing Options} |
| 2922 |
% Here we execute the default options to initialize certain variables. |
| 2923 |
% \begin{macrocode} |
| 2924 |
\ExecuteOptions{\@paper@type,stdletter,american}% |
| 2925 |
% \end{macrocode} |
| 2926 |
% |
| 2927 |
% The |\ProcessOptions| command causes the execution of the code for every |
| 2928 |
% option \Lopt{foo} which is declared and for which the |
| 2929 |
% user typed the \Lopt{foo} option in his |\documentclass| command. |
| 2930 |
% For every option \Lopt{bar} he typed, which is not declared, the |
| 2931 |
% option is assumed to be a global option. All options will be |
| 2932 |
% passed as document options to any |\usepackage| command in the |
| 2933 |
% document preamble. |
| 2934 |
% \begin{macrocode} |
| 2935 |
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{letter}}% |
| 2936 |
\ProcessOptions% |
| 2937 |
% \end{macrocode} |
| 2938 |
% |
| 2939 |
% \begin{macro}{showdim} |
| 2940 |
% This is here for debugging only. |
| 2941 |
% \begin{macrocode} |
| 2942 |
\def\showdim#1{% |
| 2943 |
\txa{ * * * }% |
| 2944 |
\txa{*****************************************************************************}% |
| 2945 |
\txa{Dimensions: #1}% |
| 2946 |
% \printinunitsof{in}\pagevalues% |
| 2947 |
\txa{\string\headheight: \the\headheight, \string\headsep: \the\headsep}% |
| 2948 |
\txa{\string\paperheight: \the\paperheight, \string\paperwidth: \the\paperwidth}% |
| 2949 |
\txa{\string\textheight: \the\textheight, \string\textwidth: \the\textwidth} |
| 2950 |
\txa{\string\@colht: \the\@colht, \string\@colroom: \the\@colroom}% |
| 2951 |
\txa{\string\vsize: \the\vsize, \string\columnwidth: \the\columnwidth}% |
| 2952 |
\txa{\string\hsize: \the\hsize, \string\linewidth: \the\linewidth}% |
| 2953 |
\txa{\string\evensidemargin: \the\evensidemargin, \string\footskip: \the\footskip}% |
| 2954 |
\txa{\string\oddsidemargin: \the\oddsidemargin, \string\columnsep: \the\columnsep}% |
| 2955 |
\txa{\string\topmargin: \the\topmargin}% |
| 2956 |
\txa{\string\marginparpush: \the\marginparpush, \string\marginparsep: \the\marginparsep}% |
| 2957 |
\txa{*****************************************************************************}% |
| 2958 |
\txa{ * * * }% |
| 2959 |
}% |
| 2960 |
% \end{macrocode} |
| 2961 |
% \end{macro} |
| 2962 |
% Now that all the options have been executed we can load the |
| 2963 |
% existing copy of letter.cls. This will ensure that the various |
| 2964 |
% constructions which work in letters (|\begin{letter}|, etc.) will |
| 2965 |
% continue to work in the class. The |newlfm.cls| class adds the |
| 2966 |
% environment |newlfm|, which adds a number of new commands to the |
| 2967 |
% |letter| class, but does not remove any |letter| class commands. |
| 2968 |
% \begin{macrocode} |
| 2969 |
\showdim{Before LoadClass}% |
| 2970 |
\PassOptionsToClass{\@paper@type,oneside,final}{letter}% |
| 2971 |
\LoadClass{letter}% |
| 2972 |
\showdim{Before addrset}% |
| 2973 |
\RequirePackage{addrset}% |
| 2974 |
\IfFileExists{afterpage.sty}{\RequirePackage{afterpage}}{}% |
| 2975 |
\IfFileExists{envlab.sty}{\RequirePackage{envlab}}{}% |
| 2976 |
\showdim{After LoadClass}% |
| 2977 |
% \end{macrocode}% |
| 2978 |
% Some of the page layout parameters are defined here. Many of the values% |
| 2979 |
% for the page layout parameters are set in geometry below. In setting the% |
| 2980 |
% values here, we expect that geometry will override a large number of the% |
| 2981 |
% values. However, the values must be assigned {\it a prior}.% |
| 2982 |
% \begin{macrocode}% |
| 2983 |
\setlength{\voffset}{0in}% |
| 2984 |
\setlength{\itemsep}{.2em}% |
| 2985 |
\setlength{\topsep}{.2em}% |
| 2986 |
\setlength{\partopsep}{0\p@}% |
| 2987 |
\setlength{\arraycolsep}{5\p@}% |
| 2988 |
\setlength{\tabcolsep}{6\p@}% |
| 2989 |
\setlength{\arrayrulewidth}{.4\p@}% |
| 2990 |
\setlength{\doublerulesep}{2\p@}% |
| 2991 |
\setlength{\tabbingsep}{\labelsep}% |
| 2992 |
\skip\@mpfootins = \skip\footins% |
| 2993 |
\setlength{\fboxsep}{3\p@}% |
| 2994 |
\setlength{\fboxrule}{.4\p@}% |
| 2995 |
\providecommand{\geometry}{ }% |
| 2996 |
\def\geometry#1{\typeout{Command \string\geometry{items} no longer supported.}% |
| 2997 |
\typeout{newlfm supports several dimensional commands. Please check the manual for detail.}% |
| 2998 |
}% |
| 2999 |
\renewcommand{\theequation}{\@arabic\c@equation}% |
| 3000 |
\renewcommand{\footnoterule}{% |
| 3001 |
\kern-\p@% |
| 3002 |
\hrule \@width .4\columnwidth% |
| 3003 |
\kern .6\p@}% |
| 3004 |
\long\def\@makefntext#1{% |
| 3005 |
\noindent \hangindent 5\p@% |
| 3006 |
\hb@xt@5\p@{\hss\@makefnmark}#1}% |
| 3007 |
% \end{macrocode}% |
| 3008 |
% |
| 3009 |
% \begin{macro}{table,figure} |
| 3010 |
% Standard \LaTeX\ constructions |table| and |figure| |
| 3011 |
% are not defined in |letter|. They are added here. |
| 3012 |
% \begin{macrocode} |
| 3013 |
\renewcommand{\thefigure}{\@arabic\c@figure}% |
| 3014 |
\providecommand{\figurename}{}\renewcommand{\figurename}{Figure}% |
| 3015 |
\providecommand{\tablename}{} \renewcommand{\tablename}{Table}% |
| 3016 |
\newcommand{\fps@figure}{tbp}\newcommand{\ftype@figure}{1}\newcommand{\ext@figure}{lof}% |
| 3017 |
\newcommand{\fnum@figure}{\figurename~\thefigure}% |
| 3018 |
\newenvironment{figure}{\@float{figure}}{\end@float}% |
| 3019 |
\newenvironment{figure*}{\@dblfloat{figure}}{\end@dblfloat}% |
| 3020 |
\renewcommand\thetable{\@arabic\c@table}% |
| 3021 |
\newcommand{\fps@table}{tbp}\newcommand{\ftype@table}{2}% |
| 3022 |
\newcommand{\ext@table}{lot}% |
| 3023 |
\newcommand{\fnum@table}{\tablename~\thetable}% |
| 3024 |
\newenvironment{table}{\@float{table}}{\end@float}% |
| 3025 |
\newenvironment{table*}{\@dblfloat{table}}{\end@dblfloat}% |
| 3026 |
\setlength\@caption@skip@above{10\p@}\setlength\@caption@skip@below{0\p@}% |
| 3027 |
\long\def\@makecaption#1#2{% |
| 3028 |
\vskip\@caption@skip@above\sbox\@tempboxa{#1: #2}% |
| 3029 |
\ifdim \wd\@tempboxa >\hsize% |
| 3030 |
#1: #2\par% |
| 3031 |
\else\global \@minipagefalse% |
| 3032 |
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}% |
| 3033 |
\fi\vskip\@caption@skip@below}% |
| 3034 |
\newcommand{\section}[1]{{\Large {\bfseries #1}}}% |
| 3035 |
% \end{macrocode}% |
| 3036 |
% \end{macro}% |
| 3037 |
% |
| 3038 |
% \begin{macro}{Date and time macros} |
| 3039 |
% These functions all use various system indicators of time and date to |
| 3040 |
% furnish a time or date value to go on faxes and letters. |
| 3041 |
% |
| 3042 |
% \begin{macrocode} |
| 3043 |
\def\monthname{% timestamp function |
| 3044 |
\ifcase\month% |
| 3045 |
\or January\or February\or March\or April \or May\or June% |
| 3046 |
\or July\or August\or September\or October \or November\or December% |
| 3047 |
\fi% |
| 3048 |
}% |
| 3049 |
\def\timestring{% |
| 3050 |
\begingroup% |
| 3051 |
\count0 = \time \divide\count0 by 60% |
| 3052 |
\count2 = \count0 % the hour% |
| 3053 |
\count4 = \time \multiply\count0 by 60% |
| 3054 |
\advance\count4 by -\count0% the minute% |
| 3055 |
\ifnum\count4<10 \toks1 = {0} \else \toks1 = {}\fi% |
| 3056 |
\ifnum\count2<12 \toks0 = {A.M.}% |
| 3057 |
\else \toks0 = {P.M.}\advance\count2 by -12\fi% |
| 3058 |
\ifnum\count2=0 \count2 = 12 \fi % make midnight 12% |
| 3059 |
{\number\count2:\the\toks1 \number\count4% |
| 3060 |
\thinspace \the\toks0}% |
| 3061 |
\endgroup% |
| 3062 |
}% |
| 3063 |
\def\timestamp{\number\day\space\monthname\space\number\year,\space\timestring}% |
| 3064 |
\def\datestamp{\monthname\space\number\day,\space\number\year}% |
| 3065 |
% \end{macrocode}% |
| 3066 |
% \end{macro}% |
| 3067 |
% |
| 3068 |
% \begin{macro}{Rules}% |
| 3069 |
% These macros set up the width of rules. They also determine whether they are printed.% |
| 3070 |
% \begin{macrocode}% |
| 3071 |
\def\noheadline{\setboolean{@hl}{false}}% |
| 3072 |
\define@key{ov}{noheadline}[true]{\iffixq{#1}{\setboolean{@hl}{false}}}% |
| 3073 |
\def\nofootline{\setboolean{@fl}{false}}% |
| 3074 |
\define@key{ov}{nofootline}[true]{\iffixq{#1}{\setboolean{@fl}{false}}}% |
| 3075 |
\def\nolines{\setboolean{@fl}{false}\setboolean{@hl}{false}}% |
| 3076 |
\define@key{ov}{nolines}[true]{\iffixq{#1}{\setboolean{@fl}{false}\setboolean{@hl}{false}}}% |
| 3077 |
\def\noHeadline{\setboolean{@Hl}{false}}% |
| 3078 |
\define@key{ov}{noHeadline}[true]{\iffixq{#1}{\setboolean{@Hl}{false}}}% |
| 3079 |
\def\noFootline{\setboolean{@Fl}{false}}% |
| 3080 |
\define@key{ov}{noFootline}[true]{\iffixq{#1}{\setboolean{@Fl}{false}}}% |
| 3081 |
\def\noLines{\setboolean{@Fl}{false}\setboolean{@hl}{false}}% |
| 3082 |
\define@key{ov}{noLines}[true]{\iffixq{#1}{\setboolean{@Fl}{false}\setboolean{@Hl}{false}}}% |
| 3083 |
\def\@plhl{1}\def\nopheadline{\def\@plhl{0}}% |
| 3084 |
\def\@plfl{1}\def\nopfootline{\def\@plfl{0}}% |
| 3085 |
\def\Headlinewd#1{\setlength{\@Hrw}{#1}}% |
| 3086 |
\def\headlinewd#1{\setlength{\@hrw}{#1}}% |
| 3087 |
\def\Footlinewd#1{\setlength{\@Frw}{#1}}% |
| 3088 |
\def\footlinewd#1{\setlength{\@frw}{#1}}% |
| 3089 |
\define@key{ov}{Headlinewd}{\setlength{\@Hrw}{#1}}% |
| 3090 |
\define@key{ov}{headlinewd}{\setlength{\@hrw}{#1}}% |
| 3091 |
\define@key{ov}{Footlinewd}{\setlength{\@Frw}{#1}}% |
| 3092 |
\define@key{ov}{footlinewd}{\setlength{\@frw}{#1}}% |
| 3093 |
% \end{macrocode}% |
| 3094 |
% \end{macro}% |
| 3095 |
% |
| 3096 |
% \subsection{{\tt fancyhdr} in {\tt newlfm}} % |
| 3097 |
% Using fancyhdr (version 1.2v or later), the |ltrhead| and |othhead| environments % |
| 3098 |
% are set up. The user actually does not control the \info{} using the % |
| 3099 |
% standard macros, but rather uses Lfooter for the left footer on the % |
| 3100 |
% letterhead and lfooter for the left footer on remaining pages. Thus, the % |
| 3101 |
% \info{} is transfered around in a simple manner. % |
| 3102 |
% |
| 3103 |
% \begin{macro}{ltrhead}% |
| 3104 |
% \begin{macrocode}% |
| 3105 |
\fancypagestyle{ltrhead}{% |
| 3106 |
\def\ifta{0}% |
| 3107 |
\txa{Before setting up letterhead}% |
| 3108 |
\showdim{Letterhead}% |
| 3109 |
\fancyhf{}% |
| 3110 |
\txa{Current stored info: \string\@ltr@h:\@ltr@h}% |
| 3111 |
\fancyfoot[L]{\@Lfooter}% |
| 3112 |
\fancyfoot[C]{\@Cfooter}% |
| 3113 |
\fancyfoot[R]{\@Rfooter}% |
| 3114 |
\fancyhead[L]{\@Lheader \vspace*{\the\@marg@tp@a}}% |
| 3115 |
\fancyhead[C]{\@Cheader \vspace*{\the\@marg@tp@a}}% |
| 3116 |
\fancyhead[R]{\@Rheader \vspace*{\the\@marg@tp@a}}% |
| 3117 |
\showdim{Letterhead}% |
| 3118 |
\def\@lodd{\relax}% |
| 3119 |
\def\@rodd{\relax}% |
| 3120 |
% \ifempty{\@LUheader}{}{\vspace*{-.5in}\@LUheader \vspace*{.5in}}% |
| 3121 |
% }% % section 2 goes here if we go to plan b% |
| 3122 |
% \ifempty{\@RUheader}{}{}% |
| 3123 |
% }% |
| 3124 |
% \@set@em@up% |
| 3125 |
% \settoheight{\@utila}{\@Rheader}\settodepth{\@utilb}{\@Rheader}\addtolength{\@utila}{\@utilb}% |
| 3126 |
% \txa{Right: \the\@utila}% |
| 3127 |
% \settoheight{\@utila}{\@Lheader}\settodepth{\@utilb}{\@Lheader}\addtolength{\@utila}{\@utilb}% |
| 3128 |
% \txa{Left: \the\@utila}% |
| 3129 |
% \settoheight{\@utila}{\@Cheader}\settodepth{\@utilb}{\@Cheader}\addtolength{\@utila}{\@utilb}% |
| 3130 |
% \txa{Center: \the\@utila}% |
| 3131 |
\txa{After setting up letterhead}% |
| 3132 |
\def\ifta{0}% |
| 3133 |
}% |
| 3134 |
% \end{macrocode}% |
| 3135 |
% \end{macro}% |
| 3136 |
% \begin{macro}{othhead}% |
| 3137 |
% \begin{macrocode}% |
| 3138 |
\fancypagestyle{othhead}{% |
| 3139 |
\def\ifta{0}% |
| 3140 |
\fancyhf{}% |
| 3141 |
\fancyfoot[L]{\@lfooter}% |
| 3142 |
\fancyfoot[C]{\@cfooter}% |
| 3143 |
\fancyfoot[R]{\@rfooter}% |
| 3144 |
\fancyhead[L]{\@lheader \vspace*{\the\@marg@tp@a}}% |
| 3145 |
\fancyhead[R]{\@rheader \vspace*{\the\@marg@tp@a}}% |
| 3146 |
\fancyhead[C]{\@cheader \vspace*{\the\@marg@tp@a}}% |
| 3147 |
\def\@lodd{\relax}% |
| 3148 |
\def\@rodd{\relax}% |
| 3149 |
}% |
| 3150 |
% \end{macrocode} |
| 3151 |
% \end{macro}% |
| 3152 |
% |
| 3153 |
% \subsection{Wrapper code} |
| 3154 |
% \begin{macro}{makelth} |
| 3155 |
% In order to use the program more efficiently, it is possible to set up a |
| 3156 |
% database with addresses, letterhead setups and signature setups in it. |
| 3157 |
% Rather than address placing \info{} about each letter in the letter |
| 3158 |
% in the letter itself, \info{} is placed in the letter database file |
| 3159 |
% and inserted into a letter using the wrapper. |
| 3160 |
% |
| 3161 |
% \begin{enumerate} |
| 3162 |
% \item The file is called |letrinfo.tex|. |
| 3163 |
% \item The file is placed somewhere on the \TeX{} path. |
| 3164 |
% \item In this file, place all addresses, letterhead setups and signature |
| 3165 |
% setups as follows: |
| 3166 |
% \begin{enumerate} |
| 3167 |
% \item In file |letrinfo.tex|, set up a command |
| 3168 |
% |\makelth|{XXX}{ stuff for the letter head} |
| 3169 |
% \item This makes a macro out of the stuff, with the name |\lthXXX| |
| 3170 |
% \item Issue the command |\lthXXX| prior to the start of the environment |
| 3171 |
% \item The letterhead structure will then be used in the letter in which |
| 3172 |
% it is called |
| 3173 |
% \item The following commands are generally included in a letterhead |
| 3174 |
% environment: lfooter, cfooter, rfooter, lheader, cheader, rheader, |
| 3175 |
% Lfooter, Cfooter, Rfooter, Lheader, Cheader, Rheader, lmargin, |
| 3176 |
% rmargin, Lmargin, Rmargin |
| 3177 |
% \end{enumerate} |
| 3178 |
% \end{enumerate} |
| 3179 |
% |
| 3180 |
% \begin{macrocode} |
| 3181 |
%</package> |
| 3182 |
%<*setdim> |
| 3183 |
\def\ifta{0}\def\iftb{0}% |
| 3184 |
\def\txa#1{\ifthenelse{\equal{\ifta}{1}}{\typeout{#1}}{}}% |
| 3185 |
\def\settext#1#2#3#4#5{% |
| 3186 |
\txa{\string\textheight: #1}\txa{\string\textwidth: #2}% |
| 3187 |
\global\setlength{\textheight}{#1}% |
| 3188 |
\global\setlength{\textwidth}{#2}% |
| 3189 |
\global\setlength{\evensidemargin}{#3}% |
| 3190 |
\global\setlength{\oddsidemargin}{#4}% |
| 3191 |
\global\setlength{\columnsep}{#5}% |
| 3192 |
\@change@text% |
| 3193 |
}% |
| 3194 |
\def\lsettext#1#2#3#4#5{% |
| 3195 |
\txa{\string\textheight: #1}\txa{\string\textwidth: #2}% |
| 3196 |
\setlength{\textheight}{#1}% |
| 3197 |
\setlength{\textwidth}{#2}% |
| 3198 |
\setlength{\evensidemargin}{#3}% |
| 3199 |
\setlength{\oddsidemargin}{#4}% |
| 3200 |
\setlength{\columnsep}{#5}% |
| 3201 |
\@lchange@text% |
| 3202 |
}% |
| 3203 |
\def\@change@text{% |
| 3204 |
\global\setlength{\@colht}{\textheight}% |
| 3205 |
\txa{\string\@colht:\the\@colht}% |
| 3206 |
\global\setlength{\@colroom}{\textheight}% |
| 3207 |
\global\setlength{\vsize}{\textheight}% |
| 3208 |
\global\setlength{\columnwidth}{\textwidth}% |
| 3209 |
\if@twocolumn% |
| 3210 |
\advance\columnwidth-\columnsep \divide\columnwidth\tw@% |
| 3211 |
\@firstcolumntrue% |
| 3212 |
\fi% |
| 3213 |
\global\setlength{\hsize}{\columnwidth}% |
| 3214 |
\global\setlength{\linewidth}{\hsize}% |
| 3215 |
}% |
| 3216 |
\def\@lchange@text{% |
| 3217 |
\setlength{\@colht}{\textheight}% |
| 3218 |
\txa{\string\@colht:\the\@colht}% |
| 3219 |
\setlength{\@colroom}{\textheight}% |
| 3220 |
\setlength{\vsize}{\textheight}% |
| 3221 |
\setlength{\columnwidth}{\textwidth}% |
| 3222 |
\if@twocolumn% |
| 3223 |
\advance\columnwidth-\columnsep \divide\columnwidth\tw@% |
| 3224 |
\@firstcolumntrue% |
| 3225 |
\fi% |
| 3226 |
\setlength{\hsize}{\columnwidth}% |
| 3227 |
\setlength{\linewidth}{\hsize}% |
| 3228 |
}% |
| 3229 |
\def\retdims{% |
| 3230 |
\showdim{Setpage A}% |
| 3231 |
\txa{In setpage: \npind}% |
| 3232 |
\global\setlength{\@xda}{\textheight}% |
| 3233 |
\global\setlength{\@xdb}{\textwidth}% |
| 3234 |
\global\setlength{\@xdc}{\evensidemargin}% |
| 3235 |
\global\setlength{\@xdd}{\oddsidemargin}% |
| 3236 |
\global\setlength{\@xde}{\columnsep}% |
| 3237 |
\global\setlength{\@xdf}{\topmargin}% |
| 3238 |
\global\setlength{\@xdg}{\headheight}% |
| 3239 |
\global\setlength{\@xdh}{\headsep}% |
| 3240 |
\global\setlength{\@xdi}{\footskip}% |
| 3241 |
}% |
| 3242 |
\def\rstdims{% |
| 3243 |
\showdim{Setpage A}% |
| 3244 |
\txa{In setpage: \npind}% |
| 3245 |
\global\setlength{\textheight}{\@xda}% |
| 3246 |
\global\setlength{\textwidth}{\@xdb}% |
| 3247 |
\global\setlength{\evensidemargin}{\@xdc}% |
| 3248 |
\global\setlength{\oddsidemargin}{\@xdd}% |
| 3249 |
\global\setlength{\columnsep}{\@xde}% |
| 3250 |
\global\setlength{\topmargin}{\@xdf}% |
| 3251 |
\global\setlength{\headheight}{\@xdg}% |
| 3252 |
\global\setlength{\headsep}{\@xdh}% |
| 3253 |
\global\setlength{\footskip}{\@xdi}% |
| 3254 |
\@change@text% |
| 3255 |
}% |
| 3256 |
\def\setpage#1#2#3#4#5#6#7#8#9{% |
| 3257 |
\showdim{Setpage A}% |
| 3258 |
\txa{In setpage: \npind}% |
| 3259 |
\settext{#1}{#2}{#3}{#4}{#5}% |
| 3260 |
\global\setlength{\topmargin}{#6}% |
| 3261 |
\global\setlength{\headheight}{#7}% |
| 3262 |
\global\setlength{\headsep}{#8}% |
| 3263 |
\global\setlength{\footskip}{#9}% |
| 3264 |
\@change@text% |
| 3265 |
\showdim{Setpage B}% |
| 3266 |
}% |
| 3267 |
\def\lsetpage#1#2#3#4#5#6#7#8#9{% |
| 3268 |
\showdim{Setpage A}% |
| 3269 |
\txa{In setpage: \npind}% |
| 3270 |
\lsettext{#1}{#2}{#3}{#4}{#5}% |
| 3271 |
\setlength{\topmargin}{#6}% |
| 3272 |
\setlength{\headheight}{#7}% |
| 3273 |
\setlength{\headsep}{#8}% |
| 3274 |
\setlength{\footskip}{#9}% |
| 3275 |
\@lchange@text% |
| 3276 |
\showdim{Setpage B}% |
| 3277 |
}% |
| 3278 |
\def\changetext#1#2#3#4#5{% |
| 3279 |
\addtolength{\textheight}{#1}% |
| 3280 |
\addtolength{\textwidth}{#2}% |
| 3281 |
\addtolength{\evensidemargin}{#3}% |
| 3282 |
\addtolength{\oddsidemargin}{#4}% |
| 3283 |
\addtolength{\columnsep}{#5}% |
| 3284 |
\@change@text% |
| 3285 |
}% |
| 3286 |
\def\changepage#1#2#3#4#5#6#7#8#9{% |
| 3287 |
\changetext{#1}{#2}{#3}{#4}{#5}% |
| 3288 |
\addtolength{\topmargin}{#6}% |
| 3289 |
\addtolength{\headheight}{#7}% |
| 3290 |
\addtolength{\headsep}{#8}% |
| 3291 |
\addtolength{\footskip}{#9}% |
| 3292 |
\@change@text% |
| 3293 |
}% |
| 3294 |
%</setdim> |
| 3295 |
%<*addrset> |
| 3296 |
% \end{macrocode} |
| 3297 |
% \begin{macrocode} |
| 3298 |
\def\makeletterhead#1#2{\expandafter\newcommand\csname lth#1\endcsname{#2}}% |
| 3299 |
\def\makelth#1#2{\expandafter\newcommand\csname lth#1\endcsname{#2}}% |
| 3300 |
\def\makesignature#1#2{\expandafter\newcommand\csname sig#1\endcsname{#2}}% |
| 3301 |
\def\makesig#1#2{\expandafter\newcommand\csname sig#1\endcsname{#2}}% |
| 3302 |
\def\makeadr#1#2{\expandafter\newcommand\csname adr#1\endcsname{#2}}% |
| 3303 |
\def\makeaddress#1#2{\expandafter\newcommand\csname adr#1\endcsname{#2}}% |
| 3304 |
% \end{macrocode} |
| 3305 |
% \end{macro} |
| 3306 |
% \begin{macrocode} |
| 3307 |
%</addrset> |
| 3308 |
%<*package> |
| 3309 |
% \end{macrocode} |
| 3310 |
% |
| 3311 |
% \subsection{Text placement} |
| 3312 |
% \begin{macro}{Letterhead} |
| 3313 |
% This suite of macro inserts text into a specified place for the |fancyhdr| |
| 3314 |
% to use. This is then later transfered into the footer of the |
| 3315 |
% letterhead page, right side. The remaining macros also do this, as |
| 3316 |
% follows. r, c, l: right, center, left. Header: top of page. Footer: |
| 3317 |
% bottom of page. Capitalized: on letterhead page. Non-capitalized: on |
| 3318 |
% remaining pages. |
| 3319 |
% |
| 3320 |
% In placing \info{} on the letterhead page, special constructions |
| 3321 |
% allow placement {\it under} the top margin and {\it over} the footer |
| 3322 |
% area. These are the macros |\LOfooter|, |\COfooter|, |\ROfooter|, |
| 3323 |
% |\LUheader|, |\CUheader| and |\RUheader|. In the case of |\LOfooter|, |
| 3324 |
% |\COfooter| and |\ROfooter|, the boxed \info{} is placed over the |
| 3325 |
% related footer section, which includes lying over the footer line (if |
| 3326 |
% printed). In the case of |\LUheader|, |\CUheader| and |\RUheader|, the |
| 3327 |
% boxed \info{} is placed under the related header section, which |
| 3328 |
% includes lying under the header line (if printed). When any of these |
| 3329 |
% special purpose sections are used, text length is adjusted as needed. |
| 3330 |
% ({\bfseries NOTE:} Although this is under development, these commands are |
| 3331 |
% not yet functional. |
| 3332 |
% \begin{macrocode} |
| 3333 |
\providecommand{\@Lfooter}{}% |
| 3334 |
\providecommand{\@Cfooter}{}% |
| 3335 |
\providecommand{\@Rfooter}{}% |
| 3336 |
\providecommand{\@lfooter}{}% |
| 3337 |
\providecommand{\@cfooter}{}% |
| 3338 |
\providecommand{\@rfooter}{}% |
| 3339 |
\providecommand{\@LOfooter}{}% |
| 3340 |
\providecommand{\@COfooter}{}% |
| 3341 |
\providecommand{\@ROfooter}{}% |
| 3342 |
\providecommand{\@Lheader}{}% |
| 3343 |
\providecommand{\@Cheader}{}% |
| 3344 |
\providecommand{\@Rheader}{}% |
| 3345 |
\providecommand{\@lheader}{}% |
| 3346 |
\providecommand{\@cheader}{}% |
| 3347 |
\providecommand{\@rheader}{}% |
| 3348 |
\providecommand{\@LUheader}{}% |
| 3349 |
\providecommand{\@CUheader}{}% |
| 3350 |
\providecommand{\@RUheader}{}% |
| 3351 |
\providecommand{\@Rmarg}{}% |
| 3352 |
\providecommand{\@Lmarg}{}% |
| 3353 |
\providecommand{\@rmarg}{}% |
| 3354 |
\providecommand{\@lmarg}{}% |
| 3355 |
\def\Lfooter#1{\setboolean{@Lf@use}{true}\def\@Lfooter{#1}}% |
| 3356 |
\def\Cfooter#1{\setboolean{@Cf@use}{true}\def\@Cfooter{#1}}% |
| 3357 |
\def\Rfooter#1{\setboolean{@Rf@use}{true}\def\@Rfooter{#1}}% |
| 3358 |
\def\LOfooter#1{\setboolean{@LOf@use}{true}\def\@LOfooter{#1}}% |
| 3359 |
\def\COfooter#1{\setboolean{@COf@use}{true}\def\@COfooter{#1}}% |
| 3360 |
\def\ROfooter#1{\setboolean{@ROf@use}{true}\def\@ROfooter{#1}}% |
| 3361 |
\def\lfooter#1{\setboolean{@lf@use}{true}\def\@lfooter{#1}}% |
| 3362 |
\def\cfooter#1{\setboolean{@cf@use}{true}\def\@cfooter{#1}}% |
| 3363 |
\def\rfooter#1{\setboolean{@rf@use}{true}\def\@rfooter{#1}}% |
| 3364 |
\def\Lheader#1{\setboolean{@Lh@use}{true}\def\@Lheader{#1}}% |
| 3365 |
\def\Cheader#1{\setboolean{@Ch@use}{true}\def\@Cheader{#1}}% |
| 3366 |
\def\Rheader#1{\setboolean{@Rh@use}{true}\def\@Rheader{#1}}% |
| 3367 |
\def\LUheader#1{\setboolean{@LUh@use}{true}\def\@LUheader{#1}}% |
| 3368 |
\def\CUheader#1{\setboolean{@CUh@use}{true}\def\@CUheader{#1}}% |
| 3369 |
\def\RUheader#1{\setboolean{@RUh@use}{true}\def\@RUheader{#1}}% |
| 3370 |
\def\lheader#1{\setboolean{@lh@use}{true}\def\@lheader{#1}}% |
| 3371 |
\def\cheader#1{\setboolean{@ch@use}{true}\def\@cheader{#1}}% |
| 3372 |
\def\rheader#1{\setboolean{@rh@use}{true}\def\@rheader{#1}}% |
| 3373 |
\def\Rmargin#1{\def\@Rmarg{#1}\setboolean{@marg@Ruse}{true}}% |
| 3374 |
\def\Lmargin#1{\def\@Lmarg{#1}\setboolean{@marg@Luse}{true}}% |
| 3375 |
\def\rmargin#1{\def\@rmarg{#1}\setboolean{@marg@ruse}{true}}% |
| 3376 |
\def\lmargin#1{\def\@lmarg{#1}\setboolean{@marg@luse}{true}}% |
| 3377 |
% \end{macrocode} |
| 3378 |
% \end{macro} |
| 3379 |
% |
| 3380 |
% \subsection{Memo blocks} |
| 3381 |
% \begin{macro}{\Prnt@Chk} |
| 3382 |
% This is a conditional printing macro. The arguments are |
| 3383 |
% \begin{enumerate} |
| 3384 |
% \item true: print the remainder of this item. |
| 3385 |
% \item true: print to the left. |
| 3386 |
% \item true: print centered. If 2) and 3) false, print to the right. |
| 3387 |
% \item material to print. |
| 3388 |
% \item material or other tokens to evaluate after the previous item is aligned. |
| 3389 |
% \item vertical space above the item. |
| 3390 |
% \item vertical space after the item. |
| 3391 |
% \end{enumerate} |
| 3392 |
% \begin{macrocode} |
| 3393 |
\newcommand{\Prnt@Chk}[7]{% |
| 3394 |
\ifthenelse{\boolean{#1}}{\ifempty{#6}{}{% |
| 3395 |
\vspace*{-2\parskip}\vspace*{#6}}}{}% |
| 3396 |
\ifthenelse{\boolean{#1}}% |
| 3397 |
{\ifthenelse{\boolean{#2}}{\begin{flushleft}{#4}\end{flushleft}}% |
| 3398 |
{\ifthenelse{\boolean{#3}}% |
| 3399 |
{\begin{center}{#4}\end{center}}% |
| 3400 |
{\begin{flushright}{#4}\end{flushright}}}% |
| 3401 |
}{}% |
| 3402 |
\ifthenelse{\boolean{#1}}{#5}{}% |
| 3403 |
\ifthenelse{\boolean{#1}}{\ifempty{#7}{}% |
| 3404 |
{\vspace*{-2\parskip}\vspace*{#7}}}{}% |
| 3405 |
}% |
| 3406 |
% \end{macrocode} |
| 3407 |
% \end{macro} |
| 3408 |
% |
| 3409 |
% \begin{macro}{\memosec} |
| 3410 |
% \label{page:memosec} |
| 3411 |
% This section defines the text used in printing a normal memo. |
| 3412 |
% This will go at the top of the text block. |
| 3413 |
% |
| 3414 |
% If the user intends to modify the |\memosec| code to provide their |
| 3415 |
% own memo, the code in |smemosec.tex| should be modified. Save |
| 3416 |
% this as file |memosec.tex|, with any desired modification. |
| 3417 |
% |
| 3418 |
% \begin{macrocode} |
| 3419 |
\newcommand{\fixphr}[2]{\strut & \parbox[t]{\the\@utilc}{#1} #2 \\}% |
| 3420 |
\def\ifta{0}% |
| 3421 |
\def\memosec{% |
| 3422 |
\def\ifta{0}\txa{Start of memosec}% |
| 3423 |
\noindent\ignorespaces% |
| 3424 |
\settowidth{\@utila}{{\bf \@hnfr@phr:\hspace*{1.25em}}}% |
| 3425 |
\setlength{\@utilb}{\textwidth-\@utila-.1em}% |
| 3426 |
\addtolength{\@utilb}{-5pt}% |
| 3427 |
\settowidth{\@utilc}{\@phn@phr:\hspace*{2em}}% |
| 3428 |
\settowidth{\@utild}{\@fax@phr:\hspace*{2em}}% |
| 3429 |
\ifthenelse{\lengthtest{\@utilc<\@utild}}{\setlength{\@utilc}{\the\@utild}}{}% |
| 3430 |
\settowidth{\@utild}{\@pager@phr:\hspace*{2em}}% |
| 3431 |
\ifthenelse{\lengthtest{\@utilc<\@utild}}{\setlength{\@utilc}{\the\@utild}}{}% |
| 3432 |
\settowidth{\@utild}{\@email@phr:\hspace*{2em}}% |
| 3433 |
\ifthenelse{\lengthtest{\@utilc<\@utild}}{\setlength{\@utilc}{\the\@utild}}{}% |
| 3434 |
\txa{After length tests}% |
| 3435 |
{\vspace*{-1em}\setlength{\tabcolsep}{0pt}% |
| 3436 |
\setboolean{@memo@a}{false}% |
| 3437 |
\vspace*{\@pre@memo@sp}\noindent\par% |
| 3438 |
\begin{flushleft}% |
| 3439 |
\begin{tabular}{p{\the\@utila}l}% |
| 3440 |
\ifthenelse{\boolean{@memo@g}}% |
| 3441 |
{\setboolean{@memo@a}{true}% |
| 3442 |
\strut {\bf \@hnto@phr:} & \@name@to \strut \\% |
| 3443 |
\ifthenelse{\boolean{@memo@b}}{\strut &% |
| 3444 |
\parbox[t]{\the\@utilb}{\@addr@to\strut}\strut\\}{}% |
| 3445 |
\ifthenelse{\boolean{@memo@c}}{\fixphr{\@phn@phr:}{\@phn@to}}{}% |
| 3446 |
\ifthenelse{\boolean{@memo@d}}{\fixphr{\@fax@phr:}{\@fax@to}}{}% |
| 3447 |
\ifthenelse{\boolean{@memo@n}}{\fixphr{\@pager@phr:}{\@pager@to}}{}% |
| 3448 |
\ifthenelse{\boolean{@memo@k}}{\fixphr{\@email@phr:}{\@email@to}}{}% |
| 3449 |
}{}% |
| 3450 |
\ifthenelse{\boolean{@memo@e}}% |
| 3451 |
{\setboolean{@memo@a}{true}% |
| 3452 |
\strut {\bf \@hnfr@phr:} &{\@name@fr} \strut \\% |
| 3453 |
\ifthenelse{\boolean{@memo@h}}{\strut &% |
| 3454 |
\parbox[t]{\the\@utilb}{\@addr@fr \strut} \strut \\}{}% |
| 3455 |
\ifthenelse{\boolean{@memo@i}}{\fixphr{\@phn@phr:}{\@phn@fr}}{}% |
| 3456 |
\ifthenelse{\boolean{@memo@j}}{\fixphr{\@fax@phr:}{\@fax@fr}}{}% |
| 3457 |
\ifthenelse{\boolean{@memo@m}}{\fixphr{\@pager@phr:}{\@pager@fr}}{}% |
| 3458 |
\ifthenelse{\boolean{@memo@l}}{\fixphr{\@email@phr:}{\@email@fr}}{}% |
| 3459 |
}{}% |
| 3460 |
\ifthenelse{\boolean{@memo@f}}{\setboolean{@memo@a}{true}% |
| 3461 |
\strut {\bf \@re@phr:} & {\@re@line} \\% |
| 3462 |
}{}% |
| 3463 |
\ifthenelse{\boolean{@dt@p}}{\strut {\bf \@date@phr:} & \@xdate \\}{}% |
| 3464 |
\ifthenelse{\boolean{@memo@a}}{\hline}{}% |
| 3465 |
\end{tabular}% |
| 3466 |
\end{flushleft}% |
| 3467 |
}% |
| 3468 |
\vspace*{\@post@memo@sp}\noindent\par% |
| 3469 |
\txa{End of memosec} |
| 3470 |
}% |
| 3471 |
\InputIfFileExists{memosec.tex}% |
| 3472 |
{\typeout{Reading {\tt memosec.tex}}}% |
| 3473 |
{\typeout{The default definition for memosec is used. File memosec.tex doesn't exist.}}% |
| 3474 |
% \end{macrocode} |
| 3475 |
% \end{macro} |
| 3476 |
% \subsection{Press Release blocks} |
| 3477 |
% \begin{macro}{\pressbegin} |
| 3478 |
% \label{page:pressbegin} |
| 3479 |
% This section defines the text used in printing a normal press release. |
| 3480 |
% This will go at the top of the text block. It also sets up |
| 3481 |
% appropriate page headers and turns off header and footer lines. |
| 3482 |
% |
| 3483 |
% |\nolines| seemingly should disable header and footer lines, but |
| 3484 |
% it only takes effect via |\@set@em@up|, which is only used if |
| 3485 |
% |@ov@a| is true. It's not in this case. That might be a |
| 3486 |
% problem with the implementation of |\nolines|. It would be good |
| 3487 |
% if the redefinition of the line width only persisted within a |
| 3488 |
% give lfmp environment. It's not clear that is the case. |
| 3489 |
% |
| 3490 |
% We want |\@more@phr| (usually ``-- more --'') to appear on the |
| 3491 |
% bottom of every page but the last. Because the output routine may |
| 3492 |
% be triggered when we're already into the next page, the best way to |
| 3493 |
% handle this is with the marking mechanism. The left mark gets the |
| 3494 |
% {\em last\/} such mark given, while the right mark uses the first |
| 3495 |
% right mark on the page. So we use the left mark to set the footer. |
| 3496 |
% |
| 3497 |
% In principle, we might use the right mark for the short header used |
| 3498 |
% on later pages, but the existing distinction between the first and |
| 3499 |
% other pages already handles that. |
| 3500 |
% |
| 3501 |
% There are a lot of hard-coded distances here; eventually they |
| 3502 |
% should perhaps be generalized. |
| 3503 |
% |
| 3504 |
% \begin{macrocode} |
| 3505 |
\newcommand{\pressbegin}{%maybe set dimensions, esp 1 inch margins, here |
| 3506 |
\settowidth{\@utila}{\@addr@fr}% |
| 3507 |
\def\ifta{0}% |
| 3508 |
\txa{Setup beginning of press release}% |
| 3509 |
\renewcommand{\headrulewidth}{0pt}\renewcommand{\footrulewidth}{0pt}% |
| 3510 |
\setboolean{@Hl}{false}\setlength{\@Hrw}{0pt}% |
| 3511 |
\setboolean{@hl}{false}\setlength{\@hrw}{0pt}% |
| 3512 |
\setboolean{@Fl}{false}\setlength{\@Frw}{0pt}% |
| 3513 |
\setboolean{@fl}{false}\setlength{\@frw}{0pt}% |
| 3514 |
\begin{flushleft}% |
| 3515 |
\rule{\textwidth}{1pt} \par \noindent% |
| 3516 |
\centerline{\LARGE \@pr@release \strut} \par\noindent% |
| 3517 |
\rule{\textwidth}{1pt} \par \noindent |
| 3518 |
\txa{After first block} |
| 3519 |
\setlength{\tabcolsep}{0pt}% |
| 3520 |
\begin{tabular}{l@{\hspace{1em}}l}% |
| 3521 |
\textbf{\@contact@phr:} & \@name@fr \strut \\% |
| 3522 |
& \parbox[t]{\@utila}{\@addr@fr \strut } \strut \\ %% |
| 3523 |
\ifempty{\@phn@fr}{}{\textbf{\@phn@phr:} & \@phn@fr \strut \\}% |
| 3524 |
\ifempty{\@phnb@fr}{}{\textbf{\@phn@phr:} & \@phnb@fr \strut \\}% |
| 3525 |
\ifempty{\@phnc@fr}{}{\textbf{\@phn@phr:} & \@phnc@fr \strut \\}% |
| 3526 |
\ifempty{\@phnd@fr}{}{\textbf{\@phn@phr:} & \@phnd@fr \strut \\}% |
| 3527 |
\ifempty{\@fax@fr}{}{\textbf{\@fax@phr:} & \@fax@fr \strut \\}% % maybe email, web site? |
| 3528 |
\textbf{Date:} & \@xdate% |
| 3529 |
\end{tabular}% |
| 3530 |
\end{flushleft}% |
| 3531 |
\txa{After endflushleft} |
| 3532 |
\rule{\textwidth}{1pt} \par \noindent |
| 3533 |
\centerline{\textbf{\Large \@pr@headline}} \par \noindent |
| 3534 |
\rule{\textwidth}{1pt} \par \noindent |
| 3535 |
\ifthenelse{\boolean{@space@d}}{\begin{doublespace}}{\begin{singlespace}}% |
| 3536 |
\ifthenelse{\boolean{@pr@by}}{\noindent \@pr@byline \\}{} |
| 3537 |
\noindent |
| 3538 |
\txa{end of pressbegin} |
| 3539 |
}% |
| 3540 |
\InputIfFileExists{prsrls.tex}% |
| 3541 |
{\typeout{Reading press release page setup from prsrls.tex}}% |
| 3542 |
{\typeout{Press release definitions stored in newlfm.cls}}% |
| 3543 |
% \end{macrocode} |
| 3544 |
% \end{macro} |
| 3545 |
% \subsection{ Fax blocks} |
| 3546 |
% \begin{macro}{\faxpage} |
| 3547 |
% \label{page:faxsec} |
| 3548 |
% Here we define a FAX page. This separate stand-along page includes: |
| 3549 |
% \begin{enumerate} |
| 3550 |
% \item the term \@fax@cover@line in Huge text, boxed |
| 3551 |
% \item From-name |
| 3552 |
% \item Optional from-information |
| 3553 |
% \item To-name |
| 3554 |
% \item Optional to-information |
| 3555 |
% \item Re-line |
| 3556 |
% \item Additional information specified in |\faxmssg| |
| 3557 |
% \end{enumerate} |
| 3558 |
% |
| 3559 |
% \begin{macrocode} |
| 3560 |
\txa{Next part} |
| 3561 |
\newcommand*{\faxpage}{{% |
| 3562 |
\def\ifta{0}\showdim{Before setpage inside faxpage}% |
| 3563 |
\lsetpage{722pt}{6.5in}{1in}{0in}{.25in}{1in}{.75in}{.25in}{.25in}% |
| 3564 |
\showdim{After setpage}% |
| 3565 |
{\def\ifta{0}\showdim{Before fax page setup A}% |
| 3566 |
\setlength{\@utila}{\paperheight}\addtolength{\@utila}{-1in}% |
| 3567 |
\setlength{\@utilb}{\paperwidth}\addtolength{\@utilb}{-2in}% |
| 3568 |
\global\setlength{\textwidth}{\paperwidth-2in}% |
| 3569 |
\txa{\string\paperheight:\paperheight,\string\@utila:\the\@utila}% |
| 3570 |
\txa{\string\paperwidth:\paperwidth,\string\@utilb:\the\@utilb}\gdef\npind{A1}% |
| 3571 |
\@clear@box% |
| 3572 |
\def\ifta{0}% |
| 3573 |
\txa{\string\paperheight:\the\paperheight,\string\@utila:\the\@utila}% |
| 3574 |
\txa{\string\paperwidth:\the\paperwidth,\string\@utilb:\the\@utilb}% |
| 3575 |
\txa{\string\textheight:\the\textheight,\string\textwidth:\the\textwidth}% |
| 3576 |
\newpage\c@page\@ne\interlinepenalty=200% |
| 3577 |
\showdim{Before fax page setup B}% |
| 3578 |
\thispagestyle{empty}% |
| 3579 |
\vspace*{-\the\@Hgt@Head}\vspace*{.5in}% |
| 3580 |
\showdim{Inside fax page specification}% |
| 3581 |
\begin{center}% |
| 3582 |
\framebox{\Huge{\@fax@cover@line}} \\% |
| 3583 |
\vspace*{.5in} \Large{\@fax@page@count: \ref{totpage}} \\% |
| 3584 |
\vspace*{.5in} \Large{\timestamp} \\% |
| 3585 |
\end{center}% |
| 3586 |
\settowidth{\@utila}{\LARGE{\@hnto@phr:}}% |
| 3587 |
\settowidth{\@utilb}{\LARGE{\@hnfr@phr:}}% |
| 3588 |
\ifthenelse{\lengthtest{\@utila<\@utilb}}{\setlength{\@utila}{\@utilb}}{}% |
| 3589 |
\settowidth{\@utilb}{\LARGE{\@m@phr:}}% |
| 3590 |
\ifthenelse{\lengthtest{\@utila<\@utilb}}{\setlength{\@utila}{\@utilb}}{}% |
| 3591 |
\setlength{\tabcolsep}{0pt}% |
| 3592 |
\setlength{\@utilb}{\the\textwidth-\the\@utila}% |
| 3593 |
\txa{Lengths:\the\textwidth, \the\@utila, \the\@utilb}% |
| 3594 |
\begin{tabular}{p{\the\@utila}p{\the\@utilb}} \hline \\% |
| 3595 |
\LARGE{\@hnto@phr:} & \parbox[t]{\@utilb}{\@name@to \strut \\ \@addr@to \strut% |
| 3596 |
\ifempty{\@phn@to}{}{\\ \@phn@phr:\space\@phn@to \strut}% |
| 3597 |
\ifempty{\@phnb@to}{}{\\ \@phn@phr:\space\@phnb@to \strut}% |
| 3598 |
\ifempty{\@phnc@to}{}{\\ \@phn@phr:\space\@phnc@to \strut}% |
| 3599 |
\ifempty{\@phnd@to}{}{\\ \@phn@phr:\space\@phnd@to \strut}% |
| 3600 |
\ifempty{\@fax@to}{}{\\ \@fax@phr:\space\@fax@to \strut}} \vspace*{5pt} \\ \hline \vspace*{5pt}% |
| 3601 |
\LARGE{\@hnfr@phr:} & \vspace*{5pt}% |
| 3602 |
\parbox[t]{\@utilb}{\@name@fr \strut \\ \@addr@fr \strut %% |
| 3603 |
\ifempty{\@phn@fr}{}{\\ \@phn@phr:\space\@phn@fr \strut}% |
| 3604 |
\ifempty{\@phnb@fr}{}{\\ \@phn@phr:\space\@phnb@fr \strut}% |
| 3605 |
\ifempty{\@phnc@fr}{}{\\ \@phn@phr:\space\@phnc@fr \strut}% |
| 3606 |
\ifempty{\@phnd@fr}{}{\\ \@phn@phr:\space\@phnd@fr \strut}% |
| 3607 |
\ifempty{\@fax@fr}{}{\\ \@fax@phr:\space\@fax@fr \strut}} \vspace*{5pt} \\ \hline% |
| 3608 |
\vspace*{5pt}% |
| 3609 |
\strut \LARGE{\@re@phr:} & \strut% |
| 3610 |
\ifthenelse{\equal{\@re@line}{---BLANK---}}{}{\@re@line}\strut \\% |
| 3611 |
\ifempty{\@fax@mssg}{}{ \strut% |
| 3612 |
\LARGE{\@m@phr:} \strut &% |
| 3613 |
\parbox[t]{\@utilb}{\strut \@fax@mssg} \strut \\ \hline}% |
| 3614 |
\end{tabular}}% |
| 3615 |
\def\ifta{0}\showdim{End of fax page setup }% |
| 3616 |
\@dim@resetfalse% |
| 3617 |
\txa{After dimreset}% |
| 3618 |
\gdef\npind{F}% |
| 3619 |
\txa{Before newpage}% |
| 3620 |
\newpage% |
| 3621 |
\txa{After newpage}% |
| 3622 |
}}% |
| 3623 |
\InputIfFileExists{faxpage.tex}% |
| 3624 |
{\typeout{Reading FAX page definitions from faxpage.tex}}% |
| 3625 |
{\typeout{faxpage definitions stored in newlfm.cls}}% |
| 3626 |
% \end{macrocode} |
| 3627 |
% \end{macro} |
| 3628 |
% \begin{macro}{faxblocka} |
| 3629 |
% Here we define FAX block a. This block is inserted in several places in |
| 3630 |
% the letter, by chosing several letter styles. It can also be inserted in |
| 3631 |
% several blocks by user choice. Fax Block A includes |
| 3632 |
% 1.) name-from, 2.) fax-from, 3.) name-to, 4.) fax-to, and 5.) re-line. |
| 3633 |
% FAX Block A is boxed in a frame. |
| 3634 |
% \begin{macrocode} |
| 3635 |
\newcommand{\faxblocka}{% |
| 3636 |
\sbox{\fba}{% |
| 3637 |
\framebox[3.0in]{\parbox[b]{3.0in}{\setlength{\tabcolsep}{0pt}% |
| 3638 |
\begin{tabular}{p{1.0in}p{2in}}% |
| 3639 |
\multicolumn{2}{l}{\Large \hspace*{.25in}% |
| 3640 |
\@fax@phr{} \@doc@phr} \\ \hline% |
| 3641 |
\@hnfr@phr:\space & \@name@fr \\% |
| 3642 |
\@fax@phr:\space & \@fax@fr \\ \hline% |
| 3643 |
\@hnto@phr:\space & \@name@to \\% |
| 3644 |
\@fax@phr:\space & \@fax@to \\ \hline% |
| 3645 |
\@re@phr: & \@re@line% |
| 3646 |
\end{tabular}}}}}% |
| 3647 |
% \end{macrocode} |
| 3648 |
% \end{macro} |
| 3649 |
% \begin{macro}{faxblockb} |
| 3650 |
% Here we define FAX block b. This block is inserted in several places in |
| 3651 |
% the letter, by chosing several letter styles. It can also be inserted in |
| 3652 |
% several blocks by user choice. Fax Block B includes |
| 3653 |
% 1.) name-from, 2.) fax-from, 3.) phone-from, 4.) name-to, 5.) fax-to, |
| 3654 |
% 6.) phone to, and 7.) re-line. |
| 3655 |
% FAX Block B is boxed in a frame. |
| 3656 |
% \begin{macrocode} |
| 3657 |
\newcommand{\faxblockb}{% |
| 3658 |
{\parbox[t]{\textwidth}{\fbox{% |
| 3659 |
\begin{tabular}{llll}% |
| 3660 |
\@hnfr@phr:\space & \@name@fr & \@hnto@phr:\space & \@name@to \\% |
| 3661 |
\@fax@phr:\space & \@fax@fr & \@fax@phr:\space & \@fax@to \\% |
| 3662 |
\@phn@phr:\space & \@phn@fr & \@phn@phr:\space & \@phn@to \\% |
| 3663 |
\@re@phr: & \multicolumn{3}{l}{\parbox[t]{2in}{\@re@line}} \\% |
| 3664 |
\end{tabular}% |
| 3665 |
}}}}% |
| 3666 |
% \end{macrocode} |
| 3667 |
% \end{macro} |
| 3668 |
% \subsection{Start of letter document} |
| 3669 |
% \begin{macro}{\openlfm} |
| 3670 |
% Begin letter here. First check for left margin boxes; if one has been |
| 3671 |
% specified, set it into the margin, and change the margin spacing |
| 3672 |
% accordingly. After that, the left, right and center under-margin boxes |
| 3673 |
% are checked. If this is a memo, this \info{} is printed next. |
| 3674 |
% Finally, we print (optionally) date, from-address, to-address and opening |
| 3675 |
% salutation. |
| 3676 |
% \begin{macrocode} |
| 3677 |
\newcommand{\ifempty}[3]{\ifthenelse{\equal{#1}{}}{#2}{#3}}% |
| 3678 |
\newcommand{\ifpempty}[3]{\ifthenelse{\equal{\protect#1}{}}{#2}{#3}}% |
| 3679 |
\newcommand{\@prnt@sec}[1]{% Actual printing of addresses here |
| 3680 |
\ifthenelse{#1=\@intd@pos}% |
| 3681 |
{\Prnt@Chk{@dt@p}{@dt@l}{@dt@c}{\@xdate}{}{\@dt@sk@b}{\@dt@sk@a}}{}% |
| 3682 |
\ifthenelse{#1=\@intf@pos}% |
| 3683 |
{\Prnt@Chk{@addr@fr@p}{@addr@fr@l}{@no@cen}% |
| 3684 |
{\usebox{\b@addr@fr}}{}{\@addr@fr@sk@b}{\@addr@fr@sk@a}}{}% |
| 3685 |
\ifthenelse{#1=\@intt@pos}% |
| 3686 |
{\Prnt@Chk{@addr@to@p}{@addr@to@l}{@no@cen}% |
| 3687 |
{\usebox{\b@addr@to}}{}{\@addr@to@sk@b}{\@addr@to@sk@a}}{}% |
| 3688 |
}% |
| 3689 |
% \end{macrocode} |
| 3690 |
% This is the actual section for openlfm. |
| 3691 |
% \begin{macrocode} |
| 3692 |
\newcommand*{\openlfm}{% |
| 3693 |
\def\ifta{0}% |
| 3694 |
\ifthenelse{\boolean{@use@water}}% |
| 3695 |
{\ClearShipoutPicture% |
| 3696 |
\AddToShipoutPicture{\includegraphics[natheight=11in,natwidth=8.5in]{\@water@page}}% |
| 3697 |
}{}% |
| 3698 |
\ifthenelse{\boolean{@marg@Ruse}}% Here we set up right-side marginal notes |
| 3699 |
{\setlength{\@utile}{-\@Hgt@Head+\@marg@rt@tp@d}% Adjust column top to leftmargintopdist |
| 3700 |
\normalmarginpar% |
| 3701 |
\marginpar{\vspace*{\the\@utile} \hspace*{\@marg@rt@l}\hspace*{-\marginparsep} \@Rmarg}}{}% |
| 3702 |
\ifthenelse{\boolean{@marg@Luse}}% Here we set up left-side marginal notes |
| 3703 |
{\setlength{\@utile}{-\@Hgt@Head+\@marg@lt@tp@d}% Adjust column top to leftmargintopdist |
| 3704 |
\reversemarginpar\txa{Left margin}% |
| 3705 |
\marginpar{\vspace*{\the\@utile} \hspace*{\@marg@lt@l} \@Lmarg}}{}% |
| 3706 |
\ifpempty{\@LUheader}{}{\@LUheader \hfill}% |
| 3707 |
\ifpempty{\@CUheader}{}{\hfill \@CUheader \hfill}% |
| 3708 |
\ifpempty{\@RUheader}{}{\hfill \@RUheader}% |
| 3709 |
\txa{Running memosec}% Memo processing |
| 3710 |
\ifthenelse{\boolean{@memo@bl}}% |
| 3711 |
{{\memosec}\setboolean{@dt@p}{false}% |
| 3712 |
\setboolean{@no@spc}{true}}% %Memo |
| 3713 |
{}% |
| 3714 |
\txa{Running pressbegin}% |
| 3715 |
\ifthenelse{\boolean{@pr@p}}% |
| 3716 |
{\pressbegin% Press release processing |
| 3717 |
\txa{here we go again - out of pressbegin} |
| 3718 |
\setboolean{@no@spc}{true}}{}% % Press Release |
| 3719 |
\sbox{\b@addr@fr}{\noindent\setlength{\tabcolsep}{0pt}% Address-from into a box |
| 3720 |
\raggedleft\begin{tabular}{l@{}}% |
| 3721 |
\noindent\ignorespaces\@addr@fr% |
| 3722 |
\ifthenelse{\boolean{@addr@fr@t}}{\\ \@phn@phr: \@phn@fr}{}% |
| 3723 |
\ifthenelse{\boolean{@addr@fr@f}}{\\ \@fax@phr: \@fax@fr}{}% |
| 3724 |
\ifthenelse{\boolean{@addr@fr@e}}{\\ \@email@phr: \@email@fr}{}% |
| 3725 |
\end{tabular}}% |
| 3726 |
\settowidth{\@utilc}{\usebox{\b@addr@fr}}% |
| 3727 |
\sbox{\b@addr@fr}{\noindent\setlength{\tabcolsep}{0pt}% |
| 3728 |
\parbox[t]{\@utilc}{\noindent% |
| 3729 |
\begin{tabular}{l@{}}% |
| 3730 |
\ignorespaces\@addr@fr% |
| 3731 |
\ifthenelse{\boolean{@addr@fr@t}}{\\ \@phn@phr: \@phn@fr}{}% |
| 3732 |
\ifthenelse{\boolean{@addr@fr@f}}{\\ \@fax@phr: \@fax@fr}{}% |
| 3733 |
\ifthenelse{\boolean{@addr@fr@e}}{\\ \@email@phr: \@email@fr}{}% |
| 3734 |
\end{tabular}}}% |
| 3735 |
\sbox{\b@addr@to}{\noindent\setlength{\tabcolsep}{0pt}%Address-to into a box |
| 3736 |
\raggedleft\begin{tabular}{l@{}}% |
| 3737 |
\noindent\ignorespaces\@name@to \strut \\ \@addr@to% |
| 3738 |
\ifthenelse{\boolean{@addr@to@t}}{\\ \@phn@phr: \@phn@to}{}% |
| 3739 |
\ifthenelse{\boolean{@addr@to@f}}{\\ \@fax@phr: \@fax@to}{}% |
| 3740 |
\ifthenelse{\boolean{@addr@to@e}}{\\ \@email@phr: \@email@to}{}% |
| 3741 |
\end{tabular}}% |
| 3742 |
\settowidth{\@utild}{\usebox{\b@addr@to}}% |
| 3743 |
\sbox{\b@addr@to}{\noindent\setlength{\tabcolsep}{0pt}% |
| 3744 |
\parbox[t]{\@utild}{\noindent% |
| 3745 |
\begin{tabular}{l@{}}% |
| 3746 |
\ignorespaces\@name@to \strut \\ \@addr@to% |
| 3747 |
\ifthenelse{\boolean{@addr@to@t}}{\\ \@phn@phr: \@phn@to}{}% |
| 3748 |
\ifthenelse{\boolean{@addr@to@f}}{\\ \@fax@phr: \@fax@to}{}% |
| 3749 |
\ifthenelse{\boolean{@addr@to@e}}{\\ \@email@phr: \@email@to}{}% |
| 3750 |
\end{tabular}}}% |
| 3751 |
\ifthenelse{\boolean{@no@spc}}{}{% |
| 3752 |
\ifthenelse{\boolean{@s@b@s}}{\par\noindent{\usebox{\b@addr@to} \hfill \usebox{\b@addr@fr}}}{}% |
| 3753 |
\setcounter{@c@pos}{1} \@prnt@sec{\the@c@pos}% Print from and to addresses and date |
| 3754 |
\setcounter{@c@pos}{2} \@prnt@sec{\the@c@pos}% |
| 3755 |
\setcounter{@c@pos}{3} \@prnt@sec{\the@c@pos}% |
| 3756 |
\setboolean{@greet@l}{true}% |
| 3757 |
\ifthenelse{\boolean{@pt@regard}}{\@regard@phr: \@regard@line}{}% |
| 3758 |
\Prnt@Chk{@greet@p}{@greet@l}{@no@cen}% |
| 3759 |
{\par\@greet@to\par\nobreak}{}{}{\@greet@to@sk@a}% |
| 3760 |
}% |
| 3761 |
\txa{End of openlfm}% |
| 3762 |
}% |
| 3763 |
% \end{macrocode} |
| 3764 |
% \end{macro} |
| 3765 |
% \subsection{Close of document section} |
| 3766 |
% \begin{macro}{closlfm} |
| 3767 |
% In this section, the letter is terminated. Several things happen here: |
| 3768 |
% \begin{enumerate} |
| 3769 |
% \item If signature block is to be printed, it is printed |
| 3770 |
% \item If signature itself is to be printed, it is printed; otherwise, |
| 3771 |
% just skip a reasonable amount of vertical space, to allow document to |
| 3772 |
% be signed |
| 3773 |
% \item If sender name is to be printed, it is printed |
| 3774 |
% \item For press releases, output |\PhrPRend| and blank the |
| 3775 |
% ---more--- in the footer. The marking mechanism is the proper |
| 3776 |
% way to do this, avoiding the unlikely case where we might blank the footer |
| 3777 |
% and then have the previous page output. |
| 3778 |
% \end{enumerate} |
| 3779 |
% \begin{macrocode} |
| 3780 |
\def\ifta{0} |
| 3781 |
\def\@fix@one@box{% |
| 3782 |
\settowidth{\@utila}{\setlength{\tabcolsep}{0pt}% |
| 3783 |
\begin{tabular}{l}% |
| 3784 |
\hspace*{1pt}% |
| 3785 |
\vspace*{\@cls@sk@b} \\% |
| 3786 |
\ifthenelse{\boolean{@use@close}}{{\@closeline}\\}{}% |
| 3787 |
\vspace*{\@cls@sk@a} \\% |
| 3788 |
\ifthenelse{\boolean{@use@sig}}% |
| 3789 |
{{\@sig@fr}\\}{\parbox[t][\the\@sig@sp][t]{.1pt}{\vspace*{\@sig@sp}}\\}% |
| 3790 |
\ifthenelse{\boolean{@use@sig@nm}}{\@sig@nm\\}{\@name@fr\\}% |
| 3791 |
\end{tabular}% |
| 3792 |
}% |
| 3793 |
\sbox{\@sig@box@b} {\begin{tabular}{p{\the\@utila}}% |
| 3794 |
\hspace*{1pt}\vspace*{\@cls@sk@b} \\% |
| 3795 |
\ifthenelse{\boolean{@use@close}}{{\@closeline}\\}{}% |
| 3796 |
\vspace*{\@cls@sk@a} \\% |
| 3797 |
\ifthenelse{\boolean{@use@sig}}% |
| 3798 |
{{\@sig@fr}\\}{\parbox[t][\the\@sig@sp][t]{.1pt}{\vspace*{\@sig@sp}}\\}% |
| 3799 |
\ifthenelse{\boolean{@use@sig@nm}}{\@sig@nm\\}{\@name@fr\\}% |
| 3800 |
\end{tabular}}}% |
| 3801 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3802 |
\def\closlfm{\def\ifta{0}\txa{In closlfm}% |
| 3803 |
\setlength{\@utila}{\@sig@sk@b}\addtolength{\@utila}{-1.5\baselineskip}% |
| 3804 |
\vspace*{\the\@utila}\noindent\setlength{\tabcolsep}{0pt}% |
| 3805 |
\ifthenelse{\boolean{@pr@p}}% |
| 3806 |
{\medskip\begin{center}\@PRend@phr\end{center}% |
| 3807 |
\markboth{}{}% |
| 3808 |
}% markboth mechanism resets center footer |
| 3809 |
{}% note require {} to finish ifthenelse |
| 3810 |
%%%%% |
| 3811 |
\ifthenelse{\boolean{@mult@sig}}% |
| 3812 |
{%\begin{flushleft}% |
| 3813 |
\ifthenelse{\equal{\the@sig@tot}{1}}{\def\@sig@tab{l}}{}% Set multiple columns |
| 3814 |
\ifthenelse{\equal{\the@sig@tot}{2}}{\def\@sig@tab{ll}}{}% |
| 3815 |
\ifthenelse{\equal{\the@sig@tot}{3}}{\def\@sig@tab{lll}}{}% |
| 3816 |
\ifthenelse{\equal{\the@sig@tot}{4}}{\def\@sig@tab{llll}}{}% |
| 3817 |
\setlength{\@utilb}{0pt}\setlength{\@utila}{0pt}% Reset counters to 0 |
| 3818 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3819 |
% Loop thru signature abbreviations |
| 3820 |
% Set flags |
| 3821 |
% Set one signature, make box, measure |
| 3822 |
% Find max heights and widths |
| 3823 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3824 |
\@for\@one@sig:=\@sig@list\do% |
| 3825 |
{\setboolean{@use@sig}{false}\setboolean{@use@close}{false}% |
| 3826 |
\setboolean{@use@sig@nm}{false}% |
| 3827 |
\expandafter\csname sig\@one@sig\endcsname% |
| 3828 |
\@fix@one@box\settowidth{\@utild}{\usebox{\@sig@box@b}}% |
| 3829 |
\ifthenelse{\lengthtest{\@utila<\@utild}}{\setlength{\@utila}{\@utild}}{}% |
| 3830 |
\settoheight{\@utilc}{\usebox{\@sig@box@b}}\settodepth{\@utild}{\usebox{\@sig@box@b}}% |
| 3831 |
\addtolength{\@utilc}{\@utild}% Find total depth |
| 3832 |
\ifthenelse{\lengthtest{\@utilb<\@utilc}}{\setlength{\@utilb}{\@utilc}}{}}% |
| 3833 |
\setcounter{@lab@cnt@col}{0}% |
| 3834 |
\setlength{\@utile}{0pt}% Set up for number signatures across |
| 3835 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3836 |
% Loop thru signature abbreviations |
| 3837 |
% Open new signature wrapper |
| 3838 |
% Set flags |
| 3839 |
% Set one signature, make box, measure |
| 3840 |
% If number of sigs across at max, skip line |
| 3841 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3842 |
\@for\@one@sig:=\@sig@list\do% Loop thru signature abbreviations |
| 3843 |
{\setboolean{@use@sig}{false}\setboolean{@use@close}{false}% |
| 3844 |
\setboolean{@use@sig@nm}{false}% |
| 3845 |
\txa{\the\@utile}% |
| 3846 |
\ifthenelse{\equal{\the@lab@cnt@col}{0}}{~\vspace*{\the\@utile}\\\noindent}{}% |
| 3847 |
\expandafter\csname sig\@one@sig\endcsname% |
| 3848 |
\ignorespaces \@fix@one@box\settoheight{\@utilc}{\usebox{\@sig@box@b}}% |
| 3849 |
\settodepth{\@utild}{\usebox{\@sig@box@b}}\addtolength{\@utilc}{\@utild}% |
| 3850 |
\ifthenelse{\equal{\the@sig@tot}{1}}{\setlength{\@utilb}{\@utilc}}{}% |
| 3851 |
\addtolength{\@utilc}{-\@utilb}% |
| 3852 |
\raisebox{-\the\@utilc/2}{\parbox[t]{\the\@utila}{\usebox{\@sig@box@b}}}% |
| 3853 |
\addtocounter{@lab@cnt@col}{1}% |
| 3854 |
\ifthenelse{\equal{\the@lab@cnt@col}{\the@sig@tot}}% |
| 3855 |
{\txa{else condition}% |
| 3856 |
\setcounter{@lab@cnt@col}{0}\setlength{\@utile}{\@sig@sk@r}}{\hspace*{\the\@sig@sk@c}}}% |
| 3857 |
\vspace*{\the\@sig@sk@a}%\end{flushleft} |
| 3858 |
}% |
| 3859 |
{% Print normal signature |
| 3860 |
\def\ifta{0} |
| 3861 |
\@fix@one@box\settowidth{\@utila}{\usebox{\@sig@box@b}}% Set up box, measure |
| 3862 |
\ifthenelse{\boolean{@sig@l}}{\txa{@sig@l:true}}{\txa{@sig@l:false}} |
| 3863 |
\ifthenelse{\boolean{@sig@c}}{\txa{@sig@c:true}}{\txa{@sig@c:false}} |
| 3864 |
\Prnt@Chk{@sig@p}{@sig@l}{@sig@c}% |
| 3865 |
{\parbox{\@utila}{\usebox{\@sig@box@b}}}{}{\@cls@sk@b}{\@sig@sk@a}}% |
| 3866 |
\ifthenelse{\boolean{@resta@l}}{\newpage\usebox{\@resta@ltr}}{}% |
| 3867 |
\ifthenelse{\boolean{@restb@l}}{\newpage\usebox{\@restb@ltr}}{}% |
| 3868 |
\ifthenelse{\boolean{@restc@l}}{\newpage\usebox{\@restc@ltr}}{}% |
| 3869 |
\ifthenelse{\boolean{@restd@l}}{\newpage\usebox{\@restd@ltr}}{}% |
| 3870 |
\ifthenelse{\boolean{@reste@l}}{\newpage\usebox{\@reste@ltr}}{}% |
| 3871 |
}% |
| 3872 |
% \end{macrocode} |
| 3873 |
% \end{macro} |
| 3874 |
% \subsection{Address \info} |
| 3875 |
% \begin{macro}{@post@sig@bl} |
| 3876 |
% This is an internal macro which prints blocks of text after the signature |
| 3877 |
% in a hanging block fashion. |
| 3878 |
% |
| 3879 |
% \begin{macrocode} |
| 3880 |
\def\@post@sig@bl#1#2#3{% |
| 3881 |
\setlength{\@utilb}{\textwidth}% |
| 3882 |
\settowidth{\@utila}{{\small\normalfont #1: }}% |
| 3883 |
\addtolength{\@utilb}{-\@utila}% |
| 3884 |
\ifthenelse{\equal{#2}{#3}}{}{% |
| 3885 |
\vspace*{\the\@post@sig@sp@b} \hspace*{-.01pt} \\ \noindent% |
| 3886 |
\parbox[t]{\textwidth}{\@hangfrom{{\small\normalfont #1: }}% |
| 3887 |
\ignorespaces \parbox[t]{\@utilb}{{\small#2}}\strut}\par% |
| 3888 |
\vspace*{\the\@post@sig@sp@a}% |
| 3889 |
}}% |
| 3890 |
% \end{macrocode} |
| 3891 |
% \end{macro} |
| 3892 |
% \begin{macrocode} |
| 3893 |
%</package> |
| 3894 |
%<*addrset> |
| 3895 |
% \end{macrocode} |
| 3896 |
% \begin{macro}{Commands} |
| 3897 |
% These commands are either internal (begin with \verb|@|) or user-optional (do |
| 3898 |
% not begin with \verb|@|). User-optional commands are defined in the text |
| 3899 |
% above. |
| 3900 |
% \begin{macrocode} |
| 3901 |
\def\addr#1{\protect\def\@addrxx{#1}}\addr{}% |
| 3902 |
\def\addrfr#1{\protect\def\@addr@fr{#1}}\addrfr{}% |
| 3903 |
\def\addrfrom#1{\protect\def\@addr@fr{#1}}\addrfrom{}% |
| 3904 |
\def\addrto#1{\protect\def\@addr@to{#1}}\addrto{}% |
| 3905 |
\def\cclist#1{\protect\def\@cc@item{#1}}\cclist{---BLANK---}% cc list |
| 3906 |
\def\city#1{\protect\def\@city{#1}}\city{}% |
| 3907 |
\def\closeln#1{\protect\def\@closeline{#1}\setboolean{@use@close}{true}}% Letter closing line |
| 3908 |
\def\closeline#1{\protect\def\@closeline{#1}\setboolean{@use@close}{true}}% |
| 3909 |
\def\dateset#1{\protect\def\@xdate{#1}}\dateset{\today}% Letter date |
| 3910 |
\def\dept#1{\protect\def\@dept{#1}}\dept{}% |
| 3911 |
\def\degree#1{\protect\def\@degree{#1}}\degree{}% |
| 3912 |
\def\email#1{\protect\def\@email{#1}}\email{}% |
| 3913 |
\def\emailb#1{\protect\def\@emailb{#1}}\emailb{}% |
| 3914 |
\def\emailc#1{\protect\def\@emailc{#1}}\emailc{}% |
| 3915 |
\def\emailbto#1{\protect\def\@emailb@to{#1}}\emailbto{}% |
| 3916 |
\def\emailcto#1{\protect\def\@emailc@to{#1}}\emailcto{}% |
| 3917 |
\def\emailbfr#1{\protect\def\@emailb@fr{#1}}\emailbfr{}% |
| 3918 |
\def\emailcfr#1{\protect\def\@emailc@fr{#1}}\emailcfr{}% |
| 3919 |
\def\emailfr#1{\protect\def\@email@fr{#1}}\emailfr{}% |
| 3920 |
\def\emailfrom#1{\protect\def\@email@fr{#1}}\emailfrom{}% |
| 3921 |
\def\emailto#1{\protect\def\@email@to{#1}}\emailto{}% |
| 3922 |
\def\encllist#1{\protect\def\@encl@item{#1}}\encllist{---BLANK---}% |
| 3923 |
\def\fax#1{\protect\def\@fax{#1}}\fax{}% |
| 3924 |
\def\faxto#1{\protect\def\@fax@to{#1}}\faxto{}% |
| 3925 |
\def\faxfr#1{\protect\def\@fax@fr{#1}}\faxfr{}% |
| 3926 |
\def\faxfrom#1{\protect\def\@fax@fr{#1}}\faxfrom{}% |
| 3927 |
\def\faxmssg#1{\protect\def\@fax@mssg{#1}}\faxmssg{}% |
| 3928 |
\def\fname#1{\protect\def\@f@name{#1}}\fname{}% |
| 3929 |
\def\fnameto#1{\protect\def\@f@name@to{#1}}\fnameto{}% |
| 3930 |
\def\fnamefr#1{\protect\def\@f@name@fr{#1}}\fnamefr{}% |
| 3931 |
\def\greet#1{\protect\def\@greet{#1}}\greet{}% |
| 3932 |
\def\greetto#1{\protect\def\@greet@to{#1}}\greetto{}% |
| 3933 |
\def\greetfr#1{\protect\def\@greet@fr{#1}}\greetfr{}% |
| 3934 |
\def\initials#1{\protect\def\@init@item{#1}}\initials{}% |
| 3935 |
\def\institute#1{\protect\def\@institute{#1}}\institute{}% |
| 3936 |
\def\jtitle#1{\protect\def\@jtitle{#1}}\jtitle{}% |
| 3937 |
\def\lname#1{\protect\def\@l@name{#1}}\lname{}% |
| 3938 |
\def\lnameto#1{\protect\def\@l@name@to{#1}}\lnameto{}% |
| 3939 |
\def\lnamefr#1{\protect\def\@l@name@fr{#1}}\lnamefr{}% |
| 3940 |
\def\mname#1{\protect\def\@m@name{#1}}\mname{}% |
| 3941 |
\def\mnameto#1{\protect\def\@m@name@to{#1}}\mnameto{}% |
| 3942 |
\def\mnamefr#1{\protect\def\@m@name@fr{#1}}\mnamefr{}% |
| 3943 |
\def\name#1{\protect\def\@namev{#1}}\name{}% |
| 3944 |
\def\namefr#1{\protect\def\@name@fr{#1}}\namefr{}% |
| 3945 |
\def\namefrom#1{\protect\def\@name@fr{#1}}\namefrom{}% |
| 3946 |
\def\nameto#1{\protect\def\@name@to{#1}}\nameto{}% |
| 3947 |
\def\organization#1{\protect\def\@org{#1}}\organization{}% |
| 3948 |
\def\pager#1{\protect\def\@pager{#1}}\pager{}% |
| 3949 |
\def\pagerto#1{\protect\def\@pager@to{#1}}\pagerto{}% |
| 3950 |
\def\pagerfrom#1{\protect\def\@pager@fr{#1}}\pagerfrom{}% |
| 3951 |
\def\pagerfr#1{\protect\def\@pager@fr{#1}}\pagerfr{}% |
| 3952 |
\def\phone#1{\protect\def\@phn{#1}}\phone{}% Phone |
| 3953 |
\def\phonea#1{\protect\def\@phna{#1}}\phonea{}% Phone |
| 3954 |
\def\phoneb#1{\protect\def\@phnb{#1}}\phoneb{}% Phone |
| 3955 |
\def\phonec#1{\protect\def\@phnc{#1}}\phonec{}% Phone |
| 3956 |
\def\phoned#1{\protect\def\@phnd{#1}}\phoned{}% Phone |
| 3957 |
\def\phoneo#1{\protect\def\@phno{#1}}\phoneo{}% Phone |
| 3958 |
\def\phoneh#1{\protect\def\@phnh{#1}}\phoneh{}% Phone |
| 3959 |
\def\phonefr#1{\protect\def\@phn@fr{#1}}\phonefr{}% Phone from |
| 3960 |
\def\phonefrom#1{\protect\def\@phn@fr{#1}}\phonefrom{}% Phone from |
| 3961 |
\def\phoneafrom#1{\protect\def\@phn@fr{#1}}\phoneafrom{}% Phone from |
| 3962 |
\def\phoneafr#1{\protect\def\@phn@fr{#1}}\phoneafrom{}% Phone from |
| 3963 |
\def\phonebfrom#1{\protect\def\@phnb@fr{#1}}\phonebfrom{}% Phone from |
| 3964 |
\def\phonecfrom#1{\protect\def\@phnc@fr{#1}}\phonecfrom{}% Phone from |
| 3965 |
\def\phonedfrom#1{\protect\def\@phnd@fr{#1}}\phonedfrom{}% Phone from |
| 3966 |
\def\phonebfr#1{\protect\def\@phnb@fr{#1}}\phonebfrom{}% Phone from |
| 3967 |
\def\phonecfr#1{\protect\def\@phnc@fr{#1}}\phonecfrom{}% Phone from |
| 3968 |
\def\phonedfr#1{\protect\def\@phnd@fr{#1}}\phonedfrom{}% Phone from |
| 3969 |
\def\phoneto#1{\protect\def\@phn@to{#1}}\phoneto{}% Phone to |
| 3970 |
\def\phoneoto#1{\protect\def\@phno@to{#1}}\phoneoto{}% Phone to |
| 3971 |
\def\phonehfr#1{\protect\def\@phnh@fr{#1}}\phonehfr{}% Phone to |
| 3972 |
\def\phoneofr#1{\protect\def\@phno@fr{#1}}\phoneofr{}% Phone to |
| 3973 |
\def\phonehto#1{\protect\def\@phnh@to{#1}}\phonehto{}% Phone to |
| 3974 |
\def\phoneato#1{\protect\def\@phn@to{#1}}\phoneto{}% Phone to |
| 3975 |
\def\phonebto#1{\protect\def\@phnb@to{#1}}\phonebto{}% Phone to |
| 3976 |
\def\phonecto#1{\protect\def\@phnc@to{#1}}\phonecto{}% Phone to |
| 3977 |
\def\phonedto#1{\protect\def\@phnd@to{#1}}\phonedto{}% Phone to |
| 3978 |
\def\plngadj#1{\protect\def\@f@f{#1}}\plngadj{0in}% |
| 3979 |
\def\position#1{\protect\def\@position{#1}}\position{}% |
| 3980 |
\def\ppsitem#1{\protect\def\@pps@item{#1}}\ppsitem{---BLANK---}% |
| 3981 |
\def\pppsitem#1{\protect\def\@ppps@item{#1}}\pppsitem{---BLANK---}% |
| 3982 |
\def\psitem#1{\protect\def\@ps@item{#1}}\psitem{---BLANK---}% |
| 3983 |
\def\re#1{\protect\def\@re@line{#1}}\re{---BLANK---}% |
| 3984 |
\def\regarding#1{\setboolean{@pt@regard}{true}\protect\def\@regard@line{#1}}% |
| 3985 |
\def\role#1{\protect\def\@role{#1}}\role{}% |
| 3986 |
\def\sender#1{\protect\def\@sender{#1}}\sender{}% |
| 3987 |
\def\signature#1{\protect\def\@sig@fr{#1}\setboolean{@use@sig}{true}}% |
| 3988 |
\def\sigacross#1{\setcounter{@sig@tot}{#1}}% |
| 3989 |
\def\siglist#1{\txa{In siglist}% |
| 3990 |
\protect\def\@sig@list{#1}\setboolean{@mult@sig}{true}% |
| 3991 |
\setboolean{@sig@l}{true}\setboolean{@sig@c}{false}}% |
| 3992 |
\def\signame#1{\protect\def\@sig@nm{#1}\setboolean{@use@sig@nm}{true}}% |
| 3993 |
\def\socsec#1{\protect\def\@socsec{#1}}\socsec{}% |
| 3994 |
\def\SSnumto#1{\protect\def\@SS@num@to{#1}}\SSnumto{}% |
| 3995 |
\def\state#1{\protect\def\@state{#1}}\state{}% |
| 3996 |
\def\staddr#1{\protect\def\@staddr{#1}}\staddr{}% |
| 3997 |
\def\subre#1{\protect\def\@sub@re@line{#1}}\subre{}% |
| 3998 |
\def\subdept#1{\protect\def\@subdept{#1}}\subdept{}% |
| 3999 |
\def\zip#1{\protect\def\@zip{#1}}\zip{}% |
| 4000 |
\def\byline#1{\setboolean{@pr@by}{true}\protect\def\@pr@byline{#1}}% |
| 4001 |
\byline{}\setboolean{@pr@by}{false}% |
| 4002 |
\def\headline#1{\protect\def\@pr@headline{#1}% |
| 4003 |
\protect\def\@pr@shorthead{#1}}\headline{---BLANK---}% |
| 4004 |
\def\release#1{\protect\def\@pr@release{#1}}\release{\@release@phr}% |
| 4005 |
\def\shorthead#1{\protect\def\@pr@shorthead{#1}} |
| 4006 |
\regarding{---BLANK---}% |
| 4007 |
\setboolean{@pt@regard}{false}% |
| 4008 |
%\siglist{}% |
| 4009 |
\signature{}% |
| 4010 |
\sigacross{1}% |
| 4011 |
\closeline{}% |
| 4012 |
\setboolean{@use@sig}{false}% |
| 4013 |
\setboolean{@use@close}{false}% |
| 4014 |
\setboolean{@mult@sig}{false}% |
| 4015 |
\signame{}% |
| 4016 |
\setboolean{@use@sig@nm}{false}% |
| 4017 |
% \end{macro} |
| 4018 |
% \begin{macrocode} |
| 4019 |
% \end{macrocode} |
| 4020 |
% \begin{macro}{Commands} |
| 4021 |
% These commands are either internal (begin with |@|) or user-optional (do |
| 4022 |
% not begin with |@|). User-optional commands are defined in the text |
| 4023 |
% above. |
| 4024 |
% \begin{macrocode} |
| 4025 |
\def\fixadr#1{\expandafter\csname adr#1\endcsname}% |
| 4026 |
\def\setadrto#1{% |
| 4027 |
\global\protect\let\@addrxx\@empty% |
| 4028 |
\global\protect\let\@namev\@empty% |
| 4029 |
\global\protect\let\@phn\@empty% |
| 4030 |
\global\protect\let\@phna\@empty% |
| 4031 |
\global\protect\let\@phnb\@empty% |
| 4032 |
\global\protect\let\@phnc\@empty% |
| 4033 |
\global\protect\let\@phnd\@empty% |
| 4034 |
\global\protect\let\@phno\@empty% |
| 4035 |
\global\protect\let\@phnh\@empty% |
| 4036 |
\global\protect\let\@pager\@empty% |
| 4037 |
\global\protect\let\@fax\@empty% |
| 4038 |
\global\protect\let\@greet\@empty% |
| 4039 |
\global\protect\let\@email\@empty% |
| 4040 |
\global\protect\let\@emailb\@empty% |
| 4041 |
\global\protect\let\@emailc\@empty% |
| 4042 |
\global\protect\let\@l@name\@empty% |
| 4043 |
\global\protect\let\@f@name\@empty% |
| 4044 |
#1\txa{In setadrto - }\txa{Second}\txa{\@addrxx}% |
| 4045 |
\global\protect\let\@addr@to\@addrxx% |
| 4046 |
\txa{Z}% |
| 4047 |
\global\protect\let\@name@to\@namev% |
| 4048 |
\txa{A1}% |
| 4049 |
\global\protect\let\@phn@to\@phn% |
| 4050 |
\global\protect\let\@phna@to\@phna% |
| 4051 |
\global\protect\let\@phnb@to\@phnb% |
| 4052 |
\global\protect\let\@phnc@to\@phnc% |
| 4053 |
\txa{A2}% |
| 4054 |
\global\protect\let\@phnd@to\@phnd% |
| 4055 |
\global\protect\let\@phno@to\@phno% |
| 4056 |
\global\protect\let\@phnh@to\@phnh% |
| 4057 |
\global\protect\let\@pager@to\@pager% |
| 4058 |
\txa{A3}% |
| 4059 |
\global\protect\let\@fax@to\@fax% |
| 4060 |
\global\protect\let\@greet@to\@greet% |
| 4061 |
\global\protect\let\@email@to\@email% |
| 4062 |
\global\protect\let\@emailb@to\@emailb% |
| 4063 |
\txa{A4}% |
| 4064 |
\global\protect\let\@emailc@to\@emailc% |
| 4065 |
\global\protect\let\@l@name@to\@l@name% |
| 4066 |
\global\protect\let\@f@name@to\@f@name% |
| 4067 |
\txa{End of setadrto}% |
| 4068 |
}% |
| 4069 |
\def\setadrfr#1{% |
| 4070 |
\global\protect\let\@addrxx\@empty% |
| 4071 |
\global\protect\let\@namev\@empty% |
| 4072 |
\global\protect\let\@phn\@empty% |
| 4073 |
\global\protect\let\@phna\@empty% |
| 4074 |
\global\protect\let\@phnb\@empty% |
| 4075 |
\global\protect\let\@phnc\@empty% |
| 4076 |
\global\protect\let\@phnd\@empty% |
| 4077 |
\global\protect\let\@phno\@empty% |
| 4078 |
\global\protect\let\@phnh\@empty% |
| 4079 |
\global\protect\let\@pager\@empty% |
| 4080 |
\global\protect\let\@fax\@empty% |
| 4081 |
\global\protect\let\@greet\@empty% |
| 4082 |
\global\protect\let\@email\@empty% |
| 4083 |
\global\protect\let\@emailb\@empty% |
| 4084 |
\global\protect\let\@emailc\@empty% |
| 4085 |
\global\protect\let\@l@name\@empty% |
| 4086 |
\global\protect\let\@f@name\@empty% |
| 4087 |
#1\txa{In setadrfr}% |
| 4088 |
\global\protect\let\@addr@fr\@addrxx% |
| 4089 |
\global\protect\let\@name@fr\@namev% |
| 4090 |
\global\protect\let\@phn@fr\@phn% |
| 4091 |
\global\protect\let\@phna@fr\@phna% |
| 4092 |
\global\protect\let\@phnb@fr\@phnb% |
| 4093 |
\global\protect\let\@phnc@fr\@phnc% |
| 4094 |
\global\protect\let\@phnd@fr\@phnd% |
| 4095 |
\global\protect\let\@phno@fr\@phno% |
| 4096 |
\global\protect\let\@phnh@fr\@phnh% |
| 4097 |
\global\protect\let\@pager@fr\@pager% |
| 4098 |
\global\protect\let\@fax@fr\@fax% |
| 4099 |
\global\protect\let\@greet@fr\@greet% |
| 4100 |
\global\protect\let\@email@fr\@email% |
| 4101 |
\global\protect\let\@emailb@fr\@emailb% |
| 4102 |
\global\protect\let\@emailc@fr\@emailc% |
| 4103 |
\global\protect\let\@l@name@fr\@l@name% |
| 4104 |
\global\protect\let\@f@name@fr\@f@name% |
| 4105 |
\txa{End of setadrfr}% |
| 4106 |
}% |
| 4107 |
\DeclareRobustCommand*{\printnameto}{\@name@to}% |
| 4108 |
\DeclareRobustCommand*{\printaddrto}{\@addr@to}% |
| 4109 |
\DeclareRobustCommand*{\printphoneto}{\@phn@to}% |
| 4110 |
\DeclareRobustCommand*{\printphoneato}{\@phna@to}% |
| 4111 |
\DeclareRobustCommand*{\printphonebto}{\@phnb@to}% |
| 4112 |
\DeclareRobustCommand*{\printphonecto}{\@phnc@to}% |
| 4113 |
\DeclareRobustCommand*{\printphonedto}{\@phnd@to}% |
| 4114 |
\DeclareRobustCommand*{\printphoneoto}{\@phno@to}% |
| 4115 |
\DeclareRobustCommand*{\printphonehto}{\@phnh@to}% |
| 4116 |
\DeclareRobustCommand*{\printpagerto}{\@pager@to}% |
| 4117 |
\DeclareRobustCommand*{\printfaxto}{\@fax@to}% |
| 4118 |
\DeclareRobustCommand*{\printgreetto}{\@greet@to}% |
| 4119 |
\DeclareRobustCommand*{\printemailto}{\@email@to}% |
| 4120 |
\DeclareRobustCommand*{\printemailbto}{\@emailb@to}% |
| 4121 |
\DeclareRobustCommand*{\printemailcto}{\@emailc@to}% |
| 4122 |
\DeclareRobustCommand*{\printlnameto}{\@l@name@to}% |
| 4123 |
\DeclareRobustCommand*{\printfnameto}{\@f@name@to}% |
| 4124 |
\DeclareRobustCommand*{\printnamefrom}{\@name@fr}% |
| 4125 |
\DeclareRobustCommand*{\printaddrfrom}{\@addr@fr}% |
| 4126 |
\DeclareRobustCommand*{\printphonefrom}{\@phn@fr}% |
| 4127 |
\DeclareRobustCommand*{\printphoneafrom}{\@phna@fr}% |
| 4128 |
\DeclareRobustCommand*{\printphonebfrom}{\@phnb@fr}% |
| 4129 |
\DeclareRobustCommand*{\printphonecfrom}{\@phnc@fr}% |
| 4130 |
\DeclareRobustCommand*{\printphonedfrom}{\@phnd@fr}% |
| 4131 |
\DeclareRobustCommand*{\printphoneofrom}{\@phno@fr}% |
| 4132 |
\DeclareRobustCommand*{\printphonehfrom}{\@phnh@fr}% |
| 4133 |
\DeclareRobustCommand*{\printpagerfrom}{\@pager@fr}% |
| 4134 |
\DeclareRobustCommand*{\printfaxfrom}{\@fax@fr}% |
| 4135 |
\DeclareRobustCommand*{\printgreetfrom}{\@greet@fr}% |
| 4136 |
\DeclareRobustCommand*{\printemailfrom}{\@email@fr}% |
| 4137 |
\DeclareRobustCommand*{\printemailbfrom}{\@emailb@fr}% |
| 4138 |
\DeclareRobustCommand*{\printemailcfrom}{\@emailc@fr}% |
| 4139 |
\DeclareRobustCommand*{\printlnamefrom}{\@l@name@fr}% |
| 4140 |
\DeclareRobustCommand*{\printfnamefrom}{\@f@name@fr}% |
| 4141 |
% \end{macrocode} |
| 4142 |
% \end{macro} |
| 4143 |
% \begin{macrocode} |
| 4144 |
%</addrset> |
| 4145 |
%<*package> |
| 4146 |
% \end{macrocode} |
| 4147 |
% \end{macro} |
| 4148 |
% \subsection{Address book handling} |
| 4149 |
% |newlfm| stores \info{} in a file |letrinfo.tex|. This \info{} is |
| 4150 |
% stored in a series of wrapper macros. This are the macros |\makelth|, |
| 4151 |
% |\makesig| and |\makeadr|. These are used in letters and memos by |
| 4152 |
% issuing the commands |\adrXXX|, |\lthXXX| and |\sigXXX| {\it before} the |
| 4153 |
% |\begin{newlfm}| statement: |
| 4154 |
% \begin{verbatim} |
| 4155 |
% \begin{document} |
| 4156 |
% \ltrTST \sigABC \setadrto{\adrDEF} \setadrfr{\adrPWW} |
| 4157 |
% \begin{newlfm} |
| 4158 |
% \end{verbatim} |
| 4159 |
% Alternatively, the wrapper macros may be included in the document using |
| 4160 |
% the |letrh|, |addrt|, |addrf|, and |sigtr| commands in the |\newlfmP| |
| 4161 |
% command as: |
| 4162 |
% \begin{verbatim} |
| 4163 |
% \begin{document} |
| 4164 |
% \newlfmP{letrh=TST,sigtr=ABC,addrt=DEF,addrf=PWW} |
| 4165 |
% \begin{newlfm} |
| 4166 |
% \end{verbatim} |
| 4167 |
% The wrapper macros function as a very generalized |
| 4168 |
% hash table for addresses, letterheads and signature \info. |
| 4169 |
% Each type of \info{} is keyed by the use of the appropriate value of XXX. |
| 4170 |
% When |newlfm| starts up, the program reads in standard declarations of names, |
| 4171 |
% addresses, signatures, header blocks, etc., stored in file |
| 4172 |
% |letrinfo.tex|. This file will contain \info{} which is normally |
| 4173 |
% included in a letter. That way, it need not be entered separately into |
| 4174 |
% each different letter. |
| 4175 |
% |
| 4176 |
% \begin{macrocode} |
| 4177 |
\newif \if@read@one \@read@onetrue% |
| 4178 |
\def\@ltr@info@name{letrinfo.tex}% |
| 4179 |
%\DeclareOption{InfoFileName}[1]{\renewcommand{\@ltr@info@name}{#1}}% |
| 4180 |
\define@key{ov}{InfoFileName}{\def\@ltr@info@name{#1}}% |
| 4181 |
\InputIfFileExists{\@ltr@info@name}% |
| 4182 |
{\typeout{Reading default letter definitions from \@ltr@info@name}}% |
| 4183 |
{\typeout{\@ltr@info@name\ not found. All letter definitions must be in newlfm.cls}}% |
| 4184 |
% \end{macrocode} |
| 4185 |
% |
| 4186 |
% \subsection{Form letters} |
| 4187 |
% \begin{macro}{doletter} |
| 4188 |
% In this section, we set up the environment to prepare form letters. |
| 4189 |
% This is done by: |
| 4190 |
% \begin{enumerate} |
| 4191 |
% \item Defining the body of the letter using the command |
| 4192 |
% \verb|\letterbody|. The body may include macro items. The body |
| 4193 |
% {\it should not} include the |newlfm| command, |
| 4194 |
% which is invoked by the macro |\doletter| itself. Thus, do not |
| 4195 |
% include the \verb|\begin{newlfm}| or \verb|\end{newlfm}| statements. |
| 4196 |
% \item For each letter, use the construction \verb|\doletter{}|. The |
| 4197 |
% required argument includes a specification of the address |
| 4198 |
% information, usually. The required argument is used directly before |
| 4199 |
% the {\tt newlfm} environment is specified, and the form letter |
| 4200 |
% specified. Thus, the address for the several letters can easily be |
| 4201 |
% listed. |
| 4202 |
% \item |\doltr| and |\ltrbody| are previous forms of the form letter |
| 4203 |
% commands, but are no longer supported. |
| 4204 |
% \end{enumerate} |
| 4205 |
% \begin{macrocode} |
| 4206 |
\gdef\npind{0}% |
| 4207 |
\def\ltrbody#1{\protect\def\@ltr@body{#1}}% |
| 4208 |
\DeclareRobustCommand{\letterbody}[1]{\def\@ltr@body{#1}}% |
| 4209 |
\DeclareRobustCommand*{\doltr}[1]% |
| 4210 |
{#1 \begin{newlfm} \@ltr@body \end{newlfm} \gdef\npind{B} % \newpage% |
| 4211 |
\ifthenelse{\boolean{@env@open}}{}{}}% |
| 4212 |
\DeclareRobustCommand*{\@env@label}[1]{#1\parbox[t][\@lab@bh][t]{\@lab@bw}% |
| 4213 |
{{\@name@to \\ \@addr@to} \hfill}}% |
| 4214 |
\DeclareRobustCommand*{\@env@oth}[2]{% |
| 4215 |
\txa{box height:\the\@lab@bh, box width:\the\@lab@bw, between: \the\tabcolsep}% |
| 4216 |
\parbox[t][\@lab@bh][t]{\@lab@bw}{\@lab@size \strut #1 \\ #2 \strut}}% |
| 4217 |
\DeclareRobustCommand*{\@env@row}[4]{\settowidth{\@utila}{\@hnfr@phr:}% |
| 4218 |
\setlength{\tabcolsep}{0pt}% |
| 4219 |
\fbox{\parbox[t][\@lab@bh][t]{\@lab@bw}{% |
| 4220 |
\@lab@size \begin{tabular}{ll}{\Large\@hnfr@phr:}&{\Large\@hnto@phr:}\\% |
| 4221 |
\parbox[t]{2.0in}{#3\\#4}&\parbox[t]{2.0in}{#1\\#2}% |
| 4222 |
\end{tabular}\hfill}}}% |
| 4223 |
\DeclareRobustCommand*{\@env@col}[4]{\parbox[t][\@lab@bh][t]{\@lab@bw}{% |
| 4224 |
{\@lab@size{\Large\@hnfr@phr:}\\#3\\#4\\{\Large\@hnto@phr:}\\#1\\#2}}}% |
| 4225 |
\DeclareRobustCommand*{\x@env@col}[4]{\parbox[t][\@lab@bh][t]{\@lab@bw}{% |
| 4226 |
{\@lab@size\begin{tabular}{p{.5in}p{3.25in}}{\Large\@hnfr@phr:}\\&\parbox[t]{3.25in}{#4}% |
| 4227 |
\vspace*{10pt}\\{\Large\@hnto@phr:}\\&\parbox[t]{3.25in}{#2}\\\end{tabular}}}}% |
| 4228 |
\def\multletter#1{\@for\@addr@x:=#1\do{{\oneletter{\@addr@x}}}}% |
| 4229 |
\def\doletter#1{\setadrto{#1}\txa{ZA}% |
| 4230 |
\begin{newlfm}\@ltr@body\end{newlfm}\gdef\npind{D}\newpage}% |
| 4231 |
\def\oneletter#1{\txa{In oneletter}\setadrto{\csname adr#1\endcsname}\txa{ZB}\addrt{#1}% |
| 4232 |
\begin{newlfm}\@ltr@body\end{newlfm}\gdef\npind{E}}% |
| 4233 |
\DeclareRobustCommand*{\@env@ext}[1]{\txa{#1:1}% |
| 4234 |
\setadrto{\csname adr#1\endcsname}\txa{ZC}\txa{#1:2}% |
| 4235 |
\@env@oth{\@name@to}{\@addr@to}\txa{#1:3}}% |
| 4236 |
\def\clearall{\def\@ltr@h{}\def\@adr@t{}\def\@adr@f{}\def\@sig@b{}% |
| 4237 |
\setboolean{@ov@t}{false}\setboolean{@ov@f}{false} |
| 4238 |
\setboolean{@ov@s}{false}\setboolean{@ov@l}{false}}% |
| 4239 |
\def\makeenvst{}% |
| 4240 |
\def\makeenvfn{% |
| 4241 |
\def\ifta{0}% |
| 4242 |
\ClearShipoutPicture% |
| 4243 |
\nolines\dateset{}\clearall\noheadline\noHeadline\@dim@resetfalse |
| 4244 |
\setboolean{@Hl}{false}\setlength{\@Hrw}{0pt}% |
| 4245 |
\setboolean{@hl}{false}\setlength{\@hrw}{0pt}% |
| 4246 |
\setboolean{@Fl}{false}\setlength{\@Frw}{0pt}% |
| 4247 |
\setboolean{@fl}{false}\setlength{\@frw}{0pt}% |
| 4248 |
\@clear@box% |
| 4249 |
\def\headrulewidth{0pt}% |
| 4250 |
\def\footrulewidth{0pt}% |
| 4251 |
\setboolean{@ov@a}{false}\setboolean{@fax@RA}{false}% |
| 4252 |
\setboolean{@fax@RU}{false}\setboolean{@fax@hdr@pg}{false}% |
| 4253 |
\setboolean{@no@spc}{true}\setboolean{@B@f}{false}% |
| 4254 |
\setboolean{@B@h}{false}\setboolean{@B@l}{false}% |
| 4255 |
\setboolean{@B@r}{false}\setboolean{@b@f}{false}% |
| 4256 |
\setboolean{@b@h}{false}\setboolean{@b@l}{false}% |
| 4257 |
\setboolean{@b@r}{false}\setboolean{@sig@p}{false}% |
| 4258 |
\setboolean{@sig@mp}{false}\setboolean{@env@open}{false}% |
| 4259 |
\ifthenelse{\lengthtest{\@lab@th<12pt}}{\setlength{\@lab@th}{12.1pt}}{}% |
| 4260 |
\ifthenelse{\boolean{@use@envlab}}{% |
| 4261 |
\def\ifta{0}% |
| 4262 |
\setpage{11in}{8.5in}{-1in}{72pt}{0in}{-1in}{120pt}{0in}{20pt}% |
| 4263 |
\txa{use@envlab true}% |
| 4264 |
}% |
| 4265 |
{% |
| 4266 |
\gdef\npind{A3}% |
| 4267 |
\setpage{\@lab@pl}{8.5in}{-1in}{\@lab@lm}{0in}{-1in}{\@lab@th}{0in}{20pt}% |
| 4268 |
\txa{use@envlab false}% |
| 4269 |
\txa{headheight:\the\@lab@th}% |
| 4270 |
}% |
| 4271 |
\setboolean{@in@makeenv}{true}% |
| 4272 |
\begin{newlfm}\pagestyle{empty}\thispagestyle{empty}% |
| 4273 |
\def\ifta{0}% |
| 4274 |
\showdim{Start of makeenvfn}% |
| 4275 |
\@nlfm@util=0% |
| 4276 |
\setcounter{@lab@cnt@col}{0} \setcounter{@lab@cnt@row}{0}% |
| 4277 |
\setboolean{@env@open}{true} \setboolean{@env@close}{true}% |
| 4278 |
\setboolean{@ztila}{false}% |
| 4279 |
\def\ifta{0}% |
| 4280 |
\txa{Count:\number\@nlfm@addr,Test:\number\@nlfm@util}% |
| 4281 |
\setboolean{@do@any}{false}% |
| 4282 |
\loop \ifnum\number\@nlfm@util<\number\@nlfm@addr% |
| 4283 |
\global\advance\@nlfm@util by1% |
| 4284 |
\txa{Loop S Count: \number\@nlfm@util}% |
| 4285 |
\setboolean{@do@any}{true}% |
| 4286 |
\def\@onet{\csname @aadr@t\number\@nlfm@util\endcsname}% |
| 4287 |
\def\@onef{\csname @aadr@f\number\@nlfm@util\endcsname}% |
| 4288 |
\txa{\string\@onet:\@onet -- \string\@onef:\@onef} |
| 4289 |
\protect\setadrto{\csname adr\@onet\endcsname}\txa{ZD}% |
| 4290 |
\protect\setadrfr{\csname adr\@onef\endcsname}% |
| 4291 |
\def\ifta{0}% |
| 4292 |
\txa{To: adr\@onet,\@name@to --- From: \@name@fr,adr\@onef --- Just:\@tab@just}% |
| 4293 |
\txa{@aadr@t\number\@nlfm@util: \csname @aadr@t\number\@nlfm@util\endcsname}% |
| 4294 |
\ifthenelse{\boolean{@env@open}}% |
| 4295 |
{\setcounter{@lab@cnt@row}{0}\txa{New page}% |
| 4296 |
\setboolean{@env@open}{false} \setboolean{@env@close}{true}% |
| 4297 |
\def\ifta{0}% |
| 4298 |
\showdim{Checking values before newpage}% |
| 4299 |
\gdef\npind{C}% |
| 4300 |
\ifthenelse{\boolean{@ztila}}{\newpage}{}% |
| 4301 |
\setboolean{@ztila}{true}% |
| 4302 |
\showdim{Checking values after newpage}% |
| 4303 |
\def\ifta{0}% |
| 4304 |
\setlength{\tabcolsep}{\@lab@bl} \begin{table}[t] \begin{tabular}{\@tab@just}% |
| 4305 |
\txa{Starting table}% |
| 4306 |
}% |
| 4307 |
{}% |
| 4308 |
\ifthenelse{\boolean{@lab@t}}% |
| 4309 |
{\txa{Label to only}\@env@oth{\@name@to}{\@addr@to}}{}% |
| 4310 |
\ifthenelse{\boolean{@lab@rft}}% |
| 4311 |
{\txa{Label row from to}\@env@row{\@name@to}{\@addr@to}{\@name@fr}{\@addr@fr}}{}% |
| 4312 |
\ifthenelse{\boolean{@lab@cft}}% |
| 4313 |
{\txa{Label col from to}\@env@col{\@name@to}{\@addr@to}{\@name@fr}{\@addr@fr}}{}% |
| 4314 |
\addtocounter{@lab@cnt@col}{1}% |
| 4315 |
\ifthenelse{\equal{\the@lab@cnt@col}{\the@lab@tot@col}}% |
| 4316 |
{\addtocounter{@lab@cnt@row}{1}\setcounter{@lab@cnt@col}{0}% |
| 4317 |
\txa{Ending row}\\}% |
| 4318 |
{\txa{Ending column}&}% |
| 4319 |
\ifthenelse{\equal{\the@lab@cnt@row}{\the@lab@tot@row}}% |
| 4320 |
{\setcounter{@lab@cnt@row}{0}\setcounter{@lab@cnt@col}{0}% |
| 4321 |
\txa{Ending table}\\ \end{tabular}\end{table}% |
| 4322 |
\setboolean{@env@close}{false} \setboolean{@env@open}{true}% |
| 4323 |
}% |
| 4324 |
{}% |
| 4325 |
\def\ifta{0}% |
| 4326 |
\txa{Loop E Count: \number\@nlfm@util}% |
| 4327 |
\repeat% |
| 4328 |
\txa{Ending table}% |
| 4329 |
\txa{Out of big loop: \arabic{@lab@cnt@col}}% |
| 4330 |
\def\ifta{0}% |
| 4331 |
\global\@nlfm@uta=\value{@lab@cnt@row}% |
| 4332 |
\sbox{\@x@l}{\phantom{A}} |
| 4333 |
\ifthenelse{\boolean{@env@close} \and \boolean{@do@any}} |
| 4334 |
{\txa{\the@lab@cnt@col, \the@lab@cnt@row, \the@lab@tot@row} |
| 4335 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4336 |
% Finish off current row first |
| 4337 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4338 |
\ifthenelse{\equal{\arabic{@lab@cnt@col}}{0}}{}% |
| 4339 |
{\whiledo{\the@lab@cnt@col<\the@lab@tot@col}% |
| 4340 |
{\@env@oth{\usebox{\@x@l}}{\usebox{\@x@l}}% |
| 4341 |
\addtocounter{@lab@cnt@col}{1}% |
| 4342 |
\ifthenelse{\the@lab@cnt@col<\the@lab@tot@col}{&}{}} \\% |
| 4343 |
\addtocounter{@lab@cnt@row}{1} |
| 4344 |
}% |
| 4345 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4346 |
% Add remaining rows, each with all columns |
| 4347 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4348 |
\whiledo{\the@lab@cnt@row<\the@lab@tot@row}% |
| 4349 |
{\setcounter{@lab@cnt@col}{0}% |
| 4350 |
\whiledo{\the@lab@cnt@col<\the@lab@tot@col}% |
| 4351 |
{\@env@oth{\usebox{\@x@l}}{\usebox{\@x@l}}% |
| 4352 |
\addtocounter{@lab@cnt@col}{1}% |
| 4353 |
\ifthenelse{\the@lab@cnt@col<\the@lab@tot@col}{&}{\\} |
| 4354 |
}% |
| 4355 |
\addtocounter{@lab@cnt@row}{1}% |
| 4356 |
\ifthenelse{\the@lab@cnt@row<\the@lab@tot@row} |
| 4357 |
{}% |
| 4358 |
{\\ \end{tabular}\end{table} \newpage% |
| 4359 |
\showdim{At the end of the table}}% |
| 4360 |
\setboolean{@env@close}{false}% |
| 4361 |
\setboolean{@env@open}{true}% |
| 4362 |
}% |
| 4363 |
}% |
| 4364 |
{}% |
| 4365 |
\setboolean{@use@envlab}{false}% |
| 4366 |
\end{newlfm}% |
| 4367 |
\def\ifta{0}% |
| 4368 |
}% |
| 4369 |
% \end{macrocode} |
| 4370 |
% \end{macro} |
| 4371 |
% \subsection{Main section} |
| 4372 |
% \begin{macro}{newlfm} |
| 4373 |
% This is the main section. In this section, we actually print a letter. |
| 4374 |
% Here is how it is done: |
| 4375 |
% \begin{enumerate} |
| 4376 |
% \item Insert \info{} into environment |
| 4377 |
% \item Determine sizes of header and footer largest pieces |
| 4378 |
% \item Set all lengths to the height of the appropriate box |
| 4379 |
% \item Set paperlength: |
| 4380 |
% \begin{enumerate} |
| 4381 |
% \item Begin with paperheight |
| 4382 |
% \item Subtract |\@Hgt@Head| |
| 4383 |
% \item Subtract |\footskip|, which includes |\@Hgt@Foot| |
| 4384 |
% \item Take into account |voffset|, and 1 inch, which are designed to offset |
| 4385 |
% one another |
| 4386 |
% \item Subtract |headsep| and |headheight| |
| 4387 |
% \end{enumerate} |
| 4388 |
% \end{enumerate} |
| 4389 |
% \begin{macrocode} |
| 4390 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4391 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4392 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4393 |
% Put together a header or footer given the left, center and |
| 4394 |
% right text, fillers at left and right and a rule. |
| 4395 |
% The \lap commands put the text into an hbox of zero size, |
| 4396 |
% so overlapping text does not generate an errormessage. |
| 4397 |
% These macros have 5 parameters: |
| 4398 |
% 1. LEFTSIDE BEARING % This determines at which side the header will stick |
| 4399 |
% out. When \fancyhfoffset is used this calculates \headwidth, otherwise |
| 4400 |
% it is \hss or \relax (after expansion). |
| 4401 |
% 2. \f@ncyolh, \f@ncyelh, \f@ncyolf or \f@ncyelf. This is the left component. |
| 4402 |
% 3. \f@ncyoch, \f@ncyech, \f@ncyocf or \f@ncyecf. This is the middle comp. |
| 4403 |
% 4. \f@ncyorh, \f@ncyerh, \f@ncyorf or \f@ncyerf. This is the right component. |
| 4404 |
% 5. RIGHTSIDE BEARING. This is always \relax or \hss (after expansion). |
| 4405 |
|
| 4406 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4407 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4408 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4409 |
\newcommand{\@zfancyvbox}[2]{ |
| 4410 |
\gdef\@zpqutil{1pt} |
| 4411 |
\setbox0\vbox{#2}\ifdim\ht0>#1 |
| 4412 |
\setlength{\@utill}{\the\ht0} |
| 4413 |
\addtolength{\@utill}{-#1} |
| 4414 |
\addtolength{\@utill}{5.0pt} |
| 4415 |
\txa{utill:\the\@utill} |
| 4416 |
\xdef\@zpqutil{\the\@utill} |
| 4417 |
\txa{@zpqutil:\@zpqutil} |
| 4418 |
\fi |
| 4419 |
} |
| 4420 |
\newcommand{\@zfancyhead}[5]{#1\hbox to\headwidth{\fancy@reset |
| 4421 |
\@zfancyvbox\headheight{\hbox |
| 4422 |
{\rlap{\parbox[b]{\headwidth}{\raggedright#2}}\hfill |
| 4423 |
\parbox[b]{\headwidth}{\centering#3}\hfill |
| 4424 |
\llap{\parbox[b]{\headwidth}{\raggedleft#4}}}\zheadrule}}#5} |
| 4425 |
|
| 4426 |
\newcommand{\@zfancyfoot}[5]{#1\hbox to\headwidth{\fancy@reset |
| 4427 |
\@zfancyvbox\footskip{\zfootrule |
| 4428 |
\hbox{\rlap{\parbox[t]{\headwidth}{\raggedright#2}}\hfill |
| 4429 |
\parbox[t]{\headwidth}{\centering#3}\hfill |
| 4430 |
\llap{\parbox[t]{\headwidth}{\raggedleft#4}}}}}#5} |
| 4431 |
|
| 4432 |
\newcommand{\zheadrule}{{\if@fancyplain\let\headrulewidth\plainheadrulewidth\fi |
| 4433 |
\hrule\@height\headrulewidth\@width\headwidth \vskip-\headrulewidth}} |
| 4434 |
|
| 4435 |
\newcommand{\zfootrule}{{\if@fancyplain\let\footrulewidth\plainfootrulewidth\fi |
| 4436 |
\vskip-\footruleskip\vskip-\footrulewidth |
| 4437 |
\hrule\@width\headwidth\@height\footrulewidth\vskip\footruleskip}} |
| 4438 |
|
| 4439 |
\newenvironment{newlfm}{% Start of fax environment, in fax class% |
| 4440 |
\if@read@one \global\@read@onefalse \fi% |
| 4441 |
\def\ifta{0}\txa{Start of newlfm startup}% |
| 4442 |
\ifthenelse{\boolean{@ov@a}}{\txa{oa: t}}{\txa{oa: f}}% |
| 4443 |
\ifthenelse{\boolean{@ov@t}}{\txa{ot: t}}{\txa{ot: f}}% |
| 4444 |
\ifthenelse{\boolean{@ov@f}}{\txa{of: t}}{\txa{of: f}}% |
| 4445 |
\ifthenelse{\boolean{@ov@l}}{\txa{ol: t}}{\txa{ol: f}}% |
| 4446 |
\ifthenelse{\boolean{@ov@s}}{\txa{os: t}}{\txa{os: f}}% |
| 4447 |
\txa{nameto: \@name@to}% |
| 4448 |
\txa{namefrom: \@name@fr}% |
| 4449 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4450 |
%%%% Begin with fax cover page |
| 4451 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4452 |
\ifthenelse{\boolean{@ov@a}}{\faxblocka}{}% |
| 4453 |
\ifthenelse{\boolean{@fax@RA}}% |
| 4454 |
{\ifthenelse{\boolean{@fax@bla}}{\Rheader{\usebox{\fba}}}{}% |
| 4455 |
\ifthenelse{\boolean{@fax@blb}}{\Rheader{\faxblockb}}{}}{}% |
| 4456 |
\ifthenelse{\boolean{@fax@RU}}% |
| 4457 |
{\txa{setting up ruh}% |
| 4458 |
\ifthenelse{\boolean{@fax@bla}}{\RUheader{\faxblocka}}{}% |
| 4459 |
\ifthenelse{\boolean{@fax@blb}}{\RUheader{\faxblockb}}{}}{}% |
| 4460 |
\ifthenelse{\boolean{@ov@a}}{% |
| 4461 |
\ifthenelse{\boolean{@ov@l}}{\expandafter\csname lth\@ltr@h \endcsname}{}% |
| 4462 |
\ifthenelse{\boolean{@ov@t}}{\setadrto{\expandafter\csname adr\@adr@t \endcsname}}{}% |
| 4463 |
\ifthenelse{\boolean{@ov@f}}{\setadrfr{\expandafter\csname adr\@adr@f \endcsname}}{}% |
| 4464 |
\ifthenelse{\boolean{@ov@s}}{\expandafter\csname sig\@sig@b \endcsname}{}% |
| 4465 |
\@set@em@up |
| 4466 |
}{}% |
| 4467 |
\txa{setting up ruh}% |
| 4468 |
\def\ifta{0}% |
| 4469 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4470 |
\txa{name@to:\@name@to}% |
| 4471 |
\ifthenelse{\boolean{@ov@t}}{\txa{oversetto:true}}{\txa{oversetto:false}}% |
| 4472 |
\txa{name@fr:\@name@fr}% |
| 4473 |
\ifthenelse{\boolean{@ov@f}}{\txa{oversetfr:true}}{\txa{oversetfr:false}}% |
| 4474 |
\retdims% |
| 4475 |
\ifthenelse{\boolean{@fax@hdr@pg}}% |
| 4476 |
{{\txa{FAX Page Setup}% |
| 4477 |
\def\ifta{0}% |
| 4478 |
\showdim{Before resetting dimensions for fax}% |
| 4479 |
\faxpage% |
| 4480 |
\def\ifta{0}% |
| 4481 |
\showdim{After resetting dimensions for fax}% |
| 4482 |
\showdim{After restoring dimensions for fax}% |
| 4483 |
\txa{Before newpage issued}% |
| 4484 |
\txa{After newpage issued}% |
| 4485 |
\showdim{After fax page setup}% |
| 4486 |
}}{}% |
| 4487 |
\rstdims% |
| 4488 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4489 |
\def\ifta{0}\showdim{After fax page section closes}\gdef\npind{G}% |
| 4490 |
\if@twoside \ifodd\c@page% |
| 4491 |
\else\thispagestyle{empty}\null\newpage\fi \fi% |
| 4492 |
\c@page\@ne% |
| 4493 |
\interlinepenalty=200 % smaller than the TeXbook value% |
| 4494 |
\setlength{\headwidth}{\textwidth}% |
| 4495 |
\txa{Before Rfooter}\ifthenelse{\boolean{@B@f}}% |
| 4496 |
{\Cfooter{\phantom{\Cfooter}} \Rfooter{\phantom{\Rfooter}} \Lfooter{\phantom{\Lfooter}}} {}% |
| 4497 |
\txa{Before Rheader}\ifthenelse{\boolean{@B@h}}% |
| 4498 |
{\Rheader{\phantom{\Rheader}} \Lheader{\phantom{\Lheader}} \Cheader{\phantom{\Cheader}}} {}% |
| 4499 |
\txa{Before Lmargin}\ifthenelse{\boolean{@B@l}}% |
| 4500 |
{\ifempty{\@Lmarg}{}{\Lmargin{\phantom{\Lmargin}}}}{}% |
| 4501 |
\txa{Before Rmargin}\ifthenelse{\boolean{@B@r}}% |
| 4502 |
{\ifempty{\@Rmarg}{}{\Rmargin{\phantom{\Rmargin}}}}{}% |
| 4503 |
\txa{Before rfooter}\ifthenelse{\boolean{@b@f}}% |
| 4504 |
{\rfooter{\phantom{\rfooter}} \lfooter{\phantom{\lfooter}} \cfooter{\phantom{\cfooter}}} {}% |
| 4505 |
\txa{Before rheader}\ifthenelse{\boolean{@b@h}}% |
| 4506 |
{\rheader{\phantom{\rheader}} \lheader{\phantom{\lheader}} \cheader{\phantom{\cheader}}} {}% |
| 4507 |
\txa{Before lmargin}\ifthenelse{\boolean{@b@l}}% |
| 4508 |
{\lmargin{\phantom{\lmargin}}} {}% |
| 4509 |
\txa{Before rmargin}\ifthenelse{\boolean{@b@r}}% |
| 4510 |
{\rmargin{\phantom{\rmargin}}} {}% |
| 4511 |
\setlength{\textwidth}{\paperwidth-\@marg@rt-\@marg@lt-1pt}% |
| 4512 |
\txa{Before opening}% |
| 4513 |
\txa{\string\@marg@rt: \the\@marg@rt, \string\@marg@rt: \the\@marg@rt}% |
| 4514 |
\txa{\string\textwidth: \the\textwidth, \string\paperwidth: \the\paperwidth}% |
| 4515 |
% \ifthenelse{\boolean{@ov@a}}{% |
| 4516 |
\openlfm% |
| 4517 |
% }{} |
| 4518 |
\def\ifta{0}% |
| 4519 |
\txa{nameto:\@name@to}% |
| 4520 |
\txa{namefr:\@name@fr}% |
| 4521 |
\txa{\string\@marg@rt: \the\@marg@rt, \string\@marg@rt: \the\@marg@rt}% |
| 4522 |
\txa{\string\textwidth: \the\textwidth, \string\paperwidth: \the\paperwidth}% |
| 4523 |
\txa{After opening}% |
| 4524 |
\def\ifta{0}% |
| 4525 |
\txa{\string\@marg@rt: \the\@marg@rt, \string\@marg@rt: \the\@marg@rt}% |
| 4526 |
\txa{\string\textwidth: \the\textwidth, \string\paperwidth: \the\paperwidth}% |
| 4527 |
\txa{Before pagestyle}% |
| 4528 |
\pagestyle{othhead}\thispagestyle{ltrhead}% |
| 4529 |
\def\ifta{0}% |
| 4530 |
\txa{After pagestyle}% |
| 4531 |
\ifthenelse{\boolean{@in@makeenv}}{\txa{makeenv true}}{\txa{makeenv false}% |
| 4532 |
\global\advance \@nlfm@addr by1% |
| 4533 |
\txa{Count: \number\@nlfm@addr -- To: \@adr@t -- From: \@adr@f}% |
| 4534 |
\expandafter\xdef\csname @aadr@t\number\@nlfm@addr\endcsname{\@adr@t}% |
| 4535 |
\expandafter\xdef\csname @aadr@f\number\@nlfm@addr\endcsname{\@adr@f}% |
| 4536 |
\txa{Count: \number\@nlfm@addr -- To: \@adr@t -- From: \@adr@f} |
| 4537 |
\txa{@aadr@t\number\@nlfm@addr: \csname @aadr@t\number\@nlfm@addr\endcsname}% |
| 4538 |
\txa{To: \csname @aadr@t\number\@nlfm@addr\endcsname,\@adr@t}% |
| 4539 |
}% |
| 4540 |
\showdim{Dimensions at end of newlfm startup section}\def\ifta{0}% |
| 4541 |
}% |
| 4542 |
% \end{macrocode} |
| 4543 |
% The next block of code defines the operation at the close of the |
| 4544 |
% environment. This is a bit odd, since |closlfmp| seemingly already |
| 4545 |
% catered to that case. As you will see below, there is quite a bit |
| 4546 |
% more to do. |
| 4547 |
% |
| 4548 |
% Currently, press release and all others are handled quite |
| 4549 |
% differently, raising the possibility that they should use different |
| 4550 |
% macros. Currently, |closlfmp| does both. Close study is warranted, |
| 4551 |
% as well as consideration of whether a press release might want to |
| 4552 |
% repeat contact information at the bottom, or be combined with a fax, |
| 4553 |
% letter, form letter/fax. There may be additional things the regular |
| 4554 |
% code path does as well. |
| 4555 |
% |
| 4556 |
% \begin{macrocode} |
| 4557 |
{% Here we are at the processing of the close of the newlfm env |
| 4558 |
\def\ifta{0}\txa{At the start of the close of newlfm env}% |
| 4559 |
\ifthenelse{\boolean{@pr@p}}{\closlfm}{}% |
| 4560 |
\ifthenelse{\boolean{@sig@p}}% |
| 4561 |
{\txa{Before closing}% |
| 4562 |
\ifthenelse{\boolean{@pr@p}}{}{\closlfm}% |
| 4563 |
\txa{After closing}% |
| 4564 |
\showdim{Current Dimensions}% |
| 4565 |
\@post@sig@bl{\@ps@phr}{\@ps@item}{---BLANK---}% |
| 4566 |
\@post@sig@bl{\@pps@phr}{\@pps@item}{---BLANK---}% |
| 4567 |
\@post@sig@bl{\@ppps@phr}{\@ppps@item}{---BLANK---}% |
| 4568 |
\@post@sig@bl{\@encl@phr}{\@encl@item}{---BLANK---}% |
| 4569 |
\@post@sig@bl{\@cc@phr}{\@cc@item}{---BLANK---}}{}% |
| 4570 |
\ifthenelse{\boolean{@sig@mp}}{% |
| 4571 |
\@post@sig@bl{\@ps@phr}{\@ps@item}{---BLANK---}% |
| 4572 |
\@post@sig@bl{\@pps@phr}{\@pps@item}{---BLANK---}% |
| 4573 |
\@post@sig@bl{\@ppps@phr}{\@ppps@item}{---BLANK---}% |
| 4574 |
\@post@sig@bl{\@encl@phr}{\@encl@item}{---BLANK---}% |
| 4575 |
\@post@sig@bl{\@cc@phr}{\@cc@item}{---BLANK---}}{}% |
| 4576 |
\ifthenelse{\boolean{@env@open}}{}{}% |
| 4577 |
% \ifthenelse{\boolean{@use@envlab}}{\@make@big@env}{}% |
| 4578 |
\txa{Before the pagebreak}% |
| 4579 |
\gdef\npind{J}% |
| 4580 |
\stopletter\@@par\pagebreak\@@par% |
| 4581 |
\immediate\write\@auxout{\string\newlabel{totpage}{{\thepage}{0}}}% |
| 4582 |
\@clear@box% |
| 4583 |
\global\@read@onetrue% |
| 4584 |
\setboolean{@s@b@s}{false}% |
| 4585 |
% \end{macrocode} |
| 4586 |
% The end of the |doublespace| environment also destroys the |
| 4587 |
% settings for the page headers (except for the the first page, which, |
| 4588 |
% being global, persists and is not wanted). For that reason, one |
| 4589 |
% {\em must} close the spacing environment here, after the |
| 4590 |
% |\pagebreak|, rather than earlier. |
| 4591 |
% |
| 4592 |
% Only the press release uses that environment. |
| 4593 |
% \begin{macrocode} |
| 4594 |
\ifthenelse{\boolean{@pr@p}}{% |
| 4595 |
\ifthenelse{\boolean{@space@d}}{\end{doublespace}}{\end{singlespace}}% |
| 4596 |
}{}% |
| 4597 |
}% |
| 4598 |
\def\@make@big@env{% |
| 4599 |
\@nlfm@util=0% |
| 4600 |
\def\ifta{0}% |
| 4601 |
\txa{In @make@big@env}% |
| 4602 |
\txa{Count: \number\@nlfm@addr}% |
| 4603 |
\txa{ZI}% |
| 4604 |
\txa{@aadr@t\number\@nlfm@addr: \csname @aadr@t\number\@nlfm@addr\endcsname}% |
| 4605 |
\txa{To: \csname @aadr@t\number\@nlfm@addr\endcsname,\@adr@t}% |
| 4606 |
\loop \ifnum\@nlfm@util < \@nlfm@addr% |
| 4607 |
\advance\@nlfm@util by1% |
| 4608 |
\def\@onet{\expandafter\csname @aadr@t\number\@nlfm@util\endcsname}% |
| 4609 |
\def\@onef{\expandafter\csname @aadr@f\number\@nlfm@util\endcsname}% |
| 4610 |
\setadrto{\expandafter\csname adr\@onet\endcsname}\txa{ZF}% |
| 4611 |
\setadrfr{\expandafter\csname adr\@onef\endcsname}% |
| 4612 |
\gdef\npind{I}% |
| 4613 |
\newpage% |
| 4614 |
\def\ifta{0}% |
| 4615 |
\gdef\npind{A4}% |
| 4616 |
\setpage{11in}{8.5in}{1in}{1in}{0pt}{0in}{120in}{0in}{0in}% |
| 4617 |
\txa{Actually using the makeenvelope...}% |
| 4618 |
\startlabels% |
| 4619 |
\@capitalizeaddressfalse% |
| 4620 |
\txa{From: \@name@fr}% |
| 4621 |
\txa{To: \@name@to}% |
| 4622 |
\mlabel{\@name@fr \hspace*{.1pt} \\ \@addr@fr \hspace*{.1pt}}% |
| 4623 |
{\@name@to \hspace*{.1pt} \\ \@addr@to \hspace*{.1pt}}% |
| 4624 |
\txa{From: \@name@fr}% |
| 4625 |
\txa{To: \@name@to}% |
| 4626 |
\repeat% |
| 4627 |
\global\@nlfm@addr=0% |
| 4628 |
\txa{Count at end: \number\@nlfm@addr}% |
| 4629 |
}% |
| 4630 |
\def\@clear@box{% |
| 4631 |
\Background{}\background{}\Lfooter{}\Cfooter{}\Rfooter{}\LOfooter{}% |
| 4632 |
\COfooter{}\ROfooter{}\lfooter{}\cfooter{}\rfooter{}\Lheader{}% |
| 4633 |
\Cheader{}\Rheader{}\LUheader{}\CUheader{}\RUheader{}\lheader{}% |
| 4634 |
\cheader{}\rheader{}\Rmargin{}\Lmargin{}\rmargin{}\lmargin{}% |
| 4635 |
}% |
| 4636 |
% \end{macrocode} |
| 4637 |
% \end{macro} |
| 4638 |
% |
| 4639 |
% \begin{macrocode} |
| 4640 |
\newcommand{\pgrph}[1]{{\bf #1}}% |
| 4641 |
\pagestyle{ltrhead}% |
| 4642 |
\pagenumbering{arabic}% |
| 4643 |
\raggedbottom% |
| 4644 |
\providecommand{\@texttop}{}% |
| 4645 |
\DeclareRobustCommand*{\@texttop} |
| 4646 |
{\ifnum\c@page=1\vskip \z@ plus.00006fil\relax\fi}% |
| 4647 |
\onecolumn% |
| 4648 |
\def\@set@em@up{% |
| 4649 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4650 |
% Here we put some information about the pressrelease stuff |
| 4651 |
% Much of this is in contravention of the philosophy of newlfm - since |
| 4652 |
% it displaces information that might have been placed into the blocks |
| 4653 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4654 |
\txa{Real start}% |
| 4655 |
\ifthenelse{\boolean{@pr@p}}{% |
| 4656 |
\PhrMore{\thepage\ of \pageref{LastPage}} |
| 4657 |
\Cfooter{\@more@phr}\cfooter{\@more@phr}% |
| 4658 |
}{}% |
| 4659 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4660 |
% Continue with the stuff for the @set@em@up |
| 4661 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4662 |
\def\ifta{0}\txa{Start of @set@em@up}% |
| 4663 |
\ifthenelse{\boolean{@set@env}}{\makeenvst\txa{Making envelope}}{}% |
| 4664 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4665 |
% First, set the header and footer widths |
| 4666 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4667 |
\ifthenelse{\boolean{@Hl}}% |
| 4668 |
{\def\headrulewidth{\the\@Hrw}}% |
| 4669 |
{\setlength{\@Hrw}{0pt}\def\headrulewidth{0pt}}% |
| 4670 |
\ifthenelse{\boolean{@Fl}}% |
| 4671 |
{\def\footrulewidth{\the\@Frw}}% |
| 4672 |
{\setlength{\@Frw}{0pt}\def\footrulewidth{0pt}}% |
| 4673 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4674 |
% Now, set the contents of the header and footer sections into boxes |
| 4675 |
% Boxes can be measured |
| 4676 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4677 |
\def\ifta{0}\txa{Here in the middle}% |
| 4678 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4679 |
% Check the heights and depths of boxes |
| 4680 |
% Letterhead header section |
| 4681 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4682 |
\settowidth{\@utili}{\@Lheader}% |
| 4683 |
\settowidth{\@utilj}{\@Cheader}% |
| 4684 |
\settowidth{\@utilk}{\@Rheader}% |
| 4685 |
\begin{lrbox}{\@x@l}\begin{minipage}{\@utili}\@Lheader\end{minipage}\end{lrbox}% |
| 4686 |
\begin{lrbox}{\@x@c}\begin{minipage}{\@utilj}\@Cheader\end{minipage}\end{lrbox}% |
| 4687 |
\begin{lrbox}{\@x@r}\begin{minipage}{\@utilk}\@Rheader\end{minipage}\end{lrbox}% |
| 4688 |
\ifthenelse{\boolean{@Ch@use}}% |
| 4689 |
{\settoheight{\@Hgt@H@C}{\strut\usebox{\@x@c}\strut}\settodepth{\@Dth@H@C}{\strut\usebox{\@x@c}\strut}% |
| 4690 |
\addtolength{\@Hgt@H@C}{\@Dth@H@C}}{\setlength{\@Hgt@H@C}{0pt}\setlength{\@Dth@H@C}{0pt}}% |
| 4691 |
\ifthenelse{\boolean{@Rh@use}}% |
| 4692 |
{\settoheight{\@Hgt@H@R}{\strut\usebox{\@x@r}\strut}\settodepth{\@Dth@H@R}{\strut\usebox{\@x@r}\strut}% |
| 4693 |
\addtolength{\@Hgt@H@R}{\@Dth@H@R}}{\setlength{\@Hgt@H@R}{0pt}\setlength{\@Dth@H@R}{0pt}}% |
| 4694 |
\ifthenelse{\boolean{@Lh@use}}% |
| 4695 |
{\settoheight{\@Hgt@H@L}{\strut\usebox{\@x@l}\strut}\settodepth{\@Dth@H@L}{\strut\usebox{\@x@l}\strut}% |
| 4696 |
\addtolength{\@Hgt@H@L}{\@Dth@H@L}}{\setlength{\@Hgt@H@L}{0pt}\setlength{\@Dth@H@L}{0pt}}% |
| 4697 |
\settoheight{\@utilf}{ |
| 4698 |
\vbox{\llap{\hbox{\parbox{\@utili}{\raggedright\usebox{\@x@l}}\hfill |
| 4699 |
\parbox{\@utilj}{\centering\usebox{\@x@c}}\hfill |
| 4700 |
\rlap{\parbox{\@utilk}{\raggedleft\usebox{\@x@r}}}}}}} |
| 4701 |
\settodepth{\@utilg}{ |
| 4702 |
\vbox{\hbox{\llap{\parbox{\@utili}{\raggedright\usebox{\@x@l}}\hfill |
| 4703 |
\parbox{\@utilj}{\centering\usebox{\@x@c}}\hfill |
| 4704 |
\rlap{\parbox{\@utilk}{\raggedleft\usebox{\@x@r}}}}}}} |
| 4705 |
\addtolength{\@utilh}{\@utilf} |
| 4706 |
\addtolength{\@utilh}{\@utilg} |
| 4707 |
%\addtolength{\@utilf}{\@Hrw} |
| 4708 |
%\addtolength{\@utilf}{2.0pt} |
| 4709 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4710 |
% Check the heights and depths of boxes |
| 4711 |
% Non-letterhead header section |
| 4712 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4713 |
\begin{lrbox}{\@x@c}\begin{minipage}{\textwidth}\@cheader\end{minipage}\end{lrbox}% |
| 4714 |
\begin{lrbox}{\@x@l}\begin{minipage}{\textwidth}\@lheader\end{minipage}\end{lrbox}% |
| 4715 |
\begin{lrbox}{\@x@r}\begin{minipage}{\textwidth}\@rheader\end{minipage}\end{lrbox}% |
| 4716 |
\txa{\@lheader}% |
| 4717 |
\txa{\@rheader}% |
| 4718 |
\ifthenelse{\boolean{@ch@use}}% |
| 4719 |
{\settoheight{\@Hgt@h@c}{\strut\usebox{\@x@c}\strut}\settodepth{\@Dth@h@c}{\strut\usebox{\@x@c}\strut}% |
| 4720 |
\addtolength{\@Hgt@h@c}{\@Dth@h@c}}{\setlength{\@Hgt@h@c}{0pt}\setlength{\@Dth@h@c}{0pt}}% |
| 4721 |
\ifthenelse{\boolean{@rh@use}}% |
| 4722 |
{\settoheight\@Hgt@h@r{\strut\usebox{\@x@r}\strut}\settodepth\@Dth@h@r{\strut\usebox{\@x@r}\strut}% |
| 4723 |
\addtolength\@Hgt@h@r{\@Dth@h@r}}{\setlength\@Hgt@h@r{0pt}\setlength\@Dth@h@r{0pt}}% |
| 4724 |
\ifthenelse{\boolean{@lh@use}}% |
| 4725 |
{\settoheight\@Hgt@h@l{\strut\usebox{\@x@l}\strut}\settodepth\@Dth@h@l{\strut\usebox{\@x@l}\strut}% |
| 4726 |
\addtolength\@Hgt@h@l{\@Dth@h@l}}{\setlength\@Hgt@h@l{0pt}\setlength\@Dth@h@l{0pt}}% |
| 4727 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4728 |
% Check the heights and depths of boxes |
| 4729 |
% Letterhead footer section |
| 4730 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4731 |
\begin{lrbox}{\@x@c}\begin{minipage}{\textwidth}\@Cfooter\end{minipage}\end{lrbox}% |
| 4732 |
\begin{lrbox}{\@x@l}\begin{minipage}{\textwidth}\@Lfooter\end{minipage}\end{lrbox}% |
| 4733 |
\begin{lrbox}{\@x@r}\begin{minipage}{\textwidth}\@Rfooter\end{minipage}\end{lrbox}% |
| 4734 |
\ifthenelse{\boolean{@Cf@use}}% |
| 4735 |
{\settoheight{\@Hgt@F@C}{\strut\usebox{\@x@c}\strut}\settodepth{\@Dth@F@C}{\strut\usebox{\@x@c}\strut}% |
| 4736 |
\addtolength{\@Hgt@F@C}{\@Dth@F@C}}{\setlength{\@Hgt@F@C}{0pt}\setlength{\@Dth@F@C}{0pt}}% |
| 4737 |
\ifthenelse{\boolean{@Rf@use}}% |
| 4738 |
{\settoheight{\@Hgt@F@R}{\strut\usebox{\@x@r}\strut}\settodepth{\@Dth@F@R}{\strut\usebox{\@x@r}\strut}% |
| 4739 |
\addtolength{\@Hgt@F@R}{\@Dth@F@R}}{\setlength{\@Hgt@F@R}{0pt}\setlength{\@Dth@F@R}{0pt}}% |
| 4740 |
\ifthenelse{\boolean{@Lf@use}}% |
| 4741 |
{\settoheight{\@Hgt@F@L}{\strut\usebox{\@x@l}\strut}\settodepth{\@Dth@F@L}{\strut\usebox{\@x@l}\strut}% |
| 4742 |
\addtolength{\@Hgt@F@L}{\@Dth@F@L}}{\setlength{\@Hgt@F@L}{0pt}\setlength{\@Dth@F@L}{0pt}}% |
| 4743 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4744 |
% Check the heights and depths of boxes |
| 4745 |
% Non-letterhead footer section |
| 4746 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4747 |
\begin{lrbox}{\@x@c}\begin{minipage}{\textwidth}\@cfooter\end{minipage}\end{lrbox}% |
| 4748 |
\begin{lrbox}{\@x@l}\begin{minipage}{\textwidth}\@lfooter\end{minipage}\end{lrbox}% |
| 4749 |
\begin{lrbox}{\@x@r}\begin{minipage}{\textwidth}\@rfooter\end{minipage}\end{lrbox}% |
| 4750 |
\ifthenelse{\boolean{@ch@use}}% |
| 4751 |
{\settoheight{\@Hgt@f@c}{\strut\usebox{\@x@c}\strut}\settodepth{\@Dth@f@c}{\strut\usebox{\@x@c}\strut}% |
| 4752 |
\addtolength{\@Hgt@f@c}{\@Dth@f@c}}{\setlength{\@Hgt@f@c}{0pt}\setlength{\@Dth@f@c}{0pt}}% |
| 4753 |
\ifthenelse{\boolean{@rh@use}}% |
| 4754 |
{\settoheight{\@Hgt@f@r}{\strut\usebox{\@x@r}\strut}\settodepth{\@Dth@f@r}{\strut\usebox{\@x@r}\strut}% |
| 4755 |
\addtolength{\@Hgt@f@r}{\@Dth@f@r}}{\setlength{\@Hgt@f@r}{0pt}\setlength{\@Dth@f@r}{0pt}}% |
| 4756 |
\ifthenelse{\boolean{@lh@use}}% |
| 4757 |
{\settoheight{\@Hgt@f@l}{\strut\usebox{\@x@l}\strut}\settodepth{\@Dth@f@l}{\strut\usebox{\@x@l}\strut}% |
| 4758 |
\addtolength{\@Hgt@f@l}{\@Dth@f@l}}{\setlength{\@Hgt@f@l}{0pt}\setlength{\@Dth@f@l}{0pt}}% |
| 4759 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4760 |
% Determine the height of the letterhead header |
| 4761 |
% Note: the minheight will be used to set up the cello window stuff |
| 4762 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4763 |
\txa{Height of letterhead header}% |
| 4764 |
\ifthenelse{\lengthtest{\@Hgt@H@L<\@Hgt@H@C}}% |
| 4765 |
{\setlength{\@Hgt@Head}{\@Hgt@H@C}}{\setlength{\@Hgt@Head}{\@Hgt@H@L}}% |
| 4766 |
\txa{1) @Hgt@Head: \the\@Hgt@Head,C:\the\@Hgt@H@C,L:\the\@Hgt@H@L,R:\the\@Hgt@H@R}% |
| 4767 |
\ifthenelse{\lengthtest{\@Hgt@Head<\@Hgt@H@R}}% |
| 4768 |
{\setlength{\@Hgt@Head}{\@Hgt@H@R}}{}% |
| 4769 |
\txa{2) @Hgt@Head: \the\@Hgt@Head}% |
| 4770 |
\ifthenelse{\lengthtest{\@Hgt@Head<\@Min@Hgt@Head}}% |
| 4771 |
{\setlength{\@Hgt@Head}{\@Min@Hgt@Head}}{}% |
| 4772 |
\txa{3) @Hgt@Head: \the\@Hgt@Head}% |
| 4773 |
\ifthenelse{\lengthtest{\@Hgt@Head<1pt}}% |
| 4774 |
{\setlength{\@Hgt@Head}{\@marg@tp}}% |
| 4775 |
{%\ifthenelse{\lengthtest{\@marg@tp@a<\@unpr@tp}}% |
| 4776 |
%{\setlength{\@marg@tp@a}{\@unpr@tp}}{}% |
| 4777 |
\txa{5) @Hgt@Head: \the\@Hgt@Head}% |
| 4778 |
\addtolength{\@Hgt@Head}{\@unpr@tp}% |
| 4779 |
\txa{6) @Hgt@Head: \the\@Hgt@Head}% |
| 4780 |
\addtolength{\@Hgt@Head}{\@marg@tp@a}% |
| 4781 |
\txa{7) @Hgt@Head: \the\@Hgt@Head}% |
| 4782 |
\addtolength{\@Hgt@Head}{\@Hrw}% |
| 4783 |
%\addtolength{\@Hgt@Head}{2.60005pt}% |
| 4784 |
\addtolength{\@Hgt@Head}{\@unpr@tp}% |
| 4785 |
%\addtolength{\@Hgt@Head}{10.0pt}% |
| 4786 |
\ifthenelse{\lengthtest{\@Hrw<2pt}}{\addtolength{\@Hgt@Head}{2.0pt}}{}% |
| 4787 |
\txa{8) @Hgt@Head: \the\@Hgt@Head,\the\@Hrw,\headrulewidth}% |
| 4788 |
}% |
| 4789 |
\txa{Left: \the\@Hgt@H@L, Center: \the\@Hgt@H@C, Right: \the\@Hgt@H@R}% |
| 4790 |
\txa{Min: \the\@Min@Hgt@Head, Total: \the\@Hgt@Head}% |
| 4791 |
\txa{Marg: \the\@marg@tp, Marga: \the\@marg@tp@a, Unpr: \the\@unpr@tp}% |
| 4792 |
%\addtolength{\@utilf}{\@marg@tp} |
| 4793 |
\txa{@Hgt@Head: \the\@Hgt@Head,@utilf:\the\@utilf,@utilg:\the\@utilg,@utilh:\the\@utilh} |
| 4794 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4795 |
% Determine the height of the non-letterhead header |
| 4796 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4797 |
\txa{Height of non-letterhead header}% |
| 4798 |
\ifthenelse{\lengthtest{\@Hgt@h@l<\@Hgt@h@c}}% |
| 4799 |
{\setlength{\@Hgt@head}{\@Hgt@h@c}}% |
| 4800 |
{\setlength{\@Hgt@head}{\@Hgt@h@l}}% |
| 4801 |
\ifthenelse{\lengthtest{\@Hgt@head<\@Hgt@h@r}}% |
| 4802 |
{\setlength{\@Hgt@head}{\@Hgt@h@r}}{}% |
| 4803 |
\ifthenelse{\lengthtest{\@Hgt@head<\@Min@Hgt@head}}% |
| 4804 |
{\setlength{\@Hgt@head}{\@Min@Hgt@head}}{}% |
| 4805 |
% \addtolength{\@Hgt@head}{8pt}% |
| 4806 |
\ifthenelse{\lengthtest{\@Hgt@head<1pt}}% |
| 4807 |
{\setlength{\@Hgt@head}{\@marg@tp}}% |
| 4808 |
{%\ifthenelse{\lengthtest{\@marg@tp@a<\@unpr@tp}}% |
| 4809 |
%{\setlength{\@marg@tp@a}{\@unpr@tp}}{}% |
| 4810 |
\addtolength{\@Hgt@head}{\@marg@tp@a}% |
| 4811 |
\addtolength{\@Hgt@head}{\@hrw}% |
| 4812 |
\addtolength{\@Hgt@head}{2.60005pt}% |
| 4813 |
\txa{unprtop: \the\@unpr@tp}% |
| 4814 |
\addtolength{\@Hgt@head}{\@unpr@tp}% |
| 4815 |
\ifthenelse{\lengthtest{\@hrw<2pt}}{\addtolength{\@Hgt@head}{2.0pt}}{}% |
| 4816 |
}% |
| 4817 |
\txa{Left: \the\@Hgt@h@l, Center: \the\@Hgt@h@c, Right: \the\@Hgt@h@r}% |
| 4818 |
\txa{Min: \the\@Min@Hgt@head, Total: \the\@Hgt@head}% |
| 4819 |
\txa{Marg: \the\@marg@tp, Marga: \the\@marg@tp@a, Unpr: \the\@unpr@tp}% |
| 4820 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4821 |
% Determine the height of the letterhead footer |
| 4822 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4823 |
\txa{Height of letterhead footer}% |
| 4824 |
\ifthenelse{\lengthtest{\@Hgt@F@L<\@Hgt@F@C}}% |
| 4825 |
{\setlength{\@Hgt@Foot}{\@Hgt@F@C}}{\setlength{\@Hgt@Foot}{\@Hgt@F@L}}% |
| 4826 |
\ifthenelse{\lengthtest{\@Hgt@Foot<\@Hgt@F@R}}% |
| 4827 |
{\setlength{\@Hgt@Foot}{\@Hgt@F@R}}{}% |
| 4828 |
\ifthenelse{\lengthtest{\@Hgt@Foot<\@Min@Hgt@Foot}}% |
| 4829 |
{\setlength{\@Hgt@Foot}{\@Min@Hgt@Foot}}{}% |
| 4830 |
\ifthenelse{\lengthtest{\@Hgt@Foot<1pt}}% |
| 4831 |
{\setlength{\@Hgt@Foot}{\@marg@bt}}% |
| 4832 |
{\ifthenelse{\lengthtest{\@marg@bt@b<\@unpr@bm}}% |
| 4833 |
{\setlength{\@marg@bt@b}{\@unpr@bm}}{}% |
| 4834 |
\addtolength{\@Hgt@Foot}{\@marg@bt@a}}% |
| 4835 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4836 |
% Determine the height of the non-letterhead footer |
| 4837 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4838 |
\txa{Height of non-letterhead footer}% |
| 4839 |
\ifthenelse{\lengthtest{\@Hgt@f@l<\@Hgt@f@c}}% |
| 4840 |
{\setlength{\@Hgt@foot}{\@Hgt@f@c}} {\setlength{\@Hgt@foot}{\@Hgt@f@l}}% |
| 4841 |
\ifthenelse{\lengthtest{\@Hgt@foot<\@Hgt@f@r}}% |
| 4842 |
{\setlength{\@Hgt@foot}{\@Hgt@f@r}}{}% |
| 4843 |
\ifthenelse{\lengthtest{\@Hgt@foot<\@Min@Hgt@foot}}% |
| 4844 |
{\setlength{\@Hgt@foot}{\@Min@Hgt@foot}}{}% |
| 4845 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4846 |
% Set the printable length as the difference of all those others |
| 4847 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4848 |
\ifthenelse{\lengthtest{\@marg@lt@tp@d<1pt}}% |
| 4849 |
{\setlength{\@marg@lt@tp@d}{\@Hgt@Head+\@marg@tp@a}}{}% |
| 4850 |
%\addtolength{\@Hgt@Head}{1pt}% |
| 4851 |
%\addtolength{\@Hgt@head}{1pt}% |
| 4852 |
\setlength{\@Plg}{\paperheight-\@Hgt@Head-\@Hgt@Foot-\@marg@tp@b-\@marg@tp@a-% |
| 4853 |
\@marg@bt@a-\@marg@bt@b-\@f@f-\@Hrw-\@Frw}% |
| 4854 |
\setlength{\@plg}{\paperheight-\@Hgt@head-\@Hgt@foot-\@marg@tp@b-\@marg@tp@a-% |
| 4855 |
\@marg@bt@a-\@marg@bt@b-\@f@f-\@hrw-\@frw}% |
| 4856 |
\ifthenelse{\lengthtest{\@text@height>.1pt}}{\setlength{\@Plg}{\@text@height}}{}% |
| 4857 |
\ifthenelse{\boolean{@Bg@use}}% |
| 4858 |
{\ClearShipoutPicture% |
| 4859 |
\AddToShipoutPicture{\includegraphics[natheight=11in,natwidth=8.5in]{\@Backgrnd}}}% |
| 4860 |
{\ifthenelse{\boolean{@bg@use}}% |
| 4861 |
{\ClearShipoutPicture% |
| 4862 |
\AddToShipoutPicture{\includegraphics[natheight=11in,natwidth=8.5in]{\@backgrnd}}% |
| 4863 |
}{}}% |
| 4864 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4865 |
% Print feedback if requested |
| 4866 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4867 |
\def\ifta{0}% |
| 4868 |
\txa{\string\@Hgt@H@C: \the\@Hgt@H@C, \string\@Hgt@H@R: \the\@Hgt@H@R}% |
| 4869 |
\txa{\string\@Hgt@H@L: \the\@Hgt@H@L, \string\@Hgt@Head: \the\@Hgt@Head}% |
| 4870 |
\txa{\string\@Hgt@h@c: \the\@Hgt@h@c, \string\@Hgt@h@r: \the\@Hgt@h@r}% |
| 4871 |
\txa{\string\@Hgt@h@l: \the\@Hgt@h@l, \string\@Hgt@head: \the\@Hgt@head}% |
| 4872 |
\txa{\string\@Hgt@F@C: \the\@Hgt@F@C, \string\@Hgt@F@R: \the\@Hgt@F@R}% |
| 4873 |
\txa{\string\@Hgt@F@L: \the\@Hgt@F@L, \string\@Hgt@Foot: \the\@Hgt@Foot}% |
| 4874 |
\txa{\string\@Hgt@f@c: \the\@Hgt@f@c, \string\@Hgt@f@r: \the\@Hgt@f@r}% |
| 4875 |
\txa{\string\@Hgt@f@l: \the\@Hgt@f@l, \string\@Hgt@foot: \the\@Hgt@foot}% |
| 4876 |
\txa{\string\@Plg:\the\@Plg, \string\paperheight:\the\paperheight}% |
| 4877 |
\txa{\string\@Hgt@Head:\the\@Hgt@Head, \string\@Hgt@head:\the\@Hgt@head}% |
| 4878 |
\txa{\string\@f@f:\@f@f,\string\footskip:\the\footskip}% |
| 4879 |
\txa{\string\@Hgt@foot:\the\@Hgt@Foot, \string\baselineskip:\the\baselineskip}% |
| 4880 |
\txa{\string\@plg:\the\@plg, \string\paperheight:\the\paperheight}% |
| 4881 |
\txa{\string\@Hgt@foot:\the\@Hgt@Foot, \string\baselineskip:\the\baselineskip}% |
| 4882 |
\txa{\string\@Hgt@foot:\the\@Hgt@Foot}% |
| 4883 |
\txa{\string\voffset:\the\voffset, \string\headsep:\the\headsep}% |
| 4884 |
\txa{\string\footruleskip:\footruleskip, \string\footrulewidth:\footrulewidth}% |
| 4885 |
\def\ifta{0}% |
| 4886 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4887 |
% Now set widths |
| 4888 |
% Set margins to defaults, or to set values |
| 4889 |
% If there marginal notes, set margins to 0in |
| 4890 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4891 |
\ifthenelse{\boolean{@marg@Luse}}% |
| 4892 |
{\txa{Setting up left column...}% |
| 4893 |
\settowidth{\@utile}{\@Lmarg}% |
| 4894 |
\txa{Lt column width:\the\@utile} |
| 4895 |
\ifthenelse{\lengthtest{\@unpr@lt>\@marg@lt@l}}{\setlength{\@marg@lt@l}{\@unpr@lt}}% |
| 4896 |
{\addtolength{\@marg@lt@l}{\@unpr@lt}}% |
| 4897 |
\addtolength{\@utile}{\@marg@lt@l}% |
| 4898 |
\setlength{\marginparwidth}{\@utile}% |
| 4899 |
\setlength{\marginparsep}{\@marg@lt@r}% |
| 4900 |
\setlength{\@marg@lt}{\@utile}% |
| 4901 |
% \addtolength{\@marg@lt}{\@marg@lt@r}% |
| 4902 |
\txa{Lt Column width+edge:\the\@util,\the\@marg@lt@l}% |
| 4903 |
\txa{\string\@util:\the\@util, width:\the\marginparwidth,sep:\the\marginparsep}% |
| 4904 |
\ifthenelse{\lengthtest{\@marg@lt@tp@d<1pt}}{\setlength{\@marg@lt@tp@d}{\@Hgt@Head}}{}% |
| 4905 |
\txa{Done!} |
| 4906 |
}% |
| 4907 |
{% |
| 4908 |
\setlength{\marginparsep}{0in}% |
| 4909 |
\setlength{\marginparwidth}{0in}% |
| 4910 |
\ifthenelse{\lengthtest{\@unpr@lt>\@marg@lt}}{\setlength{\@marg@lt}{\@unpr@lt}}{}% |
| 4911 |
}% |
| 4912 |
\ifthenelse{\boolean{@marg@Ruse}}% |
| 4913 |
{% |
| 4914 |
\txa{Setting up right column...}% |
| 4915 |
\settowidth{\@utile}{\@Rmarg}% |
| 4916 |
\txa{Rt Column width:\the\@utile}% |
| 4917 |
\ifthenelse{\lengthtest{\@marg@rt@l<.01pt}}{\setlength{\@marg@rt@l}{\@marg@lt@r}}{}% |
| 4918 |
\ifthenelse{\lengthtest{\@marg@rt@r<.01pt}}{\setlength{\@marg@rt@r}{\@marg@lt@l}}{}% |
| 4919 |
\txa{Unpr Rt:\the\@unpr@rt,Marg Rt R:\the\@marg@rt@r} |
| 4920 |
\ifthenelse{\lengthtest{\@unpr@rt>\@marg@rt@r}}{\setlength{\@marg@rt@r}{\@unpr@rt}}{}% |
| 4921 |
\txa{Unpr Rt:\the\@unpr@rt,Marg Rt R:\the\@marg@rt@r}% |
| 4922 |
\addtolength{\@utile}{\@marg@rt@r}% |
| 4923 |
\txa{Rt Column width+gutter:\the\@utile}% |
| 4924 |
\addtolength{\@utile}{\@marg@rt@l}% |
| 4925 |
\txa{Rt Column width+edge:\the\@utile}% |
| 4926 |
%setlength{\marginparwidth}{\@utile}% |
| 4927 |
%setlength{\marginparsep}{\@marg@rt@l}% |
| 4928 |
\setlength{\@marg@rt}{\@utile}% |
| 4929 |
\txa{\string\@util:\the\@util, \string\marginparwidth:\the\marginparwidth}% |
| 4930 |
\ifthenelse{\lengthtest{\@marg@rt@tp@d<1pt}}% |
| 4931 |
{\setlength{\@marg@rt@tp@d}{\@Hgt@Head}}{}% |
| 4932 |
\txa{Done!}% |
| 4933 |
}% |
| 4934 |
{% |
| 4935 |
\txa{No right column}% |
| 4936 |
\ifthenelse{\lengthtest{\@unpr@rt>\@marg@rt}}{\setlength{\@marg@rt}{\@unpr@rt}}{}% |
| 4937 |
\ifthenelse{\lengthtest{\@unpr@rt>\@marg@rt}}{\setlength{\@marg@rt}{\@unpr@rt}}{}% |
| 4938 |
}% |
| 4939 |
% \ifthenelse{\lengthtest{\@unpr@rt>\@marg@rt}}{\setlength{\@marg@rt}{\@unpr@rt}}{}% |
| 4940 |
\setlength{\@Pwd}{\paperwidth-\@marg@lt-\@marg@rt}% |
| 4941 |
\txa{Page width:\the\@Pwd,paper:\the\paperwidth}% |
| 4942 |
\txa{\string\@Hgt@H@C:\the\@Hgt@H@C, width:\the\marginparwidth,sep:\the\marginparsep}% |
| 4943 |
\ifthenelse{\lengthtest{\@text@width>.1pt}}{\setlength{\@Pwd}{\@text@width}}{}% |
| 4944 |
\showdim{At raggedbottom}% |
| 4945 |
\raggedbottom% |
| 4946 |
\def\ifta{0}% |
| 4947 |
\showdim{Before setpage}% |
| 4948 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4949 |
% Now set dimensions of all page lengths |
| 4950 |
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4951 |
\txa{\string\@marg@tp@a:\the\@marg@tp@a,\string\@Hgt@Head:\the\@Hgt@Head}% |
| 4952 |
\txa{\string\@marg@tp@b:\the\@marg@tp@b,\string\@Hgt@Foot:\the\@Hgt@Foot}% |
| 4953 |
\txa{\string\@marg@bt@a:\the\@marg@bt@a,\string\@Hgt@Head:\the\@Hgt@Head}% |
| 4954 |
\txa{\string\@marg@bt@b:\the\@marg@bt@b,\string\@Hgt@Foot:\the\@Hgt@Foot}% |
| 4955 |
\txa{\string\@unpr@bm:\the\@unpr@bm,\string\@unpr@tp:\the\@Hgt@Foot}% |
| 4956 |
\txa{Before Setting page 1}% |
| 4957 |
\settoheight{\@utile}{\@Rheader}% |
| 4958 |
\settodepth{\@utilb}{\@Rheader}% |
| 4959 |
\addtolength{\@utile}{\@utilb}% |
| 4960 |
\txa{Right: \the\@utile}% |
| 4961 |
\settoheight{\@utile}{\@Cheader}% |
| 4962 |
\settodepth{\@utilb}{\@Cheader}% |
| 4963 |
\addtolength{\@utile}{\@utilb}% |
| 4964 |
\txa{Center: \the\@utile}% |
| 4965 |
\settoheight{\@utile}{\@Lheader}% |
| 4966 |
\settodepth{\@utilb}{\@Lheader}% |
| 4967 |
\addtolength{\@utile}{\@utilb}% |
| 4968 |
\txa{Left: \the\@utile}% |
| 4969 |
\txa{marg-tp-a: \the\@marg@tp@a}% |
| 4970 |
\gdef\npind{A5}% |
| 4971 |
\ifthenelse{\lengthtest{\@Hgt@head<10pt}}{\setlength{\@Hgt@head}{13pt}}{}% |
| 4972 |
\setpage{\@Plg}{\@Pwd}{\@marg@rt-1in}{\@marg@lt-1in}{10pt}% |
| 4973 |
{\@marg@tp@a-1in}{\@Hgt@Head}{\@marg@tp@b}{\@Hgt@Foot}% |
| 4974 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4975 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4976 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4977 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4978 |
\vspace*{\the\@marg@tp@a} |
| 4979 |
\txa{headrulewidth:\headrulewidth} |
| 4980 |
%\txa{@height:\the\@height} |
| 4981 |
\@zfancyhead{\relax}{\f@ncyolh}{\f@ncyolh}{\f@ncyorh}{\relax} |
| 4982 |
\txa{HgtHead:\the\@Hgt@Head,utill:\the\@utill,zpqutil:\@zpqutil} |
| 4983 |
\addtolength{\@Hgt@Head}{\@utill} |
| 4984 |
\addtolength{\@Hgt@Head}{\@zpqutil} |
| 4985 |
\txa{HgtHead:\the\@Hgt@Head} |
| 4986 |
\setpage{\@Plg}{\@Pwd}{\@marg@rt-1in}{\@marg@lt-1in}{10pt}% |
| 4987 |
{\@marg@tp@a-1in}{\@Hgt@Head}{\@marg@tp@b}{\@Hgt@Foot}% |
| 4988 |
\txa{headheight:\the\headheight} |
| 4989 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4990 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4991 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4992 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4993 |
\txa{After Setting page 1}% |
| 4994 |
\fixhh{\@Hgt@head}% |
| 4995 |
\fixth{\@plg}% |
| 4996 |
\showdim{After setpage}% |
| 4997 |
\setlength{\headwidth}{\textwidth}% |
| 4998 |
\def\ifta{0}% |
| 4999 |
\ifthenelse{\boolean{@cello@win}} {% |
| 5000 |
\setlength{\@utila}{\@cello@d}% |
| 5001 |
\txa{1. \the\@utila} |
| 5002 |
\addtolength{\@utila}{-\@Hgt@Head}% |
| 5003 |
\txa{2. \the\@utila,\the\@Hgt@Head}% |
| 5004 |
\addtolength{\@utila}{-\@marg@tp@a}% |
| 5005 |
\txa{3. \the\@utila,\the\@marg@tp@a} |
| 5006 |
\addtolength{\@utila}{-\@marg@tp@b}% |
| 5007 |
\txa{4. \the\@utila,\the\@marg@tp@b} |
| 5008 |
\ifthenelse{\boolean{@dt@p}}{\txa{Fixing date}% |
| 5009 |
\ifthenelse{\@intd@pos<\@intt@pos}{% |
| 5010 |
\addtolength{\@utila}{-\@dt@sk@b}% |
| 5011 |
\txa{5. \the\@utila,\the\@dt@sk@b}% |
| 5012 |
\addtolength{\@utila}{-\@dt@sk@a}% |
| 5013 |
\txa{6. \the\@utila,\the\@dt@sk@a} |
| 5014 |
\settoheight{\@utile}{\@xdate}% |
| 5015 |
\addtolength{\@utila}{-\@utile}% |
| 5016 |
\txa{7. \the\@utila,\the\@utile}% |
| 5017 |
}{}}{}% |
| 5018 |
\ifthenelse{\boolean{@addr@fr@p}}{\txa{Fixing from address}% |
| 5019 |
\ifthenelse{\@intf@pos<\@intt@pos}{% |
| 5020 |
\addtolength{\@utila}{-\@addr@fr@sk@b}% |
| 5021 |
\addtolength{\@utila}{-\@addr@fr@sk@a}% |
| 5022 |
\sbox{\b@addr@fr}{\noindent\setlength{\tabcolsep}{0pt}% Address-from into a box |
| 5023 |
\raggedleft\begin{tabular}{l@{}}% |
| 5024 |
\noindent\ignorespaces\@addr@fr% |
| 5025 |
\ifthenelse{\boolean{@addr@fr@t}}{\\ \@phn@phr: \@phn@fr}{}% |
| 5026 |
\ifthenelse{\boolean{@addr@fr@f}}{\\ \@fax@phr: \@fax@fr}{}% |
| 5027 |
\ifthenelse{\boolean{@addr@fr@e}}{\\ \@email@phr: \@email@fr}{}% |
| 5028 |
\end{tabular}}% |
| 5029 |
\settoheight{\@utile}{\usebox{\b@addr@fr}}% |
| 5030 |
\addtolength{\@utila}{-\@utile}% |
| 5031 |
\txa{8. \the\@utila,\the\@utile}% |
| 5032 |
}{}}{}% |
| 5033 |
\txa{9. \the\@utila}% |
| 5034 |
\setlength{\@utilb}{\@cello@l}% |
| 5035 |
\txa{10. Horizontal position}% |
| 5036 |
\txa{11. Start: \the\@utilb}% |
| 5037 |
\addtolength{\@utilb}{-\@marg@lt}% |
| 5038 |
\txa{12. \the\@utilb,\the\@marg@lt}% |
| 5039 |
\txa{13. \the\@utilb}% |
| 5040 |
\ifthenelse{\lengthtest{\@utila > 0pt}}{\setboolean{@ztila}{true}}% |
| 5041 |
{\typeout{Cello window requested, but cannot be used.}% |
| 5042 |
\typeout{'To-address' cannot be placed vertically. Suggestions:}% |
| 5043 |
\typeout{1. Make letterhead components smaller.}% |
| 5044 |
\typeout{2. Eliminate date or 'from-address' from letter.}% |
| 5045 |
\typeout{3. Move date or 'from-address' below 'to-address'.}% |
| 5046 |
\setboolean{@ztila}{false}% |
| 5047 |
}% |
| 5048 |
\ifthenelse{\lengthtest{\@utilb > 0pt}}{\setboolean{@ztilb}{true}}% |
| 5049 |
{\typeout{Cello window requested, but cannot be used.}% |
| 5050 |
\typeout{'To-address' cannot be placed horizontally. Suggestions:}% |
| 5051 |
\typeout{1. Make left-margin width smaller.}% |
| 5052 |
\typeout{2. Eliminate margin components.}% |
| 5053 |
\setboolean{@ztilb}{false}%% |
| 5054 |
}% |
| 5055 |
\ifthenelse{\boolean{@ztila} \and \boolean{@ztilb}}{% |
| 5056 |
\setlength{\@addr@to@sk@b}{\@utila}% |
| 5057 |
\setlength{\@extr@hor}{\@utila}}{}% |
| 5058 |
}{\setboolean{@cello@win}{false}\setlength{\@extr@hor}{0pt}}% |
| 5059 |
\def\ifta{0}% |
| 5060 |
\txa{End of @set@em@up}% |
| 5061 |
}% |
| 5062 |
\newif \if@dim@reset \@dim@resettrue% |
| 5063 |
\newif \if@repth \@repthfalse% |
| 5064 |
\newcommand{\@rep@th}{}% |
| 5065 |
\newcommand{\fixth}[1]{\renewcommand{\@rep@th}{#1} \global\@repthtrue}% |
| 5066 |
\newdimen \@rep@th% |
| 5067 |
\newif \if@reptw \@reptwfalse% |
| 5068 |
\newcommand{\@rep@tw}{}% |
| 5069 |
\newcommand{\fixtw}[1]{\renewcommand{\@rep@tw}{#1} \global\@reptwtrue}% |
| 5070 |
\newdimen \@rep@tw% |
| 5071 |
\newif \if@repom \@repomfalse% |
| 5072 |
\newcommand{\@rep@om}{}% |
| 5073 |
\newcommand{\fixom}[1]{\renewcommand{\@rep@om}{#1} \global\@repomtrue}% |
| 5074 |
\newdimen \@rep@om% |
| 5075 |
\newif \if@repem \@repemfalse% |
| 5076 |
\newcommand{\@rep@em}{}% |
| 5077 |
\newcommand{\fixem}[1]{\renewcommand{\@rep@em}{#1} \global\@repemtrue}% |
| 5078 |
\newdimen \@rep@em% |
| 5079 |
\newif \if@repcs \@repcsfalse% |
| 5080 |
\newcommand{\@rep@cs}{}% |
| 5081 |
\newcommand{\fixcs}[1]{\renewcommand{\@rep@cs}{#1} \global\@repcstrue}% |
| 5082 |
\newdimen \@rep@cs% |
| 5083 |
\newif \if@reptm \@reptmfalse% |
| 5084 |
\newcommand{\@rep@tm}{}% |
| 5085 |
\newcommand{\fixtm}[1]{\renewcommand{\@rep@tm}{#1} \global\@reptmtrue}% |
| 5086 |
\newdimen \@rep@tm% |
| 5087 |
\newif \if@rephh \@rephhfalse% |
| 5088 |
\newcommand{\@rep@hh}{}% |
| 5089 |
\newcommand{\fixhh}[1]{\renewcommand{\@rep@hh}{#1} \global\@rephhtrue}% |
| 5090 |
\newdimen \@rep@hh% |
| 5091 |
\newif \if@rephs \@rephsfalse% |
| 5092 |
\newcommand{\@rep@hs}{}% |
| 5093 |
\newcommand{\fixhs}[1]{\renewcommand{\@rep@hs}{#1} \global\@rephstrue}% |
| 5094 |
\newdimen \@rep@hs% |
| 5095 |
\newif \if@repfs \@repfsfalse% |
| 5096 |
\newcommand{\@rep@fs}{}% |
| 5097 |
\newcommand{\fixfs}[1]{\renewcommand{\@rep@fs}{#1} \global\@repfstrue}% |
| 5098 |
\newdimen \@rep@fs% |
| 5099 |
% |
| 5100 |
\def\@outputpage{% |
| 5101 |
\def\ifta{0}% |
| 5102 |
\txa{npind:\npind}% |
| 5103 |
\showdim{New page - before shipout}% |
| 5104 |
\begingroup% % the \endgroup is put in by \aftergroup |
| 5105 |
\let \protect \noexpand% |
| 5106 |
\@resetactivechars% |
| 5107 |
\global\let\@@if@newlist\if@newlist% |
| 5108 |
\global\@newlistfalse% |
| 5109 |
\@parboxrestore% |
| 5110 |
\txa{topmargin:\the\topmargin}% |
| 5111 |
\txa{Before shipout...}% |
| 5112 |
\showdim{New page - immediately before shipout}% |
| 5113 |
\shipout \vbox{%% |
| 5114 |
\set@typeset@protect% |
| 5115 |
\aftergroup \endgroup% |
| 5116 |
\aftergroup \set@typeset@protect% correct? or just restore by ending the group% |
| 5117 |
\if@specialpage% |
| 5118 |
\global\@specialpagefalse\@nameuse{ps@\@specialstyle}%% |
| 5119 |
\fi% |
| 5120 |
\if@twoside% |
| 5121 |
\ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot% |
| 5122 |
\let\@themargin\oddsidemargin% |
| 5123 |
\else \let\@thehead\@evenhead% |
| 5124 |
\let\@thefoot\@evenfoot \let\@themargin\evensidemargin% |
| 5125 |
\fi% |
| 5126 |
\fi% |
| 5127 |
\reset@font% |
| 5128 |
\normalsize% |
| 5129 |
\txa{Before normalsfcodes}% |
| 5130 |
\normalsfcodes% |
| 5131 |
\let\label\@gobble% |
| 5132 |
\let\index\@gobble% |
| 5133 |
\let\glossary\@gobble% |
| 5134 |
\baselineskip\z@skip \lineskip\z@skip \lineskiplimit\z@% |
| 5135 |
\@begindvi% |
| 5136 |
\vskip \topmargin% |
| 5137 |
\moveright\@themargin \vbox {%% |
| 5138 |
\setbox\@tempboxa \vbox to\headheight{%% |
| 5139 |
\vfil% |
| 5140 |
\color@hbox% |
| 5141 |
\normalcolor% |
| 5142 |
\hb@xt@\textwidth{\@thehead}%% |
| 5143 |
\color@endbox% |
| 5144 |
}% %% 22 Feb 87% |
| 5145 |
\dp\@tempboxa \z@% |
| 5146 |
\box\@tempboxa% |
| 5147 |
\vskip \headsep% |
| 5148 |
\box\@outputbox% |
| 5149 |
\baselineskip \footskip% |
| 5150 |
\color@hbox% |
| 5151 |
\normalcolor% |
| 5152 |
\hb@xt@\textwidth{\@thefoot}%% |
| 5153 |
\color@endbox% |
| 5154 |
}%% |
| 5155 |
}% |
| 5156 |
\txa{After shipout}% |
| 5157 |
\global\let\if@newlist\@@if@newlist% |
| 5158 |
\showdim{New page - before reset}% |
| 5159 |
\if@dim@reset% |
| 5160 |
\if@repth \global\textheight \@rep@th \global\@repthfalse \fi% |
| 5161 |
\fi% |
| 5162 |
\global \@colht \textheight% |
| 5163 |
\stepcounter{page}% |
| 5164 |
\let\firstmark\botmark% |
| 5165 |
\if@dim@reset% |
| 5166 |
\if@repth \global\textheight \@rep@th \global\@repthfalse \fi% |
| 5167 |
\if@reptw \global\textwidth \@rep@tw \global\@reptwfalse \fi% |
| 5168 |
\if@repom \global\oddsidemargin \@rep@om \global\@repomfalse \fi% |
| 5169 |
\if@repem \global\evensidemargin \@rep@em \global\@repemfalse \fi% |
| 5170 |
\if@repcs \global\columnsep \@rep@cs \global\@repcsfalse \fi% |
| 5171 |
\if@reptm \global\topmargin \@rep@tm \global\@reptmfalse \txa{Fixing tm} \fi% |
| 5172 |
\if@rephh \global\headheight \@rep@hh \global\@rephhfalse \fi% |
| 5173 |
\if@rephs \global\headsep \@rep@hs \global\@rephsfalse \fi% |
| 5174 |
\if@repfs \global\footskip \@rep@fs \global\@repfsfalse \fi% |
| 5175 |
\fi% |
| 5176 |
\showdim{New page - after reset}% |
| 5177 |
\def\ifta{0}% |
| 5178 |
\renewcommand{\headrulewidth}{\the\@hrw}% |
| 5179 |
\renewcommand{\footrulewidth}{\the\@frw}% |
| 5180 |
}% |
| 5181 |
\AtEndDocument{% |
| 5182 |
\ifthenelse{\boolean{@set@env}}% |
| 5183 |
{\@clear@box% |
| 5184 |
\pagestyle{empty}\thispagestyle{empty}% |
| 5185 |
\def\ifta{0}% |
| 5186 |
\showdim{Before changeing dimensions}% |
| 5187 |
\gdef\npind{A6}% |
| 5188 |
\setpage{11in}{8.5in}{-1in}{-1in}{0in}{-1in}{0in}{0in}{0in}% |
| 5189 |
\txa{Starting the call to makeenvfn}% |
| 5190 |
\makeenvfn% |
| 5191 |
\txa{After return from the call to makeenvfn}% |
| 5192 |
}{}% |
| 5193 |
\ifthenelse{\boolean{@use@envlab}}{\@make@big@env}{}% |
| 5194 |
}% |
| 5195 |
\AtBeginDocument{% |
| 5196 |
\def\ifta{0}% |
| 5197 |
\txa{AtBeginDocument...}% |
| 5198 |
\@nlfm@addr=0% |
| 5199 |
\ifthenelse{\boolean{@use@envlab}}% |
| 5200 |
{% |
| 5201 |
\IfFileExists{envlab.sty}% |
| 5202 |
{\makelabels}% |
| 5203 |
{\typeout{The option <useenvlab> was issued. File <envlab.sty> cannot be found.}% |
| 5204 |
\typeout{Option <useenvlab> is disabled. Please install envlab system.}% |
| 5205 |
\setboolean{@use@envlab}{false}}}{}% |
| 5206 |
{}% |
| 5207 |
\txa{At the very very end...}% |
| 5208 |
}% |
| 5209 |
\endinput% |
| 5210 |
% \end{macrocode} |
| 5211 |
% |
| 5212 |
% \begin{macrocode} |
| 5213 |
%</package> |
| 5214 |
% \end{macrocode} |
| 5215 |
|
| 5216 |
%%% Local Variables: |
| 5217 |
%%% mode: latex |
| 5218 |
%%% TeX-master: t |
| 5219 |
%%% End: |