ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Peter Rolf <indiego@gmx.net>
Subject: textbackground inside framed
Date: Tue, 03 Oct 2006 21:28:24 +0200	[thread overview]
Message-ID: <4522B9D8.1050105@gmx.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 554 bytes --]

Hi,

I need a textbackground inside a \framed macro, which uses it's own
background (overlay). Sadly the textbackground appears behind the framed
background and my attempts to change this order haven't succeeded.

\setuptextbackground[foo]
  [level=+1]

brings the textbackground to the top, but overwrites the text. Also I
haven't found a way to change the background level for \framed (e.g. set
it to -2), which would easily solve the problem.

Is there a way to make it appear above the framed background, but still
below the text?

Greetings, Peter


[-- Attachment #2: textbackground.tex --]
[-- Type: text/plain, Size: 720 bytes --]

\setupoutput[pdftex]

\setupcolors[state=start]

\definetextbackground[foo]
  [backgroundcolor=lightgray,
   frame=off,
   level=-1, % -3,-2,-1,+1,+2
  ]

\startuniqueMPgraphic{bar}
fill OverlayBox withcolor red ;
\stopuniqueMPgraphic

\defineoverlay[bar][\uniqueMPgraphic{bar}]


\starttext

An example of a \starttextbackground[foo]textbackground\stoptextbackground.

\framed
{An example of a \starttextbackground[foo]textbackground\stoptextbackground.}

\framed[background=color,backgroundcolor=yellow] % level=-2
{An example of a \starttextbackground[foo]textbackground\stoptextbackground.}

\framed[background=bar] % level=-2
{An example of a \starttextbackground[foo]textbackground\stoptextbackground.}

\stoptext

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

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

                 reply	other threads:[~2006-10-03 19:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4522B9D8.1050105@gmx.net \
    --to=indiego@gmx.net \
    --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).