New answers tagged

2

Just make the definition global: \newcommand{\setfoo}[2]{% \expandafter\gdef\csname tomasz@#1\endcsname{#2}% } \newcommand defines a macro in the current group (thus obviously in child groups). When this group is finished, the definition is lost: the macro definition is restored to the state it had before the group was started. In the case of a ...


Top 50 recent answers are included