<div dir="ltr"><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
<br>
</div>To add to the other solutions... this one only defines one<br>
macro and works with both { } and \bgroup \egroup...<br>
<br>
\def\hboxR{\begingroup<br>
\everyhbox{%<br>
\aftergroup\endgroup<br>
\everyhbox{}%<br>
<div class="im"> \beginR<br>
\bgroup<br>
\aftergroup\endR<br>
\aftergroup\egroup<br>
</div> }\hbox}<br>
<font color="#888888"></font><br></blockquote></div><br>\setbox0=\hboxR{This is a test.}<br>\box0<br><br>Would not work here, because TeX expects a box. How can one fix this?<br clear="all"><br>-- <br>Best wishes,<br>Vafa Khalighi<br>
</div>