ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Duncan Hothersall" <dh@capdm.com>
Subject: Descriptions/enumerations with a background
Date: Tue, 10 Sep 2002 11:52:23 +0100	[thread overview]
Message-ID: <MFEFJNAPONLOLJPIHFBIOENJDGAA.dh@capdm.com> (raw)

Hello all,

I have been trying to set up an enumeration to have a background screen.
Having completely failed, I ended up putting a \startbackground ...
\stopbackground pair inside the \startsubactivity ... \stopsubactivity, but
this does strange things with page breaks, presumbly because it is
interfering with the glue between the enumeration title and the body of it.

Can anyone help me with a \defineenumeration or \setupenumeration parameter
that will make the background go grey? Here's what I have up top:

\defineenumeration[activity]
	[text=Activity,
	before={\blank[2*big]},
	after={\blank[2*big]}]

\setupenumerations[activity]
	[headstyle=\ss\tfa]

\setupbackground
	[background=screen,
	corner=round,
	offset=6pt]

Here's what I currently do, which doesn't work well:

\startsubactivity
\startbackground
This text sometimes jumps over a page break even when there is lots of space
on the page.

It can have more than one paragraph in it.
\stopbackground
\stopsubactivity

And here's what I'd like to do:

\startsubactivity
This text behaves well and has a grey box behind it.

It can have more than one paragraph in it too.
\stopsubactivity

Any pointers as to what to put at the top to make the bottom happen would be
gratefully received.

Thanks,

Duncan


             reply	other threads:[~2002-09-10 10:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-10 10:52 Duncan Hothersall [this message]
2002-09-16 20:05 ` Hans Hagen
2002-09-17 16:14   ` Duncan Hothersall
2002-09-19 14:05   ` MathML questions Duncan Hothersall
2002-09-19 16:00     ` Hans Hagen
2002-09-23 10:48       ` MathML questions (long) Duncan Hothersall
2002-09-24  7:46         ` Hans Hagen
2002-09-24 13:14           ` Duncan Hothersall
2002-09-24  7:53         ` Hans Hagen

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=MFEFJNAPONLOLJPIHFBIOENJDGAA.dh@capdm.com \
    --to=dh@capdm.com \
    /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).