lvjr / tabularray

Typeset tabulars and arrays with LaTeX3
https://ctan.org/pkg/tabularray
247 stars 22 forks source link

Rewrite table building code with Lua #250

Open lvjr opened 2 years ago

lvjr commented 2 years ago

Maybe we can rewrite table building code with Lua language in the future. This would make tabularray run much faster on LuaTeX.

lvjr commented 1 year ago

Since lua doesn't have catcodes, there might be some limitations in building tables with lua.

user202729 commented 1 year ago

Just come across this -- maybe you already know but Lua has some support for tokens.

Lots of things need to be manually implemented though e.g. you can't create a control sequence not in the hash table on Lua side (but then Lua doesn't even have a built-in to concatenate to tables so maybe this is expected...)

https://tex.stackexchange.com/questions/45293/can-the-lua-part-of-luatex-know-about-tokens/