From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24673 Path: news.gmane.org!not-for-mail From: David Arnold Newsgroups: gmane.comp.tex.context Subject: Re: Red framed text Date: Thu, 22 Dec 2005 15:22:43 -0800 Message-ID: <866440E4-1B9C-4BF5-8DC5-EED6557790A0@cox.net> References: <43AA8088.1060101@virgilio.it> <43AA830F.7010700@elvenkind.com> <43AADD34.1070209@virgilio.it> <43AB1771.4040206@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 1135293864 9063 80.91.229.2 (22 Dec 2005 23:24:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Dec 2005 23:24:24 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 23 00:24:23 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 1EpZnH-00085a-PF for gctc-ntg-context-518@m.gmane.org; Fri, 23 Dec 2005 00:24:19 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5FAFE128D7; Fri, 23 Dec 2005 00:24:19 +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 23147-03-8; Fri, 23 Dec 2005 00:24:11 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8E24712898; Fri, 23 Dec 2005 00:24:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 59A7A12898 for ; Fri, 23 Dec 2005 00:24:05 +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 23147-03-7 for ; Fri, 23 Dec 2005 00:23:59 +0100 (CET) Original-Received: from fed1rmmtao02.cox.net (fed1rmmtao02.cox.net [68.230.241.37]) by ronja.ntg.nl (Postfix) with ESMTP id 714EE127D7 for ; Fri, 23 Dec 2005 00:23:57 +0100 (CET) Original-Received: from [10.0.1.2] (really [70.191.56.23]) by fed1rmmtao02.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051222232226.YNEM17006.fed1rmmtao02.cox.net@[10.0.1.2]> for ; Thu, 22 Dec 2005 18:22:26 -0500 In-Reply-To: <43AB1771.4040206@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:24673 Archived-At: 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? On Dec 22, 2005, at 1:15 PM, Hans Hagen wrote: > Jilani Khaldi wrote: > >> >>> Missing \setupcolors[state=start] maybe? (works for me) >> >> >> Yes it is. >> >>> >>>> And what about a shaded frame? >>> >>> >>> >>> You mean like a dropshadow or so? >> >> >> Something like " \shadowbox{..}" using LaTeX package "fancybox" >> I just want to translate the simple macro I wrote time ago from >> LaTeX to ConTeXt: >> \newcommand{\attenzione}[1] >> { >> \begin{center} >> \( >> \shadowbox{ >> \begin{minipage}{0.8\textwidth} >> \color{red}\underline{\textbf{Attenzione}}\\ >> \color{black} >> #1 >> \end{minipage} >> } >> \) >> \end{center} >> } >> >> jk >> > \setupcolors[state=start] > > \startuniqueMPgraphic{shadow} > fill OverlayBox shifted (3pt,-3pt) withcolor .8white ; > fill OverlayBox withcolor white ; > draw OverlayBox withcolor red ; > setbounds currentpicture to OverlayBox ; > \stopuniqueMPgraphic > > \defineoverlay[shadow][\uniqueMPgraphic{shadow}] > > \framed > [align=middle,background=shadow,frame=off] > {\input tufte \relax} > > \blank > > \framed > [align=middle,background=shadow,frame=off] > {\input zapf \relax} > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context