Am 28.09.2011 um 14:03 schrieb luigi scarso:
On Wed, Sep 28, 2011 at 1:54 PM, Wolfgang Schuster
wrote: \definelayout expects a assignment as argument.
\definelayout[1][topspace=5.2cm,height=fit] \definelayout[2][]
\setuplayout[2][reset]
\starttext \dorecurse{10}{\input knuth\par} \stoptext
or
\definelayout[current][width=12cm]
\definelayout[1][width=12cm,topspace=5.2cm,height=fit]
\starttext \dorecurse{10}{\input knuth\par} \stoptext
Wolfgang hm http://wiki.contextgarden.net/Layout seems to be different. Btw, this works without warnings
%%%%%%%%%%%%%%%%%%%%% \setuptolerance[verytolerant,stretch] \setuppapersize[A4][A4]
\setuplayout[ backspace=3cm, topspace=1.5cm, rightmargin=0cm,leftmargin=1.3cm, width=15cm, leftmargindistance=0.2cm, height=fit, header=0cm, footer=1cm, ]
\definelayout[1][ topspace=5.2cm, height=fit, ]
\dorecurse{10000}{\definelayout[\the\numexpr 1+\recurselevel][]}
\starttext \dorecurse{100}{\input knuth} \stoptext
Why so many \definelayout calls? \definelayout[1][topspace=5.2cm,height=fit] \definelayout[2][] \starttext \dorecurse{10}{\input knuth\par} \stoptext Wolfgang