Debian Codegraph @

texmf-dist/doc/latex/newlfm/smemosec.tex

raw
1 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 % Remove this comment section before using
3 %
4 % This memo block is printed by 1) setting lengths
5 % 2) 'to' section is printed. Each item involves a test of the value,
6 % and is printed if non-blank 3) 'from' section is printed. Each item
7 % involves a test of the value, and is printed if non-blank 4) possibly a
8 % message is printed.
9 %
10 % To change this, please consider the current status of the memo status,
11 % and then make alterations as desired. To implement these changes, save
12 % this file after alteration as faxpage.tex. This will direct newlfm.cls to
13 % read in the file.
14 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15 \renewcommand*{\memosec}{%
16 \renewcommand{\ifta}{0}% % Set up spaces
17 \noindent\ignorespaces%
18 \newlength{\pa}\newlength{\pb}%
19 \newlength{\pc}\newlength{\pd}%
20 \settowidth{\pa}{{\large\bf \@hnfr@phr:\hspace*{1.25em}}}%
21 \setlength{\pb}{\textwidth-\pa-.1em}%
22 \settowidth{\pc}{\@phn@phr:\hspace*{2em}}%
23 \settowidth{\pd}{\@fax@phr:\hspace*{2em}}%
24 \ifthenelse{\lengthtest{\pc<\pd}}{\setlength{\pc}{\the\pd}}{}%
25 \settowidth{\pd}{\@pager@phr:\hspace*{2em}}
26 \ifthenelse{\lengthtest{\pc<\pd}}{\setlength{\pc}{\the\pd}}{}%
27 \settowidth{\pd}{\@email@phr:\hspace*{2em}}
28 \ifthenelse{\lengthtest{\pc<\pd}}{\setlength{\pc}{\the\pd}}{}%
29 { \Large \vspace*{-1em}\setlength{\tabcolsep}{0pt}%
30 \setboolean{@memo@a}{false}%
31 \begin{flushleft}% % Set memo block up as flushleft tabular
32 \begin{tabular}{p{\the\pa}l}
33 \ifthenelse{\boolean{@memo@g}}{\setboolean{@memo@a}{true}%
34 \strut {\bf \@hnto@phr:} & \@name@to% % ``To'' section
35 \ifthenelse{\boolean{@dt@p}}{\hspace{\fill}\@xdate}{} \strut \\%
36 \ifthenelse{\boolean{@memo@b}}{\strut &%
37 \parbox[t]{\the\pb}{\@addr@to \strut} \strut \\}{}%
38 \ifthenelse{\boolean{@memo@c}}{\fixphr{\@phn@phr:}{\@phn@to}}{}%
39 \ifthenelse{\boolean{@memo@d}}{\fixphr{\@fax@phr:}{\@fax@to}}{}%
40 \ifthenelse{\boolean{@memo@n}}{\fixphr{\@pager@phr:}{\@pager@to}}{}%
41 \ifthenelse{\boolean{@memo@k}}{\fixphr{\@email@phr:}{\@email@to}}{}%
42 }{}%
43 \ifthenelse{\boolean{@memo@e}}{\setboolean{@memo@a}{true}%
44 \strut {\bf \@hnfr@phr:} & {\@name@fr} \strut \\% % ``From'' section
45 \ifthenelse{\boolean{@memo@h}}{\strut &%
46 \parbox[t]{\the\pb}{\@addr@fr \strut} \strut \\}{}%
47 \ifthenelse{\boolean{@memo@i}}{\fixphr{\@phn@phr:}{\@phn@fr}}{}%
48 \ifthenelse{\boolean{@memo@j}}{\fixphr{\@fax@phr:}{\@fax@fr}}{}%
49 \ifthenelse{\boolean{@memo@m}}{\fixphr{\@pager@phr:}{\@pager@fr}}{}%
50 \ifthenelse{\boolean{@memo@l}}{\fixphr{\@email@phr:}{\@email@fr}}{}%
51 }{}%
52 \ifthenelse{\boolean{@memo@f}}{\setboolean{@memo@a}{true}%
53 \strut {\bf \@re@phr:} & {\@re@line} \\%
54 }{}%
55 \ifthenelse{\boolean{@memo@a}}{\hline}{}%
56 \end{tabular}%
57 \end{flushleft}%
58 }%
59 \vspace*{\@post@memo@sp}\noindent\par%
60 }%
61
62
63