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
___________________________________________________________________________________

Reply via email to