[metapost] Can I use interactive mode in Lua?

luigi scarso luigi.scarso at gmail.com
Mon Oct 16 22:18:17 CEST 2017


On Mon, Oct 16, 2017 at 10:10 PM, Rui Zhang <zrui16 at hotmail.com> wrote:
> Thank you for the solution.  But this does not work if I have
> a statement broken into several lines.
> For example, this should compile with standalone mpost:
>
>     draw (0,0)
>     for i = 1 upto 10:
>       -- (i, 0)
>     endfor;
>
> If somehow I can determine where the end of a statement is,
> the problem might be solved.  But it sounds like a bad idea
> to reinvent a parser for this purpose.
> --
> http://tug.org/metapost/

hm,
have you seen mplibapi.pdf at
https://www.tug.org/svn/texlive/tags/texlive-2017.1/Master/texmf-dist/doc/metapost/base

-- 
luigi


More information about the metapost mailing list