<br><br><div class="gmail_quote">On Wed, Aug 8, 2012 at 5:43 PM, Keith J. Schultz <span dir="ltr"><<a href="mailto:schultzk@uni-trier.de" target="_blank">schultzk@uni-trier.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Manuel, All,<br>
<br>
I find that the mplibcode environment in LuaLaTeX is missing<br>
an important feature. There is no way to call Lua from inside it!<br>
<br>
I have investigated the code and found that the use of the verbatim-<br>
environment is preventing this. But, there is a way to install a Lua-calling<br>
mechanism.<br>
<br>
In the Lua-code of of luamplib. the function addline needs to be patched to<br>
catch a dolua-command, extract the Lua-function, call it and finally feed the result<br>
in the normal way to mplib.<br>
<br>
I have done that!<br>
<br>
Is there an interest for such a feature.? What kind of syntax would be preferred?<br>
<br>
It would be possible to write:<br>
<br>
\begin{mplibcode}<br>
. . .<br>
<br>
dolua(generatesomecommands(with, and, that))<br>
<br>
. . .<br>
\end{mplibcode}<br>
<br>
regards<br>
<span class="HOEnZb"><font color="#888888"> Keith<br>
<br>
<br>
</font></span></blockquote></div><div>isn't loadstring(s [,name]) enough ?</div><br clear="all"><div><br></div>-- <br>luigi<br><br>