From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: metafun/graph \times error (mkiv)
Date: Fri, 18 Dec 2009 23:04:01 +0100 [thread overview]
Message-ID: <4B2BFC51.3090308@wxs.nl> (raw)
In-Reply-To: <200912181412.45936.alan.braslau@cea.fr>
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
___________________________________________________________________________________
prev parent reply other threads:[~2009-12-18 22:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-08 11:11 missing metafun graphics in mkii Mojca Miklavec
2009-06-08 11:30 ` Peter Münster
2009-06-08 11:38 ` Zhichu Chen
2009-06-08 11:43 ` Peter Rolf
2009-06-08 11:57 ` Hans Hagen
2009-06-08 12:37 ` Mojca Miklavec
2009-06-08 14:25 ` Hans Hagen
2009-12-18 13:12 ` metafun/graph \times error (mkiv) Alan BRASLAU
2009-12-18 22:04 ` Hans Hagen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B2BFC51.3090308@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).