summaryrefslogtreecommitdiff
path: root/macros/plain/contrib/misc/memo.tex
blob: dcdcc622f337bfc7611e3b126531a72e210734a0 (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
%
% Memo -- Generate a memo banner
%
% Use \memodept{ text } to define the department text.
% Use \memocirc{ text } to define the to field.
% Use \memodate{ text } to define the date the memo will be sent (default is
%         the current date that TeX processes the file).
% Use \memofrom{ text } to define the from field.
% Use \memophone{ text } to define the phone number of the sender.
% Use \memomail{ text } to define the mail code of the sender.
% Use \memosubj{ text } to define the subject of the memo.
%
% Use \memohdr to print the memo banner once the fields above have been defined
%
\nopagenumbers
\def\today{\ifcase\month\or January\or February\or March\or April\or
    May\or June\or July\or August\or September\or October\or November\or
    December\fi\space\number\day, \number\year}
\def\memotwobx#1#2{\line{{To}\hskip 10pt #1\hfill{Date}\hskip 10pt #2}}
\def\memothrbx#1#2#3{\line{{From}\hskip 10pt #1\hfill\hfill\hfill
    {Extension}\hskip 10pt #2\hfill{Mail Code}\hskip 10pt #3}}
\def\memoltbx#1{\line{{Subject}\hskip 10pt #1\hfill}}
\def\memoya{Chemistry}          \def\memoyb{You}
\def\memoyc{\today}             \def\memoyd{Me}
\def\memoye{6532}               \def\memoyf{Misc.}
\def\memoyg{127-72}
\def\memodept#1{\def\memoya{#1}}\def\memocirc#1{\def\memoyb{#1}}
\def\memodate#1{\def\memoyc{#1}}\def\memofrom#1{\def\memoyd{#1}}
\def\memophone#1{\def\memoye{#1}}\def\memosubj#1{\def\memoyf{#1}}
\def\memomail#1{\def\memoyg{#1}}
\font\fiverm=ambx5                  % Change to CMBX5 if you use new TeX 2.0
\def\memohdr{\centerline{\fiverm interoffice memorandum}\par
     \null\par
     \centerline{\bf CALIFORNIA INSTITUTE OF TECHNOLOGY} % Change this line
     \centerline{\bf {\memoya}}
     \null\par
     \memotwobx{\memoyb}{\memoyc}
     \memothrbx{\memoyd}{\memoye}{\memoyg}
     \memoltbx{\memoyf}
     \vskip 10pt}