Article View: comp.text.tex
Article #2710Re: a "memo" document style
From: Robin Fairbairns
Date: Tue, 15 Sep 1992 09:07
Date: Tue, 15 Sep 1992 09:07
73 lines
3250 bytes
3250 bytes
In article <1992Sep14.213451.5948@donner.SanDiego.NCR.COM>,
ewu@.SanDiego.NCR.COM (Elsie Wu) writes:
|> I am looking for a "memo" document style which has the following format:
|>
|> Company/School Logo
|>
|> Date: <Today's date>
|> To:
|> Location:
|>
|> From:
|> Location:
|> Telephone:
|>
|> Subject:
|>
|> The memo text begins here...
|> ...
|> ...
|> ...
|>
|> I know about the \letter style, but that's not what I am looking for. I
|> would appreciate any style file that does something similar to the format
|> above.
Elsie's Reply-To: in her posting is obviously a joke, so (with marked
laack of invention) I'm posting the following basis for what she
wants. I'm (mostly) responsible for it, though a couple of the ideas
came from other people at Laser-Scan (which I've now been made
redundant from).
========================================================================
% Memo.sty - by various authors at Laser-Scan
% Last edited, 15 Sep 1992, Robin Fairbairns (after leaving Laser-Scan!)
%
% Usage: \documentstyle[...,memo,...]{article}
%
% \begin{document}
% \memo ....
% <text of memo>
% \end{document}
%
% Format of \memo call:
% \memo{<to>}[<cc>]{<From>}{<Subject>}{<Date>}
% \memo*{ ...as above... }
%
% The unstarred form leaves space at the top of the page, which is not
% to everyone's taste: so we have the starred form. As implied above,
% the [<cc>] is optional.
%
% a jiffy memo format, derived from age-old TeX stuff
\font\title@font=cmbx5 scaled 2986 % expanded boldface font for title line
% NB this is \magstep6, which doesn't exist!
\def\memo@title#1{#1\centerline{\title@font MEMORANDUM}\vspace{1cm}%
\memo@body}
\def\memo@headline#1#2#3{\hbox{\hbox to 2.54001cm{\bf #1\hfil}#2}\vskip#3cm}
\def\memo{\@ifstar{\memo@title{}}{\memo@title{\vspace*{1cm}}}}
\def\memo@body#1{
\@ifnextchar[{\memo@cc{#1}}{\memo@nocc{#1}}}
\def\memo@nocc#1#2#3#4{ \memo@headline{To:}{#1}{0.2}
\memo@headline{From:}{#2}{0.2}
\memo@headline{Subject:}{#3}{0.2}
\memo@headline{Date:}{#4}{0.75}\hrule\vskip0.5cm}
\def\memo@cc#1[#2]#3#4#5{ \memo@headline{To:}{#1}{0.2}
\memo@headline{cc:}{#2}{0.2}
\memo@headline{From:}{#3}{0.2}
\memo@headline{Subject:}{#4}{0.2}
\memo@headline{Date:}{#5}{0.75}\hrule\vskip0.5cm}
--
Robin (dump Brian Kay) Fairbairns rf@cl.cam.ac.uk
U of Cambridge Computer Lab, Pembroke St, Cambridge CB2 3QG, UK
Technical Details
Message-ID:
<1992Sep15.090730.16584@infodev.cam.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!pipex!warwick!pavo.csi.cam.ac.uk!cam-cl!rfReferences:
<1992Sep14.213451.5948@donner.SanDiego.NCR.COM>Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!warwick!pavo.csi.cam.ac.uk!cam-cl!rf From: rf@cl.cam.ac.uk (Robin Fairbairns) Subject: Re: a "memo" document style Message-ID: <1992Sep15.090730.16584@infodev.cam.ac.uk> Sender: news@infodev.cam.ac.uk (USENET news) Nntp-Posting-Host: ely.cl.cam.ac.uk Reply-To: rf@cl.cam.ac.uk (Robin Fairbairns) Organization: U of Cambridge, England References: <1992Sep14.213451.5948@donner.SanDiego.NCR.COM> Date: Tue, 15 Sep 1992 09:07:30 GMT Lines: 73