On Mon, Oct 21, 2013 at 5:23 PM, Pablo Rodriguez <oinos@gmx.es> wrote:
Dear list,

I have the following sample and two issues that I must solve:

\showframe\setuplayout[margin=20mm, width=fit, topspace=45mm,
bottomspace=25mm,
height=fit]
\definelayout[first][topspace=70mm, bottomspace=30mm]
\definelayer[avoidasfloat][x=0mm, y=0mm, hoffset=8mm, voffset=101mm,
location={right,bottom}, state=start]
\setlayer[avoidasfloat]{\startMPcode
draw (0mm,0mm)--(55mm,0mm) ;
draw (0mm,0mm)--(0mm,-86mm) ;
draw (0mm,-86mm)--(55mm,-86mm) ;
draw (55mm,-86mm)--(55mm,0mm) ;
\stopMPcode
}
\setupbackgrounds[page][background={avoidasfloat}]
\starttext
\dorecurse{40}{\input knuth\par}
\stoptext

First, the layout is right on the first two pages, but it is wrong from
page three. The text doesn’t reach the bottom frame.

I have the info on multiple layers from the wiki (it isn’t a complete
example, though). After Wolfgang’s reply last Friday, I spend hours
searching on the mailing list trying to find relevant information to
know what I was doing wrong.

If this isn’t a bug, what am I missing here?

from http://wiki.contextgarden.net/Odd,_even_,_first_page_not_working

\showframe
%\setuplayout[margin=20mm, width=fit, topspace=45mm,
%  bottomspace=25mm,
%  height=fit]

\definelayout[1][topspace=120mm, bottomspace=30mm,height=fit]

\definelayout[even][margin=20mm, width=fit, topspace=45mm,
  bottomspace=25mm,
  height=fit]

\definelayout[odd][margin=20mm, width=fit, topspace=45mm,
  bottomspace=25mm,
  height=fit]



\definelayer[avoidasfloat][x=0mm, y=0mm, hoffset=8mm, voffset=101mm,location={right,bottom}, state=start]
\setlayer[avoidasfloat]{\startMPcode
  draw (0mm,0mm)--(55mm,0mm) ;
  draw (0mm,0mm)--(0mm,-86mm) ;
  draw (0mm,-86mm)--(55mm,-86mm) ;
  draw (55mm,-86mm)--(55mm,0mm) ;
  \stopMPcode
}
\setupbackgrounds[page][background={avoidasfloat}]
\starttext
\dorecurse{40}{\input knuth\par}
\stoptext


 
My second question is about the layer: is there no way to force the text
to avoid it as if it were a float?

Many thanks for your help,

hm what do you want to avoid ?

--
luigi