[texworks] A request about lpeg
christophe.devalland at gmail.com
Sun Oct 2 23:16:53 CEST 2016
I'm unable to use lpeg with latest versions of windows Texworks.
Since you don't provide lua52.dll (or lua53) with texworks anymore, I tried
to add it with lpeg.dll within texworks 0.61 but TeXworks crash.
Then I compiled lua53.dll and lpeg.dll with mingw (It was working with
lua52 and lpeg) but when I call a lua script using lpeg, I get a "multiple
lua VM detected" error.
Did you change your compilation process ?
TeXworks 0.61 is no more able to call lpeg.dll.
TeXworks version 0.5-20160206 was able to.
The more simple would be to include this library inside TeXworks during
compilation, so I would ask you this again !
Thank's for any help for using latest TeXworks versions with lpeg.
2016-06-12 15:43 GMT+02:00 Christophe Devalland <
christophe.devalland at gmail.com>:
> Hi Stefan,
> you solved my issue with lpeg on windows and many users using my program
> with texworks were happy (https://github.com/cdevalland/cmathluatex/wiki/
> But one tells me that with 0.6.1 version of texworks, the lpeg.dll you
> provide doesn't work anymore (see below your link on the old google drive).
> Perhaps did you compile with lua 5.3 ?
> It would be great if you were including lpeg statically inside texworks
> but I also understand your point of vue about modularity.
> Thank's for any help.
> Best regards,
> 2014-12-23 15:46 GMT+01:00 Stefan Löffler <st.loeffler at gmail.com>:
>> On 16.12.2014 23:37, Christophe Devalland wrote:
>> > it's nice to provide lua scripts inside texworks but it would be great
>> > to be able to use the lpeg library (a parsing expression grammars for
>> > lua) in lua scripts.
>> Good to hear that Lua is actually used ;).
>> > On linux there is no problem because texworks-lua scripts use the lua
>> > installed by the user.
>> > On windows, the lua interpreter is included in texworks executable
>> > during compilation but without lpeg. Would it be possible you compile
>> > the next version with lpeg inside ? Many windows users tell me they
>> > can't use my package because of this library missing.
>> Generally, I don't want to compile in (too many) modules because it
>> somewhat contradicts the idea of modules (i.e., something that you can
>> plug in and out depending on what you need). Also, it increases the
>> download size with something that is probably not used by a majority of
>> That said, lpeg seems like a very general and useful extension in the
>> context of an editor such as TeXworks (providing text parsing
>> functionality). Therefore, I changed the build process for Lua to now
>> use dlls. This again somewhat contradicts the idea of having everything
>> in a single exe file to avoid "dll hell", but seemed the only (easy)
>> way. lpeg is not included by default, but a suitable dll can be
>> downloaded from Google Drive
>> > Lua 5.2 Modules). Just drop the dll in the same directory as
>> TeXworks.exe and lua52.dll and it should work.
>> Note that it should in principle be possible to use other modules as
>> well, but I don't know exactly about the possible compatibility issues
>> (e.g., does it need to be compiled with the same compiler? Does it need
>> to be the same Lua version?). I tried briefly with some precompiled Lua
>> 5.1 libraries I got off the internet which caused Tw to crash.
>> Future Windows builds (i.e., later than r1390) should all use the new
>> Kind regards,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the texworks