move inheader.tex -> kiviletter.sty
authorMarei Peischl <marei@peitex.de>
Thu, 21 Nov 2019 10:01:53 +0000 (11:01 +0100)
committerJan Büren <jan@kivitendo.de>
Mon, 3 Feb 2020 11:21:38 +0000 (12:21 +0100)
inheaders.tex
kiviletter.sty [new file with mode: 0644]

index f383613..88d4bfe 100644 (file)
@@ -1,28 +1,6 @@
 %Dokumentenklasse für DIN-Briefe auf A4
-\documentclass[a4paper]{scrartcl}[10pt]
+\documentclass[paper=a4,fontsize=10pt]{scrartcl}
+\usepackage{kiviletter}
 
-\usepackage{iftex}
-% Schriftart, Eingabelayout der Tastatur
-\ifPDFTeX
-\RequirePackage[utf8]{inputenc}% Nur notwendig, wenn Basis älter als TL2018
-\RequirePackage[T1]{fontenc}
-\else
-\RequirePackage{fontspec}
-\fi
-
-\usepackage{graphicx}
-
-\usepackage{longtable}
-\usepackage{tabularx}
-
-\ifPDFTeX
-\usepackage{eurosym}
-\DeclareUnicodeCharacter{20AC}{\euro}
-\fi
-
-\usepackage{substr}
-\usepackage{scrpage2}
-\usepackage{wallpaper} % Hintergrundbilder
-\usepackage{xcolor,colortbl}
-\usepackage{lastpage}
-\usepackage{geometry}
+%TODO babel setup
+\endinput
diff --git a/kiviletter.sty b/kiviletter.sty
new file mode 100644 (file)
index 0000000..c680f42
--- /dev/null
@@ -0,0 +1,35 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{kiviletter}[2019/10/10 Letter Layouts for Kivitendo]
+
+%Dokumentenklasse für DIN-Briefe auf A4
+\documentclass[paper=a4,fontsize=10pt]{scrartcl}
+\usepackage{kiviletter}
+
+\usepackage{iftex}
+% Schriftart, Eingabelayout der Tastatur
+\ifPDFTeX
+\RequirePackage[utf8]{inputenc}% Nur notwendig, wenn Basis älter als TL2018
+\RequirePackage[T1]{fontenc}
+\else
+\RequirePackage{fontspec}
+\fi
+
+\RequirePackage{xltabular}
+\RequirePackage{booktabs}
+\PassOptionsToPackage{table}{xcolor}
+
+\RequirePackage{xcolor}
+\RequirePackage{graphicx}
+
+\ifPDFTeX
+\RequirePackage{eurosym}
+\DeclareUnicodeCharacter{20AC}{\euro}
+\fi
+
+\RequirePackage[fromlogo,fromalign=right]{scrletter}
+\LoadLetterOption{DIN}
+
+
+%TODO babel setup
+
+\endinput