ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* textbackground inside framed
@ 2006-10-03 19:28 Peter Rolf
  0 siblings, 0 replies; only message in thread
From: Peter Rolf @ 2006-10-03 19:28 UTC (permalink / 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-03 19:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-03 19:28 textbackground inside framed Peter Rolf

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