········· > On 19-6-2012 07:53, Philipp Gesang wrote: > >Ahoj! > > > >········· > > > >>On Mon, 18 Jun 2012 16:56:56 +0200, Jaroslav Hajtmar wrote: > >> > >>>Ahoj... > >>>To bych ti rekl ... :-) > >>> tex.box[0].height > >> > >>... To ale získáš jen výšku boxu, ne? > >> > >>Co když ten hbox chceš vysázet Luou na nějakou šířku? > > > >Na to budeš potřebovat node.hpack() (luatexref-t.pdf, s. 95). > > \starttext > \startluacode > context(typesetters.hpack("Na to budeš potřebovat > 'typesetters.hpack'")) > \stopluacode > \stoptext Now this is awesome. Never knew you could pass nodes directly to context(). (Otoh it seems like you can’t pass the value of typesetters.hpack() to node.write() anymore, even though it is indicated in the comments.) But now you need to set the width manually: ······································································· \starttext \startluacode local hbox = typesetters.hpack"Hello World!" hbox.width = 2*hbox.width context"foo" context(hbox) context"bar" \stopluacode \stoptext ······································································· Philipp > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments