summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/newlfm/smemosec.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-09 00:49:07 +0000
committerKarl Berry <karl@freefriends.org>2006-01-09 00:49:07 +0000
commit007f67a693e4d031fd3d792df8e4d5f43e2cb2e7 (patch)
tree90d17e00e572ecb1e24764b6f29c80e098b08d29 /Master/texmf-dist/doc/latex/newlfm/smemosec.tex
parent950209b26f70aa87ed07c54f82a95b6f03b7c3a0 (diff)
doc/latex
git-svn-id: svn://tug.org/texlive/trunk@84 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/newlfm/smemosec.tex')
-rw-r--r--Master/texmf-dist/doc/latex/newlfm/smemosec.tex63
1 files changed, 63 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/newlfm/smemosec.tex b/Master/texmf-dist/doc/latex/newlfm/smemosec.tex
new file mode 100644
index 00000000000..aac488b8954
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/newlfm/smemosec.tex
@@ -0,0 +1,63 @@
+% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Remove this comment section before using
+%
+% This memo block is printed by 1) setting lengths
+% 2) 'to' section is printed. Each item involves a test of the value,
+% and is printed if non-blank 3) 'from' section is printed. Each item
+% involves a test of the value, and is printed if non-blank 4) possibly a
+% message is printed.
+%
+% To change this, please consider the current status of the memo status,
+% and then make alterations as desired. To implement these changes, save
+% this file after alteration as faxpage.tex. This will direct newlfm.cls to
+% read in the file.
+% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\renewcommand*{\memosec}{%
+ \renewcommand{\ifta}{0}% % Set up spaces
+ \noindent\ignorespaces%
+ \newlength{\pa}\newlength{\pb}%
+ \newlength{\pc}\newlength{\pd}%
+ \settowidth{\pa}{{\large\bf \@hnfr@phr:\hspace*{1.25em}}}%
+ \setlength{\pb}{\textwidth-\pa-.1em}%
+ \settowidth{\pc}{\@phn@phr:\hspace*{2em}}%
+ \settowidth{\pd}{\@fax@phr:\hspace*{2em}}%
+ \ifthenelse{\lengthtest{\pc<\pd}}{\setlength{\pc}{\the\pd}}{}%
+ \settowidth{\pd}{\@pager@phr:\hspace*{2em}}
+ \ifthenelse{\lengthtest{\pc<\pd}}{\setlength{\pc}{\the\pd}}{}%
+ \settowidth{\pd}{\@email@phr:\hspace*{2em}}
+ \ifthenelse{\lengthtest{\pc<\pd}}{\setlength{\pc}{\the\pd}}{}%
+ { \Large \vspace*{-1em}\setlength{\tabcolsep}{0pt}%
+ \setboolean{@memo@a}{false}%
+ \begin{flushleft}% % Set memo block up as flushleft tabular
+ \begin{tabular}{p{\the\pa}l}
+ \ifthenelse{\boolean{@memo@g}}{\setboolean{@memo@a}{true}%
+ \strut {\bf \@hnto@phr:} & \@name@to% % ``To'' section
+ \ifthenelse{\boolean{@dt@p}}{\hspace{\fill}\@xdate}{} \strut \\%
+ \ifthenelse{\boolean{@memo@b}}{\strut &%
+ \parbox[t]{\the\pb}{\@addr@to \strut} \strut \\}{}%
+ \ifthenelse{\boolean{@memo@c}}{\fixphr{\@phn@phr:}{\@phn@to}}{}%
+ \ifthenelse{\boolean{@memo@d}}{\fixphr{\@fax@phr:}{\@fax@to}}{}%
+ \ifthenelse{\boolean{@memo@n}}{\fixphr{\@pager@phr:}{\@pager@to}}{}%
+ \ifthenelse{\boolean{@memo@k}}{\fixphr{\@email@phr:}{\@email@to}}{}%
+ }{}%
+ \ifthenelse{\boolean{@memo@e}}{\setboolean{@memo@a}{true}%
+ \strut {\bf \@hnfr@phr:} & {\@name@fr} \strut \\% % ``From'' section
+ \ifthenelse{\boolean{@memo@h}}{\strut &%
+ \parbox[t]{\the\pb}{\@addr@fr \strut} \strut \\}{}%
+ \ifthenelse{\boolean{@memo@i}}{\fixphr{\@phn@phr:}{\@phn@fr}}{}%
+ \ifthenelse{\boolean{@memo@j}}{\fixphr{\@fax@phr:}{\@fax@fr}}{}%
+ \ifthenelse{\boolean{@memo@m}}{\fixphr{\@pager@phr:}{\@pager@fr}}{}%
+ \ifthenelse{\boolean{@memo@l}}{\fixphr{\@email@phr:}{\@email@fr}}{}%
+ }{}%
+ \ifthenelse{\boolean{@memo@f}}{\setboolean{@memo@a}{true}%
+ \strut {\bf \@re@phr:} & {\@re@line} \\%
+ }{}%
+ \ifthenelse{\boolean{@memo@a}}{\hline}{}%
+ \end{tabular}%
+ \end{flushleft}%
+ }%
+ \vspace*{\@post@memo@sp}\noindent\par%
+}%
+
+
+