31 Jan
2018
31 Jan
'18
2:54 p.m.
Rik Kabel schrieb:
\starttexdefinition doTableRowExpB #SET \define\A{\getvariable{#SET}{a}} \define\B{\getvariable{#SET}{b}} \define\C{\getvariable{#SET}{c}} \bTR \expanded{\bTC\A\eTC} \expanded{\bTC\B\eTC} \expanded{\bTC\C\eTC} \eTR \stoptexdefinition
You can’t use \define but it creates non expandable commands (which can be solved when you use \defineexpandable instead) and there is no need for this extra step. \starttexdefinition doTableRowExpB #SET \bTR \expanded{\bTC\getvariable{#SET}{a}\eTC} \expanded{\bTC\getvariable{#SET}{b}\eTC} \expanded{\bTC\getvariable{#SET}{c}\eTC} \eTR \stoptexdefinition Wolfgang