On Mon, Mar 22, 2010 at 4:40 PM, Wolfgang Schuster <schuster.wolfg...@googlemail.com> wrote: > Am 22.03.10 16:35, schrieb luigi scarso: >> >> \starttext >> \dorecurse{4}{% >> \edef\T{\recurselevel} >> \expandafter\chapter\expandafter{\recurselevel{}Chapter } >> \section{Section}} >> \stoptext >> > > \dorecurse{4}{\chapter{#1 Chapter}\section{Section}} Runaway argument? {\dorecurse {4}{\chapter {##1 Chapter}\section {Section}} \stoptext ! File ended while scanning use of \xdorecurse. <inserted text> \par <*> ./test.tex
> or > \dorecurse{4}{\expanded{\chapter{\recurselevel{} Chapter}}\section{Section}} >Runaway argument? {\dorecurse {4}{\expanded {\chapter {\recurselevel {} Chapter}}\section \ETC. ! File ended while scanning use of \xdorecurse. <inserted text> \par <*> ./test.tex -- 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________