| 1 |
\documentclass[a4paper]{article} |
| 2 |
\usepackage{german} |
| 3 |
\setlength{\unitlength}{1mm} |
| 4 |
|
| 5 |
\title{Akletter.cls\\Manual} |
| 6 |
\author{Axel Kielhorn\\[email protected]} |
| 7 |
|
| 8 |
\begin{document} |
| 9 |
\maketitle |
| 10 |
|
| 11 |
\section{Preface} |
| 12 |
|
| 13 |
In the beginning there was Lindner-\TeX\ for the Atari St computer. It |
| 14 |
came with a letter style called \verb+liletter.sty+. I adapted the |
| 15 |
style to my liking and saw that everything was good. |
| 16 |
|
| 17 |
On the second day, my roommate came, saw my letters and wanted a |
| 18 |
similar style for his correspondence, thus a second letter style was |
| 19 |
created and everything was good. |
| 20 |
|
| 21 |
On the third day, I had to write an official letter for the students |
| 22 |
group I was working with and I had to create a third letter style. |
| 23 |
And I said onto myself ``Well, that's a fine mess you got yourself |
| 24 |
into.'' |
| 25 |
|
| 26 |
And than came the June of 1994 and They released \LaTeXe. I realized |
| 27 |
immediately that I had to adjust my letter styles. And I decided to |
| 28 |
separate the class from the user defined settings and put the class |
| 29 |
into a \verb+.cls+ file and the user defined settings into a |
| 30 |
\verb+.cfg+ file. And again everything was good. |
| 31 |
|
| 32 |
After someone asked in \verb+de.comp.text.tex+ for a letter class |
| 33 |
suitable for ISO A4 paper that will work with envelopes with windows, I |
| 34 |
said onto my letter class ``Go out into the world and show the people |
| 35 |
out there how to print letters with \LaTeX.'' And my letter class was |
| 36 |
distributed throughout the internet to every user who has to print |
| 37 |
letters on A4 paper. And it was not only used in the german speaking |
| 38 |
countries but spread even to Norway and Italy where the german tongue |
| 39 |
was not well known, except in some holiday centers where you find |
| 40 |
few \LaTeX\ users. |
| 41 |
|
| 42 |
And a cry came onto me ``Dear Axel, who has made \verb+akletter.cls+, |
| 43 |
can you give us, who do not read nor speak german, an english version |
| 44 |
of the documentation to your class?'' And I said onto me ``Oh bugger, |
| 45 |
that will be a lot of work, but it is raining outside and I have |
| 46 |
nothing better to do, so why not?'' And this is the story of this |
| 47 |
document. If you don't like it try \verb+scrlettr.cls+ from the |
| 48 |
Koma-Script packages which is a very nice letter class and even |
| 49 |
shares some code with \verb+akletter.cls+. |
| 50 |
|
| 51 |
\section{What does \texttt{akletter.cls} do?} |
| 52 |
|
| 53 |
\texttt{akletter} implements a fixed layout for the first page of a |
| 54 |
letter. This layout consists of boxes at fixed positions with a more |
| 55 |
or less variable contents. This picture will give you an impression |
| 56 |
about how the layout looks: |
| 57 |
|
| 58 |
\begin{picture}(100.00,140.00) |
| 59 |
\put(5.00,5.00){\framebox(90.00,130.00){}} |
| 60 |
\put(5.00,120.00){\framebox(90.00,15.00){}} |
| 61 |
\put(70.00,135.00){\framebox(0.00,0.00){}} |
| 62 |
\put(65.00,120.00){\framebox(30.00,15.00){}} |
| 63 |
\put(65.00,85.00){\framebox(30.00,35.00){}} |
| 64 |
\put(5.00,85.00){\framebox(45.00,25.00){}} |
| 65 |
\put(5.00,80.00){\framebox(90.00,5.00){}} |
| 66 |
\put(5.00,75.00){\framebox(60.00,5.00){}} |
| 67 |
\put(65.00,75.00){\framebox(30.00,5.00){}} |
| 68 |
\put(5.00,110.00){\framebox(45.00,5.00){}} |
| 69 |
\put(5.00,65.00){\framebox(45.00,5.00){}} |
| 70 |
\put(5.00,25.00){\framebox(45.00,5.00){}} |
| 71 |
\put(5.00,5.00){\framebox(90.00,20.00){}} |
| 72 |
\put(10.00,126.5){{FIRM}} |
| 73 |
\put(10.00,111.5){{Firmreturn}} |
| 74 |
\put(10.00,96.5){{Addressfield}} |
| 75 |
\put(10.00,81.5){{Ref"|line}} |
| 76 |
\put(10.00,76.5){{Subject}} |
| 77 |
\put(10.00,66.5){{Opening}} |
| 78 |
\put(10.00,26.5){{Closing}} |
| 79 |
\put(10.00,16.5){{Firmfoot}} |
| 80 |
\put(70.00,126.5){{Firmaddress}} |
| 81 |
\put(70.00,106.5){{Right-}} |
| 82 |
\put(70.00,101.5){{box}} |
| 83 |
\put(70.00,76.5){{Date}} |
| 84 |
\end{picture} |
| 85 |
|
| 86 |
Some of these boxes are static. They are created once (at the |
| 87 |
\verb+\begin{document}+ command) and cannot be changed later. |
| 88 |
|
| 89 |
\begin{itemize} |
| 90 |
\item FIRM |
| 91 |
\item Firmaddress |
| 92 |
\item Firmreturn |
| 93 |
\item Firmfoot. |
| 94 |
\end{itemize} |
| 95 |
|
| 96 |
The other boxes are created for each letter (did you know that you can |
| 97 |
have more letters in one document? Well, don't bother, it is easier to |
| 98 |
have one document for each letter). |
| 99 |
|
| 100 |
\begin{itemize} |
| 101 |
\item Ref"|line |
| 102 |
\item Subject |
| 103 |
\item Opening |
| 104 |
\item Closing |
| 105 |
\end{itemize} |
| 106 |
|
| 107 |
The layout of these boxes is defined in the \texttt{cfg} file. You can |
| 108 |
select different \texttt{cfg} files with the \verb+\usename+ command. |
| 109 |
If you omitt it, \texttt{akletter.cfg} will be used. Thus all the user |
| 110 |
specific data is separated from the class file and you should be able |
| 111 |
to update the class without changing the \texttt{cfg} file. This |
| 112 |
didn't always work because I change the interface to allow for new |
| 113 |
configuration options but in theory it was a good idea. |
| 114 |
|
| 115 |
\section{The \texttt{cfg} file} |
| 116 |
|
| 117 |
This file contains all the user specific options. You should never |
| 118 |
have to edit the class file.\footnote{This may not be true if you want |
| 119 |
to add a new language or some fancy option.} You usually create this |
| 120 |
file once when you install \texttt{akletter.cls} and never touch it |
| 121 |
again. (Unless you move, change your ISP, marry or whatever). You |
| 122 |
should keep a copy of \texttt{akletter.cfg} because it contains a lot |
| 123 |
of small code-fragments that you may want to use later. |
| 124 |
|
| 125 |
\begin{verbatim} |
| 126 |
\makeatletter |
| 127 |
\end{verbatim} |
| 128 |
|
| 129 |
You may have to redefine some internal commands. |
| 130 |
|
| 131 |
\begin{verbatim} |
| 132 |
\telephone{0800 / 12 34 56 } |
| 133 |
\telefax {} |
| 134 |
%% You may include logos and other graphic-material into |
| 135 |
%% your letterhead: |
| 136 |
%% |
| 137 |
%%\RequirePackage[dvips]{graphics} |
| 138 |
\end{verbatim} |
| 139 |
|
| 140 |
Define your phone and fax number, thus you don't have to type it for |
| 141 |
every new letter. If you want to include a picture in your |
| 142 |
letterhead (or a scanned signature) you may need the graphics-package. |
| 143 |
|
| 144 |
\begin{verbatim} |
| 145 |
%% You may redefine the following variables |
| 146 |
%% |
| 147 |
|
| 148 |
%\renewcommand*{\yourrefname} {Ihr Zeichen:} |
| 149 |
%\renewcommand*{\yourmailname} {Ihr Schreiben vom:} |
| 150 |
%\renewcommand*{\myrefname} {Unser Zeichen:} |
| 151 |
%\renewcommand*{\mymailname} {Unser Schreiben vom:} |
| 152 |
%\renewcommand*{\customername} {Kundennummer } |
| 153 |
%\renewcommand*{\invoicename} {Rechnungsnummer } |
| 154 |
%\renewcommand*{\subjectname} {} %{Betr.} |
| 155 |
%\renewcommand*{\ccname} {Kopien an:} |
| 156 |
%\renewcommand*{\enclname} {Anlagen:} |
| 157 |
%\renewcommand*{\headtoname} {An} |
| 158 |
%\renewcommand*{\datename} {Datum} |
| 159 |
%\renewcommand*{\pagename} {Seite} |
| 160 |
%\renewcommand*{\telephonename} {Telefon} |
| 161 |
%\renewcommand*{\telefaxname} {FAX} |
| 162 |
\end{verbatim} |
| 163 |
|
| 164 |
You can change the text \texttt{akletter.cls} inserts into your letter. |
| 165 |
This does only work with \texttt{german.sty}. When you use \texttt{babel.sty} |
| 166 |
you may need to add some more code to your \texttt{cfg} file to make |
| 167 |
it work. The code below may help you getting it to work: |
| 168 |
|
| 169 |
\begin{verbatim} |
| 170 |
\let\savedcaptions\captionsgerman |
| 171 |
\def\captionsgerman{\savedcaptions |
| 172 |
\renewcommand*{\myrefname} {Mein Zeichen:} |
| 173 |
} |
| 174 |
\end{verbatim} |
| 175 |
|
| 176 |
|
| 177 |
\begin{verbatim} |
| 178 |
%% Alternate definitions for the reference-line. |
| 179 |
%% Use this if you do not need a mymail-entry. |
| 180 |
%% In fact you can do a lot of things with these |
| 181 |
%% 4 entries, e.g. setting \mymailname to {InvoiceNo} |
| 182 |
%% and using \mymail to display an invoiceno. |
| 183 |
%% You may change these lines but make sure that |
| 184 |
%% the combined length of the 3 fields is 1\leftfield |
| 185 |
%% or less. |
| 186 |
%\def\yref#1{\def\@yref{\parbox[t]{.33\leftfield} |
| 187 |
% {\scriptsize \yourrefname\\ \normalsize #1}} |
| 188 |
% reftrue} |
| 189 |
%\def\ymail#1{\def\@ymail{\parbox[t]{.33\leftfield} |
| 190 |
% {\scriptsize \yourmailname\\ \normalsize #1}} |
| 191 |
% reftrue} |
| 192 |
%\def\myref#1{\def\@myref{\parbox[t]{.33\leftfield} |
| 193 |
% {\scriptsize \myrefname\\ \normalsize #1}} |
| 194 |
% reftrue} |
| 195 |
%\let\mymail=\@gobbleone |
| 196 |
\end{verbatim} |
| 197 |
|
| 198 |
The reference line is build according to DIN~676 but can be redefined |
| 199 |
according to your needs. The normal layout uses 4 fields unless you |
| 200 |
use the \verb+refdate+ option, then it uses 5 fields. The code above |
| 201 |
changes that to 3 fields. |
| 202 |
|
| 203 |
|
| 204 |
\begin{verbatim} |
| 205 |
%%% Top of first page: left |
| 206 |
\sbox{\FIRM} |
| 207 |
{\parbox[t]{\leftfield} |
| 208 |
{\fontsize{17.28}{22pt}\fontseries{bx}\selectfont% |
| 209 |
Mein Name\hfill}} |
| 210 |
%%% Top of first page: right |
| 211 |
\sbox{\firmaddress} |
| 212 |
% Use either Text: |
| 213 |
{\parbox[t]{\rightfield}{% |
| 214 |
\fontsize{9}{10pt}\selectfont\normalfont |
| 215 |
Meine Stra{\ss}e 1\\ 12345 Meindorf}} |
| 216 |
% or graphic: |
| 217 |
% {\includegraphics{ourlogo}} |
| 218 |
% and don't forget to adjust FIRM and firmaddress: |
| 219 |
%%% Top of first page: left + right |
| 220 |
%%% You may want to adjust the raisebox |
| 221 |
\sbox{\FIRMHEAD} |
| 222 |
{\usebox{\FIRM}\raisebox{3mm}{\usebox{\firmaddress}}} |
| 223 |
\end{verbatim} |
| 224 |
|
| 225 |
The letterhead on the first page consists of the two boxes |
| 226 |
\texttt{FIRM} and \texttt{firmaddress} which will be put together into |
| 227 |
\texttt{FIRMHEAD}. I use this approach because it enables me to shift |
| 228 |
the \texttt{firmaddress} up and down to make it look correct and to |
| 229 |
make it easier to include a logo in one of the boxes. |
| 230 |
|
| 231 |
\begin{verbatim} |
| 232 |
%%% Top of every other page |
| 233 |
\sbox{\firm} |
| 234 |
{\fontsize{10}{12pt}\selectfont\normalfont |
| 235 |
Mein Name} |
| 236 |
\end{verbatim} |
| 237 |
|
| 238 |
The following pages do not need such an elaborated layout, simply put |
| 239 |
your name on it. If you really want to use some fancy headings look |
| 240 |
into the \verb+cfg+ file for suggestion or use \verb+fancyhdr.sty+. |
| 241 |
|
| 242 |
\begin{verbatim} |
| 243 |
% \if@twoside % Twoside definition |
| 244 |
% \def\ps@headings{% |
| 245 |
% \def\@oddfoot{\hfil Text on the odd page} |
| 246 |
% \def\@evenfoot{Text on the even page\hfil} |
| 247 |
% \def\@oddhead{\usebox{\firm} |
| 248 |
% \headfont\hfil\@date\hfil\pagename\ \pnumfont\thepage}% |
| 249 |
% \let\@evenhead\@oddhead} |
| 250 |
% \else % Oneside definition |
| 251 |
% \def\ps@headings{% |
| 252 |
% \def\@oddfoot{\hfil Text for one-side layout\hfill} |
| 253 |
% \def\@oddhead{\usebox{\firm} |
| 254 |
% \headfont\hfil\@date\hfil\pagename\ \pnumfont\thepage}} |
| 255 |
% \fi |
| 256 |
\end{verbatim} |
| 257 |
|
| 258 |
\begin{verbatim} |
| 259 |
%%% Return address |
| 260 |
%%% one line version |
| 261 |
\sbox{\firmreturn} |
| 262 |
{\underline{\fontsize{7}{8pt}\selectfont |
| 263 |
\hskip5mm Mein Name $\cdot$ Meine Stra{\ss}e 1 |
| 264 |
$\cdot$ D--12345 Meindorf\hskip5mm}} |
| 265 |
%%% two line version |
| 266 |
%\sbox{\firmreturn} |
| 267 |
% {\underline{ |
| 268 |
% \fontsize{7}{8pt}\fontfamily{\sfdefault}\selectfont |
| 269 |
% \hskip3mm\parbox{65mm} |
| 270 |
% {\makebox[65mm][c] |
| 271 |
% {Fachschaft -- Maschinenbau $\cdot$ |
| 272 |
% \mbox{\raise .75ex \hbox{c}\kern -.15em /\kern -.125em |
| 273 |
% \smash{\lower .3ex \hbox{o}}} |
| 274 |
% AStA TU Braunschweig} |
| 275 |
% \makebox[65mm][c] |
| 276 |
% {Katharinenstra{\ss}e 1 $\cdot$ D--38106 Braunschweig}} |
| 277 |
% \hskip3mm}} |
| 278 |
\end{verbatim} |
| 279 |
|
| 280 |
It is always nice for the addressee to see the sender of the letter |
| 281 |
before opening it. If you don't happen to have envelopes with your |
| 282 |
name and corporation printed on them, you may want to use a line |
| 283 |
above the address to show who you are. |
| 284 |
|
| 285 |
\begin{verbatim} |
| 286 |
%%% Firstpage footer |
| 287 |
%%% The code should be controlled by @banklo |
| 288 |
\sbox{\firmfoot} |
| 289 |
{\fontsize{9}{11pt}\selectfont |
| 290 |
%%% The following line may look nice in a FAX.CFG :-) |
| 291 |
%%% If you have a bad telephone-line try snail-mail!\\ |
| 292 |
\if@banklo |
| 293 |
\ifnum\language = \l@german |
| 294 |
Bankverbindung: |
| 295 |
\hspace{5mm} |
| 296 |
\parbox[t]{\rightfield}{\raggedright |
| 297 |
Undeutsche Landesbank Frankfurt, |
| 298 |
BLZ~123\,456\,78, Konto~1\,111\,007\\}% |
| 299 |
\hspace{5mm} |
| 300 |
\parbox[t]{\rightfield}{\raggedright |
| 301 |
Die Sparkasse Meindorf, |
| 302 |
BLZ~007\,123\,10, Konto~08\,15\\} |
| 303 |
\fi |
| 304 |
\fi} |
| 305 |
\end{verbatim} |
| 306 |
|
| 307 |
The footer of the first page is quite complex because it contains |
| 308 |
vital information if you are a company. (But then you will have your |
| 309 |
own stationary and don't have to print this every time.) According to |
| 310 |
DIN this is where information about your bank connection, the type of |
| 311 |
your company, the registration number in the register of commerce and |
| 312 |
all this should go. Since you won't need this information for a |
| 313 |
private letter, there is a switch to enable it. Use the option |
| 314 |
\texttt{banklow} if you want this information to appear. |
| 315 |
|
| 316 |
Some amateur designers put this information in the letter head, |
| 317 |
right of the address. Since this place is dedicated for a |
| 318 |
``received'' rubber stamp it should remain free. But if you want to |
| 319 |
use it, see below: |
| 320 |
|
| 321 |
\begin{verbatim} |
| 322 |
%%% Text displayed below the header on the right side |
| 323 |
%%% This should be controlled by @bankhi |
| 324 |
%%% This is the only place that will be re-evaluated for |
| 325 |
%%% every letter! Everything that changes for different |
| 326 |
%%% letters (in the same document) must go either here |
| 327 |
%%% or in the ref-line. |
| 328 |
\newcommand{\rightbox} |
| 329 |
{\parbox[t]{\rightfield} |
| 330 |
{\fontsize{9}{11pt}\selectfont |
| 331 |
\raggedright |
| 332 |
\ifx\fromname\@empty |
| 333 |
\else |
| 334 |
\ifnum \language = \l@german |
| 335 |
Sachbearbeiter: |
| 336 |
\fi |
| 337 |
\fromname\\ |
| 338 |
\fi |
| 339 |
\ifx\telephonenum\@empty |
| 340 |
\ifnum \language = \l@german |
| 341 |
\telephonename: 040 / 44\,17\,77 |
| 342 |
\else |
| 343 |
\telephonename: 49--40--44\,17\,77 |
| 344 |
\fi |
| 345 |
\else |
| 346 |
\telephonename: \telephonenum |
| 347 |
\fi\\[1.5ex] |
| 348 |
\ifx\telefaxnum\@empty |
| 349 |
\ifnum \language = \l@german |
| 350 |
\telefaxname: 040 / 44\,17\,77 |
| 351 |
\else |
| 352 |
\telefaxname: 49--40--44\,17\,77 |
| 353 |
\fi |
| 354 |
\else |
| 355 |
\telefaxname: \telefaxnum |
| 356 |
\fi\\[1.5ex] |
| 357 |
\ifx\@email\@empty |
| 358 |
e-mail Kein Mehl\\[1.5ex] |
| 359 |
\else |
| 360 |
e-mail: \@email \\[1.5ex] |
| 361 |
\fi |
| 362 |
\if@bankhi |
| 363 |
\ifnum \language = \l@german |
| 364 |
Bankverbindung:\\[1ex] |
| 365 |
Undeutsche Landesbank Frankfurt, |
| 366 |
BLZ~123\,456\,78, Konto~1\,111\,007\\[.5ex] |
| 367 |
Die Sparkasse L\"uneburg, |
| 368 |
BLZ~007\,123\,10, Konto~08\,15 \\[.5ex] |
| 369 |
\fi |
| 370 |
\fi |
| 371 |
%% Finally fixed it! |
| 372 |
%% If you want to have the date here, set the |
| 373 |
%% rightdate option. |
| 374 |
%% (With a big excuse to Markus and many others, who |
| 375 |
%% had to wait that long) |
| 376 |
\if@rightdate |
| 377 |
\vspace{0.5ex} |
| 378 |
\normalsize\@date |
| 379 |
\fi |
| 380 |
}} |
| 381 |
\end{verbatim} |
| 382 |
|
| 383 |
This rather complex code prints some text to the right of the address |
| 384 |
field. It will be evaluated for every new letter thus things that |
| 385 |
change from letter to letter has to go here. Some of the text shown |
| 386 |
in the example above should really be in the footer, but since people |
| 387 |
keep asking me how to put it into the rightfield I include it here. |
| 388 |
You have to set the \texttt{bankhigh} option to enable some of the |
| 389 |
code above. Note that \texttt{banklow} and \texttt{bankhigh} are |
| 390 |
not exclusive, you can define both if you want. |
| 391 |
|
| 392 |
\begin{verbatim} |
| 393 |
%% The labels defined in akletter.cls are what my printer likes: |
| 394 |
%% Onecolumn, 100mm * 50mm, 3mm separation. |
| 395 |
%% If you have different lables edit here: |
| 396 |
|
| 397 |
%\renewcommand*{\startlabels}{\labelcount\z@ |
| 398 |
% \pagestyle{empty}\let\@texttop\relax |
| 399 |
% The margins are calculated from the 1in,1in point, |
| 400 |
% thus negative values will occur if the margins are smaller |
| 401 |
% \topmargin -60\p@ |
| 402 |
% \headsep \z@ |
| 403 |
% \oddsidemargin -35\p@ |
| 404 |
% \evensidemargin -35\p@ |
| 405 |
% \textheight 10in |
| 406 |
% \@colht\textheight \@colroom\textheight \vsize\textheight |
| 407 |
% \textwidth 550\p@ |
| 408 |
% You may have to increase columnsep if you use twocolumn |
| 409 |
% This is what letter.cls uses. |
| 410 |
% \columnsep 26\p@ |
| 411 |
% This does almost nothing since there is an explicit |
| 412 |
% fontsize-command in the text written. |
| 413 |
% \ifcase \@ptsize\relax |
| 414 |
% \normalsize |
| 415 |
% \or |
| 416 |
% \small |
| 417 |
% \or |
| 418 |
% \footnotesize |
| 419 |
% \fi |
| 420 |
% \baselineskip \z@ |
| 421 |
% \lineskip \z@ |
| 422 |
% \boxmaxdepth \z@ |
| 423 |
% \parindent \z@ |
| 424 |
% This is obvious, isn't it? |
| 425 |
% \twocolumn |
| 426 |
% \relax} |
| 427 |
|
| 428 |
%% This is how the label will look like when printed. |
| 429 |
%% Note that specialmail will be written to the .aux-file |
| 430 |
%% when the letter is processed. The width used here is |
| 431 |
%% what letter.cls uses. |
| 432 |
|
| 433 |
%\renewcommand*{\mlabel}[2]{% |
| 434 |
% \parbox[b][2in][c]{262\p@}{% |
| 435 |
% \strut\ignorespaces\usebox{\firmreturn}\\ |
| 436 |
% \fontsize{12}{14pt}\selectfont |
| 437 |
% \parbox[t][1.2in][c]{3in}{#2} |
| 438 |
% }\par% |
| 439 |
%} |
| 440 |
\end{verbatim} |
| 441 |
|
| 442 |
The code above overrides the normal code for printing address labels. |
| 443 |
It has to be adjusted for the kind of labels you use. You may even |
| 444 |
have to include some specials to tell the printer to select the labels |
| 445 |
from a different tray. This is left as an exercise to the reader. (But |
| 446 |
note that you can get envelops with windows in C5 and C4 (if that |
| 447 |
means anything to you) thus you may never need to print labels.) |
| 448 |
|
| 449 |
\begin{verbatim} |
| 450 |
\makeatother |
| 451 |
\endinput |
| 452 |
\end{verbatim} |
| 453 |
|
| 454 |
You may want to include something like the following into your |
| 455 |
\texttt{.cfg} file: |
| 456 |
|
| 457 |
\begin{verbatim} |
| 458 |
\email{[email protected]} |
| 459 |
\mailbox{} |
| 460 |
\name{A. Kielhorn } |
| 461 |
\signature{(Axel Kielhorn)} |
| 462 |
|
| 463 |
\end{verbatim} |
| 464 |
|
| 465 |
\section{The first letter} |
| 466 |
|
| 467 |
You can't define everything in the \texttt{cfg} file, otherwise you |
| 468 |
would be writing the same letter again and again. Thus there are many |
| 469 |
settings you have to define in every letter: |
| 470 |
|
| 471 |
The following commands have to appear in the preamble, before |
| 472 |
\verb+\begin{document}+. |
| 473 |
|
| 474 |
\begin{description} |
| 475 |
|
| 476 |
\item [\texttt{usename{default}}] selects the \texttt{cfg} file. |
| 477 |
|
| 478 |
\item [\texttt{pagestyle\{headings\}}] Style of the following pages, |
| 479 |
can be headings, plain or empty. |
| 480 |
|
| 481 |
\item [\texttt{makelabels}] Do you really want to generate labels? |
| 482 |
|
| 483 |
\item [\texttt{selectlanguage\{english\}}] The language you want to |
| 484 |
use (obvious, isn't it?) You \emph{have} to set it in the preamble |
| 485 |
because the boxes containing the fixed text are defined by the |
| 486 |
\verb+\begin{document}+ command and they have to know the language of |
| 487 |
the letter. |
| 488 |
|
| 489 |
\end{description} |
| 490 |
|
| 491 |
Since version 1.5e there are some additional options to change the |
| 492 |
layout of the letter, if you really want to (These commands have been |
| 493 |
added to enable one user to copy a certain WinWord design): |
| 494 |
|
| 495 |
\begin{description} |
| 496 |
\item[\texttt{reffont}] \verb+\renewcommand*\reffont{}+ changes the |
| 497 |
font that \texttt{akletter} uses to print the text in the reference |
| 498 |
line, the default is \texttt{normalfont} |
| 499 |
|
| 500 |
|
| 501 |
\item[\texttt{reftextfont}] \verb+\renewcommand*\reftextfont{}+ |
| 502 |
changes the font used to print the arguments (i. e. the user supplied |
| 503 |
text) in the reference line, default is \texttt{normalfont} |
| 504 |
|
| 505 |
\item[\texttt{headfont}] \verb+\renewcommand*\headfont{}+ changes |
| 506 |
the font used to print the heading on every page but the first. This |
| 507 |
will only work with the pagestyle headings, default is \texttt{slshape} |
| 508 |
|
| 509 |
\item[\texttt{pnumfont}] \verb+\renewcommand*\pnumfont{}+ changes the |
| 510 |
font used to print the pagenumber, default is \texttt{normalfont} |
| 511 |
|
| 512 |
\end{description} |
| 513 |
|
| 514 |
The following commands are letter specific. If you change them |
| 515 |
inside a letter environment they will not affect subsequent letters. |
| 516 |
|
| 517 |
\begin{description} |
| 518 |
\item [\texttt{telephone\{0800 - 12 34 56\}}] Overriding the default |
| 519 |
telephone number |
| 520 |
\item [\texttt{telefax\{0800 - 12 34 57\}}] the fax number, |
| 521 |
\item [\texttt{email\{[email protected]\}}] email address |
| 522 |
\item [\texttt{mailbox\{ \}}] and mailbox. |
| 523 |
\item [\texttt{name\{A. Kielhorn\}}] When you have \texttt{.cfg} file for the |
| 524 |
whole company, you may want to set the name of the individual user |
| 525 |
here instead of generating lots of cfg files. |
| 526 |
\item [\texttt{signature\{(Axel Kielhorn)\}}] usually the name, but |
| 527 |
you can specify any signature. |
| 528 |
\item [\texttt{specialmail\{Recommand\'e\}}] This will be printed in |
| 529 |
bold above the recipients address. (Hey, I know some french!) |
| 530 |
\item [\texttt{refdatename\{Braunschweig, den\}}] The location where |
| 531 |
the letter was written. |
| 532 |
\item [\texttt{yref\{ \}}] |
| 533 |
\item [\texttt{ymail\{1.6.1994\}}] |
| 534 |
\item [\texttt{myref\{ak/AK\}}] |
| 535 |
\item [\texttt{mymail\{1.6.1994\}}] |
| 536 |
\item [\texttt{subject\{LaTeX2e Letter-style\}}] |
| 537 |
\item [\texttt{invoice\{Invoice number\}}] still experimental |
| 538 |
\item [\texttt{customer\{Customer number\}}] still experimental |
| 539 |
\item [\texttt{opening\{Dear friends,\}}] This command generates the |
| 540 |
letterhead you must not omit it, but you can use an empty argument if |
| 541 |
you don't want to address the reader. |
| 542 |
|
| 543 |
\end{description} |
| 544 |
|
| 545 |
Here comes the text\dots |
| 546 |
|
| 547 |
The end: |
| 548 |
\begin{description} |
| 549 |
\item [\texttt{closing\{mfg\}}] This command closes the letter, it |
| 550 |
must not be omitted but may contain an empty argument. |
| 551 |
\item [\texttt{cc\{comp.text.tex\}}] A copy for the archive |
| 552 |
\item [\texttt{encl\{akletter.cfg\}}] And an enclosure |
| 553 |
\item [\texttt{ps}] Hey, the letter is finished. No long postscriptum |
| 554 |
please. |
| 555 |
\end{description} |
| 556 |
|
| 557 |
\section{Mass mailings} |
| 558 |
|
| 559 |
Version 1.4 of \texttt{akletter} introduced a way to generate |
| 560 |
mass mailings. This is compatible to \texttt{scrlettr.cls} from the |
| 561 |
Koma-Script package. If you want to know how to use it read the |
| 562 |
Koma-Script manual. |
| 563 |
|
| 564 |
\section{Options} |
| 565 |
|
| 566 |
\texttt{akletter.cls} understands some options |
| 567 |
|
| 568 |
\begin{description} |
| 569 |
\item [\texttt{a4paper}] Selects the page format. A4 is the default. |
| 570 |
|
| 571 |
\item [\texttt{a4offset}] This layout ist shiftet 24 points to the |
| 572 |
right and 24 points narrower than a4paper. It looks better when you |
| 573 |
put the letter into a binder that covers the left margin of the page. |
| 574 |
These binders are often used for job applications. |
| 575 |
|
| 576 |
\item [\texttt{letterpaper}] This options adapts the layout to US |
| 577 |
letter paper. Since I haven't seen an envelope with a window for the |
| 578 |
address in the US I'm not sure if it is usable, but you can put the |
| 579 |
letter into a german DIN 680 DL envelope. |
| 580 |
|
| 581 |
\item [\texttt{banklow}] and |
| 582 |
\item [\texttt{bankhigh}] are two switches to enable some code that |
| 583 |
depends on these switches. In the cfg file distributed with |
| 584 |
\texttt{akletter} this set the bank connections either at the bottom |
| 585 |
or in the right field. |
| 586 |
|
| 587 |
\item [\texttt{foldmarks}] This shows where to fold the letter to make |
| 588 |
it fit into the envelop. It doesn't work on some printers like my |
| 589 |
Deskwriter:-( |
| 590 |
|
| 591 |
\item [\texttt{refdate}] The date will be printed in the reference |
| 592 |
line thus changing the layout to 5 items. |
| 593 |
|
| 594 |
\item [\texttt{subjectdate}] The date is printed in the same line as |
| 595 |
the subject (default). |
| 596 |
|
| 597 |
\item [\texttt{rightdate}] Prints the date in the rightfield unless |
| 598 |
you change the code:-) |
| 599 |
|
| 600 |
\end{description} |
| 601 |
|
| 602 |
Version 1.5 h of \texttt{akletter} supports the date format according |
| 603 |
to ISO 8601 which looks like YYYY-MM-DD, e.g. 2000-05-28 for the 28th |
| 604 |
of May 2000. You can activate this format with \verb+\dateiso+ in the |
| 605 |
preamble. When you change the language the format is reset to the |
| 606 |
default for that language, thus you have to put the \verb+\dateiso+ |
| 607 |
after the \verb+\selectlanguage+ command. This format is recommeded |
| 608 |
by the Chicago Manual of Style. |
| 609 |
|
| 610 |
\section{Thanks} |
| 611 |
|
| 612 |
I would like to thank Donald E. Knuth and Leslie Lamport for creating |
| 613 |
\TeX\ and \LaTeX, Stefan Lindner for porting it to the Atari, Andrew |
| 614 |
Trevorrow for porting it to the Mac and the \LaTeX3-Team. |
| 615 |
|
| 616 |
Special thanks to the beta testers who found lots of bugs in previous |
| 617 |
versions and suggested a lot of new features thus keeping me busy on |
| 618 |
rainy afternoons. |
| 619 |
|
| 620 |
\end{document} |