-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy path_main.tex
81 lines (67 loc) · 1.97 KB
/
_main.tex
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
% koma_env.tex
\documentclass[a4paper]{scrlttr2}
\usepackage[top=2cm, bottom=1cm, left=2cm, right=2cm]{geometry}
\usepackage{graphicx}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{color}
\usepackage[hidelinks]{hyperref}
\usepackage[german]{invoice}
\renewcommand{\familydefault}{\sfdefault}
% include meta data
\include{_data}
\setkomavar{fromname}{\senderName}
\setkomavar{fromaddress}{\senderStreet \\ \senderZIP \ \senderCity}
\setkomavar{place}{\senderCity}
\setkomavar{date}{\invoiceDate}
\setkomavar{fromphone}{\senderTelephone}
\setkomavar{frommobilephone}{\senderMobilephone}
\setkomavar{fromemail}{\href{mailto:\senderEmail}{\nolinkurl{\senderEmail}}}
\setkomavar{subject}{Rechnung}
\setkomavar{location}{
\\[\baselineskip] \\[\baselineskip]
\flushright \small {\vspace{1cm}Rechnungsnummer:
\invoiceReference}
}
\setkomavar{firsthead}{\hfill
\parbox[t][\headheight][t]{6cm}{%
\footnotesize
\raggedright
\flushright
\color[gray]{.3}%
\begin{tabular}{rl}
Anschrift & \usekomavar{fromname}\\
& \senderStreet\\
& \senderZIP \ \senderCity \\
\\
%\Telefon \ Telefon: \` \senderTelephone \\
Mobil & \usekomavar{frommobilephone} \\
E-Mail & \usekomavar{fromemail} \\
Webseite & {\normalfont\ttfamily \senderWeb } \\
\\
Steuernummer & \taxID \\
\\
Institut & \accountBankName \\
IBAN & \accountIBAN \\
BIC & \accountBIC
\end{tabular}
}%
}
\begin{document}
\begin{letter}{\customerCompany \\ \customerName \\
\customerStreet \\ \customerZIP \ \customerCity}
\includegraphics[width=0.15\textwidth]{logo.png}
\opening{\invoiceSalutation}
\invoiceText
\begin{invoice}{Euro}{0}
\input{_invoice}
\end{invoice}
\ps Im ausgewiesenen Betrag ist gemäß § 19 UStG keine Umsatzsteuer
enthalten.
\renewcommand*{\raggedsignature}{\raggedright}
\closing{\invoiceClosing}
\invoiceEnclosures
\end{letter}
\end{document}