From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59967 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Shaded frame with colored text Date: Fri, 02 Jul 2010 00:49:17 +0200 Message-ID: <4C2D1B6D.2030109@googlemail.com> References: <011701cb196e$b3a282a0$1ae787e0$@com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1278024591 30188 80.91.229.12 (1 Jul 2010 22:49:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Jul 2010 22:49:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 02 00:49:48 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OUSZo-0006YR-Ke for gctc-ntg-context-518@m.gmane.org; Fri, 02 Jul 2010 00:49:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 54B7BC9A9C; Fri, 2 Jul 2010 00:49:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mL-en-2YkWYy; Fri, 2 Jul 2010 00:49:47 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6F936C9AE3; Fri, 2 Jul 2010 00:49:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0961AC9AE3 for ; Fri, 2 Jul 2010 00:49:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29WptwW4hyis for ; Fri, 2 Jul 2010 00:49:35 +0200 (CEST) Original-Received: from mail-wy0-f169.google.com (mail-wy0-f169.google.com [74.125.82.169]) by balder.ntg.nl (Postfix) with ESMTP id B3C51C9A9C for ; Fri, 2 Jul 2010 00:49:35 +0200 (CEST) Original-Received: by wyb39 with SMTP id 39so1941714wyb.14 for ; Thu, 01 Jul 2010 15:49:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=hnK0veVVmvmLXKnUHfi2BgdZ6IcS8F63azxs/QhGZvY=; b=YGAEq36hVwTvE65VHixPRr+NYLotO3GNgc8uhvIWpV4SN3c78f5vzaFB/DX46YzZNE xeWG+wNuHcJyi662/P8WzAoMzctn3sPELeGLIGtX+nfyNtT6dHW7mrSx88MTvrzO/7Vg l/hsfTKzCEPYV6B6yPLlFZ4b9vj99DZeWNDXE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=U6fdkTuPi94PNIbB5s+14+9JLXn1Ql3ntc7ZtD2xEYBpPLxi/CPcbRhn2UzVwz69a7 wqmEJv/usd9eNM0Uzxj6KlsHxz1sDOswsGxQaAr1WssZz/Y4QoQ4eL3Taq5KXHWRufFS mLw7/1wubXVMstAgEgwW1UpZXDYJi7dSJ0dtA= Original-Received: by 10.213.12.196 with SMTP id y4mr3211694eby.12.1278024575352; Thu, 01 Jul 2010 15:49:35 -0700 (PDT) Original-Received: from rover.fritz.box (dslb-088-067-167-169.pools.arcor-ip.net [88.67.167.169]) by mx.google.com with ESMTPS id v8sm1334713eeh.20.2010.07.01.15.49.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 01 Jul 2010 15:49:34 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 In-Reply-To: <011701cb196e$b3a282a0$1ae787e0$@com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:59967 Archived-At: Am 02.07.10 00:42, schrieb Tom: > I haven't had any luck filling in the background of a frame with any color > other than black and with changing the color of the text in the frame to > white or gray. What needs to be added to this mkii code? > Colors are disabled in MkII, to enable them include \setupcolors[state=start] to your document. > \def\MyChapterCommand#1#2% #1 is number, #2 is text > {\framed[frame=on,align=middle] > {\vbox{\headtext{chapter} #1\blank#2}}} > \framed [.., background=color, backgroundcolor=red, foregroundcolor=blue, ...] {...} > \setuphead[chapter] > [command=\MyChapterCommand,textstyle=\ss\bf, > header=empty,footer=chapter, > numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in,before=\vskip 1.0in] > use 'numberstyle' instead of 'numbercommand' for style related settings and replace your \vskip settings with \blank before={\blank[force,1.0in]}, after={\blank[0.5in]}, Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________