ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* sorting bug in mkiv
@ 2007-11-25  8:42 Wolfgang Schuster
  0 siblings, 0 replies; only message in thread
From: Wolfgang Schuster @ 2007-11-25  8:42 UTC (permalink / raw)
  To: ConTeXt

Hi,

I found a bug in the mkiv code with the \definsorting macros. When I
try to output the sorted list with \placelistofsorts ConTeXt give me
only the name of the sort list but not the list entries.

\definesorting[test][tests]

\starttext

\test[One]{one}
\test[Two]{Two}
\test[Three]{3}

text \One\ text \Two\ text \Three\ text

\placelistoftests

\stoptext

This bug did also appear with the synonym mechanism. The old mkii code
works as expected but I found a interestins side effect of the old
mechanism. ConTeXt writes the whole list entries in galley files and
one can misuse this to output the list of synonyms before the commands
are definied;-)

\definesynonyms[test][tests][\testtext]

\starttext

%\placelistoftests

\test[One]{one}{number one}
\test{Two}{Two}
\test{Three}{Three}

text \One\ text \Two\ text \Three\ text \testtext{One} text

\placelistoftests

\stoptext

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-25  8:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-25  8:42 sorting bug in mkiv Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).