blob: 228e5b1e48cb340d90c735281609aa8a667bc21b (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
% Klassendatei für Privatbriefe
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{privat}
\RequirePackage{ifthen}
% Zwei Personen koennen sich beteiligen
\newboolean{max} \setboolean{max}{false}
\newboolean{verena} \setboolean{verena}{false}
\DeclareOption{max}{\setboolean{max}{true}}
\DeclareOption{verena}{\setboolean{verena}{true}}
\DeclareOption*
{\PassOptionsToClass{\CurrentOption}{letter}}
% Max schreibt häufiger -> Voreinstellung
\ExecuteOptions{max}
\ProcessOptions\relax
% Alle mögen A4-Papier und die deutsche Anpassung
\LoadClass[a4paper,12pt]{letter}
\RequirePackage{german}
\renewcommand\opening[1]{
\thispagestyle{firstpage}%
% Falzmarken
{\unitlength1cm\begin{picture}(0,0)
\put(-1.5,-6.45){\line(1,0){.5}}
\put(-1.5,-16.36){\line(1,0){.5}}
% Empfängerfeld auf richtige Höhe verschieben
\put(0,-2){\parbox[t][35mm][s]{\textwidth}
{\underline{\footnotesize\@returnaddress}
\vfil\raggedright \toname\\
\toaddress\vfil}}
\end{picture}}
\vspace{0pt plus.00006fil}
\rightline{\hfil\@location, den \datebox}\par
\ifthenelse{\equal{\refboxtext}{}}
{}{\showrefbox\par}
\vspace{2\parskip}
#1\par\nobreak}
\long\def\closing#1{\par\nobreak\vspace{\parskip}%
\stopbreaks
#1\par\vspace{3\parskip}
\ifthenelse{\equal{\fromsig}{}}
{}{\fromsig\par}
}
\newcommand{\showrefbox}
{\underline{Betrifft: \refboxtext}}
\newcommand{\refbox}[1]
{\renewcommand{\refboxtext}{#1}}
\renewcommand{\signature}[1]
{\renewcommand{\fromsig}{#1}}
\renewcommand{\date}[1]
{\renewcommand{\datebox}{#1}}
\newcommand{\street}[1]
{\renewcommand{\@street}{#1}}
\renewcommand{\location}[1]
{\renewcommand{\@location}{#1}}
\renewcommand{\telephone}[1]
{\renewcommand{\@telephone}{#1}}
\newcommand{\city}[1]
{\renewcommand{\@city}{#1}}
\renewcommand{\name}[1]
{\renewcommand{\fromname}{#1}}
\newcommand{\return}[1]
{\renewcommand{\@returnaddress}{#1}}
% Voreinstellungen
\ifthenelse{\boolean{verena}}
{\renewcommand{\fromname}{Verena Bauer}}
{\renewcommand{\fromname}{Max Bauer}}
\newcommand{\refboxtext}{}
\renewcommand{\fromsig}{}
\newcommand{\datebox}{\@date}
\newcommand{\@street}{Raubergasse 15}
\newcommand{\@telephone}{Tel. (0361) 88 04 34}
\newcommand{\@city}{A-8010 Graz}
\newcommand{\@location}{Graz}
\newcommand{\@returnaddress}
{\fromname\ \@street\ \@city}
\setlength{\headsep}{30pt}
\renewcommand{\@texttop}{}
\renewcommand{\thepage}{- \arabic{page}\ -}
\renewcommand{\ps@headings}{
\renewcommand{\@oddhead}
{\vbox to \textwidth{\footnotesize\it
\headtoname\ \toname\hfil
\@date\hfil \pagename\ \thepage\\
\vskip2pt\hrule height .5pt}}
\renewcommand{\@oddfoot}
{\footnotesize\fromname\hfil\@street\hfil
\@telephone\hfil\@city}}
\pagestyle{headings}
\renewcommand{\ps@firstpage}{
\setlength{\topmargin}{-57pt}
\setlength{\headheight}{52pt}
\ifthenelse{\boolean{max}}
{\renewcommand{\@oddhead}
{\parbox{\textwidth}
{\centering{\sc \fromname}\\
{\footnotesize \@street\\ \@city}}}}
{\renewcommand{\@oddhead}
{\parbox{\textwidth}
{{\sc \fromname}\\
{\small \@street\\ \@city\\ \@telephone}}}}
\renewcommand{\@oddfoot}{}
\renewcommand{\@evenhead}{}
\renewcommand{\@evenfoot}{}}
|