From 77afbb2c3bf74a992579c9b87338e74dbc5dda82 Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Sat, 15 May 2010 15:31:22 +0300 Subject: 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). --- lualibs.dtx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lualibs.dtx') 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 -- cgit v1.2.3