On Thursday 23 January 2003 13:19, Hans Hagen wrote:
> can you prepare a simple example + set of files needed

attached: pie.mp, extfig.tex, incontext.tex

1. mpost pie.mp 
   works well, graphics can be included as external figure in
   extfig.tex.

2. mptopdf pie.mp   or   texexec incontext
   complains about being unable to produce mpx file

As far as I understood the piechartmp manual, the line
SetupText(1,this,this);
should activate TeX typesetting without changing the default
parameters for which TeX to use and which setup commands to execute.

Removing this line removes all problems, but of course no more
TeX labels...

-- 
Eckhart
input piechartmp;
SetupText(1,this,this);
Segment(1674,"$\sqrt x$",(.8,.0,.0),"16740");
Segment(305.3,"\TeX",(.0,.6,.0),"3053");
Segment(55.2,"help",(.6,.8,.8),"552");
beginfig(1);
  PieChart(6cm,0.1,65,330,0);
  Label.auto(0)(name)(outwards,0);
endfig;
end.
\startreusableMPgraphic{strucpie}
  input piechartmp;
  SetupText(1,this,this);
  Segment(1674,"$\sqrt x$",(.8,.0,.0),"16740");
  Segment(305.3,"\TeX",(.0,.6,.0),"3053");
  Segment(55.2,"help",(.6,.8,.8),"552");
  PieChart(6cm,0.1,65,330,0);
  Label.auto(0)(name)(outwards,0);
\stopreusableMPgraphic

\starttext
\reuseMPgraphic{strucpie}
\stoptext
\useexternalfigure[pie][pie.1][]
\starttext
\externalfigure[pie]
\stoptext

Reply via email to