From 1f9dcb69b80d7a7b9211b106bfa130e125545f7c Mon Sep 17 00:00:00 2001
From: Nikolaus Gotsche <n@softwarefools.com>
Date: Mon, 18 Nov 2019 23:48:51 +0100
Subject: Logo put into Letter Background to keep Letter ratios

---
 templates/_main.tex | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

(limited to 'templates/_main.tex')

diff --git a/templates/_main.tex b/templates/_main.tex
index 8fd1eb2..4395ac6 100644
--- a/templates/_main.tex
+++ b/templates/_main.tex
@@ -1,12 +1,13 @@
 % koma_env.tex
 \documentclass[a4paper]{scrlttr2}
-\usepackage[top=2cm, bottom=1cm, left=2cm, right=2cm]{geometry}
+\usepackage[top=1cm, bottom=1cm, left=1cm, right=1cm]{geometry}
 \usepackage{graphicx}
 \usepackage{lmodern}
 \usepackage[utf8]{inputenc}
 \usepackage[T1]{fontenc}
 \usepackage[ngerman]{babel}
 \usepackage{xcolor}
+\usepackage{eso-pic}
 \usepackage[hidelinks]{hyperref}
 
 \usepackage[german]{invoice}
@@ -56,12 +57,18 @@
    }%
 }
 
+\newcommand\headerpic{%
+\put(0,0){%
+\parbox[b][\paperheight]{\paperwidth}{%
 
+\vspace{1cm}\hspace{2.5cm}\includegraphics[width=.20\textwidth]{logo.png}
+\vfill
+}}}
 \begin{document}
+\AddToShipoutPicture{\headerpic}
 	\begin{letter}{\customerCompany \\ \customerName \\ 
 	\customerStreet \\ \customerZIP \ \customerCity}
 	
-			\includegraphics[width=0.15\textwidth]{logo.png}			
 			\opening{\invoiceSalutation}
 			\invoiceText
             \\%\vspace{1cm}
@@ -72,8 +79,7 @@
             \begin{invoice}{Euro}{0}
 			    \input{[[.Invoice]]}
 		    \end{invoice}
-		\ps Im ausgewiesenen Betrag ist gemäß § 19 UStG keine Umsatzsteuer 
-		enthalten.
+		\ps Im ausgewiesenen Betrag ist gemäß § 6 Abs UStG keine Umsatzsteuer auf grund der Kleinunternehmerregelung enthalten.
 
 		\closing{\invoiceClosing}
 		\invoiceEnclosures
-- 
cgit v1.2.3

