[luatex] LuaTeX 0.76: problem with pdf_colorstack whatsit

Stephan Hennig mailing_list at arcor.de
Mon Apr 29 18:25:41 CEST 2013


Hi,

the attached code creates a whatsit node of subtype pdf_colorstack and
tries to assign a value to field 'cmd'.  This runs fine with LuaTeX
0.70.2 from TL 2012, but gives an error with LuaTeX 0.76.0 from
TL2013pretest.  How should the code be adapted to run with LuaTeX 0.76?

Best regards,
Stephan Hennig


\directlua{
  local WHATSIT = node.id('whatsit')
  local PDF_COLORSTACK = node.subtype('pdf_colorstack')
  texio.write_nl(WHATSIT, PDF_COLORSTACK)

  local push = node.new(WHATSIT, PDF_COLORSTACK)
  push.cmd = 1
}
\bye


> This is LuaTeX, Version beta-0.76.0-2013042406 (rev 4627)  (format=luatex 2013.4.26)  29 APR 2013 18:24
>  restricted \write18 enabled.
> **pdfcolorstack
> (./pdfcolorstack.tex
> 8
> 39
> ! LuaTeX error [string "\directlua "]:1: You cannot set field cmd in a node of t
> ype whatsit
> stack traceback:
> 	[C]: in function '__newindex'
> 	[string "\directlua "]:1: in main chunk.
> l.8 }
>    
> ? 
>  )
> 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 luatex mailing list