[NTG-context] Metapost+mpgraph and mkiv

2009-11-07 Thread Alan BRASLAU
mpgraph does not appear to work properly under mkiv.

%% minimal example %%
\starttext

\startuseMPgraphic{test}
input graph
draw begingraph(16cm,12cm);
setrange(whatever,whatever,whatever,whatever);
gdraw (0,0) -- (1,1) ;
endgraph;
\stopuseMPgraphic

\startTEXpage
\useMPgraphic{test}
\stopTEXpage

\stoptext
%


Works correctly under mkii (texexec) but not under mkiv (context).
Error message:
mplib | mp terminal: (/home/local/context/tex/texmf/metapost/base/graph.mp
! Redundant equation.
to be read again 
   ;
l.143 Gmargin.low=-.07;
  % bbox fraction for default 
ra...

! Redundant equation.
to be read again 
   ;
l.144 Gmargin.high=1.07;
  % bbox fraction for default 
ra...

)
mplib | mp error: unknown, no error, terminal or log messages
mplib | mp terminal: [1]
mplib | mp error: unknown, no error, terminal or log messages


Alan
___
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] Metapost+mpgraph and mkiv

2009-11-07 Thread Alan BRASLAU
On Saturday 07 November 2009 17:21:04 Taco Hoekwater wrote:
 
 1. You should load the MP packages you need in \startMPinclusions (this
 is where the code really belongs, even in mkii) instead of inside each
 separate graphic.
 
 2. You have to make sure that you do not re-state equations that were
 already solved in a previous graphic.
 
 These are in fact the excact same rules that you have to adhere to in
 mkii if \runMPgraphicsfalse is active.

So, for the mailing list, here is a working solution (mkii  mkiv):

%% minimal example %%
\starttext

\startMPinclusions
input graph
\stopMPinclusions

\startuseMPgraphic{test}
draw begingraph(16cm,12cm);
setrange(whatever,whatever,whatever,whatever);
gdraw (0,0) -- (1,1) ;
endgraph;
\stopuseMPgraphic

\startTEXpage
\useMPgraphic{test}
\stopTEXpage

\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] Metapost+mpgraph and mkiv

2009-11-07 Thread Wolfgang Schuster


Am 07.11.2009 um 18:58 schrieb Alan BRASLAU:


So, for the mailing list, here is a working solution (mkii  mkiv):

%% minimal example %%
\starttext

\startMPinclusions
input graph
\stopMPinclusions


\usemodule[graph]

Wolfgang

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