ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Backgrounds
@ 2003-03-24 14:37 Giuseppe Bilotta
  2003-03-24 16:45 ` Backgrounds Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Giuseppe Bilotta @ 2003-03-24 14:37 UTC (permalink / raw)


Hello,

I would like to discuss a few points about backgrounds
(\startbackground ... \stopbackground).

First of all, it would be nice to have "background classes", so
that I can have different backgrounds for different things without
having to reset it each time. (Think
\definebackground[this][options=values], \setupthis, \startthis
... \stopthis, as usual.)

The second point is about the splitting capabilities in
backgrounds. This is incredibly nice to have, but needs a little
finetuning, IMO: it should be possible to specify whether the
various options that concern the "border" of the background (i.e.
background corner, frame, frame corner, etc) should act at split
time or not; example: assume that I set my background to have a
frame (frame=on) If the background gets split across pages, I get
two "boxed" text: the first in the first page, the second in the
second page. Instead, to show that the block continues on the next
page, it should be possible to turn this off. I suggest options
like: splitframe, splitframecorner, splitbackgoundcorner analogous
to topframe/bottomframe and the like, which defines the behaviour
of frames and angles in the "split area".

Moreover (now I'm getting picky, but while we're at it ...) it
would be nice, even for generic framed text, to be able to specify
the behaviour of each single corner separately (say, top left and
top right rounded, bottom left and right rectangular).

-- 
Giuseppe "Oblomov" Bilotta

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re[2]: Backgrounds
@ 2003-03-25  8:46 Hans Hagen
  2003-03-25 12:25 ` Re[3]: Backgrounds Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2003-03-25  8:46 UTC (permalink / raw)


At 07:52 PM 3/24/2003 +0100, you wrote:

>Actually I did have a look at it (assuming you're talking about
>textbackgrounds), but I found their behaviour to be rather
>different from that of backgrounds even when location=paragraph.
>For example, setting frame=on doesn't give me a frame, and it
>doesn't seem to support rounded corners for neither the background
>nor the frame. Also, setting a largish offset "covers" the text
>that precedes the background, and this isn't nice at all. I think
>that textbackgrounds and backgrounds serve different purpouses.
>
>And what about the other requests? (Behaviour at splits, different
>corner styles)

\starttext

\setupcolors[state=start]

\definetextbackground[gb][state=start]

\startuseMPgraphic{mpos:par:columnset}
   for i := 1 upto nofmultipars :
     fill multipars[i] enlarged 5pt cornered 5pt withcolor green ;
     draw multipars[i] enlarged 5pt cornered 5pt withcolor red ;
   endfor ;
\stopuseMPgraphic

\input tufte \blank
\starttextbackground[gb]
\dorecurse{10}{\input tufte \par}
\stoptextbackground
\blank \input tufte

\stoptext

they split, can have corners, lay behind the text, ...

only some spacing issues need to be solved (working on that on and off)

Hans
-------------------------------------------------------------------------
                                   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
-------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-04-18 14:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-24 14:37 Backgrounds Giuseppe Bilotta
2003-03-24 16:45 ` Backgrounds Hans Hagen
2003-03-24 18:52   ` Re[2]: Backgrounds Giuseppe Bilotta
2003-03-25  8:46 Hans Hagen
2003-03-25 12:25 ` Re[3]: Backgrounds Hans Hagen
2003-03-25 14:36   ` Re[4]: Backgrounds Giuseppe Bilotta
2003-04-09 14:52     ` Backgrounds Patrick Gundlach
2003-04-09 16:57       ` Re[2]: Backgrounds Giuseppe Bilotta
2003-04-10  9:50         ` Backgrounds Patrick Gundlach
2003-04-10 11:43           ` Re[2]: Backgrounds Giuseppe Bilotta
2003-04-18 14:33           ` Backgrounds Johannes Hüsing
2003-04-18 14:36             ` Re[2]: Backgrounds Giuseppe Bilotta
2003-04-10 20:00         ` Hans Hagen

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).