And this only works for \hbox (the primitive has no effect on \vbox or \vtop).
On Fri, Sep 13, 2013 at 5:12 PM, Vafa Khalighi <[email protected]> wrote: > no worries. I finally understood how that works. > > \setbox0\hbox{This is a test.} > \boxdir 0 TRT > \box0 > > so the syntax is \boxdir <box register> <direction> > > > On Fri, Sep 13, 2013 at 5:07 PM, Vafa Khalighi <[email protected]>wrote: > >> Hi >> >> How \boxdir primitive work? if I give \boxdir TRT, I get error and luatex >> expects the argument to be a number. I tried giving different numbers but >> this time it complained that "that is a bad direction". However \boxdir >> 0TRT gives no error (actually you can replace 0 with any other number) but >> that would not change the direction of any box. >> >> >> >> >> >
