Re: [NTG-context] Setting and measuring boxes TeX/Lua

2020-11-27 Thread Hans Hagen
Hi Jano, It's not clear to me what you want to measure when but here is a weekend playground (you're locked down anyway). \def\MacroJano#1% {\writestatus{JANO}{ONE} \setbox0=\hbox\bgroup\xmlflush{#1}\egroup} \startluacode function document.FunctionJano(id)

Re: [NTG-context] Setting and measuring boxes TeX/Lua

2020-11-27 Thread Jano Kula
Hello again, Hans! On Thu, 26 Nov 2020 at 09:18, Hans Hagen wrote: > (this mechanism is already kind of old, there are also other cheats > possible) > Diving into functions and using context.stepwise() worked, until I've got to: /cldf-stp.lua:48: bad argument #1 to 'resume' (thread expected)

Re: [NTG-context] Setting and measuring boxes TeX/Lua

2020-11-26 Thread Hans Hagen
On 11/25/2020 10:28 PM, Jano Kula wrote: Hello Hans! On Wed, 25 Nov 2020 at 21:25, Hans Hagen > wrote: \startluacode context.stepwise (function()      context.step() end) \stopluacode Thank you very much! I was trying context.stepwise several

Re: [NTG-context] Setting and measuring boxes TeX/Lua

2020-11-25 Thread Jano Kula
Hello Hans! On Wed, 25 Nov 2020 at 21:25, Hans Hagen wrote: > \startluacode > context.stepwise (function() > context.step() > end) > \stopluacode > Thank you very much! I was trying context.stepwise several times (and \dowithnextbox, \nextboxht and other things). I bet there was no

Re: [NTG-context] Setting and measuring boxes TeX/Lua

2020-11-25 Thread Hans Hagen
On 11/25/2020 7:31 PM, Jano Kula wrote: Hello! I would like to set framed boxes, measure their dimensions and proceed based on the measurement. It is a combination of TeX and Lua ends. * Boxes are set on the TeX side. Stacking boxes (hbox, framed, vbox) in Lua looked too complex. *

[NTG-context] Setting and measuring boxes TeX/Lua

2020-11-25 Thread Jano Kula
Hello! I would like to set framed boxes, measure their dimensions and proceed based on the measurement. It is a combination of TeX and Lua ends. - Boxes are set on the TeX side. Stacking boxes (hbox, framed, vbox) in Lua looked too complex. - The content of the inner box is set on the