From 0dfd786bdd7dffc13f941d5a37e814f9f8bda846 Mon Sep 17 00:00:00 2001
From: Nikolaus Gotsche <n@softwarefools.com>
Date: Wed, 29 Aug 2018 04:29:25 +0200
Subject: .tex templates

---
 templates/_main.tex | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 85 insertions(+)
 create mode 100644 templates/_main.tex

(limited to 'templates/_main.tex')

diff --git a/templates/_main.tex b/templates/_main.tex
new file mode 100644
index 0000000..b07b221
--- /dev/null
+++ b/templates/_main.tex
@@ -0,0 +1,85 @@
+% 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{xcolor}
+\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}{Honorarnote}
+\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
+            \\%\vspace{1cm}
+            \\
+            %\fcolorbox{lightgray}{lightgray}{\large{Projekt: \textbf{\invoiceTitle}}}
+            \fcolorbox{lightgray}{lightgray}{\parbox{\textwidth}{\large{Projekt: \textbf{\invoiceTitle}}}}
+		    
+            \begin{invoice}{Euro}{0}
+			    \input{_invoice}
+		    \end{invoice}
+		\ps Im ausgewiesenen Betrag ist gemäß § 19 UStG keine Umsatzsteuer 
+		enthalten.
+
+		\closing{\invoiceClosing}
+		\invoiceEnclosures
+
+
+
+	\end{letter}
+\end{document}
+
-- 
cgit v1.2.3

