From 818ae1370c31c216db4bc4ab309b74eecdf741f1 Mon Sep 17 00:00:00 2001 From: Marei Peischl Date: Thu, 21 Nov 2019 11:58:45 +0100 Subject: [PATCH] adjust head/foot structure --- insettings.tex | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/insettings.tex b/insettings.tex index 92a5165fe..c90c85a19 100644 --- a/insettings.tex +++ b/insettings.tex @@ -79,28 +79,30 @@ % 4. Belegnummer {oder leer} % 5. Belegdatum {oder leer} % Beispiel: \ourhead{\kundennummer}{<%customernumber%>}{\angebot}{<%quonumber%>}{<%quodate%>} +\setkomafont{pagehead}{\scriptsize} \newcommand{\ourhead}[5] { \chead{ - \ifthenelse{\equal{\thepage}{1}} - {}% then - {\normalfont\fontfamily{cmss}\scriptsize - \ifthenelse{\equal{#1}{}}{}{#1: #2 \hspace{0.7cm}}{} + \ifnum\thepage=1 + \else + \ifstr{#1}{}{}{#1: #2 \hspace{0.7cm}} #3 - \ifthenelse{\equal{#4}{}}{}{~\nr: #4} - \ifthenelse{\equal{#5}{}}{}{\vom ~ #5} - \hspace{0.7cm} - \seite ~ \thepage/\pageref{LastPage} ~- } -}%ende chead + \ifstr{#4}{}{}{~\nr: #4} + \ifstr{#5}{}{}{\vom ~ #5} + \hspace{0.7cm} - \seite ~ \thepage/\letterlastpage ~-% + \fi +} } % Firmenfuss +\setkomafont{pagefoot}{\tiny} \cfoot{ - {\normalfont\fontfamily{cmss} \tiny + { \begin{tabular}{p{5cm}p{4.5cm}lr} \firma & \email & \textKontonummer & \kontonummer \\ \strasse & \homepage & \textBank & \bank \\ \ort & \textUstid\ \ustid & \textIban & \iban \\ \textTelefon~\telefon & \finanzamt & \textBic & \bic \\ - \ifthenelse{\equal{\fax}{}}{}{\textFax~\fax} & &\textBankleitzahl & \bankleitzahl \\ + \ifstr{\fax}{}{}{\textFax~\fax} & &\textBankleitzahl & \bankleitzahl \\ \end{tabular} } } -- 2.20.1