[luatex] Luatex primitive names
Taco Hoekwater
taco at elvenkind.com
Wed Mar 11 09:50:36 CET 2009
Hans Hagen wrote:
>
> 2.1 Version information
> There are three new primitives to test the version of LuaTEX:
> primitive explanation
> \luatexversion a combination of major and minor number, as in pdfTEX;
> the current current value
> is 34
> \luatexrevision the revision, as in pdfTEX; the current value is 0
> \luatexdatestamp a combination of the local date and hour when the
> current executable was compiled,
And all three are available as keys in the lua 'tex' table:
\directlua0{
print ('version:' .. tex.luatexversion)
print ('revision:' .. tex.luatexrevision)
print ('datestamp:' .. tex.luatexdatestamp)
}
\bye
Best wishes,
Taco
More information about the luatex
mailing list