[lltx] luatexbase and module version

Stephan Hennig mailing_list at arcor.de
Fri May 10 18:40:18 CEST 2013


Hi,

luatexbase-modutils provides means to test if and what version of a
module is loaded.  I want to test if a certain version of package
luatexbase-attr is loaded, but the attached code returns nil.

Alternatively, I could check if a particular feature foo is present via

  if luatexbase.foo then

instead, but I wonder why applying the interface provided in
luatexbase-modutils to package luatexbase shouldn't work.

BTW, as you can see from the log file, package luatexbase-attr from
luatexbase v0.6 identifies itself as 2011/05/24 v0.4.  I know, there
have indeed been recent changes to luatexbase-attr.  Is that package
version and date intentional?

Best regards,
Stephan Hennig


\listfiles
\documentclass{article}
\usepackage{luatexbase}
\begin{document}
\directlua{
  local v = luatexbase.get_module_version('luatexbase')
  texio.write_nl(tostring(v))
}
\end{document}


> This is LuaTeX, Version beta-0.76.0-2013050715 (rev 4627)  (format=lualatex 2013.5.8)  10 MAY 2013 14:51
>  restricted \write18 enabled.
> **test-version
> (./test-version.tex
> LaTeX2e <2011/06/27>
> LuaTeX adaptation of babel <v3.8m-luatex-1.5> and hyphenation patterns for engli
> sh, dumylang, nohyphenation, loaded.
> (d:/texlive/2013/texmf-dist/tex/latex/base/article.cls
> Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
> (d:/texlive/2013/texmf-dist/tex/latex/base/size10.clo
> File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
> )
> \c at part=\count79
> \c at section=\count80
> \c at subsection=\count81
> \c at subsubsection=\count82
> \c at paragraph=\count83
> \c at subparagraph=\count84
> \c at figure=\count85
> \c at table=\count86
> \abovecaptionskip=\skip41
> \belowcaptionskip=\skip42
> \bibindent=\dimen102
> )
> (d:/texlive/2013/texmf-dist/tex/luatex/luatexbase/luatexbase.sty
> Package: luatexbase 2013/05/04 v0.6 Module utilities for LuaTeX
> 
> (d:/texlive/2013/texmf-dist/tex/generic/oberdiek/ifluatex.sty
> Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)
> Package ifluatex Info: LuaTeX detected.
> )
> (d:/texlive/2013/texmf-dist/tex/generic/oberdiek/luatex.sty
> Package: luatex 2010/03/09 v0.4 LuaTeX basic definition package (HO)
> 
> (d:/texlive/2013/texmf-dist/tex/generic/oberdiek/infwarerr.sty
> Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)
> )
> (d:/texlive/2013/texmf-dist/tex/latex/etex-pkg/etex.sty
> Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB)
> \et at xins=\count87
> )
> \LuT at AllocAttribute=\count277
> \LuT at AllocCatcodeTable=\count278
> \CatcodeTableStack=\count279
> \CatcodeTableIniTeX=\catcodetable1
> \CatcodeTableString=\catcodetable3
> \CatcodeTableOther=\catcodetable5
> \CatcodeTableLaTeX=\catcodetable7
> 
> (d:/texlive/2013/texmf-dist/tex/generic/oberdiek/luatex-loader.sty
> Package: luatex-loader 2010/03/09 v0.4 Lua module loader (HO)
> 
> (d:/texlive/2013/texmf-dist/scripts/oberdiek/oberdiek.luatex.lua)))
> (d:/texlive/2013/texmf-dist/tex/luatex/luatexbase/luatexbase-compat.sty
> Package: luatexbase-compat 2011/05/24 v0.4 Compatibility tools for LuaTeX
> )
> (d:/texlive/2013/texmf-dist/tex/luatex/luatexbase/luatexbase-loader.sty
> Package: luatexbase-loader 2013/04/13 v0.5 Lua module loader for LuaTeX
> 
> (d:/texlive/2013/texmf-dist/tex/luatex/luatexbase/luatexbase.loader.lua))
> (d:/texlive/2013/texmf-dist/tex/luatex/luatexbase/luatexbase-regs.sty
> Package: luatexbase-regs 2011/05/24 v0.4 Registers allocation for LuaTeX
> )
> (d:/texlive/2013/texmf-dist/tex/luatex/luatexbase/luatexbase-attr.sty
> Package: luatexbase-attr 2011/05/24 v0.4 Attributes allocation for LuaTeX
> 
> (d:/texlive/2013/texmf-dist/tex/luatex/luatexbase/attr.lua)
> \lltxb at attr@unsetvalue=\count280
> )
> (d:/texlive/2013/texmf-dist/tex/luatex/luatexbase/luatexbase-cctb.sty
> Package: luatexbase-cctb 2011/05/24 v0.4 Catcodetable allocation for LuaTeX
> 
> (d:/texlive/2013/texmf-dist/tex/luatex/luatexbase/cctb.lua)
> \lltxb at catcodetable@alloc=\count281
> \CatcodeTableStack=\count282
> \CatcodeTableIniTeX=\luatexcatcodetable1
> \CatcodeTableString=\luatexcatcodetable3
> \CatcodeTableOther=\luatexcatcodetable5
> \CatcodeTableLaTeX=\luatexcatcodetable7
> \CatcodeTableLaTeXAtLetter=\luatexcatcodetable9
> \CatcodeTableExpl=\luatexcatcodetable11
> )
> (d:/texlive/2013/texmf-dist/tex/luatex/luatexbase/luatexbase-mcb.sty
> Package: luatexbase-mcb 2013/04/13 v0.5 Callback management for LuaTeX
> 
> (d:/texlive/2013/texmf-dist/tex/luatex/luatexbase/luatexbase-modutils.sty
> Package: luatexbase-modutils 2013/04/13 v0.5 Module utilities for LuaTeX
> 
> (d:/texlive/2013/texmf-dist/tex/luatex/luatexbase/modutils.lua))
> (d:/texlive/2013/texmf-dist/tex/luatex/luatexbase/mcb.lua)
> Lua module: luatexbase-mcb 2013/04/13 0.5 register several functions in a callba
> ck
> ))
> (./test-version.aux)
> LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 4.
> LaTeX Font Info:    ... okay on input line 4.
> LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 4.
> LaTeX Font Info:    ... okay on input line 4.
> LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 4.
> LaTeX Font Info:    ... okay on input line 4.
> LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 4.
> LaTeX Font Info:    ... okay on input line 4.
> LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 4.
> LaTeX Font Info:    ... okay on input line 4.
> LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 4.
> LaTeX Font Info:    ... okay on input line 4.
> 
> nil (./test-version.aux)
> 
>  *File List*
>  article.cls    2007/10/19 v1.4h Standard LaTeX document class
>   size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
> luatexbase.sty    2013/05/04 v0.6 Module utilities for LuaTeX
> ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
>   luatex.sty    2010/03/09 v0.4 LuaTeX basic definition package (HO)
> infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)
>     etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
> luatex-loader.sty    2010/03/09 v0.4 Lua module loader (HO)
> luatexbase-compat.sty    2011/05/24 v0.4 Compatibility tools for LuaTeX
> luatexbase-loader.sty    2013/04/13 v0.5 Lua module loader for LuaTeX
> luatexbase-regs.sty    2011/05/24 v0.4 Registers allocation for LuaTeX
> luatexbase-attr.sty    2011/05/24 v0.4 Attributes allocation for LuaTeX
> luatexbase-cctb.sty    2011/05/24 v0.4 Catcodetable allocation for LuaTeX
> luatexbase-mcb.sty    2013/04/13 v0.5 Callback management for LuaTeX
> luatexbase-modutils.sty    2013/04/13 v0.5 Module utilities for LuaTeX
>  ***********
> 
>  )
> 
> Here is how much of LuaTeX's memory you used:
>  489 strings out of 494761
>  100000,89155 words of node,token memory allocated
>  262 words of node memory still in use:
>    2 hlist, 1 vlist, 1 rule, 2 glue, 39 glue_spec, 2 write nodes
>    avail lists: 2:12,3:1,6:3,7:1,9:1
>  4157 multiletter control sequences out of 65536+600000
>  15 fonts using 431807 bytes
>  32i,1n,23p,161b,36s stack positions out of 5000i,500n,10000p,200000b,100000s
> No pages of output.
> 
> PDF statistics: 0 PDF objects out of 1000 (max. 8388607)
>  0 named destinations out of 1000 (max. 131072)
>  1 words of extra memory for PDF output out of 10000 (max. 10000000)
> 


More information about the lualatex-dev mailing list