| 1 |
% MEMO PSIZZL - memo macros |
| 2 |
% |
| 3 |
% \memodate{<date>} The default date is today's date, |
| 4 |
% but here's how you can change it. |
| 5 |
% |
| 6 |
% \memohead{<header for the memo>} This will be the header for the memo |
| 7 |
% the default is `\bf MEMO' |
| 8 |
% |
| 9 |
% \memoto{<people>} To whom the memo is addressed |
| 10 |
% |
| 11 |
% \memofrom{<someone>} Who it's from |
| 12 |
% |
| 13 |
% \memosubject{<subject>} The subject of the memo |
| 14 |
% |
| 15 |
% \memostyle{\largetype} Your choices about: |
| 16 |
% \singlesided\doublesided |
| 17 |
% \singlespace\doublespace |
| 18 |
% |
| 19 |
% \memo This specifies that the document is a memo |
| 20 |
% \begindocument Following this you put the text. |
| 21 |
% |
| 22 |
% <text> Enter your text here |
| 23 |
% |
| 24 |
% \enddocument This will end the memo |
| 25 |
% |
| 26 |
\def\memohead#1{% |
| 27 |
\def\m@mohead{{#1}}% |
| 28 |
}\memohead{\bf MEMO}% |
| 29 |
\def\memodate#1{% |
| 30 |
\def\m@modate{#1}% |
| 31 |
}\memodate{\d@te}% |
| 32 |
\def\memoto#1{% |
| 33 |
\def\m@moto{#1}% |
| 34 |
}\memoto{}% |
| 35 |
\def\memofrom#1{% |
| 36 |
\def\m@mofrom{#1}% |
| 37 |
}\memofrom{}% |
| 38 |
\def\memosubject#1{% |
| 39 |
\def\m@mosubject{#1}% |
| 40 |
}\memosubject{}% |
| 41 |
\def\memostyle#1{% |
| 42 |
\adddef\stylem@m{#1}% |
| 43 |
}% |
| 44 |
\def\stylem@m{% |
| 45 |
\singlesided\largetype\singlespace |
| 46 |
}% |
| 47 |
\newif\ifm@mo |
| 48 |
\def\memo{% |
| 49 |
\let\pred@c\prem@m\let\styled@c\stylem@m\let\titd@c\titm@m |
| 50 |
\let\frontd@c\frontm@m\let\endd@c\endm@m\m@motrue |
| 51 |
}% |
| 52 |
\def\p@genumbermemo{% |
| 53 |
\p@gebanner{\m@modate}{\m@mohead}{\p@genumber}% |
| 54 |
}% |
| 55 |
\def\prem@m{\beginbody}% |
| 56 |
\def\frontm@m{}% |
| 57 |
\def\endm@m{}% |
| 58 |
\def\beginmemo{\memo\begindocument}% |
| 59 |
\def\endmemo{\enddocument}% |
| 60 |
\def\titm@m{% |
| 61 |
\fr@nttrue |
| 62 |
\line{\m@mohead\hfill Date: \m@modate}% |
| 63 |
\vskip\@nenhalf\normalbaselineskip |
| 64 |
\vbox{\halign{\parindent\z@ |
| 65 |
\cp##\hfil\quad&\vtop{\hsize.8\hsize\noindent##}\hfil\cr |
| 66 |
To:&\m@moto\cr |
| 67 |
From:&\m@mofrom\cr |
| 68 |
Subject:&\m@mosubject\cr |
| 69 |
} }% |
| 70 |
\par \vskip 3.0ex \hrule height .8pt\vskip 3.0ex |
| 71 |
}% |
| 72 |
\def\endm@m{% |
| 73 |
\par\vfil\@ncl\c@pies\vfil\eject\gdef\c@pies{}\gdef\@ncl{}% |
| 74 |
}% |