25 Aug
2013
25 Aug
'13
7:40 p.m.
Hi, the following example produces an “Undefined control sequence” error. If \def is used instead of \starttexdefinition then there is no error. Why? \starttexcode \installcommandhandler{foo}{foo}{foo} \appendtoks \setuevalue{start\currentfoo}{\foo@start[\currentfoo]}%% \setuevalue{stop\currentfoo }{\foo@stop}%% \to\everydefinefoo \starttexdefinition unexpanded foo@start [#1] \stoptexdefinition %% works %% \unexpanded\def\foo@stop{} %% produces undefined control sequence error \starttexdefinition unexpanded foo@stop \stoptexdefinition \stoptexcode \definefoo [myfoo] \starttext \startmyfoo Foobar \stopmyfoo \stoptext Marco