[texhax] A macro programming question

Wolfgang Schuster schuster.wolfgang at googlemail.com
Sat Apr 10 16:24:38 CEST 2010


Am 10.04.10 07:11, schrieb Vafa Khalighi:
> 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?
\def\hboxR#1#{\hbox#1\bgroup\bgroup\aftergroup\endR\aftergroup\egroup\beginR\let\next=}

Wolfgang



More information about the texhax mailing list