[texhax] read argument until EOL
Philip Taylor (Webmaster, Ret'd)
P.Taylor at Rhul.Ac.Uk
Thu Jan 6 14:10:55 CET 2011
Uwe Lueck wrote:
> Great! Two little pieces of envy/efficiency:
> 1.) at least one space token in the macro definition can be avoided;
Agreed : I was lazy in not writing
>> \def \eolsection
>> {%
>> \begingroup
>> \catcode `\^^M = \active
>> \uccode `\~ = `\^^M
>> \uppercase {\def \innereolsection ##1~}{\endgroup \message {##1}}\relax
>> \innereolsection
>> }
>
> 2.) \innereolsection needn't be defined anew at each call of \eolsection,
Perhaps not, but I defend my solution on the grounds of clarity,
which I invariably prefer over efficiency.
** Phil.
More information about the texhax
mailing list