<div dir="ltr"><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>\def\hboxR to #1pt#2{\hbox to #1pt{\beginR #2 \endR}<br>
<br></blockquote></div><br>Thanks but this is not quite what I was looking for. The length (i.e. pt) should be variable and in addition &quot;to&quot; also should be variable, as an example \hboxR spread 5pt{This is a test}<br>
<br>So it can take 3 arguments, which the first two can be optional.<br><br>For example, I want to define one single \hboxR amcro, such that with that definition I can have<br><br>\hboxR{This is a test.}<br><br>\hboxR to 10cm{This is a test}<br>
<br>\hboxR to 3pt{This is a test.}<br><br>\hboxR spread 5pt{This is a test.}<br><br>\hboxR spread 6cm{This is a test.}<br clear="all"><br>-- <br>Best wishes,<br>Vafa Khalighi<br>
</div>