* textext funny error
@ 2005-12-28 4:43 David Arnold
2005-12-28 9:30 ` Hans Hagen
2005-12-28 9:31 ` Taco Hoekwater
0 siblings, 2 replies; 4+ messages in thread
From: David Arnold @ 2005-12-28 4:43 UTC (permalink / raw)
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:
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: textext funny error
2005-12-28 4:43 textext funny error David Arnold
@ 2005-12-28 9:30 ` Hans Hagen
2005-12-28 9:31 ` Taco Hoekwater
1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2005-12-28 9:30 UTC (permalink / raw)
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
how about
texexec --mptex junk6-mpgraph.mp
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: textext funny error
2005-12-28 4:43 textext funny error David Arnold
2005-12-28 9:30 ` Hans Hagen
@ 2005-12-28 9:31 ` Taco Hoekwater
2005-12-28 17:25 ` David Arnold
1 sibling, 1 reply; 4+ messages in thread
From: Taco Hoekwater @ 2005-12-28 9:31 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: textext funny error
2005-12-28 9:31 ` Taco Hoekwater
@ 2005-12-28 17:25 ` David Arnold
0 siblings, 0 replies; 4+ messages in thread
From: David Arnold @ 2005-12-28 17:25 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-12-28 17:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-28 4:43 textext funny error David Arnold
2005-12-28 9:30 ` Hans Hagen
2005-12-28 9:31 ` Taco Hoekwater
2005-12-28 17:25 ` David Arnold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).