X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fprint%2Fmarei%2Fkivitendo.sty;h=4e6ed0b1a4782065855bc0d193ba65da7577b616;hb=b293ff8ad52fc76ba0c44783e3982418114d6b08;hp=32d2e229b2b9b23256e89c934373c1f1d3dbf659;hpb=4987cdc759332a4226006c34f3b7c78ee031bc62;p=kivitendo-erp.git diff --git a/templates/print/marei/kivitendo.sty b/templates/print/marei/kivitendo.sty index 32d2e229b..4e6ed0b1a 100644 --- a/templates/print/marei/kivitendo.sty +++ b/templates/print/marei/kivitendo.sty @@ -4,7 +4,12 @@ \usepackage{german} \usepackage{graphicx} \usepackage{ifthen} -\usepackage[utf8]{inputenc} +\usepackage{iftex} +%Compilerunabhängigkeit +\ifPDFTeX + \usepackage[utf8]{inputenc} + \usepackage[T1]{fontenc} +\fi \usepackage{latexsym} \usepackage{longtable} \usepackage{textcomp} @@ -42,9 +47,13 @@ \setlength{\footskip}{0.9cm} } -%% Standardschrift -\newcommand{\defaultfont}{\fontfamily{cmss}\fontsize{10pt}{12pt}\fontseries{m}\selectfont} -\renewcommand{\familydefault}{cmss} +%% Standardschrift Compilerunabhängig +\newcommand*{\defaultfont}{\normalfont} +\renewcommand*{\familydefault}{\sfdefault} +\ifPDFTeX +\else + \usepackage{fontspec} +\fi %% Checkboxen \newsavebox{\checkedbox} @@ -134,17 +143,17 @@ % Abschnitte mit Kasten hinterlegt \newcommand{\reqspecsectionstyle}{% -\renewcommand{\thesection}{\alph{section}} -\makeatletter -\def\section{\@ifstar\unnumberedsection\numberedsection} -\makeatother + \renewcommand{\thesection}{\alph{section}} + \makeatletter + \def\section{\@ifstar\unnumberedsection\numberedsection} + \makeatother } \makeatletter \def\numberedsection{\@ifnextchar[%] - \numberedsectionwithtwoarguments\numberedsectionwithoneargument} +\numberedsectionwithtwoarguments\numberedsectionwithoneargument} \def\unnumberedsection{\@ifnextchar[%] - \unnumberedsectionwithtwoarguments\unnumberedsectionwithoneargument} +\unnumberedsectionwithtwoarguments\unnumberedsectionwithoneargument} \def\numberedsectionwithoneargument#1{\numberedsectionwithtwoarguments[#1]{#1}} \def\unnumberedsectionwithoneargument#1{\unnumberedsectionwithtwoarguments[#1]{#1}} \def\numberedsectionwithtwoarguments[#1]#2{% @@ -165,7 +174,7 @@ \endgroup \vskip 2ex\nobreak \addcontentsline{toc}{section}{\protect\numberline{\thesection{}.}#1}% - } +} \def\unnumberedsectionwithtwoarguments[#1]#2{% \ifhmode\par\fi \removelastskip