[luatex] Lua access to pdf back end variables

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Dec 14 17:54:59 CET 2015


On 14/12/2015 12:45, Hans Hagen wrote:
> On 12/14/2015 12:27 PM, Joseph Wright wrote:
>> Hello all,
>>
>> With the v0.85 release, pdfTeX primitives such as \pdfdecimaldigits are
>> removed with TeX access documented using for example
>>
>>      \pdfvariable decimaldigits
>>
>> Currently, the documentation still lists the Lua access routes as e.g.
>> tex.pdfdecimaldigits. Is this likely to change? I'm trying to set up
> 
> ah, yes, i'll remove these

Am I right in understanding that they were removed from the v0.85
binaries (this seems to be the case).

>> some code to work with LuaTeX both before and after this change but
>> without having to globally enable a load of names then tidy them up. Lua
>> access seems to be the way to do this *but* I'm not sure if I need
>>
>>      local decimaldigits = tex.pdfdecimaldigits
>>
>> or
>>
>>       local decimaldigits = tex.decimaldigits or tex.decimaldigits
>>
>> or ...
> 
> i added
> 
> pdf.setdegitaldigits(n)
> 
> n = pdf.setdegitaldigits()

Presumably this route will be available in v0.90? It seems that there is
a 'gap' where there is no Lua access to these concepts: is that correct?

Joseph



More information about the luatex mailing list