Am 02.01.2010 um 11:18 schrieb Oliver Buerschaper:
You need textbackground to draw the frame around the text
That's the funny thing ... apparently I don't! See the code in my previous mail. There I seem to get the frame from the \setlayerframed command alone.
But the frame from setlayerframed has not the measures of the text, to get the correct size you need textbackground.
When you want only text in two columns \startsimplecolumns ... \stopsimplecolumns is a alternative to the normal columns environment and it works also in \framed (which is used in \setlayerframed).
I'm afraid that doesn't make the vertial space vanish :-( Any ideas?
\definelayer[test][width=\paperwidth,height=\paperheight] \setupbackgrounds[page][background=test] \starttext \startbuffer[test] \hsize=12cm \startsimplecolumns \input zapf \stopsimplecolumns \stopbuffer \setlayerframed [test] [x=5cm,y=10cm] [width=12cm] {\getbuffer[test]} \page[empty] \stoptext
Also, can I force the streamlayer to have a fixed height? In the example I'd like the first column to be filled all the way down to the visible bottom frame and then the remaining text should be broken to the second column. At the moment both columns are filled with roughly equal amounts of text...
You can set \textheight in the streamlayer settings and disable the balancing for columns. Wolfgang