Re: [NTG-context] Getting the width of an expression inside lua

2009-11-02 Thread Matthijs Kooijman
Hi Hans, thanks for the instant reply :-) I haven't tried your suggestion yet, but I've got a few questions first. \startluacode function document.step_one(str) tex.sprint(\\setbox0\\hbox{,str,}) Would there be any danger of overwriting an existing box by doing this? I'm not quite sure

Re: [NTG-context] Getting the width of an expression inside lua

2009-11-02 Thread Hans Hagen
Matthijs Kooijman wrote: Hi Hans, thanks for the instant reply :-) I haven't tried your suggestion yet, but I've got a few questions first. \startluacode function document.step_one(str) tex.sprint(\\setbox0\\hbox{,str,}) Would there be any danger of overwriting an existing box by doing