diff --git a/kalibrierschein/kalibrierschein.cls b/kalibrierschein/kalibrierschein.cls index 071aef91a1d5458d43175badf9cc727c32b15478..be3c26479a595d9d6c737f73349f646dccc37bf8 100644 --- a/kalibrierschein/kalibrierschein.cls +++ b/kalibrierschein/kalibrierschein.cls @@ -220,7 +220,7 @@ \ks@tab\expandafter{\the\ks@tab#1}% } -\newcommand*\ks@addTabLine[1]{% +\newcommand*\ks@addTabLine[1]{% TODO: analog zu \ks@addCommaItems \def\@tempc{}% \@for\@tempa:=#1\do{% \edef\@tempb{\the\ks@tab\@tempc\@tempa}% @@ -229,13 +229,26 @@ }% } +\newcommand*\ks@addCommaItems[1]{% + \def\@tempc{}% + \@for\@tempa:=#1\do{% + \edef\@tempb{\noexpand\ks@tab\noexpand\expandafter{% + \the\noexpand\ks@tab\@tempc\@tempa}}% + %\show\@tempb + \@tempb + \def\@tempc{\noexpand\\}% + %\showthe\ks@tab + }% +} + \newcommand*\ks@getColSpec[2]{% \let#2=\@empty \@for\@tempa:=#1\do{% - \edef#2{#2l}% + \edef#2{#2X}% }% - \ifx\ks@colSpec\@empty - \def#2{l}% + \ifx#2\@empty + %\def#2{l}% + \def#2{X}% \fi } @@ -248,11 +261,14 @@ \ks@add{\tabularnewline[#2]}% \ks@addTabLine{\ks@type}% \ks@add{\tabularnewline[#3]}% - \ks@addTabLine{\ks@serialNo}% + %%%\ks@addTabLine{\ks@serialNo}% + %%\ks@add{\ks@serialNo}% + \ks@addCommaItems{\ks@serialNo}% \ks@add{\end{tabularx}}% \begingroup \tabcolsep=1em % \origTabularx + %\showthe\ks@tab \the\ks@tab \endgroup }