[metapost] Can I use interactive mode in Lua?

Hans Hagen pragma at wxs.nl
Sun Oct 15 16:06:50 CEST 2017


On 10/15/2017 2:40 PM, Rui Zhang wrote:
> 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?
when a macro package uses the library then it has to make sure it 
reports the errors which are available in the result table

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the metapost mailing list