From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84929 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: \mframed not aligned in mkiv Date: Mon, 21 Oct 2013 10:18:38 -0400 (EDT) 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 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1382365124 15592 80.91.229.3 (21 Oct 2013 14:18:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2013 14:18:44 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 21 16:18:49 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 1VYGJl-0002wn-BU for gctc-ntg-context-518@m.gmane.org; Mon, 21 Oct 2013 16:18:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1AB3B1020C; Mon, 21 Oct 2013 16:15:56 +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 ZlZ6jbACJlgS; Mon, 21 Oct 2013 16:15:53 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B715410201; Mon, 21 Oct 2013 16:15:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 858E610201 for ; Mon, 21 Oct 2013 16:15:52 +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 LpmnzX3YQMxp for ; Mon, 21 Oct 2013 16:15:51 +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 37D71101FC for ; Mon, 21 Oct 2013 16:15:51 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r9LEIfO7016800 for ; Mon, 21 Oct 2013 16:18:42 +0200 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By tombraider.mr.itd.umich.edu ID 526537BF.9BED9.6917 ; Authuser adityam; 21 Oct 2013 10:18:39 EDT In-Reply-To: <8C10B533-95E0-4EFB-B024-490322A55C09@gmail.com> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48105; latitude=42.3241; longitude=-83.7113; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.3241,-83.7113&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QKDOiFCJ - 8c90aae22a92 - 20131021 (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:84929 Archived-At: 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 ___________________________________________________________________________________