From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/12611 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: bib module/cite (Context bug) Date: Sat, 12 Jul 2003 19:22:13 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <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; format=flowed Content-Transfer-Encoding: 7BIT X-Trace: main.gmane.org 1058054012 4298 80.91.224.249 (12 Jul 2003 23:53:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 12 Jul 2003 23:53:32 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Sun Jul 13 01:53:30 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 19bUBG-000179-00 for ; Sun, 13 Jul 2003 01:53:30 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id E50D410B20; Sun, 13 Jul 2003 01:54:19 +0200 (MEST) Original-Received: from smtp09.wxs.nl (smtp09.wxs.nl [195.121.6.38]) by ref.ntg.nl (Postfix) with ESMTP id 2981710ABC for ; Sun, 13 Jul 2003 01:46:51 +0200 (MEST) Original-Received: from laptop-3.wxs.nl (ipc3794381.dial.planet.nl [195.121.67.129]) by smtp09.wxs.nl (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0HHX00EH4RAUDT@smtp09.wxs.nl> for ntg-context@ntg.nl; Sun, 13 Jul 2003 01:45:23 +0200 (MEST) X-Sender: hagen-mail@localhost Original-To: ntg-context@ntg.nl X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 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:12611 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:12611 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 -------------------------------------------------------------------------