From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/12613 Path: main.gmane.org!not-for-mail From: Martin Moncrieffe Newsgroups: gmane.comp.tex.context Subject: Re: bib module/cite (Context bug) Date: Sun, 13 Jul 2003 20:49:10 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: References: <5.2.0.9.1.20030712192200.02bff380@localhost> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1058125974 19856 80.91.224.249 (13 Jul 2003 19:52:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 13 Jul 2003 19:52:54 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Sun Jul 13 21:52:52 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19bmtw-0005A7-00 for ; Sun, 13 Jul 2003 21:52:52 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id DA08A10B29; Sun, 13 Jul 2003 21:53:39 +0200 (MEST) Original-Received: from mole.bio.cam.ac.uk (mole.bio.cam.ac.uk [131.111.36.9]) by ref.ntg.nl (Postfix) with ESMTP id DEF2210ABC for ; Sun, 13 Jul 2003 21:49:10 +0200 (MEST) Original-Received: from mcm35 (helo=localhost) by mole.bio.cam.ac.uk with local-esmtp (Exim 3.33 #2 (SGI IRIX)) id 19bmqM-07CEck-00 for ; Sun, 13 Jul 2003 20:49:10 +0100 Original-To: In-Reply-To: <5.2.0.9.1.20030712192200.02bff380@localhost> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:12613 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:12613 Hi Hans, I've applied the patches but it still does not work. Additionally, Taco example still produces 1,2 instead of 1,2,3. I'm using the context ver 2003.3.11 if that helps. Regards. __martin On Sat, 12 Jul 2003, Hans Hagen wrote: > At 15:01 11/07/2003 +0200, Taco Hoekwater wrote: > > >Hi Martin, Hans, rest of the group, > > > >It took me a while to track down this bug. It is actually a bug in > >the definition of \sortcommacommand in newer ConTeXt-es. > > > >Minimal example: > > > >\def\mylist{1,2,3} > >\sortcommacommand[\mylist]\donumericcompare > >\message{\sortedcommalist} % reports 1,2 !! > > Two patches are needed in syst-ext.tex: > > (1) change last line in: > > \def\docompareitems#1% > {\doifnotempty{#1} > {\@EA\comparecommand\@EA{\!!tempa}{#1}\relax > \ifnum\comparedresult<2 > \ifnum\scratchcounter=\commalistsize > \@EA\@EA\@EA\def\@EA\@EA\@EA\sortedcommalist > \@EA\@EA\@EA{\@EA\sortedcommalist\@EA,\!!tempa}% > \fi > \else % old element larger > \@EA\def\@EA\newcommalistelement\@EA{\!!tempa,#1}% > \replaceincommalist\sortedcommalist\scratchcounter > \expandafter\quitcommalist > \fi}% > \advance\scratchcounter \plusone} % ! ! ! > > (2) handle n=1 case in: > > \def\sortcommalist[#1]#2% > {\getcommalistsize[#1]% > \ifnum\commalistsize>1 > \let\sortedcommalist\empty > \let\comparecommand#2% > \processcommalist[#1]\dosortcommacommand > \else > \def\sortedcommalist{#1}% > \fi} > > Hans > ------------------------------------------------------------------------- > Hans Hagen | PRAGMA ADE | pragma@wxs.nl > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com > ------------------------------------------------------------------------- > information: http://www.pragma-ade.com/roadmap.pdf > documentation: http://www.pragma-ade.com/showcase.pdf > ------------------------------------------------------------------------- > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context >