On Wed, Mar 4, 2009 at 8:53 PM, luigi scarso <luigi.sca...@gmail.com> wrote: > On Wed, Mar 4, 2009 at 8:35 PM, Curious Learn <curiousle...@gmail.com> 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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________