From 7cf7210b4203833800f838b922e098724e158be2 Mon Sep 17 00:00:00 2001 From: Marei Peischl Date: Mon, 13 Jan 2020 00:39:08 +0100 Subject: [PATCH] introduce simpletabular --- kiviletter.sty | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/kiviletter.sty b/kiviletter.sty index 8a45eb962..d3b8fa299 100644 --- a/kiviletter.sty +++ b/kiviletter.sty @@ -6,9 +6,6 @@ \DeclareOption{infobox}{\@kivi@infoboxtrue} \@kivi@infoboxtrue -\newif\if@kivi@faketable -\DeclareOption{faketable}{\@kivi@faketabletrue} - \ProcessOptions\relax @@ -247,6 +244,28 @@ align=bl, \endgroup } +\RequirePackage{xltabular} + + +\newenvironment{SimpleTabular}[1][\bfseries\position & \bfseries\menge & \bfseries\bezeichnung] +{ + \setlength{\tabcolsep}{\g_kivi_tabcolsep_dim} + \xltabular{\linewidth}{@{}rrX@{}} + \toprule + #1\\ + \midrule\\\endhead + \midrule + \multicolumn{3}{@{}>{\raggedright}p{\linewidth}@{}}{\weiteraufnaechsterseite}\\ + \endfoot + \bottomrule + \endlastfoot + \ignorespaces +}{ + \def\@currenvir{tabularx} + \endxltabular +} + + \usepackage{afterpage} \cs_new:cpn {PricingTabular*}{ -- 2.20.1