summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/newlfm/smemosec.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/newlfm/smemosec.tex
Initial commit
Diffstat (limited to 'macros/latex/contrib/newlfm/smemosec.tex')
-rw-r--r--macros/latex/contrib/newlfm/smemosec.tex63
1 files changed, 63 insertions, 0 deletions
diff --git a/macros/latex/contrib/newlfm/smemosec.tex b/macros/latex/contrib/newlfm/smemosec.tex
new file mode 100644
index 0000000000..aac488b895
--- /dev/null
+++ b/macros/latex/contrib/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%
+}%
+
+
+