-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single file version of penlight? #390
Comments
Quite some time ago I packed a subset of Penlight along with other Lua modules using https://github.com/mihacooper/luacc and I think it should still be reasonably easy to do something like this if you need to. |
@catwell Can you show how to do it? |
Another tool for this is squish |
Yes, here is an example for just stringx (which depends on utils and compat). First (this is a trick because luacc expects a main script) create a file that just contains Then run: lua bin/luacc.lua \
-o penlight-amalg.lua -i "/path/to/Penlight/lua" \
"empty" "pl.compat" "pl.utils" "pl.stringx" You can now do this:
|
thank you very much |
@myselfghost feel free to download Otherwise, I had luck following these steps.
After you have |
Adding a build rule to the Penlight sources for a single-file version is something I would consider if you want to keep this open. There is probably still room for your LuaLaTeX specific packaging repo, but a single file version could have other utility and building it in CI and attaching it to releases is something we could look into. |
Okay I can re-open it--I had closed it because I found a solution, but it does seem like there is some general interest in this. |
I'm sorry that this isn't an issue per se but more of a query. I am looking into deploying penlight as a LaTeX library, however most TeX distributions prefer a small number of files and non generic (ie. init.lua in penlight would be problematic). Ideally, a single file version of penlight would solve this problem. Just curious if anyone here has merged the penlight modules into a single file, or has had luck using any existing tools (amalg, many2one)?
Thank you
The text was updated successfully, but these errors were encountered: