diff options
Diffstat (limited to 'Master/texmf-dist/source/luatex/luatexbase/luatexbase-modutils.dtx')
-rw-r--r-- | Master/texmf-dist/source/luatex/luatexbase/luatexbase-modutils.dtx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/luatex/luatexbase/luatexbase-modutils.dtx b/Master/texmf-dist/source/luatex/luatexbase/luatexbase-modutils.dtx index 9c2936f4ce8..dd5b118f9aa 100644 --- a/Master/texmf-dist/source/luatex/luatexbase/luatexbase-modutils.dtx +++ b/Master/texmf-dist/source/luatex/luatexbase/luatexbase-modutils.dtx @@ -263,7 +263,7 @@ See source file '\inFileName' for details. \let\x\ProvidesPackage \fi \expandafter\endgroup -\x{luatexbase-modutils}[2010/05/12 v0.2 Module utilities for LuaTeX] +\x{luatexbase-modutils}[2010/05/27 v0.2a Module utilities for LuaTeX] % \end{macrocode} % % Make sure \luatex is used. @@ -315,7 +315,7 @@ See source file '\inFileName' for details. % % \begin{macrocode} \def\luatexUseModule#1{\luatexbase@directlua{% - luatexbase.use_module("\luatexluescapestring{#1}")}} + luatexbase.use_module("\luatexluaescapestring{#1}")}} % \end{macrocode} % % Interface to |require_module()| with syntax depending on the format. @@ -486,7 +486,7 @@ function provides_module(mod) end requiredversion = requiredversions[mod.name] if requiredversion then - if requiredversion.type == date + if requiredversion.type == date and requiredversion.version > datetonumber(mod.date) then err("loading module %s in version %s, " .."but version %s was required", @@ -498,7 +498,7 @@ function provides_module(mod) mod.name, mod.version, requiredversion.orig) end end - modules[mod.name] = module + modules[mod.name] = mod texio.write_nl('log', string.format("Lua module: %s %s v%.02f %s\n", mod.name, mod.date, mod.version, mod.description)) end @@ -531,6 +531,7 @@ luatexbase.provides_module { %<testplain>\input luatexbase-modutils.sty %<testlatex>\RequirePackage{luatexbase-modutils} %<*testplain,testlatex> +\luatexUseModule{test-modutils} \luatexRequireModule %<testlatex>[1970/01/01] {test-modutils} |