deepakjois / luapackageloader Goto Github PK
View Code? Open in Web Editor NEWCTAN package to allow LuaTeX to load external Lua packages
CTAN package to allow LuaTeX to load external Lua packages
The current package definition is as following:
\ProvidesPackage{}[\luapackageloaderpkgdate\space v\luapackageloaderversion\space Lua package searchers for LuaTeX]
This leads to the warning
LaTeX Warning: You have requested package `luapackageloader',
but the package provides `'.
which is caused by the empty argument of \ProvidesPackage
.
This should include common gotchas like
$eval (luarocks path)
to make sure LuaRocks paths are added to package.cpath
and package.path
.WIll make it easier to have the docs in Markdown (for web), LaTeX and PDF (for CTAN)
Hello,
I am unable to load an external C module installed via luarocks. I am running Mac OS 11.3.1 and have installed luarocks via homebrew and am using TeX live. To reproduce:
brew install luarocks
cjson
: luarocks install lua-cjson
LUA_PATH
and LUA_CPATH
environment variables match output of luarocks path
.lualatex --shell-escape
on a .tex file which contains lua code calling cjson
(or another library; I've also run into issues trying to get lua-curl
to work): local cjson = require("cjson")
. This produces the following:./vazneExamples.lua:3: module 'cjson' not found:
no field package.preload['cjson']
[lua searcher]: module not found: 'cjson'
no file '/opt/homebrew/Cellar/luarocks/3.8.0/share/lua/5.4/cjson.lua'
no file '/opt/homebrew/share/lua/5.4/cjson.lua'
no file '/opt/homebrew/share/lua/5.4/cjson/init.lua'
no file '/opt/homebrew/lib/lua/5.4/cjson.lua'
no file '/opt/homebrew/lib/lua/5.4/cjson/init.lua'
no file './cjson.lua'
no file './cjson/init.lua'
no file '/Users/jessebrault/.luarocks/share/lua/5.4/cjson.lua'
no file '/Users/jessebrault/.luarocks/share/lua/5.4/cjson/init.lua'
[kpse C searcher] file not found: 'cjson'
stack traceback:
[C]: in function 'require'
./vazneExamples.lua:3: in main chunk
[C]: in function 'require'
[\directlua]:2: in main chunk.
It appears that the luapackageloader is not using the C searcher/looking on LUA_CPATH. It is looking on LUA_PATH, as evidenced by the above.
I am wondering if there is any advice for this. I would love to use this package in my current project. Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.