<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
Am 24.05.2014 15:13, schrieb Christophe Devalland:<br>
</div>
<blockquote
cite="mid:CAA5vxo97zY4K0S1SFJ5NJ_10WVo433up5pnKpCeQBmipHVh_QA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">2014-05-23 23:09 GMT+00:00 Reinhard
Kotucha <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:reinhard.kotucha@web.de" target="_blank">reinhard.kotucha@web.de</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div class="">
<div class="h5">
</div>
</div>
It shouldn't be necessary to install an external Lua. </blockquote>
<div><br>
</div>
<div>Great !<br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
Doesn't
TeXworks use texlua? The latter has lpeg compiled-in.
And I strongly
recommend to use texlua due to its built-in modules and
extensions.<br>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
No. On Linux, Tw relies on the system lua library. On Windows, Tw is
built as a single, large, monolithic program with all libraries
linked in statically. In the case of Lua, this is 5.2.2 ATM. So you
don't need either texlua or a standalone lua installation.<br>
<br>
<blockquote
cite="mid:CAA5vxo97zY4K0S1SFJ5NJ_10WVo433up5pnKpCeQBmipHVh_QA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
Can you provide a minimal example which allows developers
to reproduce<br>
the problem?</blockquote>
<div><br>
</div>
<div>yes, I give you a "pb_lpeg.lua" to put in
texworks/scripts directory. (Don't forget to activate
script langages in preferences). Call this script and you
have an error to load lpeg.<br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
It worked for me when installing Lua for Windows and subsequently
putting lpeg.dll into the directory containing TeXworks.exe (this is
different from Linux, where it worked for me when putting lpeg.so
into the directory where the script was).<br>
Note, though, that while this worked for Tw 0.4.5 (which was
compiled with Lua 5.1), it no longer works for recent Tw 0.5 (which
is compiled with Lua 5.2). The reason for this seems to be that Lua
for Windows uses Lua 5.1, which apparently is incompatible with Lua
5.2 used in Tw (in my tests, it caused Tw to crash).<br>
BTW: lpeg.dll needs lua51.dll (from the Lua on Windows install) to
run. I don't know if/how lua51.dll talks to Tw, so maybe you find
some inconsistencies when using lua modules in dll form (in the
sense that some global settings are not propagated to the module or
something). But then again, Lua is a scripting language, so maybe
all settings are stored on some common stack or something and there
won't be any problem.<br>
<br>
HTH<br>
Stefan<br>
<br>
</body>
</html>