summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/misc/beletter.cls
blob: 2158efddf9595e8b5e0c6b755489f57b21b265fb (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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