diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-12 23:58:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-12 23:58:22 +0000 |
commit | c6b827c6f5aab4beff40b7bef80e869c6815d826 (patch) | |
tree | 1ed61d883ba88897fbf68a71547b4a7286e57368 /Master/texmf-dist/tex/latex/ltxmisc/beletter.cls | |
parent | 7f9543ffaf295484b99beae71350a519562df613 (diff) |
ltxmisc
git-svn-id: svn://tug.org/texlive/trunk@1056 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ltxmisc/beletter.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/ltxmisc/beletter.cls | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ltxmisc/beletter.cls b/Master/texmf-dist/tex/latex/ltxmisc/beletter.cls new file mode 100644 index 00000000000..2158efddf95 --- /dev/null +++ b/Master/texmf-dist/tex/latex/ltxmisc/beletter.cls @@ -0,0 +1,58 @@ +%%%%%%%%%% beletter.cls %%%%%%%%%% +% This file is public domain +% This code is unsupported, and comes with no warranty. +% This class was written by James Kilfiger and Frank Lenaerts, to meet +% the specifications for formatting Belgium letters recommended by +% Frank's wife. +% It can be used in place of the standard LaTeX class +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{beletter}[1999/06/05 Belgium Letter Class] +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{letter}} +\ProcessOptions\relax +\LoadClass{letter} +% changed the opening +\renewcommand*{\opening}[1]{% + \thispagestyle{firstpage}% + \ifx\@empty\fromaddress + \else %if there is a from address + \noindent\begin{tabular}[t]{@{}l@{}}% + \fromaddress + \end{tabular}\par% + \fi + \noindent\begin{tabular}[t]{@{}l@{}}% + \toname\\ \toaddress + \end{tabular}\par + {\raggedleft\@date\par}% Put the date on a line of it's own +% \@date\par% + \vspace{2\parskip}% + #1\par\nobreak + \vspace{2\parskip}% +} + +%%% Change these!!, or let babel change them for you. +\renewcommand*{\ccname}{cc} +\renewcommand*{\enclname}{} +\renewcommand*{\pagename}{} +\renewcommand*{\headtoname}{} + +% changed the closing +\renewcommand{\closing}[1]{\par\nobreak\vspace{\parskip}% + \stopbreaks + \vspace{2\parskip}% + \vspace{2\parskip}% + \noindent +% \ifx\@empty\fromaddress\else +% \hspace*{\longindentation}\fi + \parbox{\indentedwidth}{\raggedright + \ignorespaces #1\\[6\medskipamount]% + \ifx\@empty\fromsig + \fromname + \else \fromsig \fi\strut}% + \par} + +\renewcommand*{\cc}[1]{% + \par\noindent + \parbox[t]{\textwidth}{% + \@hangfrom{\normalfont\ccname}% + \ignorespaces #1\strut}\par} +\endinput |