[luatex] [lltx] new(missing) feature for luamplib for LuaLaTeX

luigi scarso luigi.scarso at gmail.com
Wed Aug 8 17:53:43 CEST 2012


On Wed, Aug 8, 2012 at 5:43 PM, Keith J. Schultz <schultzk at uni-trier.de>wrote:

> Hi Manuel, All,
>
> I find that the mplibcode environment in LuaLaTeX is missing
> an important feature. There is no way to call Lua from inside it!
>
> I have investigated the code and found that the use of the verbatim-
> environment is preventing this. But, there is a way to install a
> Lua-calling
> mechanism.
>
> In the Lua-code of of luamplib. the function addline needs to be patched to
> catch a dolua-command, extract the Lua-function, call it and finally feed
> the result
> in the normal way to mplib.
>
> I have done that!
>
> Is there an interest for such a feature.? What kind of syntax would be
> preferred?
>
> It would be possible to write:
>
> \begin{mplibcode}
>         . . .
>
>     dolua(generatesomecommands(with, and, that))
>
>         . . .
> \end{mplibcode}
>
> regards
>         Keith
>
>
> isn't  loadstring(s [,name])  enough ?


-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/luatex/attachments/20120808/1d3db778/attachment.html>


More information about the luatex mailing list