1f29b1d6b47cb4e26aa9aa61b4daa07ff9a257a6
[kivitendo-erp.git] / templates / print / marei / letter.tex
1 % config: use-template-toolkit=1
2 % config: tag-style=$( )$
3 $( USE KiviLatex )$
4 $( USE P )$
5 $( SET customer = letter.customer_vendor )$
6 \documentclass[paper=a4,fontsize=10pt]{scrartcl}
7 \usepackage{kiviletter}
8 $( KiviLatex.required_packages_for_html )$
9
10 % Variablen, die in settings verwendet werden
11 \newcommand{\lxlangcode}{$(template_meta.language.template_code)$}
12 \newcommand{\lxmedia}{$(template_meta.media)$}
13 \newcommand{\lxcurrency}{}
14 \newcommand{\kivicompany}{$(employee_company)$}
15
16 % settings: Einstellungen, Logo, Briefpapier, Kopfzeile, Fusszeile
17 \input{insettings.tex}
18
19 % laufende Kopfzeile:
20 %\ourhead{}{}{$( KiviLatex.filter(letter.subject) )$}{$( KiviLatex.filter(letter.letternumber) )$}{$( KiviLatex.filter(letter.date.to_kivitendo) )$}
21 \ourhead{}{}{}{}{}
22
23 \begin{document}
24
25 \setkomavar{date}{$( KiviLatex.filter(letter.date.to_kivitendo) )$}
26
27 $( IF letter.reference )$
28 \setkomavar*{yourref}{\ihrzeichen}
29 \setkomavar{yourref}{$( KiviLatex.filter(letter.reference) )$}
30 $( END )$
31
32 $( IF letter.subject )$
33 \setkomavar{subject}{$( KiviLatex.filter(letter.subject) )$}
34 $( END )$
35
36 \begin{letter}{
37 $( KiviLatex.filter(customer.name) )$\strut\\
38 $( KiviLatex.filter(letter.contact.formal_greeting) )$\strut\\
39 $( KiviLatex.filter(customer.street) )$\strut\\
40 $( KiviLatex.filter(customer.zipcode) )$ $( KiviLatex.filter(customer.city) )$\strut\\
41 $( KiviLatex.filter(customer.country) )$%
42 }
43
44 \opening{$( KiviLatex.filter(letter.greeting) )$}
45 \thispagestyle{kivitendo.letter.first}
46
47 $( KiviLatex.filter_html(letter.body) )$
48
49 \closing{\gruesse}
50
51 \end{letter}
52
53 \end{document}