From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31186 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: textbackground inside framed Date: Tue, 03 Oct 2006 21:28:24 +0200 Message-ID: <4522B9D8.1050105@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080603010006010406000609" X-Trace: sea.gmane.org 1159903756 5720 80.91.229.2 (3 Oct 2006 19:29:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Oct 2006 19:29:16 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 03 21:29:14 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GUpwf-0003Qh-96 for gctc-ntg-context-518@m.gmane.org; Tue, 03 Oct 2006 21:28:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 71CB41FE4C; Tue, 3 Oct 2006 21:28:48 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12787-04-4; Tue, 3 Oct 2006 21:28:34 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6121A1FE29; Tue, 3 Oct 2006 21:28:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 726EB1FE0A for ; Tue, 3 Oct 2006 21:28:30 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12787-04-3 for ; Tue, 3 Oct 2006 21:28:23 +0200 (CEST) Original-Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id 74A6E1FDCA for ; Tue, 3 Oct 2006 21:28:23 +0200 (CEST) Original-Received: (qmail invoked by alias); 03 Oct 2006 19:28:23 -0000 Original-Received: from i577BA3B6.versanet.de (EHLO [192.168.1.3]) [87.123.163.182] by mail.gmx.net (mp032) with SMTP; 03 Oct 2006 21:28:23 +0200 X-Authenticated: #24293357 User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) Original-To: mailing list for ConTeXt users X-Enigmail-Version: 0.94.0.0 X-Y-GMX-Trusted: 0 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31186 Archived-At: This is a multi-part message in MIME format. --------------080603010006010406000609 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 --------------080603010006010406000609 Content-Type: text/plain; name="textbackground.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="textbackground.tex" \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 --------------080603010006010406000609 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --------------080603010006010406000609--