Hans, Taco, et al, I have a funny error involving textext. If I do two compiles of the following code, saved a junk6.tex, with: texexec junk6 texexec junk6 This produces a file junk6.pdf that looks as it should. However, if I compile the junk6-mpgraph.mp that is produced with the above runs, I get: (/usr/local/teTeX/share/texmf.local/metapost/context/base/mp-core.mp)
unknown picture p textext.rt ! Equation cannot be performed (unknown picture=numeric). <to be read again> ( create_axes->...pt;save.p;picture.p;p:=textext.rt(
(TEXT8));p:=p.shifted(1.05... l.148 ...max,ymin,ymax,width,height)("$x$")("$y$") ; ? Very perplexing. Any comments? Helpful corrections? Here's the file: %output=pdf \startMPinclusions vardef create_axes (expr l,r,b,t,wid,ht) (text xlbl,ylbl) = save ux, uy; numeric ux, uy; (r-l)*ux=wid; (t-b)*uy=ht; textextoffset:=3pt; save p; picture p; p:=textext.rt(xlbl); p:=p shifted (1.05*r*ux,0); save q; picture q; q:=textext.top(ylbl); q:=q shifted (0,1.05*t*uy); drawdblarrow (1.05*l*ux,0)--(1.05*r*ux,0); draw p; drawdblarrow (0,1.05*b*uy)--(0,1.05*t*uy); draw q; enddef; \stopMPinclusions \starttext \startMPpage %initialize window parameters numeric xmin, xmax, xscl, ymin, ymax, yscl; xmin:=-5; xmax:=5; xscl:=1; ymin:=-5; ymax:=5; yscl:=1; %initialize dimensions of image numeric width, height; width=3in; height=3in; %create the axes create_axes(xmin,xmax,ymin,ymax,width,height)("$x$")("$y$"); \stopMPpage \stoptext %%% Local Variables: %%% mode: conTeXt-en %%% End:
David Arnold wrote:
Hans, Taco, et al,
I have a funny error involving textext. If I do two compiles of the following code, saved a junk6.tex, with:
texexec junk6 texexec junk6
This produces a file junk6.pdf that looks as it should.
However, if I compile the junk6-mpgraph.mp that is produced with the above runs, I get:
You need: mpost -mem=metafun junk6-mpgraph Cheers, Taco
Hans, Taco, Of course. Thanks. On Dec 28, 2005, at 1:31 AM, Taco Hoekwater wrote:
David Arnold wrote:
Hans, Taco, et al, I have a funny error involving textext. If I do two compiles of the following code, saved a junk6.tex, with: texexec junk6 texexec junk6 This produces a file junk6.pdf that looks as it should. However, if I compile the junk6-mpgraph.mp that is produced with the above runs, I get:
You need:
mpost -mem=metafun junk6-mpgraph
Cheers, Taco _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
participants (3)
-
David Arnold
-
Hans Hagen
-
Taco Hoekwater