From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81635 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: [***SPAM***] Background color with dotted frame formula Date: Thu, 11 Apr 2013 23:19:44 +0200 Message-ID: <516728F0.7040604@wxs.nl> References: <20130411213921.3092@binki> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1365715201 6005 80.91.229.3 (11 Apr 2013 21:20:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Apr 2013 21:20:01 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 11 23:20:03 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from [195.12.62.10] (helo=balder.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UQOuX-0001dD-Uv for gctc-ntg-context-518@m.gmane.org; Thu, 11 Apr 2013 23:20:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 718C4104E8; Thu, 11 Apr 2013 23:19: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 IXHmhsXGmdjR; Thu, 11 Apr 2013 23:19:39 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A094E10418; Thu, 11 Apr 2013 23:19:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1779F10418 for ; Thu, 11 Apr 2013 23:19:38 +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 kHWrS1LdbIkH for ; Thu, 11 Apr 2013 23:19:36 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 8AC8F102B4 for ; Thu, 11 Apr 2013 23:19:36 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3BLJZ5Q002854 for ; Thu, 11 Apr 2013 23:19:36 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.101; Original-Received: from [10.100.1.101] (unverified [10.100.1.101]) by pragma-net.nl (SurgeMail 6.1c) with ESMTP (TLS) id 15607-1713362 for multiple; Thu, 11 Apr 2013 23:19:33 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.2; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: <20130411213921.3092@binki> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=15; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QJmJjzqb - 770fa2384744 - 20130411 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:81635 Archived-At: On 4/11/2013 2:39 PM, hwitloc@gmail.com wrote: > > > I am trying to make a rounded corner dotted frame with a formula on a gray background. > > I can't seem to get both the background and the dotted frame working well at the same time. > > Here is the same mkiv macros showing three specimens. > > #1 is stand rounded gray background. This works > #2 The grey background seems to not go up to the dotted frame of the frame is too high? > #3 The dotted frame does not show up at all. > > Here is the mkiv file: \startuniqueMPgraphic{LabelA} path p ; p := OverlayBox cornered 5pt ; fill p enlarged 2pt withcolor OverlayColor ; draw p withpen pencircle scaled 2pt dashed withdots ; \stopuniqueMPgraphic \startuniqueMPgraphic{LabelB} path p ; p := OverlayBox cornered 5pt ; fill p enlarged 2pt withcolor OverlayColor ; draw p withpen pencircle scaled 2pt dashed withdots withcolor OverlayLineColor ; \stopuniqueMPgraphic \defineoverlay[LabelA][\uniqueMPgraphic{LabelA}] \defineoverlay[LabelB][\uniqueMPgraphic{LabelB}] \def\VariantA{\mframed[foregroundstyle=\tfc,frame=off,background=LabelA,backgroundoffset=3pt,backgroundcolor=red]} \def\VariantB{\mframed[foregroundstyle=\tfc,frame=off,background=LabelA,backgroundoffset=4pt,backgroundcolor=green]} \def\VariantC{\mframed[foregroundstyle=\tfc,frame=off,background=LabelB,backgroundoffset=5pt,backgroundcolor=blue,foregroundcolor=white,framecolor=white]} \starttext Large font with rounded gray background \startformula \VariantA{e^{i\pi} + 1 = 0} \stopformula \blank[big] Large font in dotted rounded frame & gray background (should be) \startformula \VariantB{e^{i\pi} + 1 = 0} \stopformula \blank[big] Large font in dotted rounded frame & gray background (should be) \startformula \VariantC{e^{i\pi} + 1 = 0} \stopformula \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________