Hallo, the following compiles ok, but gives me an status 3=fatal error. Can someone please point me to the error? \startlua mp = mplib.new ( { hash_size = 100000, main_memory = 2000000, param_size = 100000, } ) if mp then res = mp:execute( "beginfig(1) draw (0,0) .. (1,1) .. (2,1); endfig; bye;" ) tex.print("[" .. tostring(res.status) .. "]") mp:finish() end \stoplua Wolfgang
Wolfgang Werners-Lucchini wrote:
Hallo,
the following compiles ok, but gives me an status 3=fatal error. Can someone please point me to the error?
\startlua mp = mplib.new ( { hash_size = 100000, main_memory = 2000000, param_size = 100000, } )
if mp then res = mp:execute( "beginfig(1) draw (0,0) .. (1,1) .. (2,1); endfig; bye;" ) tex.print("[" .. tostring(res.status) .. "]") mp:finish() end \stoplua
no format, so beginfig, draw etc are unknown metapost.process("metafun","some commands") may work better ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Wolfgang Werners-Lucchini