From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24054 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Some $\mframed{math}$ questions Date: Fri, 2 Dec 2005 12:28:13 -0500 Message-ID: References: <6faad9f00512011556x201985d7qcce308246ac27abf@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: sea.gmane.org 1133548775 31779 80.91.229.2 (2 Dec 2005 18:39:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Dec 2005 18:39:35 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 02 19:39:32 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EiFh7-0004eY-4p for gctc-ntg-context-518@m.gmane.org; Fri, 02 Dec 2005 19:31:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C50901286A; Fri, 2 Dec 2005 19:31:40 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18568-06-2; Fri, 2 Dec 2005 19:31:39 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9BC6E128D6; Fri, 2 Dec 2005 18:54:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 44C9C128D6 for ; Fri, 2 Dec 2005 18:54:28 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17929-03-3 for ; Fri, 2 Dec 2005 18:54:27 +0100 (CET) Original-Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by ronja.ntg.nl (Postfix) with ESMTP id 4C0CA12881 for ; Fri, 2 Dec 2005 18:54:26 +0100 (CET) Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1EiF2p-0005ip-JS for ntg-context@ntg.nl; Fri, 02 Dec 2005 18:50:04 +0100 Original-Received: from bgp996717bgs.nanarb01.mi.comcast.net ([68.40.50.205]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Dec 2005 18:50:03 +0100 Original-Received: from adityam by bgp996717bgs.nanarb01.mi.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Dec 2005 18:50:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ntg-context@ntg.nl Original-Lines: 103 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bgp996717bgs.nanarb01.mi.comcast.net In-Reply-To: <6faad9f00512011556x201985d7qcce308246ac27abf@mail.gmail.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:24054 Archived-At: <--- On Dec 2, Mojca Miklavec wrote ---> > 1. What's the best way to frame a formula like here: > > \placeformula > \startformula > \mframed{x^2+y^2=z^2} > \stopformula > > The problem is that: > - formula number is shifted downwards in comparison to the formula > without a number > - I don't know how to do the settings (frame color, frame offset) > globally. There's no \setupmframed[...] command. It's probably > possible to use a sort of > \setupframed[whatever_setting_influencing_only_mframed], > but I don't know how. Sorry, no idea on how to do this. > 2. What's the general strategy when doing evel stuff with formula > numbering? I would like to use \eqalign and then number formulas like > on the following example: > > z^2=x^2+y^2 (1) > =(x'-x_0)^2+(y'-y_0)^2 % no number > =R^2\cos^2(\phi) (2) > The following works. I still find the amsmath way of doing this much easier, but equation numbering has not been ported to amsl module \starttext \placeformula \startformula \eqalignno{ z^2 &=x^2+y^2 &\formulanumber\cr &=(x'-x_0)^2+(y'-y_0)^2 & \cr% no number &=R^2\cos^2(\phi) &\formulanumber\cr } \stopformula \stoptext > Can I somehow number the formulas (1), (2), (3.a), (3.b), (3.c), (4), > (5.1), (5.2)? I would like to manually provide where to start and stop > numbering with x.a or x.1, x.2. Have a look at the wiki http://wiki.contextgarden.net/Math for the manual way to number each subformula. I think one can define a \start(stop)subformula[format = ??] to put a \place(sub)formula automatically. But I do not know how to define such an environment properly. > 3. How can I put more than one equation in a row and number all of > them (as if they were placed in three columns)? One way to cheat can be to start a three column mode \starttext \startcolumns[n=3,tolerance=verytolerant] \placeformula \startformula E = mc^2 \stopformula \column \placeformula \startformula E = mc^2 \stopformula \column \placeformula \startformula E = mc^2 \stopformula \stopcolumns \stoptext Again, one could define a start-stop environment for this. > 4. How can I move the formula number one row lower in case that the > formula is too long and if it would overlap with the formula number > otherwise? Not sure what you mean here. Context (rather tex, I think) does this by default \starttext \placeformula \startformula a = bbbbbbbbbbbbbbbbbbbbbbbb ddddddddddddddddddddddddddd ccccccccccc eeeeeeeeeeeeee fffffffffffffffff ggggggggggggggggggg \stopformula \stoptext HTH, Aditya