Problems with columnsets and \startbackground \stopbackground
Hi list, I have some wierd interactions between a columnset and \start- / \stopbackground. ---- cut here ---- \setuppapersize [A4, landscape] [A4, landscape] \setupcolors [state=start] \setupbackground [background=screen, frame=on, frameoffset=2pt, backgroundoffset=2pt] \setuphead [section] [style={\ss\bf}, before={\startbackground}, after={\stopbackground}] \definecolumnset [foo] [n=2] \starttext \startcolumnset[foo] \subject{ABC} \input tufte \input knuth One more line and {\em BOOM} - it's broken.\crlf Here we go. 3 2 1 -- page break! \subject{DEF} \input knuth \stopcolumnset \stoptext ---- cut here ---- The second \subject{} causes a page break instead of wrapping into the second column. Is this a bug, or am I missing something when using \start- / \stopbackground? Would this go away if I where to use a MP graphic for the background? Thanks for any help. -- Olaf
Olaf Mersmann wrote:
Hi list,
The second \subject{} causes a page break instead of wrapping into the second column. Is this a bug, or am I missing something when using \start- / \stopbackground?
It is probably a bug, but it is not likely that it will get fixed soon. \startbackground is an 'old' command, columnsets are 'new' and the interaction is not always perfect.
Would this go away if I where to use a MP graphic for the background?
Yes. If you do not want to write MP code yourself, you can also use textbackgrounds. This gives similar results to your code: \definecolor [grey] [s=.9] \definetextbackground [section] [background=color, backgroundcolor=grey, framecolor=black, frame=on, distance=10pt, before=, after=, location=paragraph] \setuphead [section] [style={\ss\bf}, before={\starttextbackground[section]~}, %NOTE after={\stoptextbackground}] NOTE: I am unhappy with the ~ in that line, but my version seems to ignore offset commands at the moment. Taco
participants (2)
-
Olaf Mersmann
-
Taco Hoekwater