From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84952 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: \mframed not aligned in mkiv Date: Tue, 22 Oct 2013 13:44:19 -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 1382469319 19550 80.91.229.3 (22 Oct 2013 19:15:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Oct 2013 19:15:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 22 21:15:24 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 1VYhQK-0005Vu-At for gctc-ntg-context-518@m.gmane.org; Tue, 22 Oct 2013 21:15:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 10CC510210; Tue, 22 Oct 2013 21:12:29 +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 rfVoOaDBiKaG; Tue, 22 Oct 2013 21:12:27 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 471B910212; Tue, 22 Oct 2013 21:12:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D4F3510215 for ; Tue, 22 Oct 2013 21:12:25 +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 DPqDX9kYNrOo for ; Tue, 22 Oct 2013 21:12:24 +0200 (CEST) Original-Received: from submission1-ams.mf.surf.net (submission1-ams.mf.surf.net [192.87.102.68]) by balder.ntg.nl (Postfix) with ESMTP id 4336510212 for ; Tue, 22 Oct 2013 21:12:24 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams-v6.mf.surf.net [IPv6:2001:610:1:80ab:192:87:102:70]) by submission1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r9MHj8pY011852 for ; Tue, 22 Oct 2013 19:45:08 +0200 Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r9MHiNOE023371 for ; Tue, 22 Oct 2013 19:44:25 +0200 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By hackers.mr.itd.umich.edu ID 5266B975.BD752.23442 ; Authuser adityam; 22 Oct 2013 13:44:21 EDT In-Reply-To: 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.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QKEhInaE - a6efe051bc0f - 20131022 (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:84952 Archived-At: On Tue, 22 Oct 2013, Otared Kavian wrote: > Hi Aditya, > > I wikified your remarks, > > http://wiki.contextgarden.net/Math/Display#Shaded_background_for_part_of_a_displayed_equation Rather than \def\graymath{\mframed[frame=off, background=color, backgroundcolor=gray, backgroundoffset=3pt]} you can just use: \definemathframed[graymath] [ frame=off, location=mathematics, background=color, ..., ] This way, you can even override the options when using \graymath: \graymath[backgroundcolor=red]{...} > but unfortunately the snippet of code does not compile on ConTeXt Garden: is there a way to typeset mkiv code there? Using compiles the coding using MkIV, but contextgarden uses a rather old version of mkiv, so it is unlikely that a feature introduced a few months ago will run on the garden. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________