[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in \cslet.
From: |
Stepan Kasal |
Subject: |
Re: Bug in \cslet. |
Date: |
Mon, 16 Aug 2004 13:18:07 +0200 |
User-agent: |
Mutt/1.4.1i |
Hello David,
I guess I'm the author of the previous version. The TeXbook explains
that you have to use three expandafter's to get something expanded twice:
\let\ea\expandafter \let\eA\expandafter
% expand \twice twice
\ea \eA \ea \twice
% (\eA is used in the second round.)
So it was really natural to write:
\ea\eA\ea \let \ea\eA \csname#1\endcsname \csname#2\endcsname
The two \eA's are expanded in the second round.
Karl wrote:
> > But I switched to your code anyway, since it's shorter and more
> > easily understood. At least I hope I'm understanding it!
I'd say it's more terse and more tricky. But I'm glad your black magic
has got in. ;-)
Happy TeXing,
Stepan Kasal