From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20091 Path: news.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: dotted line for \framed ? Date: Sat, 23 Apr 2005 23:13:37 +0200 Message-ID: <426ABA81.7030704@boede.nl> References: <20050423120526.GA1556@cebitec.uni-bielefeld.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1114290642 593 80.91.229.2 (23 Apr 2005 21:10:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 23 Apr 2005 21:10:42 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 23 23:10:40 2005 Return-path: 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 1DPRta-0001Pw-Nk for gctc-ntg-context-518@m.gmane.org; Sat, 23 Apr 2005 23:10:34 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6CB51127C0; Sat, 23 Apr 2005 23:15:25 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30896-01; Sat, 23 Apr 2005 23:15:24 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0281212796; Sat, 23 Apr 2005 23:13:38 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B82F512796 for ; Sat, 23 Apr 2005 23:13:36 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30752-04-2 for ; Sat, 23 Apr 2005 23:13:35 +0200 (CEST) Original-Received: from smtp-vbr11.xs4all.nl (smtp-vbr11.xs4all.nl [194.109.24.31]) by ronja.ntg.nl (Postfix) with ESMTP id E257512784 for ; Sat, 23 Apr 2005 23:13:35 +0200 (CEST) Original-Received: from [192.168.0.193] (a80-126-172-1.adsl.xs4all.nl [80.126.172.1]) by smtp-vbr11.xs4all.nl (8.12.11/8.12.11) with ESMTP id j3NLDZMH034955 for ; Sat, 23 Apr 2005 23:13:35 +0200 (CEST) (envelope-from w.egger@boede.nl) User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <20050423120526.GA1556@cebitec.uni-bielefeld.de> X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by 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: by amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:20091 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20091 Hi, humble, I was playing with this code. Yes there is a dotted line but=20 above the text. Looking up the issue in the Metafun manual page 112=20 results in the following solution: \startuniqueMPgraphic{DottedFrame} pickup pencircle scaled 1.5pt ; path p ; p :=3D unitsquare xscaled \overlaywidth yscaled \overlayheight ; % fill p withcolor .8white ; draw bottomboundary p dashed withdots withcolor .625red ; draw rightboundary p dashed withdots withcolor .625red ; \stopuniqueMPgraphic \defineoverlay[DotFrame][\uniqueMPgraphic{DottedFrame}] \setupframedtexts[background=3DDotFrame,width=3Dfit,frame=3Doff,offest=3D= 3pt] \starttext \framedtext{How nice!} \stoptext Willi Eckhart Guth=F6hrlein wrote: > On Sat, 23 Apr 2005 at 10:59:14+0200, Steffen Wolfrum wrote: >=20 >>is there a command for \framed and \inframed >>like for \setupunderbar[alternative=3Db]: >> >>that gives a dotted (bottom) line? >=20 >=20 > You could do this by using a metpost graphic as background. I'm in a > hurry, so untested, but something similar should work. >=20 > \startuniqueMPgraphic{DottedFrame} > draw (0,0) --(\overlaywidth,0) dashed withdots; > \stopuniqueMPgraphic >=20 > \defineoverlay[DottedFrame]{\uniqueMPgraphic{DottedFrame}} >=20 > \starttext > \framed[frame=3Doff,offset=3Doverlay,background=3DDottedFrame]{How ni= ce!} > \stoptext >=20