From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24661 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Red framed text Date: Thu, 22 Dec 2005 22:15:29 +0100 Message-ID: <43AB1771.4040206@wxs.nl> References: <43AA8088.1060101@virgilio.it> <43AA830F.7010700@elvenkind.com> <43AADD34.1070209@virgilio.it> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1135286466 17680 80.91.229.2 (22 Dec 2005 21:21:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Dec 2005 21:21:06 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 22 22:21:05 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 1EpXrx-0007ki-LD for gctc-ntg-context-518@m.gmane.org; Thu, 22 Dec 2005 22:21:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 450FD12872; Thu, 22 Dec 2005 22:21:01 +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 21190-10; Thu, 22 Dec 2005 22:21:01 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E4015128B3; Thu, 22 Dec 2005 22:18:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1D722128B3 for ; Thu, 22 Dec 2005 22:18:46 +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 21190-09 for ; Thu, 22 Dec 2005 22:18:44 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by ronja.ntg.nl (Postfix) with ESMTP id 2D83C12884 for ; Thu, 22 Dec 2005 22:15:28 +0100 (CET) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 8969 for ; Thu, 22 Dec 2005 22:23:00 +0300 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <43AADD34.1070209@virgilio.it> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 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:24661 Archived-At: 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}