From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24713 Path: news.gmane.org!not-for-mail From: David Arnold Newsgroups: gmane.comp.tex.context Subject: setbounds question Date: Fri, 23 Dec 2005 09:44:07 -0800 Message-ID: <2E6E9D12-DAB7-42F3-A3A9-D764CECE9BEB@cox.net> References: <43AA8088.1060101@virgilio.it> <43AA830F.7010700@elvenkind.com> <43AADD34.1070209@virgilio.it> <43AB1771.4040206@wxs.nl> <866440E4-1B9C-4BF5-8DC5-EED6557790A0@cox.net> <43ABC345.8050006@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1135360058 22248 80.91.229.2 (23 Dec 2005 17:47:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Dec 2005 17:47:38 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 23 18:47:34 2005 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 1Epr0m-0004ss-BC for gctc-ntg-context-518@m.gmane.org; Fri, 23 Dec 2005 18:47:24 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 06EF4128E4; Fri, 23 Dec 2005 18:47:24 +0100 (CET) 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 08279-01; Fri, 23 Dec 2005 18:47:23 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AE24E127B2; Fri, 23 Dec 2005 18:45:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EB9A4127B2 for ; Fri, 23 Dec 2005 18:45:29 +0100 (CET) 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 04773-06 for ; Fri, 23 Dec 2005 18:45:28 +0100 (CET) Original-Received: from fed1rmmtao09.cox.net (fed1rmmtao09.cox.net [68.230.241.30]) by ronja.ntg.nl (Postfix) with ESMTP id 565EF126F8 for ; Fri, 23 Dec 2005 18:45:27 +0100 (CET) Original-Received: from [10.0.1.2] (really [70.191.56.23]) by fed1rmmtao09.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051223174523.RJKL25099.fed1rmmtao09.cox.net@[10.0.1.2]> for ; Fri, 23 Dec 2005 12:45:23 -0500 In-Reply-To: <43ABC345.8050006@wxs.nl> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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:24713 Archived-At: Ah, Not a bigger pen, but a bigger background shows the difference. % output=pdf \setupcolors[state=start] \startuniqueMPgraphic{shadow} fill OverlayBox shifted (20pt,-20pt) withcolor .8white ; fill OverlayBox withcolor white ; draw OverlayBox withcolor red ; setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic \defineoverlay[shadow][\uniqueMPgraphic{shadow}] \startuniqueMPgraphic{shadow2} fill OverlayBox shifted (20pt,-20pt) withcolor .8white ; fill OverlayBox withcolor white ; draw OverlayBox withcolor red ; % setbounds currentpicture to OverlayBox ; \stopuniqueMPgraphic \defineoverlay[shadow2][\uniqueMPgraphic{shadow2}] \starttext \framed [align=middle,background=shadow,frame=off] {\input tufte\relax} \blank[5*big] \framed [align=middle,background=shadow2,frame=off] {\input tufte\relax} \stoptext On Dec 23, 2005, at 1:28 AM, Hans Hagen wrote: > David Arnold wrote: > >> Very cool. First time I ever could figure out what \relax does. >> When I deleted it from this source, I got: >> >> ! I can't find file `zapf}'. >> l.25 {\input zapf} >> >> Please type another input file name: >> >> Good learning experience for me. I've seen and ignored this type >> of error message before, looking elsewhere in the code. A very >> good heads up for me. >> >> Now is there anyway I can visualize the importance of the line >> >> setbounds currentpicture to OverlayBox ; >> >> in this example? I deleted it and recompiled but didn't see much >> difference. What is the import of this line? > > take a bigger pen ... since the background is bigger than the > overlaybox it will get centered in the background which si not what > you want, therefore the bounding > > Hans > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context