From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15643 Path: main.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Re: nath catcode issues Date: Mon, 5 Jul 2004 12:01:39 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <413064969.20040705120139@iol.it> References: <20040704133638.GA23652@puritan.pcp.ath.cx> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1089022060 19220 80.91.224.253 (5 Jul 2004 10:07:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Jul 2004 10:07:40 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Jul 05 12:07:31 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BhQNn-0002eN-00 for ; Mon, 05 Jul 2004 12:07:31 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 4A85D10B61; Mon, 5 Jul 2004 12:07:27 +0200 (MEST) Original-Received: from mbox.dmi.unict.it (mbox.dmi.unict.it [151.97.252.66]) by ref.ntg.nl (Postfix) with ESMTP id 821D310B61 for ; Mon, 5 Jul 2004 12:04:16 +0200 (MEST) Original-Received: from localhost (localhost [127.0.0.1]) by mbox.dmi.unict.it (Postfix) with ESMTP id 7321317CBC for ; Mon, 5 Jul 2004 12:04:09 +0200 (CEST) Original-Received: from mbox.dmi.unict.it ([127.0.0.1]) by localhost (mbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07602-07 for ; Mon, 5 Jul 2004 12:04:08 +0200 (CEST) Original-Received: from oblomov.dipmat.unict.it (oblomov.dipmat.unict.it [151.97.252.27]) by mbox.dmi.unict.it (Postfix) with ESMTP id 5268B17CBD for ; Mon, 5 Jul 2004 12:04:08 +0200 (CEST) X-Priority: 3 (Normal) Original-To: ntg-context@ntg.nl In-Reply-To: <20040704133638.GA23652@puritan.pcp.ath.cx> X-Virus-Scanned: by amavisd-new at dmi.unict.it 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:15643 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15643 Sunday, July 4, 2004 Nikolai Weibull wrote: > It seems that the code to enable catcode handling in nath math mode > isn't working. Currently, nath uses [snip] > to set it up, but as far as I can see this doesn't actually do anything > as \@comma doesn't get invoked for commas and \dots always renders like > \cdots. Am I missing something perhaps? Well, the nath catcodes only apply in math mode, and indeed in math mode , will trigger \@comma :) About \dots: with the nath module, \dots will *in math mode* use \cdots in all cases *except* after punctuation (e.g. after a comma); indeed, the code \[ a=b, \dots c=d \dots \] will give you \ldots in the first case and \cdots in the second case. Do you have some example of when it doesn't work? > Furthermore, > \def\over{\n@err{Disabled command \string\over } > {No more a valid command. Replace {A \over B} with \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 \choose B} with \binom A B.}} > also messes up stuff in core-ref.tex for example: AHA! Good point. Try this fix: \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} (hm. this is untested. I'm sure it'll bomb out because of expansion, I'll have to design a cleaner one.) -- Giuseppe "Oblomov" Bilotta