# [texhax] A macro programming question

Vafa Khalighi vafakh84 at gmail.com
Sat Apr 10 16:17:35 CEST 2010

>
> \def\hboxR to #1pt#2{\hbox to #1pt{\beginR #2 \endR}
>
>
Thanks but this is not quite what I was looking for. The length (i.e. pt)
should be variable and in addition "to" also should be variable, as an
example \hboxR spread 5pt{This is a test}

So it can take 3 arguments, which the first two can be optional.

For example, I want to define one single \hboxR amcro, such that with that
definition I can have

\hboxR{This is a test.}

\hboxR to 10cm{This is a test}

\hboxR to 3pt{This is a test.}

\hboxR spread 5pt{This is a test.}

\hboxR spread 6cm{This is a test.}

--
Best wishes,
Vafa Khalighi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20100411/6d0a8f41/attachment.html>