marei: kivitendo.sty minimal changes to be compiler independent
authorMarei (peiTeX) <marei@peitex.de>
Tue, 20 Oct 2020 17:28:14 +0000 (19:28 +0200)
committerJan Büren <jan@kivitendo.de>
Wed, 21 Oct 2020 11:42:08 +0000 (13:42 +0200)
templates/print/marei/kivitendo.sty

index 32d2e22..7920468 100644 (file)
@@ -4,7 +4,11 @@
 \usepackage{german}
 \usepackage{graphicx}
 \usepackage{ifthen}
-\usepackage[utf8]{inputenc}
+\usepackage{iftex}
+\ifPDFTeX
+       \usepackage[utf8]{inputenc}
+       \usepackage[T1]{fontenc}
+\fi
 \usepackage{latexsym}
 \usepackage{longtable}
 \usepackage{textcomp}
 }
 
 %% Standardschrift
-\newcommand{\defaultfont}{\fontfamily{cmss}\fontsize{10pt}{12pt}\fontseries{m}\selectfont}
-\renewcommand{\familydefault}{cmss}
+\newcommand{\defaultfont}{\normalfont}
+\renewcommand{\familydefault}{\sfdefault}
+\ifPDFTeX
+\else
+\usepackage{fontspec}
+\fi
 
 %% Checkboxen
 \newsavebox{\checkedbox}