From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84949 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: \mframed not aligned in mkiv Date: Tue, 22 Oct 2013 22:02:56 +0800 Message-ID: References: <8C10B533-95E0-4EFB-B024-490322A55C09@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1382450592 9528 80.91.229.3 (22 Oct 2013 14:03:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Oct 2013 14:03:12 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 22 16:03:16 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VYcYG-0007xz-1q for gctc-ntg-context-518@m.gmane.org; Tue, 22 Oct 2013 16:03:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DD7AC1022A; Tue, 22 Oct 2013 16:00: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 OTsdY9g763SC; Tue, 22 Oct 2013 16:00:16 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8F64010212; Tue, 22 Oct 2013 16:00:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 21CA810212 for ; Tue, 22 Oct 2013 16:00:15 +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 PypgeoO6D2uP for ; Tue, 22 Oct 2013 16:00:13 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id AA92C10210 for ; Tue, 22 Oct 2013 16:00:13 +0200 (CEST) Original-Received: from mail-pa0-x22e.google.com (mail-pa0-x22e.google.com [IPv6:2607:f8b0:400e:c03::22e]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r9ME36qh025928 for ; Tue, 22 Oct 2013 16:03:06 +0200 Original-Received: by mail-pa0-f46.google.com with SMTP id fa1so9835161pad.19 for ; Tue, 22 Oct 2013 07:03:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=WhvakgBuASecYaqU0Vs62bFWF0s8lrq+mdWmNGHCFWk=; b=eMkw1PaC6vxFpSR5uzq9WLj9RGppuyOyIsvTZLgLGEf1zsKBx/OL3QUzn/02Urupnj m7gwMvHm8NWAY2oqZ4DHPLlJHa2VrtlsZzk6tHng/z8PAXXVoPYOYoa21h8bNkd0FyYN vrHeIM71un4vhXqHHZ5Php+FlEnT+yWaR4+BF//lmFUWoCBCYysAA96pKa9bGC2nOwYO +D9hfIgIQD6oflhvPoqt/pEmJZhF6Qv7KebCUjmUvAvsR61qbT0OyR99fCPCG0l9aZc7 uEQvibthBIYsU1vCFbxBh+XvWuLYw4/pbUFNGJJieB9p2PtrowZZBkB9Xa1shjiHI4fO 8pMg== X-Received: by 10.68.244.168 with SMTP id xh8mr22909028pbc.3.1382450584784; Tue, 22 Oct 2013 07:03:04 -0700 (PDT) Original-Received: from [10.150.11.172] ([42.62.1.185]) by mx.google.com with ESMTPSA id ed3sm27885694pbc.6.2013.10.22.07.03.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 22 Oct 2013 07:03:03 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1510) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:400e:c03::22e; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VKEe364j - 03fc460a2e30 - 20131022 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:84949 Archived-At: Hi Aditya, I wikified your remarks, http://wiki.contextgarden.net/Math/Display#Shaded_background_for_part_of_a_displayed_equation but unfortunately the snippet of code does not compile on ConTeXt Garden: is there a way to typeset mkiv code there? Best regards: OK On 21 oct. 2013, at 22:18, Aditya Mahajan wrote: > On Mon, 21 Oct 2013, Otared Kavian wrote: > >> Dear Hans, >> >> I noticed a difference between mkii and mkiv in the behavior of \mframed: it seems that in mkiv the frame is not vertically aligned with the the + sign in the following example (or rather it is not vertically centered, please see the attached PDF produced with ConTeXt ver: 2013.10.15 13:52 MKIV). >> Does one have to use now a new key to require this sort of alignment? >> >> Best regard: OK >> >> %%%% begin mframed-example.tex >> \setupcolors[state=start] >> >> \def\graymath{\mframed[frame=off, >> background=color, >> backgroundcolor=lightgray, >> backgroundoffset=2pt >> ]} >> >> \starttext >> >> Since for $|x| < 1$ we have >> \startformula >> \log(1+x) = \graymath{x- \displaystyle{x^2\over2}} + {x^3 \over 3} + \cdots >> \stopformula >> we may write $\log(1+x) = x + O(x^2)$. >> >> \stoptext >> %%%% end mframed-example.tex > > Search for "Alignment in inmframed" in the mailing list archives. > > % The next statement is part of the core. Included it here for % illustration. > > \definemathframed[mcframed] [location=mathematics] > > \starttext > > \startformula > \ln (1+x) = \mcframed[background=color,backgroundcolor=red,foregroundcolor=white,frame=off]{x - {\frac {x^2}{\frac{x^3}{\frac{x^3}{3}}}}} + > \frac{x^3}{3}-\cdots. > \stopformula > > \startformula > \ln (1+x) = \mcframed{x - {\frac {x^2}{\frac{x^3}{\frac{x^3}{3}}}}} + \frac{x^3}{3}-\cdots. > \stopformula > > \stoptext > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________