From: Marei Peischl Date: Thu, 21 Nov 2019 10:58:45 +0000 (+0100) Subject: adjust head/foot structure X-Git-Tag: release-3.5.6.1~363 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=818ae1370c31c216db4bc4ab309b74eecdf741f1;p=kivitendo-erp.git adjust head/foot structure --- 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} } }