Am 19.11.2010 um 18:56 schrieb Hans Hagen: > or maybe: > > \unprotected\unexpanded\def\doinstalldefinehandler#1#2#3#4#5#6#7% > {\unexpanded\def#2{\dotripleempty#5}% > \newtoks#6% > \newtoks#7% > \def#5[##1][##2][##3]% > {\edef#4{##1}% > \the#6% predefine > \ifthirdargument > \getparameters[#1#4][\s!parent=#1##2,##3]% > \else\ifsecondargument > \getparameters[#1#4][\s!parent=#3,##2] > \fi\fi > \the#7}}
No, because you need \doifassignment. Your code allows only \define...[new][old][..=..] and \define...[new][..=..] but it’s not possible to write \define...[new][old] because „new“ won’t use „old“ as parent with this defintion. Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / 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 ___________________________________________________________________________________