[NTG-context] runtime problem with metafun() code

Peter Rolf indiego at gmx.net
Fri Jan 24 13:35:27 CET 2014


Hi,

I try to create a Metapost path in lua and it works so far for the
attached example. But a call of that function from another lua function
sadly fails (no path visible after call). The code seems to be executed
later (the output from 'show pid;' appears somewhere later in the log).

How can I ensure that the code is executed at runtime?


Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplua.lua
Type: text/x-lua
Size: 1157 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20140124/d58b2fcf/attachment.bin>
-------------- next part --------------
\ctxloadluafile{mplua}{}


\starttext
\ctxlua{metapost.showlog = true}

\ctxlua{thirddata.drops.generate_default_path("drops:boxshadow-w199h100r10","200pt","100pt","10pt")}
\ctxlua{inspect(metapost.variables)}



\stoptext


More information about the ntg-context mailing list