summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/akletter/akletter.cfg
blob: aa6580c29dc5179bf4f53c46be4ca06e4953efbb (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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
\makeatletter
%% This is myletter.cfg
%%
%% You should modify this file to correspond to
%% the site where it is used.
%% It may be a good idea to input this file into the
%% the personal configuration file.
%% Thus only names have to be redefined, the official
%% letterhead is kept in this file and changes for everyone
%% when the masterfile is changed.
%%
%% You may include logos and other graphic-material into
%% your letterhead:
%%
%%\RequirePackage[dvips]{graphics}

%% You may redefine the following variables
%%

%\renewcommand*{\yourrefname}   {Ihr Zeichen:}
%\renewcommand*{\yourmailname}  {Ihr Schreiben vom:}
%\renewcommand*{\myrefname}     {Unser Zeichen:}
%\renewcommand*{\mymailname}    {Unser Schreiben vom:}
%\renewcommand*{\customername}  {Kundennummer }
%\renewcommand*{\invoicename}   {Rechnungsnummer }
%\renewcommand*{\subjectname}   {}  %{Betr.}
%\renewcommand*{\ccname}        {Kopien an:}
%\renewcommand*{\enclname}      {Anlagen:}
%\renewcommand*{\headtoname}    {An}
%\renewcommand*{\datename}      {Datum}
%\renewcommand*{\pagename}      {Seite}
%\renewcommand*{\telephonename} {Telefon}
%\renewcommand*{\telefaxname}   {FAX}

% This may be neccessary for babel:
 
% \let\savedcaptions\captionsgerman
% \def\captionsgerman{\savedcaptions
%    \renewcommand*{\myrefname}	{Mein Zeichen:}
%    }


%%% Top of first page: left
\sbox{\FIRM}
   {\parbox[t]{\leftfield}
   {\bfseries\fontsize{17.28}{22pt}\selectfont%
    Mein Name\hfill}}

%%% Top of every other page
\sbox{\firm}
   {\fontsize{10}{12pt}\selectfont\normalfont
    Mein Name}

%% The normal page-layout for the following page does not contain a 
%% footer. In fact the layout is rather primitive. So if you want to
%% include some fancy text, your corporate logo or whatever, you have
%% to redefine the pagestyle. You may have to adjust the textheight if
%% the footer becomes too large. Of course you can use fancyhdr or
%% scrpage if you need a more powerful tool.

% \if@twoside % Twoside definition
%   \def\ps@headings{%
%       \def\@oddfoot{\hfil Text on the odd page}
% 	  \def\@evenfoot{Text on the even page\hfil}
%       \def\@oddhead{\usebox{\firm}
%          \headfont\hfil\@date\hfil\pagename\ \pnumfont\thepage}%
%       \let\@evenhead\@oddhead}
% \else % Oneside definition
%   \def\ps@headings{%
%       \def\@oddfoot{\hfil Text for one-side layout\hfill}
%       \def\@oddhead{\usebox{\firm}
%          \headfont\hfil\@date\hfil\pagename\ \pnumfont\thepage}}
% \fi

	
%%% Top of first page: right
\sbox{\firmaddress}
% Use either Text:
   {\parbox[t]{\rightfield}{%
    \fontsize{9}{10pt}\selectfont\normalfont
    Meine Stra{\ss}e 1\\ 12345 Meindorf}}
% or graphic:
%{\includegraphics{ourlogo}}

%% and remember to adjust FIRM and firmaddress:

%%% Top of first page: left + right
%%% You may want to adjust the raisebox
\sbox{\FIRMHEAD}
   {\usebox{\FIRM}\raisebox{3mm}{\usebox{\firmaddress}}}
  
%%% Return address
%%% one line version
\sbox{\firmreturn}
   {\underline{\fontsize{7}{8pt}\selectfont
   \hskip5mm Mein Name \textperiodcentered Meine Stra{\ss}e 1
   \textperiodcentered D--12345 Meindorf\hskip5mm}}

%%% two line version
%\sbox{\firmreturn}
%   {\underline{
%      \slshape\fontsize{7}{8pt}\selectfont
%      \hskip3mm\parbox{65mm}
%      {\makebox[65mm][c]
%         {Fachschaft -- Maschinenbau \textperiodcentered
%          \mbox{\raise .75ex \hbox{c}\kern -.15em /\kern -.125em
%              \smash{\lower .3ex \hbox{o}}}
%               AStA TU Braunschweig}
%       \makebox[65mm][c]
%          {Katharinenstra{\ss}e 1 \textperiodcentered D--38106 Braunschweig}}
%   \hskip3mm}}

%%% Firstpage footer
%%% The code should be controlled by @banklo
\sbox{\firmfoot}
   {\fontsize{9}{11pt}\selectfont
%%% The following line may look nice in a FAX.CFG :-)
%%% If you have a bad telephone-line try snail-mail!\\
     \if@banklo
       \ifnum\language = \l@german
	  Bankverbindung:
	  \hspace{5mm}
	  \parbox[t]{\rightfield}{\raggedright
	  Undeutsche Landesbank Frankfurt,
	  BLZ~123\,456\,78, Konto~1\,111\,007\\}%
	  \hspace{5mm}
	  \parbox[t]{\rightfield}{\raggedright
	  Die Sparkasse Meindorf,
	  BLZ~007\,123\,10, Konto~08\,15\\}
       \fi
     \fi}

%%% Text displayed below the header on the right side
%%% This should be controlled by @bankhi
%%% This is the only place that will be re-evaluated for
%%% every letter! Everything that changes for different
%%% letters (in the same document) must go either here
%%% or in the ref-line.
\newcommand{\rightbox}%
    {\parbox[t]{\rightfield}%
    {\fontsize{9}{11pt}\selectfont
     \raggedright
     \ifx\fromname\@empty
     \else
       \ifnum \language = \l@german
          Sachbearbeiter:
       \fi
          \fromname\\
     \fi
     \ifx\telephonenum\@empty
         \ifnum \language = \l@german
           \telephonename: 040 / 44\,17\,77
         \else
           \telephonename: 49--40--44\,17\,77
         \fi
     \else
         \telephonename: \telephonenum
     \fi\\[1.5ex]
     \ifx\telefaxnum\@empty
         \ifnum \language = \l@german
           \telefaxname: 040 / 44\,17\,77
         \else
           \telefaxname: 49--40--44\,17\,77
         \fi
     \else
         \telefaxname: \telefaxnum
     \fi\\[1.5ex]
     \ifx\@email\@empty
         e-mail: Mein-Name@ insert.your.domain.here
     \else
         e-mail: \@email
     \fi\\[1.5ex]
     \if@bankhi
       \ifnum \language = \l@german
	  Bankverbindung:\\[1ex]
	  Undeutsche Landesbank Frankfurt,
	  BLZ~123\,456\,78, Konto~1\,111\,007\\[.5ex]
	  Die Sparkasse L\"uneburg,
	  BLZ~007\,123\,10, Konto~08\,15 \\[.5ex]
       \fi
     \fi


     %% Finally fixed it!
     %% If you want to have the date here, set the
     %% rightdate options.
     %% (With a big excuse to Markus and many others, who
     %% had to wait that long)
     \if@rightdate
       \vspace{0.5ex}
       \normalsize\@date
     \fi
     }}


%% The labels defined in myletter.cls are what my printer likes:
%% Onecolumn, 100mm * 50mm, 3mm separation.
%% If you have different lables edit here:

%\renewcommand*{\startlabels}{\labelcount\z@
%   \pagestyle{empty}
%   \let\@texttop\relax
%   \setlength\parsep {0\p@} 
%% The margins are calculated from the 1in,1in point,
%% thus negative values if the margins schould be smaller
%   \topmargin -60\p@
%   \headsep \z@
%   \oddsidemargin -35\p@
%   \evensidemargin -35\p@
%   \textheight 10in
%   \@colht\textheight  \@colroom\textheight \vsize\textheight
%   \textwidth 550\p@
% You may have to increase columnsep if you use twocolumn labels
% This is what letter.cls uses.
%   \columnsep 26\p@
% This does almost nothing since there is an explicit fontsize-command 
% in the text written.
%   \ifcase \@ptsize\relax
%     \normalsize
%   \or
%     \small
%   \or
%     \footnotesize
%   \fi
%   \baselineskip \z@
%   \lineskip     \z@
%   \boxmaxdepth  \z@
%   \parindent    \z@
% This is obvious, isn't it?
%   \twocolumn
%   \relax}

%% This is how the label printed will look like.
%% Note that specialmail will be written to the .aux-file
%% when the letter is processed. The width used here is
%% what letter.cls uses. 

%\renewcommand*{\mlabel}[2]{%
%  \parbox[b][2in][c]{3in}{%
%     \strut\ignorespaces\usebox{\firmreturn}\\
%     \fontsize{12}{14pt}\selectfont
%     \parbox[t][1.2in][c]{3in}{#2}
%   }\par%
%}

\makeatother
\endinput