scrlttr2 example
Scrlttr2 is a latex class for letters, special in german.
options source brief.lco
\ProvidesFile{brief.lco}[%
2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{ngerman}
\setkomavar{fromname}{Die Globalen Problemlöser}
\newcommand\addrsecrow{Gesellschaft für anderer Leute Sorgen mbH}
\newcommand\rechtsform{Registergericht: Berlin HRA 123456-3}
\setkomavar{fromaddress}{Q-Damm. 255\\12345 Berlin}
\setkomavar{fromphone}{Tel: +49 (0)30 12 34 56 78 }
\setkomavar{fromfax}{Fax: +49 (0)30 12 34 56 99}
\setkomavar{fromemail}{info@diefirma.web}
\setkomavar{signature}{Peter Boss\\Geschäftsführer}
\newcommand\ustid{UstID: DE 123 456 789}
\setkomavar{frombank}{Bankverbindung\\
Eurcorp Bank Berlin\\
Kto 123 45 67\\
BLZ 123 456 78
}
\pagestyle{myheadings}
\@addtoplength{firstfootvpos}{5mm}
\@setplength{firstheadvpos}{12mm}
\@setplength{firstheadvpos}{12mm}
\addtolength{\textheight}{15mm}
\setkomafont{backaddress}{\scriptsize}
\typeout{\scdefault}
\DeclareFixedFont{\fa}{\encodingdefault}{cmr}{m}{\scdefault}{12}
\DeclareFixedFont{\cc}{\encodingdefault}{cmr}{m}{\scdefault}{30}
\firsthead{
\resizebox{\useplength{firstheadwidth}}{!}{%
\begin{tabular}{c}
\cc \usekomavar{fromname}\\[4mm]
\fa \addrsecrow
\end{tabular}
}
}
\firstfoot{%
\scriptsize{
\parbox{\useplength{firstfootwidth}}{
%\rule{180mm}{0.5pt}
\begin{tabular}{ll}
\usekomavar{fromname}\\
\rechtsform\\
\usekomavar{fromaddress}\\
\end{tabular}\hfill
\begin{tabular}{cc}
\usekomavar{fromemail}\\
\usekomavar{fromphone}\\
\usekomavar{fromfax}\\
\ustid
\end{tabular}\hfill
\begin{tabular}{rr}
\usekomavar{frombank}\\
\end{tabular}
}}
}
\nextfoot{%
\parbox{\useplength{firstfootwidth}}{
\begin{tabular}{ll}
\usekomavar{fromname}
\end{tabular}\hfill
\begin{tabular}{cc}
\today
\end{tabular}\hfill
\begin{tabular}{rr}
\thepage
\end{tabular}
}
}
\endinput
% vim: set filetype=tex :EOF
latex source brief.tex
\documentclass[brief]{scrlttr2}
\setkomavar{yourref}{}
\setkomavar{yourmail}{}
\setkomavar{myref}{}
\setkomavar{customer}{}
\setkomavar{invoice}{}
\setkomavar{date}{\today}
\setkomavar{subject}{}
\begin{document}
\begin{letter}
{Peter Einkauf\\
Siegburgstr. 12\\
12345 Muppen
}
\opening{Sehr geehrter Herr Einkauf,}
vielen Dank für Ihre Anfrage. Wir werden uns zügig mit Ihnen in Verbindung setzen.
\closing{Mit freundlichen Grüßen}
\end{letter}
\end{document}
% vim: set spell spelllang=du :EOF
syntax highlighted by Code2HTML, v. 0.9.1