[texhax] Using latex to prepare memorandum

tom sgouros tomfool at as220.org
Tue Oct 27 20:52:14 CET 2009


This is nothing to write home about, but it's serviceable, and perhaps
you can use it to make something worthwhile.

 -tom


Gary Hoffman <glhoffman at cox.net> wrote:

> Thanks. At least it's feasible. Which letter format did you use? Not
> KOMA-Script by any chance?
> 
> Gary
> 
> On Tue, 2009-10-27 at 14:54 -0400, tom sgouros wrote:
> > I've hacked up the letter class in the past to make a nice memo.  But it
> > wasn't really anything worth sharing.
> > 
> >  -tom
> > 
> 

%% Begin tsmemo.cls
\typeout{Tom's memo class -- Tom Sgouros - 2007}
\NeedsTeXFormat{LaTeX2e}
\newif\if at pagenos\@pagenostrue
\DeclareOption{nopagenos}{\message{Omitting page numbers}\@pagenosfalse}
\ExecuteOptions{letterpaper,12pt,oneside,onecolumn,final}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{letter}}
\ProcessOptions\relax
\LoadClass{letter}
\RequirePackage[margin=1in,lmargin=1.25in]{geometry}
\renewcommand{\rmdefault}{ptm}
\renewcommand{\sfdefault}{phv}
\renewcommand{\ttdefault}{cmtt}
\newcommand{\toaddress}[1]{\def\@toaddress{#1}}
\newcommand{\subject}[1]{\def\@subject{#1}}
\renewcommand{\opening}[1]{%
{\raggedright\hspace{-1ex}\begin{tabular}{ll@{}} \ignorespaces%
    To: & \@toaddress \\%
    From: &  Tom Sgouros \\%
    Date: & \@date \\%
    Re: & \@subject \\%
  \end{tabular}\par}%
  \vspace{2\parskip}%
  #1\par\nobreak}
\endinput
%% \documentclass{tsmemo}
%% \begin{document}
%% \toaddress{Gary Hoffman}
%% \subject{memo class}
%% \begin{letter}{Hi there}
%% \opening
%% Hello.
%% \end{letter}
%% \end{document}
%%
%% End of file `tsmemo.cls'.



-- 
 --------------------------------------------------------
 Check out "Ten Things You Don't Know About Rhode Island"
     http://whatcheer.net      http://sgouros.com
 


More information about the texhax mailing list