Am 21.10.2013 um 18:28 schrieb Pablo Rodriguez <[email protected]>:
> 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,
You can use positioned layers (mentioned in the metafun manual but currently
broken in MkIV)
but you have to place the layer with a float to reserve the necessary space.
% engine=pdftex
\definelayer[avoidasfloat][position=yes]
\setupbackgrounds[page][background=avoidasfloat]
\starttext
\placefigure[right,none]{}{\setlayer[avoidasfloat]{\startMPcode draw unitsquare
scaled 4cm ; \stopMPcode}}
\input knuth
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / 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
___________________________________________________________________________________