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.
You can still write the text in a buffer and use the buffer in the
streamlayer.
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
But the frame from setlayerframed has not the measures of the text,
to get the correct size you need textbackground.
Ah, I see! The reason I asked is I didn't see any frame with your code... I
presume I need to hook some MP overlay into textbackground?
width:
\startsetups streamlayer:test:settings
\overloadtextwidth{12cm}
\stopsetups
frame:
\definetextbackground[testframe]
\startstreamlayer[test]
\starttextbackground[testframe]
...
\stoptextbackground
\stopstreamlayer
That's exactly what I need! Based on your example I kept
Am 01.01.2010 um 15:07 schrieb Oliver Buerschaper:
Observations:
1. One can even do without the textbackground material for some reason.
You need textbackground to draw the frame around the text
2. \placestreamlayer apparently can only be used once (try uncommenting the
last lines). So
\usemodule[streams]
\definestreamlayer[test][method=overlay]
\setupbackgrounds[page][background=test]
\starttext
\startstreamlayer[test]
\startcolumns
\input knuth
\stopcolumns
\stopstreamlayer
\setlayer[test][x=5cm,y=10cm]{\placestreamlayer[test]}
\stoptext
Many thanks!
Am 26.12.2009 um 12:50 schrieb Oliver Buerschaper:
\usemodule[streams]
\definestreamlayer[test][method=overlay]
\setupbackgrounds[page][background=test]
\starttext
\startstreamlayer[test]
\startcolumns
\input knuth
\stopcolumns
\stopstreamlayer
Am 25.12.2009 um 20:25 schrieb Oliver Buerschaper:
Dear all,
how can I get columns within a layer? I tried
---
\setupbackgrounds
[page]
[background=text]
\definelayer
[text]
[width=\paperwidth,
height=\paperheight]
\startbuffer[test]
\startcolumns[n=2]
\input