ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jens-Uwe Morawski <morawski@gmx.net>
Subject: Re: [NTG-context] background color problem
Date: Mon, 14 Oct 2002 21:17:59 +0200	[thread overview]
Message-ID: <20021014211759.7de646cf.morawski@gmx.net> (raw)
In-Reply-To: <3DAB02F3.6000304@web.de>

On Mon, 14 Oct 2002 19:46:27 +0200
Manfred Lotz <manfred.lotz@web.de> wrote:

> I try to create some text with background color.
> The following code snippet doesn't work however.
> ___________________________________________
> \definecolor [darkgreen] [r=.0, g=.5, b=.0]
> \setupcolors[state=start]

> \setupbackgrounds
>   [text][text]
>   [background=color,
>    backgroundcolor=darkgreen,
>    backgroundoffset=1.25mm]

This defines an "overlay" that is placed under the whole text area.
Thus, IMO, not the thing you want get.

As far as i understand details.pdf (following is untested) it
should work with:

\definetextbackground[TextBG]
	[backgroundcolor=darkgreen,
	 backgroundoffset=.25cm,
	 offset=.5cm,
	 frame=off,
	 location=paragraph,
	 color=white]

\starttextbackground[TextBG]
Some Text.
\stoptextbackground

Jens
_______________________________________________
ntg-context mailing list
ntg-context@ref.ntg.nl
http://ref.ntg.nl/mailman/listinfo/ntg-context


  reply	other threads:[~2002-10-14 19:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-14 17:46 Manfred Lotz
2002-10-14 19:17 ` Jens-Uwe Morawski [this message]
2002-10-15  4:58   ` Manfred Lotz

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=20021014211759.7de646cf.morawski@gmx.net \
    --to=morawski@gmx.net \
    /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).