[metapost] Can I use interactive mode in Lua?

Rui Zhang zrui16 at hotmail.com
Sun Oct 15 14:40:50 CEST 2017


The standalone mpost program has online error recovery.
When I use mplib in LuaTeX I lose that feature.
(I use luamplib.sty, and sometimes the error messages stack up and are very difficult to read.)

I wonder if it is possible to use interactive mode in Lua.
Apparently setting interaction to 'errorstopmode' (which is by default) does not help.  (It's working as if in scroll mode - I cannot even let it stop on the first error.)  I don't know if it is due to the hard-coded noninteractive=1 in lmplib.c mplib_new().  The comment on that line says it is "required !".  So I'm out of luck?

Thanks,
Rui


More information about the metapost mailing list