summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/newlfm/sfaxpage.tex
blob: 9f15c9692f7785126e697341ac0dcbbe7dbab496 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Remove this comment section before using
%
% This FAX page is printed by 1) printing the time stamp 2) setting lengths
% 3) 'to' section is printed.  Each item involves a test of the value, 
% and is printed if non-blank 4) 'from' section is printed.  Each item 
% involves a test of the value, and is printed if non-blank 5) possibly a
% message is printed.  
%
% To change this, please consider the current status of the FAX cover page,
% 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*{\faxpage}{%
  \newpage\c@page\@ne\interlinepenalty=200%
  \thispagestyle{empty}%                % Set page style
  \begin{center}%                       % Center section
    \framebox{\Huge{\@fax@cover@line}} \\% % FAX Cover Page (Default)
    \vspace*{.5in}%
    \Large{\@fax@page@count: \ref{totpage}} \\% Page count 
    \vspace*{.5in}%
    \Large{\timestamp} \\%              % Time of composition       
    \rule{\textwidth}{2pt}%
  \end{center}%
  \settowidth{\cmndlen}{\LARGE{\@hnto@phr:}}%
  \settowidth{\extrlen}{\LARGE{\@hnfr@phr:}}%
  \ifthenelse{\lengthtest{\cmndlen<\extrlen}}%
    {\setlength{\cmndlen}{\extrlen}}{}%
  \settowidth{\extrlen}{\LARGE{\@m@phr:}}%
  \ifthenelse{\lengthtest{\cmndlen<\extrlen}}%
    {\setlength{\cmndlen}{\extrlen}}{}%
  \setlength{\extrlen}{\the\textwidth-\the\cmndlen}%
  \begin{tabular}{p{\the\cmndlen}p{\the\extrlen}}%
  \LARGE{\@hnto@phr:} & %               % ``To'' section
    \parbox[t]{\extrlen}{\@name@to \strut \\ \@addr@to \strut%
      \ifempty{\@phn@to}{}{\\ \@phn@phr:\space\@phn@to \strut}%
      \ifempty{\@phnb@to}{}{\\ \@phn@phr:\space\@phnb@to \strut}%
      \ifempty{\@phnc@to}{}{\\ \@phn@phr:\space\@phnc@to \strut}%
      \ifempty{\@phnd@to}{}{\\ \@phn@phr:\space\@phnd@to \strut}%
      \ifempty{\@fax@to}{}{\\ \@fax@phr:\space\@fax@to \strut}} \\%
  \hline \vspace*{5pt}%
  \LARGE{\@hnfr@phr:} & \vspace*{5pt}%  % ``From'' section
    \parbox[t]{\extrlen}{\@name@fr \strut \\ \@addr@fr \strut %%
      \ifempty{\@phn@fr}{}{\\ \@phn@phr:\space\@phn@fr \strut}%
      \ifempty{\@phnb@fr}{}{\\ \@phn@phr:\space\@phnb@fr \strut}%
      \ifempty{\@phnc@fr}{}{\\ \@phn@phr:\space\@phnc@fr \strut}%
      \ifempty{\@phnd@fr}{}{\\ \@phn@phr:\space\@phnd@fr \strut}%
      \ifempty{\@fax@fr}{}{\\ \@fax@phr:\space\@fax@fr \strut}} \\%
  \hline%
  \ifempty{\@fax@mssg}{}{ \strut%       % FAX message section
    \LARGE{\@m@phr:} \strut &%
    \parbox[t]{\extrlen}{\strut \@fax@mssg} \strut \\ \hline}%
  \end{tabular}%
}%