I have texlive 2025 installed on windows. Typing luatex --credits I get the version number for Lua used when compiling LuaTeX as 5.3.6 I am trying to find out what library was used to compile the lpeg library into LuaTeX and the c source as well. Why I have Lua 5.3.6 installed on my computer and would like to have the same version of lpeg to use with pure Lua as well.
2 Answers
says
/* ** $Id: lpprint.c,v 1.10 2016/09/13 16:06:03 roberto Exp $ ** Copyright 2007, Lua.org & PUC-Rio (see 'lpeg.html' for license) */ That version corresponds to lpprint.c in the upstream sources, perhaps more useful is the #DEFINE in lpeg.h in the same directory
which has
#define VERSION "1.0.1" - Thanks so much. I was looking in the svn.tug.org side like a madman and for every click I got this horrible mascot telling me she is checking if I am a robot, hehehe.yannisl– yannisl2025-05-27 08:48:33 +00:00Commented May 27 at 8:48
- @yannisl That's my fault; the scraping bots were making the SVN interface completely unusable without it. But if it's not letting you through after a couple seconds, then that means that I've screwed something up, so please let me know if it's not working for you.Max Chernoff– Max Chernoff2025-05-27 08:50:26 +00:00Commented May 27 at 8:50
- @MaxChernoff I can assure you your script is working, although annoying, as no amount of love would get an an answer and a link from any of the AIs? I tried 3.yannisl– yannisl2025-05-27 08:53:36 +00:00Commented May 27 at 8:53
- 1@yannisl note updated answerDavid Carlisle– David Carlisle2025-05-27 09:27:31 +00:00Commented May 27 at 9:27
Instead of checking the source code, you can also get the version directly from TeX (well, Lua):
\directlua{print("LPEG Version:", lpeg.version())} \csname@@end\endcsname\end This is LuaHBTeX, Version 1.21.0 (TeX Live 2025) [...] LPEG Version: 1.0.1 - 1I had the version number, but wanted to make sure I had the correct lpeg.c file as well.yannisl– yannisl2025-05-27 08:57:22 +00:00Commented May 27 at 8:57
- Can't you check using
texluaso avoiding needing the TeX side entirely?2025-05-27 08:58:31 +00:00Commented May 27 at 8:58 - 1@MaxChernoff Sure - I have
texluaas one of the engine choices in TeXworks :)2025-05-27 09:11:22 +00:00Commented May 27 at 9:11 - 1Interestingly you get the system to print 1.0.1, whereas I show the source comment in lpeg.c which shows (a) it claims to be
lpprint.cand (b) it claims to be version 1.10. Moral: never believe code comments or documentation:-)David Carlisle– David Carlisle2025-05-27 09:21:57 +00:00Commented May 27 at 9:21 - 1I will update my answer with the version from the
.hheader (so it matches yours)David Carlisle– David Carlisle2025-05-27 09:24:06 +00:00Commented May 27 at 9:24
[email protected]and request that they upgrade.