From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59211 Path: news.gmane.org!not-for-mail From: taco Newsgroups: gmane.comp.tex.context Subject: Re: referenceformat MkIV Date: Mon, 31 May 2010 20:53:53 +0200 Message-ID: <4C0405C1.90707@elvenkind.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1275332047 21313 80.91.229.12 (31 May 2010 18:54:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 31 May 2010 18:54:07 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 31 20:54:05 2010 connect(): No such file or directory Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OJA7d-00058p-Eh for gctc-ntg-context-518@m.gmane.org; Mon, 31 May 2010 20:54:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 09809C9CD2; Mon, 31 May 2010 20:54:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id GxAdH6ZP2b-E; Mon, 31 May 2010 20:53:57 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3C4BCC9CCE; Mon, 31 May 2010 20:53:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 67E4DC9CCE for ; Mon, 31 May 2010 20:53:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id EQxLjsg8gKZ9 for ; Mon, 31 May 2010 20:53:54 +0200 (CEST) Original-Received: from server5.aanhet.net (server5.aanhet.net [195.12.62.5]) by balder.ntg.nl (Postfix) with ESMTP id 8E8F3C9CC4 for ; Mon, 31 May 2010 20:53:54 +0200 (CEST) Original-Received: from [192.168.178.28] (boo.demon.nl [83.163.247.99]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server5.aanhet.net (Postfix) with ESMTPSA id 208C52000238 for ; Mon, 31 May 2010 20:53:54 +0200 (CEST) User-Agent: Thunderbird 2.0.0.19 (X11/20090114) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:59211 Archived-At: Hi, Yury G. Kudryashov wrote: >> >> It seems that \ineq doesn't clear some variables, and the next \in uses >> the previous format. > > Please, apply the attached patch upstream. It fixed the problem for me. This problem was already fixed in the latest (internal?) beta. > Another problem fixed by my patch: > > \definereferenceformat[ineq][text=equation] > \starttext > \placeformula[first] > \startformula 1=1\stopformula > \ineq[first] > \stoptext > printed "1", not "equation 1". This problem is still there and needs fixing, but I think your patch has a bug (possibly because of the already done other bugfix). After patching, I think \doinatreferenceone should look like this: \def\doinatreferenceone {\ifx\next\bgroup \afterassignment\doinatreferenceonetwo \expandafter\leftreferencetoks \else\ifx\textofreference\empty \leftreferencetoks\emptytoks \expandafter\expandafter\expandafter\dodoinatreferencenone \else \leftreferencetoks{\textofreference}% \expandafter\expandafter\expandafter\doinatreferenceonetwo \fi\fi} Best wishes, Taco ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________