From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81621 Path: news.gmane.org!not-for-mail From: hwitloc@gmail.com Newsgroups: gmane.comp.tex.context Subject: [***SPAM***] Background color with dotted frame formula Date: Thu, 11 Apr 2013 21:39:21 +0900 Message-ID: <20130411213921.3092@binki> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1365683978 9018 80.91.229.3 (11 Apr 2013 12:39:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Apr 2013 12:39:38 +0000 (UTC) To: Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 11 14:39:42 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 1UQGmz-0004Ge-Mv for gctc-ntg-context-518@m.gmane.org; Thu, 11 Apr 2013 14:39:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F13CE10498; Thu, 11 Apr 2013 14:39:20 +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 1IoF2bYYyKYN; Thu, 11 Apr 2013 14:39:19 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 00FB31039C; Thu, 11 Apr 2013 14:39:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 253B31039C for ; Thu, 11 Apr 2013 14:39:18 +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 gFpZqtGFtKkN for ; Thu, 11 Apr 2013 14:39:16 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 1DBF3102B4 for ; Thu, 11 Apr 2013 14:39:16 +0200 (CEST) Original-Received: from mail1.asahi-net.or.jp (mail1.asahi-net.or.jp [202.224.39.197]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3BCdDi5013826 for ; Thu, 11 Apr 2013 14:39:14 +0200 Original-Received: from binki (z164074.dynamic.ppp.asahi-net.or.jp [110.4.164.74]) by mail1.asahi-net.or.jp (Postfix) with ESMTP id C81FEAEA4A for ; Thu, 11 Apr 2013 21:39:11 +0900 (JST) Original-cc: X-Mailer: MH-E 8.3.1; GNU Mailutils 2.99.98; GNU Emacs 24.3.1 X-Bayes-Prob: 0.9999 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=202.224.39.197; country=JP; latitude=36.0000; longitude=138.0000; http://maps.google.com/maps?q=36.0000,138.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WJmADeU5 - 43380b5468c8 - 20130411 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:81621 Archived-At: --=-=-= Content-Type: text/plain 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: --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=large-dotted-rounded-frame-gray-background.mkiv Content-Description: mkiv text file \startuniqueMPgraphic{Label} path p; p := (0,0) -- (OverlayWidth,0) -- (OverlayWidth, OverlayHeight) -- (0, OverlayHeight) -- (0,0); draw p withpen pencircle scaled 1pt dashed withdots; setbounds currentpicture to boundingbox OverlayBox; \stopuniqueMPgraphic \defineoverlay[Label][\useMPgraphic{Label}] \def\dottext#1% { \mframed[frame=off, background=Label, location=low] { #1 } } \setupcolors[state=start] \def\rndgraymath{\mframed[frame=off, % for math have to use \mframed corner=0, background=color, backgroundcolor=gray, backgroundoffset=3pt] } \starttext Large font with rounded gray background \startformula \rndgraymath{\tfc e^{i\pi} + 1 = 0 } \stopformula \blank[big] Large font in dotted rounded frame & gray background (should be) \startformula \rndgraymath{\dottext{\tfc e^{i\pi} + 1 = 0 }} \stopformula \blank[big] Large font in dotted rounded frame & gray background (should be) \startformula \dottext{\rndgraymath{\tfc e^{i\pi} + 1 = 0 }} \stopformula \stoptext --=-=-= Content-Type: text/plain Thanks --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --=-=-=--