[texhax] A macro programming question

Paul Isambert zappathustra at free.fr
Sat Apr 10 16:13:40 CEST 2010


You can say:

\def\hboxR#1#{%
  \getarg{#1}%
  }
\def\getarg#1#2{%
  \hbox#1{\beginR#2\endR}%
  }

Best,
Paul

Vafa Khalighi a écrit :
> I ask my question as an example
>
> I can say \hbox to 10pt{This is a test.}
>
> Now I want to define the macro \hboxR, so that when I say
>
> \hboxR to 10pt{This is a test.}
>
> it actually means
>
> \hbox to 10pt{\beginR This is a test\endR}
>
> Can \hboxR be defined like what I described?
>
> Thanks
> -- 
> Best wishes,
> Vafa Khalighi
> ------------------------------------------------------------------------
>
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20100410/326d9d2c/attachment.html>


More information about the texhax mailing list