[luatex] Luatex primitive names

Taco Hoekwater taco at elvenkind.com
Wed Mar 11 09:02:18 CET 2009


Manuel Pégourié-Gonnard wrote:
> Karl Berry a écrit :
>> Taco (or anyone) -- is there some simple Lua function which returns some
>> engine identification?
>>
>> I'm thinking of something like
>> \directlua{tex.engine_ident()}  (sorry, wrong syntax, I know),
>> which both luatex and xetex could implement.
>>
> Hum, there is currently no \directlua in XeTeX. I mentioned it only as a
> possibility in the future, since I think it is important that engine+version
> identification be stable in time.
> 
>> (I concur with the opinions of only exposing \directlua.)
> 
> Well, I'm also for exposing only \directlua if there is a variable like
> tex.luatexversion (or lua.luatexversion or whatever).

There is the variable tex.luatexversion; its current value is 35.

Best wishes,
Taco


More information about the luatex mailing list