Am 15.03.2011 um 12:36 schrieb Hans van der Meer:
>
> On 15 mrt 2011, at 12:14, Wolfgang Schuster wrote:
>
>>
>> Am 15.03.2011 um 12:10 schrieb Hans van der Meer:
>>
>>> The ConTeXt system macro's used to contain a definition for
>>> \expandoneargafter (see Taco Hoekwater's article on this). What happened
>>> with it? It seems to have disappeared. A pity because I use it in my macros
>>> in several places.
>>>
>>> ! Undefined control sequence.
>>> l.3 \expandoneargafter
>>> \command{\abc}
>>>
>>> Someone who can help?
>>
>> Most of the command in context are now defined as \unexpanded
>> and because of this the command isn’t necessary anymore.
>>
>
> I see. But I used this for my own macros and now I cannot find the definition
> of \expandoneargafter.
>
> \def\comparenumericprefix#1#2{%
> % remember that #1 (\firstsortelement) has to be expanded first!
> \comparenumeric{\expandoneargafter\uptodelim{#1}}{\uptodelim{#2}}}
>
> Could it be that \expandoneargafter is defined as
> \expandafter\expandafter\expandafter?
syst-gen.mkii: \def\expandoneargafter #1{\@EA#1\@EA}
but now you can write
\unexpanded\def\uptodelim#1{#1}
\def\comparenumericprefix#1#2%
{\comparenumeric{\normalexpanded{\uptodelim{#1}}{...}}
and this will only expand “#1” but not \uptodelim.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________