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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to