Arnes Brief
ArnesBrief
Hinter \begin{letter} wird die Zieladresse angegeben,
\yref kann einen Verweis auf eine Kundennummer enthalten,
statt des automatischen Datums kann \date{30. Februar. 2000} angegeben werden.
\documentclass[german,12pt]{ArnesBrief} \pagestyle{headings} \begin{document} \begin{letter}{Firma GmbH\\ Hr. Mayer\\ Postfach 123\\ 60000 Frankfurt} \yref{0815} \ymail{12.03.2007} %\myref{4711} \subject{Reklamation} \opening{Sehr geehrte Damen und Herrn,} ich bin mit Ihrem Produkt unzufrieden! Es funktioniert nicht. %\closing{Vielen Dank,} \Signatur{Mit freundlichen Grü{ss}en,} \encl{Anlage1, Anlage2} \end{letter} \end{document}
ArnesBrief.cls
Das Erstellen der Formatvorlage ist aufwändig, aber dann hat man immer gleiche Briefe, bei denen auch das Anschriftsfeld an der richtigen Stelle sitzt. Gefalzt wird das Blatt unterhalb von Ihr Zeichen:.
Diese Vorlage kann man auch per php-Skript verwenden, um Serienbriefe als pdf zu erzeugen.
\NeedsTeXFormat{LaTeX2e} \ProvidesClass{ArnesBrief} \RequirePackage{ifthen} \usepackage{graphicx,epsfig,rotating} %figures \usepackage{eurosym} %The EURO symbol \usepackage[german]{babel} %german identifiers \usepackage[latin1]{inputenc} %special german characters \usepackage{enumerate} %fancy enumeration marks \usepackage{longtable} %table: fixed width, multiple pages \usepackage{colortbl} %colorful tables \usepackage{lscape} %landscape orientation of page %\usepackage{here} %place figure HERE! \usepackage{listings} %syntax highlighting for source % \usepackage[pdftex]{color} \usepackage[pdftex,colorlinks=true, pdfstartview=FitV, linkcolor=Ablue, citecolor=Ablue, urlcolor=Ablue, filecolor=Ablue, bookmarks=true]{hyperref} \newboolean{@german} \setboolean{@german}{false} \DeclareOption{german}{\setboolean{@german}{true}} \DeclareOption*{\PassOptionsToClass{\CurrentOption}{letter}} \ProcessOptions \LoadClass[a4paper]{letter} %colors \definecolor{arne}{rgb}{0.0,0.0,0.8} \definecolor{Agreen}{rgb}{0.0,0.53,0.0} \definecolor{Ared}{rgb}{0.8,0.0,0.0} \definecolor{Ablue}{rgb}{0.0,0.0,0.8} \definecolor{silver}{rgb}{0.75,0.75,0.75} \definecolor{darkViolet}{rgb}{0.58,0.0,0.82} \definecolor{grey}{rgb}{0.74,0.74,0.74} \definecolor{darkGreen}{rgb}{0.00,0.39,0.00} \definecolor{orange}{rgb}{1.00,0.64,0.00} %syntax highlighting \lstset{ basicstyle=\scriptsize\ttfamily, keywordstyle=\bfseries\ttfamily\color{blue}, stringstyle=\color{Agreen}\ttfamily, commentstyle=\color{darkViolet}\ttfamily, emph={square}, emphstyle=\color{conti}\texttt, emph={[2]root,base}, emphstyle={[2]\color{red}\texttt}, showstringspaces=false, flexiblecolumns=false, tabsize=2, numbers=left, numberstyle=\tiny, numberblanklines=false, stepnumber=1, numbersep=10pt, xleftmargin=15pt } %phys units \renewcommand{\d}{\,{\rm d}} \newcommand{\e}{\,{\rm e}} \newcommand{\J}{\,{\rm J}} \newcommand{\kJ}{\,{\rm kJ}} \newcommand{\K}{\,{\rm K}} \newcommand{\GC}{\,{^{\circ}\rm C}} \newcommand{\N}{\,{\rm N}} \newcommand{\V}{\,{\rm V}} \newcommand{\W}{\,{\rm W}} \newcommand{\kWh}{\,{\rm kWh}} \newcommand{\sqm}{\,{\rm m^{2}}} \newcommand{\cbm}{\,{\rm m^{3}}} \newcommand{\g}{\,{\rm g}} \newcommand{\kg}{\,{\rm kg}} \newcommand{\kJK}{\,{\rm kJ/K}} \newcommand{\MPa}{\,{\rm MPa}} \newcommand{\kPa}{\,{\rm kPa}} \newcommand{\Pa}{\,{\rm Pa}} \newcommand{\s}{\,{\rm s}} \newcommand{\m}{\,{\rm m}} \newcommand{\mm}{\,{\rm mm}} \newcommand{\cm}{\,{\rm cm}} \newcommand{\km}{\,{\rm km}} \newcommand{\h}{\,{\rm h}} %Nutzerangaben \newcommand{\logo}{LogoJachens} \newcommand{\ueberschrift}{Dr. Arne Jachens} \newcommand{\strasse}{Bahnhofsstr. 1} \newcommand{\ort}{63674 Altenstadt} \newcommand{\email}{ich@meineDomain.de} \newcommand{\telefon}{06047 123456} \newcommand{\mobil}{0151 123456} \newcommand{\absender}{A. Jachens, Bahnhofsstr. 1, 63674 Altenstadt} \newcommand{\fusszeile}{Meine Bankverbindung DE12345600001001234567} \newcommand{\yrefname}{Ihr Zeichen}%{KdNr}% \newcommand{\ymailname}{Ihr Schreiben vom} \newcommand{\myrefname}{Mein Zeichen} \newcommand{\subjectname}{\underline{}} \newcommand{\telephonename}{Telefon} \newcommand{\germanname}{\vspace{-8pt}} \newcommand{\deliveryname}{Lieferanschrift} \newcommand{\telcode}{06047-} \newcommand{\postcode}{63674} %Benutzerangaben \newcommand{\@yref}{} \newcommand{\@ymail}{} \newcommand{\@myref}{} \newcommand{\@subject}{} \newcommand{\yref}[1]{\renewcommand{\@yref}{\yrefname: #1}} \newcommand{\ymail}[1]{\renewcommand{\@ymail}{\ymailname: #1}} \newcommand{\myref}[1]{\renewcommand{\@myref}{\myrefname: #1}} \newcommand{\subject}[1]{\renewcommand{\@subject}{\subjectname{\bf#1}}} %Laengen \setlength{\textheight}{230mm} \setlength{\textwidth}{160mm} \setlength{\oddsidemargin}{0pt} \setlength{\topmargin}{-40pt} \setlength{\evensidemargin}{0pt} \setlength{\headheight}{12pt} \setlength{\headsep}{35pt} \setlength{\paperheight}{290mm} \newlength{\leftfield} \setlength{\leftfield}{110mm} \newlength{\rightfield} \setlength{\rightfield}{50mm} %Kopf \newsavebox{\ajname} \newsavebox{\ajaddress} \newsavebox{\ajreturn} \newsavebox{\ajhead} \newsavebox{\ajfoot} \sbox{\ajname}{\ueberschrift} \sbox{\ajhead}{\parbox[t]{125mm}{\huge \textcolor{arne}{\textsc{\ueberschrift }} }\raisebox{-29mm}{\includegraphics[width=35mm]{\logo}} } \sbox{\ajaddress}{\parbox[t]{\rightfield}{\textcolor{arne}{\strasse \\ \ort \\ \email}}} \sbox{\ajreturn}{\footnotesize{\underline{ \absender }}} %Fuss \sbox{\ajfoot}{\parbox{\textwidth}{\begin{center} \rule{\textwidth}{0.6pt}\\[5pt] \setlength{\baselineskip}{12pt}% \textcolor{arne}{ \fusszeile } \end{center} }} %manuelles Datum \renewcommand{\date}[1]{\def\@date{#1}} %Seitenkoepfe \renewcommand{\ps@firstpage} {\setlength{\headheight}{41pt}\setlength{\headsep}{25pt}% \renewcommand{\@oddhead}{\usebox{\ajhead}}% \renewcommand{\@oddfoot}{\raisebox{-10pt}[0pt]{% \usebox{\ajfoot}}} \renewcommand{\@evenhead}{}\renewcommand{\@evenfoot}{}} \renewcommand{\ps@headings} {\setlength{\headheight}{41pt}% \renewcommand{\@oddhead}{\parbox{\textwidth}{% \usebox{\ajname}\hfill\pagename{} \thepage\\ \rule[3pt]{\textwidth}{1pt}}} \renewcommand{\@oddfoot}{} \renewcommand{\@evenhead}{\@oddhead} \renewcommand{\@evenfoot}{\@oddfoot}} %Begruessung \renewcommand{\opening}[1]{\thispagestyle{firstpage}% \raisebox{-7mm}{\parbox[t]{\leftfield}{\usebox{\ajreturn}\\ \parbox[b][3.5cm][c]{\leftfield}{\toname\\ \toaddress}}}% \raisebox{-20mm}{\parbox[t]{\rightfield}{ \usebox{\ajaddress}\\[5pt] \textcolor{arne}{% Telefon: \telefon \\ Mobil: \mobil \\ } %\fromname \\[0mm] \@date \\[0mm]}} \par \rule{\textwidth}{0.6pt} \makebox[\leftfield][l]{\ifthenelse{\equal{\@yref}{}} {\@ymail}{\@yref\hfill\@ymail\hfill}}% \@myref\par \ifthenelse{\equal{\@subject}{}} {}{\@subject\par} \vspace{2\parskip} #1 \par\nobreak} %Signatur \newcommand{\rclosing}[1]{\par\nobreak\vspace{\parskip}% \stopbreaks\hspace*{\longindentation}% \parbox{\indentedwidth}{\centering #1\\[6\medskipamount] \ifthenelse{\equal{\fromsig}{}} {\fromname}{\fromsig}}\par} \newcommand{\Signatur}[1]{\vspace{\parskip}{#1}\\[12mm] \ueberschrift } \newcommand{\SignaturJachens}[1]{\vspace{\parskip}{#1}\\[2mm] % \includegraphics[width=4cm]{JachensSignature}\\ % \ueberschrift } \renewcommand{\@texttop}{}
Vorlage für einen Report
Masterfile
Erstellung eines Berichts mit standartisiertem Deckblatt.
documentclass{ArnesReport} begin{document} deckblatt{titlesubtitle}{date} section{first section} end{document}
ArnesReport.cls
NeedsTeXFormat{LaTeX2e} ProvidesClass{ArnesReport}[2006/03/17] RequirePackage{ifthen} newififpdf ifxpdfoutputundefined pdffalse % we are not running pdflatex else pdfoutput=1 % we are running pdflatex pdfcompresslevel=9 % compression level for text and image pdftrue fi PassOptionsToClass {a4paper,twoside,12pt}{article} ProcessOptions LoadClass{article} usepackage{graphicx,epsfig,rotating} %figures usepackage{eurosym} %The EURO symbol %usepackage[english,german]{babel} %german identifiers usepackage[latin1]{inputenc} %special german characters usepackage{enumerate} %fancy enumeration marks usepackage{fancyhdr} %fancy headings and footers usepackage{amsmath} %many math symbols usepackage{amssymb} % usepackage{longtable} %table: fixed width, multiple pages usepackage{lscape} %landscape orientation of page usepackage{here} %place figure HERE! usepackage{textcomp} % ? usepackage{caption} %fancy captions ifpdf usepackage[pdftex]{color} usepackage[pdftex,colorlinks=true, pdfstartview=FitV, linkcolor=Agreen, citecolor=Ablue, urlcolor=Agreen, filecolor=Ablue, bookmarks=true]{hyperref} else usepackage{color} usepackage{html} fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %colors definecolor{Agreen}{rgb}{0.0,0.53,0.0} definecolor{Ared}{rgb}{0.8,0.0,0.0} definecolor{Ablue}{rgb}{0.0,0.0,0.8} definecolor{company}{rgb}{0.0,0.8,0.8} %phys units renewcommand{d}{,{rm d}} newcommand{e}{,{rm e}} newcommand{J}{,{rm J}} newcommand{K}{,{rm K}} newcommand{N}{,{rm N}} newcommand{V}{,{rm V}} newcommand{W}{,{rm W}} newcommand{sqm}{,{rm m^{2}}} newcommand{cm}{,{rm m^{3}}} newcommand{kg}{,{rm kg}} newcommand{kJK}{,{rm kJ/K}} newcommand{MPa}{,{rm MPa}} newcommand{Pa}{,{rm Pa}} newcommand{s}{,{rm s}} newcommand{m}{,{rm m}} renewcommand{captionfont}{small} renewcommand{captionlabelfont}{bfseries} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %page layout setcounter{page}{1} %setlength: ~/home/texmf/tex/latex/fancyhdr/fancyhdr.pdf setlength{parindent}{0pt} setlength{textheight}{250mm} setlength{textwidth}{160mm} setlength{topmargin}{-10mm} %header, footer %pagestyle{headings} pagestyle{fancy} lhead[fancyplain{}{thepage}]{fancyplain{}{rightmark}} rhead[fancyplain{}{leftmark}]{fancyplain{}{thepage}} cfoot{{color{Ared}bf confidential}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %title page newcommand{deckblatt}[2]{% begin{titlepage}% pagestyle{empty}% begin{center}% includegraphics[width=textwidth]{Logo1}% end{center}% vspace{20mm}% begin{center}% {huge #1}[0.5em] % {em #2} % end{center} % vfill % hrule % begin{minipage}{0.75textwidth} % vspace{1.5mm} % your name % your copany % section of your company % street % town % Fon: + % htmladdnormallink{{color{blue}your@mail.com}}{mailto:your@mail.com} % end{minipage} % hfill % begin{minipage}{0.2textwidth} % vfill % includegraphics[width=textwidth]{Logo2} % vfill % end{minipage} % vspace{0.5mm} % hrule % end{titlepage} % thispagestyle{empty} % cleardoublepage % %all indexes tableofcontents % %listoffigures % %newpage % %thispagestyle{empty} % %pagenumbering{arabic} % %setcounter{page}{1} % } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% setlength{oddsidemargin}{7mm} %Gemurkse, damit Seiten gut aussehen setlength{evensidemargin}{-8mm} %Gemurkse, damit Seiten gut aussehen