From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32048 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: \placeformula and $$ doesn't work anymore Date: Tue, 05 Dec 2006 23:53:06 +0100 Message-ID: <4575F852.5050109@elvenkind.com> References: <20061204212456.GA17543@shahin.dnsalias.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165359332 16892 80.91.229.10 (5 Dec 2006 22:55:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Dec 2006 22:55:32 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 05 23:55:31 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by dough.gmane.org with esmtp (Exim 4.50) id 1GrjCD-0002Me-Fc for gctc-ntg-context-518@m.gmane.org; Tue, 05 Dec 2006 23:55:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BC8F41FF30; Tue, 5 Dec 2006 23:52:48 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01792-10-2; Tue, 5 Dec 2006 23:52:39 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9CF681FF2E; Tue, 5 Dec 2006 23:52:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EF6781FF30 for ; Tue, 5 Dec 2006 23:52:33 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01792-10 for ; Tue, 5 Dec 2006 23:52:28 +0100 (CET) Original-Received: from post-23.mail.nl.demon.net (post-23.mail.nl.demon.net [194.159.73.193]) by ronja.ntg.nl (Postfix) with SMTP id EBFD81FF1C for ; Tue, 5 Dec 2006 23:50:27 +0100 (CET) Original-Received: from boo.demon.nl ([82.161.175.147]:41417 helo=[10.10.0.3]) by post-23.mail.nl.demon.net with esmtp (Exim 4.51) id 1Grj9v-000J2L-FH for ntg-context@ntg.nl; Tue, 05 Dec 2006 22:53:07 +0000 User-Agent: Mozilla Thunderbird 1.0.6-7.6.20060mdk (X11/20050322) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:32048 Archived-At: Aditya Mahajan wrote: > > This is a bug in doplaceformula. I do not know how to avoid it, but > the next code illustrates what is happening. > > \def\dotest{ > \def\nextnext{$}% > \ifx\next\nextnext > Inside dispplaceformula\ldots % This always fails > \else > Inside dodoplaceformula\ldots > \fi} > > \def\test{\futurelet\next\dotest} > > \test$$A = B$$ > > This prints "Inside dodoplaceformula" even though the next character > is \$. > > So, the \next=\nextnext branch never matches. I do not know why this > happens, but a more robust check is needed in doplaceformula. One is a macro, the other a \let character. This would work: \def\dotest{ \let\nextnext=$ \ifx\next\nextnext Inside dispplaceformula\ldots % This always fails \else Inside dodoplaceformula\ldots \fi} but the \ifcat is file as well, I think Taco