From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47771 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: \digits Date: Tue, 24 Feb 2009 23:33:36 +0100 Message-ID: <49A475C0.5010700@wxs.nl> References: <115224fb0902241206j7d664276ob758b21c126bf0f1@mail.gmail.com> <49A4625C.1020304@elvenkind.com> 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: ger.gmane.org 1235514946 26868 80.91.229.12 (24 Feb 2009 22:35:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Feb 2009 22:35:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 24 23:37:00 2009 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 lo.gmane.org with esmtp (Exim 4.50) id 1Lc5tX-00015G-Od for gctc-ntg-context-518@m.gmane.org; Tue, 24 Feb 2009 23:36:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D44B01FCB1; Tue, 24 Feb 2009 23:35:31 +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 08802-02; Tue, 24 Feb 2009 23:34:23 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AA39C1FC54; Tue, 24 Feb 2009 23:34:22 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CE2C71FC54 for ; Tue, 24 Feb 2009 23:34:20 +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 07070-06 for ; Tue, 24 Feb 2009 23:33:36 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by ronja.ntg.nl (Postfix) with ESMTP id D0A4F1FBAA for ; Tue, 24 Feb 2009 23:33:35 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by filter3-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n1OMXYTN027741 for ; Tue, 24 Feb 2009 23:33:35 +0100 Original-Received: from [10.100.1.107] (unverified [10.100.1.107]) by controller-1 (SurgeMail 3.9e) with ESMTP id 14200-1840426 for ; Tue, 24 Feb 2009 23:33:34 +0100 User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) In-Reply-To: <49A4625C.1020304@elvenkind.com> X-Originating-IP: 10.100.1.107 X-Authenticated-User: hagen@controller-1 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.247.100.17; country=NL; region=16; city=Dronten; latitude=52.5333; longitude=5.7167; http://maps.google.com/maps?q=52.5333,5.7167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 184725975 - ab0f55a6318f X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:47771 Archived-At: Taco Hoekwater wrote: > Wolfgang Schuster wrote: >> On Sun, Feb 15, 2009 at 5:04 PM, Wolfgang Schuster >> wrote: >>> Hi, >>> >>> the \digits command cause a error message with the last beta in MkIV. > > This took much more longer than it should. In supp-num.tex, there is > this definition: > > \def\dohandledigits > {\mathcode`\,="013B \mathcode`\.="013A % pretty hard coded > \expandafter\handletokens\collecteddigits\with\scandigits > \ifcase\powerdigits\else\digitpowerseparator^{\savedpowerdigits}\fi} > > > which is causing the trouble. I assume this is just to move them out of > the way, so replacing the two ones with zeroes probably works (?). ok, so we need \startmode[mkiv] \def\dohandledigits {\mathcode`\,="003B \mathcode`\.="003A % pretty hard coded \expandafter\handletokens\collecteddigits\with\scandigits \ifcase\powerdigits\else\digitpowerseparator^{\savedpowerdigits}\fi} \stopmode \startnotmode[mkiv] \def\dohandledigits {\mathcode`\,="013B \mathcode`\.="013A % pretty hard coded \expandafter\handletokens\collecteddigits\with\scandigits \ifcase\powerdigits\else\digitpowerseparator^{\savedpowerdigits}\fi} \stopnotmode it is on my agenda to rewrite digits in lua (we use it at pragma so i have a motive) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________