X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=insettings.tex;h=c90c85a19744a02207b8fa168093d0d7cca27094;hb=606510ade9fe97cb9ca64878f1ed19326e65c50c;hp=7ea75c4aa8623fdb51d612f58f0e42ece2a5c4c7;hpb=de40b13af8b16ab8d8b137e02927eb92bb505bbe;p=kivitendo-erp.git diff --git a/insettings.tex b/insettings.tex index 7ea75c4aa..c90c85a19 100644 --- a/insettings.tex +++ b/insettings.tex @@ -51,6 +51,7 @@ \str_if_in:NnT \lxcurrency {CHF} {\tl_gset:Nn \g_kivi_currency_tl {chf}} \tl_if_empty:NT \g_kivi_currency_tl {\tl_gset:Nn \g_kivi_currency_tl {euro}} % wenn er es nicht kennt dann text übernehmen. +% Problematisch mit Dateistruktur \input{\identpath/\g_kivi_currency_tl _account.tex} \ExplSyntaxOff @@ -59,17 +60,6 @@ % keine Absätze nach rechts einrücken \setlength\parindent{0pt} -% Papierformat, Ränder, usw. -\geometry{ - a4paper, % DINA4 - %% left=19mm, % Linker Rand - width=182mm, % Textbreite - top=39mm, % Abstand Textanfang von oben - head=44mm, % Höhe des Kopfes - headsep=4mm, % Abstand Kopf zu Textanfang - bottom=30mm, % Abstand von unten - % showframe, % Rahmen zum Debuggen anzeigen -} % Befehl f. normale Schriftart und -größe @@ -78,7 +68,7 @@ % Einstellungen f. Kopf und Fuss \pagestyle{scrheadings} -\clearscrheadfoot +\clearpairofpagestyles %\setheadwidth[20mm]{page} % Kopfzeile nach rechts verschieben %\setfootwidth[-39mm]{page} % Fusszeile verschieben @@ -89,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} } }