[texhax] A macro programming question

Vafa Khalighi vafakh84 at gmail.com
Sun Apr 11 15:19:47 CEST 2010


> To add to the other solutions... this one only defines one
> macro and works with both { } and \bgroup \egroup...
>
> \def\hboxR{\begingroup
>  \everyhbox{%
>   \aftergroup\endgroup
>   \everyhbox{}%
>    \beginR
>   \bgroup
>   \aftergroup\endR
>   \aftergroup\egroup
>  }\hbox}
>
>
\setbox0=\hboxR{This is a test.}
\box0

Would not work here, because TeX expects a box. How can one fix this?

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


More information about the texhax mailing list