At 11:07 PM 3/26/2002 +0000, Nigel King wrote:
>Hi all,
>There appears to be an incompatibility between the MetaPost graphing
>functions and MetaFun.
>
>The �testmp.tex� file is a nearly minimum file to test the various metapost
>creations. The first two graphics produce the expected result while the
>third does not produce a result.
>
>The MetaPost log file �testmp-mpgraph.log� reveals that the number
>formatting routine is in trouble.
>
>Running mpost mem=mpost on testmp-mpgraph.mp creates the correct graphic
>which can then be incorporated. This �work around� only works because the
>graph is the last graphic.
>
>BTW it would be nice if the failure of MetaPost was reported back to the
>texexec log file. The message received is of missing pictures rather than
>execution failure.

Don't ask me why, but the following works (the problem is that metafun has 
an adapted format.tex file); if you make me a couple of examples i can see 
how i can support graph.mp in a better way (the point is that i want to 
bypass the texnum stuff and provide real texing instead of the pseudo 
texing in format.mp)

\startMPinclusions
write "" to "texnum.mp" ; batchmode ; input graph ;
init_numbers
   (textext("$-$"),
    textext("$1$"),
    textext("${\times}10$"),
    textext("${}^-$"),
    textext("${}^2$"));
Fe_base := textext("$10$") ;
\stopMPinclusions

\startuseMPgraphic{testgraphlabel}
draw begingraph(3in,2in);
setrange(origin,2,2);
endgraph;
\stopuseMPgraphic

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                                   fall-back web server: 
www.pragma-ade.nl
-------------------------------------------------------------------------

Reply via email to