At 01:25 PM 2/7/2003 +0100, Michal Kvasnicka wrote:
Good afternoon.
I'm typesetting a document in two columns. I'd like to typeset examples in it just in the rest of the text but with a screen background. I tried this:
\setupcolors[state=start] \setupscreens[screen=0.8] \setupbackground [background=screen, leftoffset=1em, rightoffset=1em, topoffset=1em, bottomoffset=1em] \setupframedtexts [frame=off, background=screen, width=fit]
But both \startbackground and \startframedtext does not allow column/page break. I want the background to start e.g. on the bottom of the left column and to go to the top of the right one. How can I get what I want? (Well, maybe a hard task in the TeX. Some time ago I would suppose it to be unpossible---but then I've seen such a wizardry in the ConTeXt that made me to think that everything is possible---at least for Mr. Hagen.) :-)
I admit that this takes some wizardry to implement, especially if you take into account that backgrounds should work in tables, tabulate, floats, inside and outside text areas, obey indentation, left/rightskip, hanging, nested backgrounds, multiple layers, etc ; this (still somewhat experimental mechanism will be discussed in details.pdf). % output=pdftex \setuplayout [width=middle,height=middle, backspace=1cm,topspace=1cm, header=0pt,footer=0pt,grid=yes] \setuptolerance[verytolerant,stretch] \setupindenting[big] \starttext \definecolumnset[two][n=3] \definecolumnsetspan[test] \definetextbackground[test] [location=paragraph, % text background=color, backgroundcolor=red] \startcolumnset[two] \startcolumnsetspan[test] \input tufte \stopcolumnsetspan \starttextbackground[test] \dorecurse{10}{\input tufte \par} \stoptextbackground \stopcolumnset \stoptext ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------