summaryrefslogtreecommitdiff
path: root/luaextra.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'luaextra.dtx')
-rw-r--r--luaextra.dtx5
1 files changed, 2 insertions, 3 deletions
diff --git a/luaextra.dtx b/luaextra.dtx
index b74bb26..61fc1f5 100644
--- a/luaextra.dtx
+++ b/luaextra.dtx
@@ -198,9 +198,8 @@ kpse.set_program_name("luatex")
local function load_luaextra_module(filename)
local path = kpse.find_file(filename)
texio.write_nl('log', string.format("luaextra: loading file %s", path))
- if tex and tex.luatexversion and tex.luatexversion > 44 then
- -- this means that by default we use old-style loading for texlua,
- -- as the tex table is not available.
+ if (tex and tex.luatexversion and tex.luatexversion > 44)
+ or (status and status.luatex_version and status.luatex_version > 44) then
require(filename)
else
dofile(kpse.find_file(filename))