From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26801 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Myway on using mathalign Date: Wed, 5 Apr 2006 02:51:21 -0400 (EDT) Message-ID: References: <44331A3E.8070604@cs.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" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1144220188 2584 80.91.229.2 (5 Apr 2006 06:56:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Apr 2006 06:56:28 +0000 (UTC) Cc: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 05 08:56:25 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org 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 1FR1wE-0006Cx-Gn for gctc-ntg-context-518@m.gmane.org; Wed, 05 Apr 2006 08:56:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4130C127BE; Wed, 5 Apr 2006 08:56:22 +0200 (CEST) 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 05466-08; Wed, 5 Apr 2006 08:56:21 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8F633127BB; Wed, 5 Apr 2006 08:51:31 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D32CA127BB for ; Wed, 5 Apr 2006 08:51:29 +0200 (CEST) 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 05466-06 for ; Wed, 5 Apr 2006 08:51:28 +0200 (CEST) Original-Received: from beyondborders.mr.itd.umich.edu (beyondborders.mr.itd.umich.edu [141.211.93.146]) by ronja.ntg.nl (Postfix) with SMTP id 56132127BA for ; Wed, 5 Apr 2006 08:51:27 +0200 (CEST) Original-Received: from aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) by beyondborders.mr.itd.umich.edu (smtp) with ESMTP id k356pK4b010330; Wed, 5 Apr 2006 02:51:21 -0400 Original-To: WN In-Reply-To: <44331A3E.8070604@cs.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:26801 Archived-At: On Wed, 5 Apr 2006, WN wrote: > One thing I want to do with a set of subformula's is > to reference the main formula but still subnumbering the equations > like Try this. Warning: I do not know everything that is happening here. There may be some unexpected side effects. \unprotect \def\placesubformulawithnumber{% \dodoubleempty\doplacesubformulawithnumber} \def\doplacesubformulawithnumber[#1][#2]%#2 gobbles spaces {\iffirstargument \incrementnumber[\v!formula] \makesectionnumber[\v!formula] \rawreference{\s!for}{#1}{\composedsectionnumber} \else \incrementnumber[\v!formula] \fi\placesubformula} \protect > \starttext %% > \incrementnumber[formula] %% > \placesubformula \placesubformulawithnumber[eqn1] %I need to think of a smaller name > \startformula > \startalign > \NC div \vec{E} \NC = \epsilon_{0}^{-1} \rho \NR[eqn1:A][a] > \NC rot \vec{E} \NC = 0 \NR > \NC div \vec{B} \NC = 0 \NR[eqn1:B][b] > \NC rot \vec{B} \NC = \mu_{0} \vec{j} \NR > \stopalign > \stopformula > See *\in[eqn1] *for the static Maxwell equations, where we are going to > examine \in[eqn1:A] a bit further .... > \stoptext > Also, note that div and rot should be in text font. You should probably do \startmathcollection[default] \definemathcommand [div] [nolop] {\mfunction{div}} \definemathcommand [rot] [nolop] {\mfunction{rot}} \stopmathcollection and use \div \rot etc. HTH, Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008