[texhax] A macro programming question

Wolfgang Schuster schuster.wolfgang at googlemail.com
Sat Apr 10 19:40:52 CEST 2010

Am 10.04.10 18:41, schrieb Vafa Khalighi:
> Is not there a way that this \hboxR can accept \bgroup and \egroup? 
> i.e. \hboxR\bgroup This is a test\egroup
\def\endR  {E}




   {\toks0=\expandafter{\the\toks0 #1}%

\hboxR to 4cm{a}
\hboxR spread 1cm{a}

\hboxR\bgroup a\egroup
\hboxR to 4cm\bgroup a\egroup
\hboxR spread 1cm\bgroup a\egroup


Spaces after the value (e.g. \hboxR to 3cm {...}) are not allowed in 
this solution.


More information about the texhax mailing list