[NTG-context] synonyms with MKIV

Hans Hagen pragma at wxs.nl
Mon Dec 3 20:32:34 CET 2007


Wolfgang Schuster wrote:
> 2007/12/3, Peter Münster <pmlists at free.fr>:
>> Hello,
>>
>> I get unexpected output with this test-file:
>>
>> % engine=luatex
>> \definesynonyms[test][tests]
>> \test{testOne}{first test}
>> \test{testTwo}{second test}
>> \starttext
>> \testOne
>> \placelistoftests
>> \stoptext
>>
>> I would expect:
>>
>> testOne
>> testOne     first test
>>
>> but I get:
>>
>> testOne
>> test        testOne
>>
>> (Perhaps a problem with parameter numbers #1, #2 etc. ?)
>>
>> Cheers, Peter
> 
> Hi Peter,
> 
> this is a bug in the mkiv sorting macros, I posted a similiar message
> a few days ago but got no answer.

\def\mksavesortedlistentry#1#2#3#4% class key entry meaning
 
{\immediatewriteutilitytua{ti(js['#1'],{'e','#2',\!!bs#3\!!es,\!!bs#4\!!es})}}

seems to work

-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------


More information about the ntg-context mailing list