[NTG-context] metafun/graph \times error (mkiv)

2009-12-18 Thread Alan BRASLAU
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,200) ;
endgraph ;
\stopMPcode

\stoptext

___
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
___


Re: [NTG-context] metafun/graph \times error (mkiv)

2009-12-18 Thread Hans Hagen

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,200) ;
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
___