From: h h extern <pragma@wxs.nl>
Subject: Re: Strange result with 2 columns and textbackground
Date: Sun, 27 Feb 2005 20:26:34 +0100 [thread overview]
Message-ID: <42221EEA.6070303@wxs.nl> (raw)
In-Reply-To: <e5d3f26505022515366b4d5ad7@mail.gmail.com>
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
-----------------------------------------------------------------
next prev parent reply other threads:[~2005-02-27 19:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-25 23:36 VnPenguin
2005-02-26 8:45 ` Installation för (complete) novices Mats Broberg
2005-02-27 19:26 ` h h extern [this message]
2005-02-28 8:34 ` Strange result with 2 columns and textbackground VnPenguin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42221EEA.6070303@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).