Re: [NTG-context] Testing the changing dimensions of boxes (in cycles) via Lua

2012-06-15 Thread luigi scarso
On Thu, Jun 14, 2012 at 10:17 PM, Jaroslav Hajtmar hajt...@gyza.cz wrote: Hello ConTeXist and Lua experts. In a my Lua project I need to determine the changing dimensions of the TeX \vbox through Lua. In ConTeXt cycle, it works fine, but in the Lua cycle does not change the dimensions of the

Re: [NTG-context] Testing the changing dimensions of boxes (in cycles) via Lua

2012-06-15 Thread Jaroslav Hajtmar
Thanks very much to Luigi. Your solution really works. Can you please explain why you doing this? My point is that if I have the LUA code in a separate lua file (loaded with the Contex via \directlua{dofile(filename.lua)}) (for example as a separate Lua function), so I'm probably not so to do

[NTG-context] Testing the changing dimensions of boxes (in cycles) via Lua

2012-06-14 Thread Jaroslav Hajtmar
Hello ConTeXist and Lua experts. In a my Lua project I need to determine the changing dimensions of the TeX \vbox through Lua. In ConTeXt cycle, it works fine, but in the Lua cycle does not change the dimensions of the box. What am I doing wrong? Thank you. Jaroslav Hajtmar Here is my