[texhax] Why are there two definitions of \loop \repeat in latex.ltx?
Vafa Khalighi
vafaklg at gmail.com
Fri Nov 4 16:33:59 CET 2011
Hi
In lines 101-104 of latex.ltx:
\def\loop#1\repeat{\def\iterate{#1\relax\expandafter\iterate\fi}%
\iterate \let\iterate\relax}
\let\repeat\fi
In lines 450-457 of latex.ltx, you have (essentially the same definition
but with \long):
\long\def \loop #1\repeat{%
\def\iterate{#1\relax % Extra \relax
\expandafter\iterate\fi
}%
\iterate
\let\iterate\relax
}
\let\repeat=\fi
Do you know why there are two definitions instead one? I guess you would
only need second definition.
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20111105/e5619bb9/attachment.html>
More information about the texhax
mailing list