On 10/22/2013 12:29 PM, Wolfgang Schuster wrote:
Am 21.10.2013 um 18:28 schrieb Pablo Rodriguez
: [...] Layer has text inside in the sample above. I’d like to have it as a float.
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
Many thanks for your reply, Wolfgang. Is there no way to place that layer exactly 8mm from left page border and 110mm from top page border? I really need the layer in that position (otherwise it doesn’t make sense). Many thanks for your help, Pablo -- http://www.ousia.tk