[luatex] luamplib

Keith J. Schultz schultzk at gmx.net
Mon Jan 14 12:50:39 CET 2013


Hi Herbert,

Using TexLive 2012 I get the result as in  http://perce.de/pub/mpost.png
in the produced pdf.

Using the latest LuaTeX 0.74 from TLContrib I get the result as in 
http://perce.de/pub/mplib.png !

So, there is probably a bug in the luamplib in LuaTeX 0.74!

What I have notice is that using LuaTeX 0.74 it takes almost I would say 
ten times as long to process the file!! 

regards
	Keith.


Am 14.01.2013 um 11:31 schrieb Herbert Voss <Herbert.Voss at FU-Berlin.DE>:

> 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