From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24078 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:35:24 -0500 (EST) Message-ID: 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 1133619379 6452 80.91.229.2 (3 Dec 2005 14:16:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 3 Dec 2005 14:16:19 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Dec 03 15:16:17 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 1EiYAK-0002qu-ND for gctc-ntg-context-518@m.gmane.org; Sat, 03 Dec 2005 15:15:04 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 64E5B127B6; Sat, 3 Dec 2005 15:15:01 +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 30362-03-2; Sat, 3 Dec 2005 15:14:59 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6623312865; Sat, 3 Dec 2005 13:51:09 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 85E771288F for ; Fri, 2 Dec 2005 18:35:27 +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 17444-04-4 for ; Fri, 2 Dec 2005 18:35:26 +0100 (CET) Original-Received: from withoutevidence.mr.itd.umich.edu (withoutevidence.mr.itd.umich.edu [141.211.93.147]) by ronja.ntg.nl (Postfix) with ESMTP id 50B761287E for ; Fri, 2 Dec 2005 18:35:26 +0100 (CET) Original-Received: from aditya.annarb01.mi.comcast.net (bgp996717bgs.nanarb01.mi.comcast.net [68.40.50.205]) by withoutevidence.mr.itd.umich.edu (smtp) with ESMTP id jB2HZOHg030578 for ; Fri, 2 Dec 2005 12:35:25 -0500 Original-To: mailing list for ConTeXt users X-Virus-Scanned: amavisd-new at ntg.nl X-Mailman-Approved-At: Sat, 03 Dec 2005 13:51:05 +0100 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:24078 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