[texhax] A macro programming question
Wolfgang Schuster
schuster.wolfgang at googlemail.com
Sun Apr 11 13:48:01 CEST 2010
Am 11.04.10 12:32, schrieb Wolfgang Schuster:
> and with LuaTeX I can shorten this even further
>
> \def\hboxR
> {\scratchtoks\emptytoks
> \doifnextbgroupelse\dohboxR\nohboxR}
>
> \def\dohboxR
> {\ruledhbox dir TRT \the\scratchtoks}
>
> \def\nohboxR#1%
> {\appendtoks#1\to\scratchtoks
> \doifnextbgroupelse\dohboxR\nohboxR}
Or shorter \def\hboxR{\hbox dir TRT}.
Wolfgang
More information about the texhax
mailing list