diff options
author | Elie Roux <elie.roux@telecom-bretagne.eu> | 2010-05-15 15:31:22 +0300 |
---|---|---|
committer | Elie Roux <elie.roux@telecom-bretagne.eu> | 2010-05-15 15:31:22 +0300 |
commit | 77afbb2c3bf74a992579c9b87338e74dbc5dda82 (patch) | |
tree | 823b3724a16b74f35235b67ba24da720d579eec3 /lualibs.dtx | |
parent | 751cd5a244ee7504e9960c45252b05f431a9c098 (diff) | |
download | lualibs-77afbb2c3bf74a992579c9b87338e74dbc5dda82.tar.gz |
Adding a module() call, and compatibility with luatexbase.loader
Now we can require luatexbase.loader and use lualibs in a texlua context (before it complained about a nil provides_module field).
Diffstat (limited to 'lualibs.dtx')
-rw-r--r-- | lualibs.dtx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lualibs.dtx b/lualibs.dtx index 56aba9d..c34f8e3 100644 --- a/lualibs.dtx +++ b/lualibs.dtx @@ -167,6 +167,8 @@ and the derived file lualibs.lua. % \fi % % \begin{macrocode} +module('lualibs', package.seeall) + do local lualibs_module = { name = "lualibs", @@ -177,7 +179,7 @@ do copyright = "PRAGMA ADE / ConTeXt Development Team", license = "See ConTeXt's mreadme.pdf for the license", } - if luatexbase then + if luatexbase and luatexbase.provides_module then luatexbase.provides_module(lualibs_module) end end |