[texhax] Re: Read and process single characters
Uwe Lück
uwe.lueck at web.de
Fri Jun 24 22:11:28 CEST 2005
At 18:58 24.06.05, Martin Heller wrote:
>Torsten Wagner wrote:
>>does somebody know how to read single characters and process them one by one.
>>e.g. I like to make the first letter of a word capital, independent of
>>what the user typed in.
>\def\makefirstuppercase#1{\expandafter\MakeFirst#1\MakeFirst}
Yes, \expandafter is nice, much simpler than \edef.
But note that it expands only by one step, while
\edef expands completely.
UL
More information about the texhax
mailing list