<div dir="ltr">And this only works for \hbox (the primitive has no effect on \vbox or \vtop).</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 13, 2013 at 5:12 PM, Vafa Khalighi <span dir="ltr"><<a href="mailto:persian-tex@tug.org" target="_blank">persian-tex@tug.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">no worries. I finally understood how that works.<div><br></div><div><div>\setbox0\hbox{This is a test.}</div>
<div>\boxdir 0 TRT</div><div>\box0</div></div><div><br></div><div>so the syntax is \boxdir <box register> <direction></div>
</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 13, 2013 at 5:07 PM, Vafa Khalighi <span dir="ltr"><<a href="mailto:persian-tex@tug.org" target="_blank">persian-tex@tug.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi<div><br></div><div>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.</div>


<div><br></div><div><br></div><div><br></div><div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>