On Wed, Mar 4, 2009 at 8:53 PM, luigi scarso
On Wed, Mar 4, 2009 at 8:35 PM, Curious Learn
wrote: Can someone please explain why the second example below works but the first does not work? Thanks very much.
\starttext
\bTABLE \dorecurse{5} {\bTR \bTD \recurselevel. \eTD \bTD \recurselevel \eTD\eTR} \eTABLE
\dorecurse{2} {\recurselevel. \recurselevel\crlf}
\stoptext
works ok here with latest minimals This is LuaTeX, Version snapshot-0.35.0-2009022702 (Web2C 7.5.7) ConTeXt ver: 2008.11.10 21:40 MKIV fmt: 2009.3.4 int: english/english oops...I forget my code sorry
\starttext %%% TeX version \bTABLE \dorecurse{5} {\bTR\expandafter \bTD \recurselevel. \eTD\expandafter \bTD \recurselevel \eTD\eTR} \eTABLE \dorecurse{2} {\recurselevel. \recurselevel\crlf} %%% luatex version \startluacode tprint = function(s) tex.sprint(tex.ctxcatcodes,s) end tprint('\\bTABLE') for j = 1,5 do tprint('\\bTR') tprint('\\bTD' .. j .. '.' .. '\\eTD' .. '\\bTD' .. j .. '\\eTD') tprint('\\eTR') end tprint('\\eTABLE') \stopluacode \stoptext -- luigi