From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55252 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: metafun/graph \times error (mkiv) Date: Fri, 18 Dec 2009 23:04:01 +0100 Message-ID: <4B2BFC51.3090308@wxs.nl> References: <6faad9f00906080411n34a46b57xa845abd989e8ccb0@mail.gmail.com> <200912181412.45936.alan.braslau@cea.fr> 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 1261173881 15516 80.91.229.12 (18 Dec 2009 22:04:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Dec 2009 22:04:41 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 18 23:04:33 2009 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.50) id 1NLkw3-0006or-Kz for gctc-ntg-context-518@m.gmane.org; Fri, 18 Dec 2009 23:04:31 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C8C11C9BC5; Fri, 18 Dec 2009 23:04:28 +0100 (CET) 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 fsNq7ppyKkHA; Fri, 18 Dec 2009 23:04:25 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 44F30C9BAE; Fri, 18 Dec 2009 23:04:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A8CB9C9BAE for ; Fri, 18 Dec 2009 23:04:19 +0100 (CET) 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 p2XtnNrRgaaQ for ; Fri, 18 Dec 2009 23:04:04 +0100 (CET) Original-Received: from mail.solcon.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by balder.ntg.nl (Postfix) with ESMTP id 549C6C9BA3 for ; Fri, 18 Dec 2009 23:04:02 +0100 (CET) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.101; Original-Received: from [10.100.1.101] (unverified [10.100.1.101]) by controller-9 (SurgeMail 4.2a3) with ESMTP id 14052-1713362 for ; Fri, 18 Dec 2009 23:01:55 +0100 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <200912181412.45936.alan.braslau@cea.fr> X-Authenticated-User: hagen@controller-9 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:55252 Archived-At: Alan BRASLAU wrote: > Metapost/graph currently does not handle scientific notation correctly in > mkiv: > > -> 1.5imes106 > > (and does not work at all in mkii) > > Alan > > %% minimal example: > > \usemodule[graph] > > \starttext > > \startMPcode > draw begingraph(12cm,12cm) ; > setcoords(linear,linear) ; > setrange(0,0,365,"2000000") ; > endgraph ; > \stopMPcode > > \stoptext patch this in m-graph.mkiv: \ -> \\ return "\\times10^{"..(s:gsub("%+*0*","")).."}" ----------------------------------------------------------------- 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________