[luatex] lua equivalent of vbox...ht
luigi scarso
luigi.scarso at gmail.com
Mon Sep 14 15:41:00 CEST 2009
On Mon, Sep 14, 2009 at 3:02 PM, Patrick Gundlach <patrick at gundla.ch> wrote:
> Hello Luigi, all,
>
>> It's not correct -- I must set head.width = 1451240 by try and error
>
> I'll wait for Taco to get back from vacation :)
>
> Patrick
>
>
ok , in the meanwhile this looks better
\starttext
\directlua{
T=node.new(37)
T.char=84
T.font=1
E=node.new(37)
E.char=69
E.font=1
X=node.new(37)
X.char=88
X.font=1
space=node.new(37)
space.char=32
space.font=1
T.next = E
E.next = X
X.next = space
head=node.hpack(T)
tex.setbox(0,head)
texio.write_nl(tex.wd[0])
}
\framed{\box0}
\stoptext
--
luigi
More information about the luatex
mailing list