[luatex] using lualibs

Ulrike Fischer luatex at nililand.de
Tue Oct 2 11:04:56 CEST 2018


Am Tue, 2 Oct 2018 09:21:10 +0200 schrieb Herbert Voss:

> I thought that I could use the lualibs modules when running
> a lua file with texlua:
> 
> texlua test.lua
> 
> throws an error:
> 
> ... module 'lualibs-unicode' not found:
> 	no field package.preload['lualibs-unicode']
> 
> 
> 
> --  test.lua
> require ("lualibs-unicode")
> print("Hello")
> 
> up-to-date TL2018 with LuaTeX, Version 1.09.0

You need to activate kpse:

kpse.set_program_name ("luatex")
require("lualibs-unicode")

Then the library is found (but as a standalone file it is not
functional, you will need to load some more code, or e.g. simply
lualibs.lua). 

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



More information about the luatex mailing list