From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15973 Path: main.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Re: Re: Re: nath catcode issues Date: Sat, 7 Aug 2004 16:58:24 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <1946029967.20040807165824@iol.it> References: <20040704133638.GA23652@puritan.pcp.ath.cx> <413064969.20040705120139@iol.it> <20040705104452.GA2605@puritan.pcp.ath.cx> <1804185389.20040705130359@iol.it> <20040705124217.GB2605@puritan.pcp.ath.cx> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1091975171 1418 80.91.224.253 (8 Aug 2004 14:26:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 8 Aug 2004 14:26:11 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 08 16:26:01 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Btocb-00075H-00 for ; Sun, 08 Aug 2004 16:26:01 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C22E0126F8; Sun, 8 Aug 2004 16:25:58 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24117-01; Sun, 8 Aug 2004 16:25:58 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5CF2412777; Sun, 8 Aug 2004 16:24:09 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 53F7712772 for ; Sun, 8 Aug 2004 16:24:06 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23714-07 for ; Sun, 8 Aug 2004 16:24:05 +0200 (CEST) Original-Received: from smtp20.libero.it (unknown [193.70.192.147]) by ronja.ntg.nl (Postfix) with ESMTP id CF3D9126F8 for ; Sun, 8 Aug 2004 16:24:05 +0200 (CEST) Original-Received: from localhost (172.16.1.84) by smtp20.libero.it (7.0.027-DD01) id 40E3F8E700682E82 for ntg-context@ntg.nl; Sun, 8 Aug 2004 16:24:05 +0200 Original-Received: from ppp-238-130.29-151.libero.it (151.29.130.238) by smtp1.libero.it (7.0.027-DD01) id 40CB290902C444A7 for ntg-context@ntg.nl; Sun, 8 Aug 2004 16:24:10 +0200 X-Priority: 3 (Normal) Original-To: ntg-context@ntg.nl In-Reply-To: <20040705124217.GB2605@puritan.pcp.ath.cx> X-Virus-Scanned: by amavisd-new at libero.it X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:15973 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15973 Monday, July 5, 2004 Nikolai Weibull wrote: > * Giuseppe Bilotta [Jul 05, 2004 14:00]: >> Weird indeed. I'm not using the latest ConTeXt. (Actually I'm >> quite back with the updates ... gotta get down to it.) I'll see >> if upgrading gives me the same problem and in case get a fix. > OK. I'm now using ConTeXt ver: 2004.6.30 fmt: 2004.7.27 int: english mes: english and your example \usemodule[nath] \starttext $a, b, \dots, n$ \[ a=3Db, \dots c=3Dd \dots \] \stoptext uses, in order, \ldots, \ldots, \cdots which sounds like the correct behaviour to me. The engine is This is pdfeTeX, Version 3.141592-1.20a-rc4-2.1 (MiKTeX 2.4) >> >> \def\over{\ifmmode\n@err{Disabled command \string\over } >> >> {No more a valid command. Replace {A \over B} with \frac A >> >> B.}\else\o@over\fi} >> >> \def\atop{\ifmmode\n@err{Disabled command \string\atop } >> >> {No more a valid command. Use array instead.}\else\o@atop\fi} >> >> \def\choose{\ifmmode\n@err{Disabled command \string\choose } >> >> {No more a valid command. Replace {A \choose B} with \binom A >> >> B.}\else\o@choose\fi} >> >> > Ah, of course... >> > =09nikolai >> >> It works like that? Excellent. > It seems I spoke too soon. It does in fact not work. \o@over can't be > put like that inside the if-statement. A suggestion would be to re-work > the whole section and instead make it > \appendtoks > \def\over{\n@err{Disabled command \string\over } > {No more a valid command. Replace {A \string\over B} with \string\frac A= B.}} > \def\atop{\n@err{Disabled command \string\atop } > {No more a valid command. Use array instead.}} > \def\choose{\n@err{Disabled command \string\choose } > {No more a valid command. Replace {A \string\choose B} > with \string\binom A B. >>> }} > \to\everymath > but I don't know if that's a good solution. It forces you to use > \string\over in the second argument to \n@err which I don't understand > why, but otherwise TeX runs out of stack space. I suppose it's being > expanded even though it shouldn't be. > =09nikolai Also, I'm not sure that will work with text inside math. Can you design a small test case that uses \over (directly or indirectly) in normal text and in some \text inside a math environment so that I can see what solution works fine? In the meantime, I'm thinking along the lines of something like \def\over{% \ifmmode\n@err{Disabled command \string\over } {No more a valid command. Replace {A \over B} with \frac A B.}% \let\next\relax \else\let\next\o@over\fi\next} \def\atop{% \ifmmode\n@err{Disabled command \string\atop } {No more a valid command. Use array instead.}% \let\next\relax \else\let\next\o@atop\fi\next} \def\choose{% \ifmmode\n@err{Disabled command \string\choose } {No more a valid command. Replace {A \choose B} with \binom A B.}% \lext\next\relax \else\let\next\o@choose\fi\next} which should be robust enough. Can you try it in the context where my previous solution busted? --=20 Giuseppe "Oblomov" Bilotta