From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: synonyms with MKIV
Date: Wed, 5 Dec 2007 09:29:08 +0100 [thread overview]
Message-ID: <115224fb0712050029j3e780bbcy3ae5b5a167074e36@mail.gmail.com> (raw)
In-Reply-To: <20071204182235.GA3881@gaston.couberia.bzh>
2007/12/4, Peter Münster <pmlists@free.fr>:
> On Tue, Dec 04, 2007 at 04:57:51PM +0100, Wolfgang Schuster wrote:
>
> > > > this is a bug in the mkiv sorting macros, I posted a similiar message
> > > > a few days ago but got no answer.
>
> Hello Wolfgang,
>
> Indeed, now I remember...
> (But one long week was time enough for me to forget it.)
>
> > > \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
> >
> > 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.
You can try to add the following synonym and TeX give you a error message.
\test[zB]{z.\thinspace B.}{zum Beispiel}
> % engine=luatex
> \unprotect
> \def\mksavesortedlistentry#1#2#3#4% class key entry meaning
> {\immediatewriteutilitytua{table.insert(js['#1'],{'e','#3',\!!bs#3\!!es,\!!bs#4\!!es})}}
> \protect
> \definesynonyms[test][tests]
> \test[bbb]{short text}{long description}
> \test[aaa]{a short text}{a long description}
> \starttext
> \bbb~\aaa
> \placelistoftests
> \stoptext
>
> Cheers, Peter
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
___________________________________________________________________________________
next prev parent reply other threads:[~2007-12-05 8:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-03 16:44 Peter Münster
2007-12-03 17:58 ` Wolfgang Schuster
2007-12-03 19:18 ` Hans Hagen
2007-12-03 19:32 ` Hans Hagen
2007-12-04 15:57 ` Wolfgang Schuster
2007-12-04 18:22 ` Peter Münster
2007-12-05 8:29 ` Wolfgang Schuster [this message]
2007-12-05 20:45 ` Peter Münster
2007-12-05 22:06 ` Hans Hagen
2007-12-06 8:26 ` Wolfgang Schuster
2007-12-06 9:53 ` Hans Hagen
2007-12-06 14:45 ` Aditya Mahajan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=115224fb0712050029j3e780bbcy3ae5b5a167074e36@mail.gmail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).