[NTG-context] missing btex ..etex in mp figure

luigi scarso luigi.scarso at gmail.com
Sat May 17 19:41:15 CEST 2008


Ok.
In next example, f>0 is hide


\starttext
\startTEXpage\startMPcode
%beginfig(2);

h=2in; w=2.7in;
path p[], q[], pp;
for i=1.5,2,4:
  ii := i**2;
  p[i] = (w/ii,h){1/ii,-1}...(w/i,h/i)...(w,h/ii){1,-1/ii};
endfor
for i=.5,1.5:
  q[i] = origin..(w,i*h) cutafter p1.5;
endfor

pp = buildcycle(q0.5, p2, q1.5, p4);

fill pp withcolor .8white;
z0=center pp;
picture lab; lab=thelabel(btex $f>0$ etex, z0);
unfill bbox lab; draw lab;
draw q0.5; draw p2; draw q1.5; draw p4;
makelabel.top(btex $P$ etex, p2 intersectionpoint q0.5);
makelabel.rt(btex $Q$ etex, p2 intersectionpoint q1.5);
%endfig;
\stopMPcode\stopTEXpage
\stoptext

-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org


More information about the ntg-context mailing list