Peter Münster wrote: > On Wed, Dec 05, 2007 at 09:29:08AM +0100, Wolfgang Schuster wrote: >>>> this line should be >>>> >>>> \def\mksavesortedlistentry#1#2#3#4% class key entry meaning >>>> >>>> {\immediatewriteutilitytua{table.insert(js['#1'],{'e','#1',\!!bs#2\!!es,\!!bs#3\!!es})}} >>> Both versions give wrong output with optional arguments. But the following >>> version works for me: >> I forgot to mention you have to regenrate the format with my solution, your >> seems to work but I found a way to stop processing because you the optinal >> argument can also be used to write a mcro in the first pair of braces and >> this >> can produce problems. > > I've also regenrated the format. But now I understand better: it works well > with your patch for core-syn.lua and Hans' patch for core-syn.mkiv: > > {\immediatewriteutilitytua{table.insert(js['#1'],{'e','#2',\!!bs#3\!!es,\!!bs#4\!!es})}}
can you summarize what i need to change? ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________