[luatex] luamplib

Herbert Voss Herbert.Voss at FU-Berlin.DE
Mon Jan 14 11:31:56 CET 2013


Hi all,

I get different images when running the example with lualatex
and with mpost:

\documentclass{minimal}
\usepackage{luamplib}
\begin{document}
\begin{mplibcode}
input featpost3Dplus2D
beginfig(1);
color gammacnt;
numeric r,R,aux,i,numc,foc,lc;
path conepath, latpath;
pen thickp;
f:= (2,3,4);
viewcentr:= 1.5*(1,1,1);
Spread:=200; Shifts:=300;
R=0.3;
numc=9;
thickp=pencircle scaled .5;
pickup thickp;
tropicalglobe(numc,black,R,blue);
for i=1 upto numc:
   aux:= (i-1)*180/numc;
   gammacnt:=(cosd(aux),sind(aux),0);
   draw spatialhalfcircle
         (black,gammacnt,R,true);
endfor;
endfig;
\end{mplibcode}

\end{document}

gives the image http://perce.de/pub/mplib.png

and using

input featpost3Dplus2D
beginfig(1);
color gammacnt;
numeric r,R,aux,i,numc,foc,lc;
path conepath, latpath;
pen thickp;
f:= (2,3,4);
viewcentr:= 1.5*(1,1,1);
Spread:=200; Shifts:=300;
R=0.3;
numc=9;
thickp=pencircle scaled .5;
pickup thickp;
tropicalglobe(numc,black,R,blue);
for i=1 upto numc:
   aux:= (i-1)*180/numc;
   gammacnt:=(cosd(aux),sind(aux),0);
   draw spatialhalfcircle
         (black,gammacnt,R,true);
endfor;
endfig;

with running mpost on it gives the correct
output http://perce.de/pub/mpost.png

What's going wrong here?

Herbert


More information about the luatex mailing list