On 10/21/2013 05:43 PM, luigi scarso wrote:
> On Mon, Oct 21, 2013 at 5:23 PM, Pablo Rodriguez wrote:
>   [...]
>   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.
>   [...]
>   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]

Many thanks for your reply, Luigi.

If I don’t get it wrong, if I define a layout for the first page, I have
to define it for even and odd pages, haven’t I?.

>   My second question is about the layer: is there no way to force the text
>   to avoid it as if it were a float?
> 
> hm what do you want to avoid ?

I want the text flow to avoid the layer "avoidasfloat" as it avoids the
figures.

\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\placefigure[right]{}{}\par}
\stoptext

Layer has text inside in the sample above. I’d like to have it as a float.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to