marei: restructure check.tex
authorMarei (peiTeX) <marei@peitex.de>
Tue, 29 Sep 2020 18:50:09 +0000 (20:50 +0200)
committerJan Büren <jan@kivitendo.de>
Wed, 21 Oct 2020 11:42:05 +0000 (13:42 +0200)
templates/print/marei/check.tex
templates/print/marei/deutsch.tex

index 86ba76e..b609e04 100644 (file)
@@ -1,71 +1,54 @@
-\documentclass[twoside]{scrartcl}
-\usepackage[frame]{xy}
-\usepackage{tabularx}
-\usepackage[utf8]{inputenc}
-\setlength{\voffset}{0.4cm}
-\setlength{\hoffset}{-2.0cm}
-\setlength{\topmargin}{0cm}
-\setlength{\headheight}{0.0cm}
-\setlength{\headsep}{1cm}
-\setlength{\topskip}{0pt}
-\setlength{\oddsidemargin}{1.0cm}
-\setlength{\evensidemargin}{1.0cm}
-\setlength{\textwidth}{17cm}
-\setlength{\textheight}{24.5cm}
-\setlength{\footskip}{1cm}
-\setlength{\parindent}{0pt}
-\renewcommand{\baselinestretch}{1}
-\begin{document}
-
-
-\fontfamily{cmss}\fontsize{9pt}{9pt}\selectfont
-
-\parbox[t]{12cm}{
-  <%company%>%
-
-  <%address%>}
-\hfill
-\parbox[t]{6cm}{\hfill <%source%>}
+\documentclass[paper=a4]{scrartcl}
+\usepackage[reffields,backaddress=false]{kiviletter}
 
-\vspace*{0.6cm}
+% Variablen, die in settings verwendet werden
+\newcommand{\lxlangcode} {<%template_meta.language.template_code%>}
+\newcommand{\lxmedia} {<%media%>}
+\newcommand{\lxcurrency} {<%currency%>}
+\newcommand{\kivicompany} {<%employee_company%>}
 
-<%text_amount%> \dotfill <%decimal%>/100 \makebox[0.5cm]{\hfill}
+% settings: Einstellungen, Logo, Briefpapier, Kopfzeile, Fusszeile
+\input{insettings.tex}
 
-\vspace{0.5cm}
+\KOMAoptions{fontsize=9pt}
 
-\hfill <%datepaid%> \makebox[2cm]{\hfill} <%amount%>%
-
-\vspace{0.5cm}
-
-<%name%>%
+\begin{document}
 
-<%street%>%
 
-<%zipcode%>%
+\setplength{firstheadvpos}{4cm}
 
-<%city%>%
+\setkomavar{firsthead}{
+       \noindent\begin{tabular}[t]{@{}l@{}}
+               <%company%>\strut\\
+               <%address%>
+       \end{tabular}
+       \hfill
+       <%source%>\par
+       \medskip
+       <%text\_amount%> \dotfill <%decimal%>/100 \par\smallskip
+       \hfill <%datepaid%> \hspace{2cm}\strut<%amount%>
+}
 
-<%country%>%
 
-\vspace{2.8cm}
+\begin{document}
 
-<%company%>%
+\begin{letter}{
+               <%name%>\ifhmode\\\fi
+               <%street%>\ifhmode\\\fi
+               <%zipcode%> <%city%>\ifhmode\\\fi
+               <%country%>%
+       }
 
-\vspace{0.5cm}
+\opening{<%company%>}
+\pagestyle{empty}
 
 <%name%> \hfill <%datepaid%> \hfill <%source%>%
 
-\vspace{0.5cm}
-\begin{tabularx}{\textwidth}{lXrr@{}}
-\textbf{Rechnung} & \textbf{Ausgestellt}
-  & \textbf{Fällig} & \textbf{Verrechnet} \\
+\begin{SimpleTabular}[colspec=lXrr,headline={\bfseries\rechnung&\bfseries\ausgestellt&\bfseries\faellig&\bfseries\verrechnet}]
 <%foreach invnumber%>%
-<%invnumber%> & <%invdate%> \dotfill
-  & <%due%> & <%paid%> \\
+<%invnumber%> & <%invdate%> & <%due%> & <%paid%> \\
 <%end invnumber%>%
-\end{tabularx}
-
-\vfill
+\end{SimpleTabular}
 
 \end{document}
 
index eeb94fb..35339fb 100644 (file)
 % Brief/letter
 \newcommand{\ihrzeichen}{Ihr Zeichen}
 \newcommand{\betreff}{Betreff}
+
+%check
+\newcommand*{\ausgestellt}{Ausgestellt}
+\newcommand*{\verrechnet}{Verrechnet}
\ No newline at end of file