VnPenguin wrote:
Hi, I do a small test with 2 columns and textbackground : ------------------------------------------------------------------------------------ \setupcolors[state=start] \definetextbackground[preface] [backgroundcolor=green, backgroundoffset=.25cm, offset=.5cm, frame=off, location=paragraph, color=blue]
\starttext \chapter{Chapter TEST} \startcolumns[rule=off,n=2] \starttextbackground[preface]
\section{tufte.tex} \input tufte
\section{knuth.tex} \input knuth
\stoptextbackground \stopcolumns
\stoptext ----------------------------------------------------------------------------- The result is very strange : http://people.vnoss.org/~vnpenguin/pub/context/test-bgcolor.png http://people.vnoss.org/~vnpenguin/pub/context/test-bgcolor.pdf
I'm wrong some things ?
no, you uncovered a secret: these backgrounds are only supported on one column mode and column sets; i did a quick hackery test and it is possible to add support for multi-columns, but the complication is that it currently interferes with mixed one/multi columns (it only takes a few lines of code, but then you have half a solution. i need to separate the multi column sub-output routine first as well as to add an otr state tracking system in order to get this working robustly; remind in half a year or so ntw, if you want just backgrounds behind columns: \setupcolors[state=start] \setupcolumns[option=background,background=color,backgroundcolor=red] \starttext \chapter{Chapter TEST} \input tufte \startcolumns \section{tufte.tex} \input tufte \section{knuth.tex} \input knuth \stopcolumns \input tufte \stoptext Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------