In article 
<[email protected]>,
 luigi scarso <[email protected]> 
 wrote:

> On Sun, Dec 20, 2009 at 7:11 PM, Nicola 
> <[email protected]> wrote:
> >
> > One more thing: to generate a pdf file from the given figure(s), should
> > I call an external program, such as mptopdf? I see that mplib outputs
> > Postscript and SVG and the pdf library does not seem to suit this
> > purpose (but maybe I'm wrong).
> 
> Sorry, maybe I  don't understand you question, but
> 
> luatex  = pdftex + metapost
> 
> So it should be  possible to use luatex as mpost interpreter that
> output pdf direclty.

Correct, but my question is more about lua + mplib (I use 'luatex' as an 
interpreter instead of 'lua' just for convenience, as it already 
includes the relevant libraries). Let's say I'm exploring the 
possibility of generating MetaPost code programmatically and 
interactively using Lua scripts.

> See for example
> texlive/2009/texmf-dist/tex/luatex

That is certainly worth a look.

Regards,
Nicola

Reply via email to