From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25132 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Reg. fonts and math Date: Thu, 12 Jan 2006 16:29:26 -0500 (EST) Message-ID: References: <20060112005520.GA4476@localhost> <43C6113F.5070706@wxs.nl> <43C69632.1040906@wxs.nl> 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 1137102861 24031 80.91.229.2 (12 Jan 2006 21:54:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Jan 2006 21:54:21 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 12 22:54:14 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 1ExAOS-00008u-Jj for gctc-ntg-context-518@m.gmane.org; Thu, 12 Jan 2006 22:54:04 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6022012793; Thu, 12 Jan 2006 22:54:04 +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 27708-04; Thu, 12 Jan 2006 22:54:04 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1E68F127CE; Thu, 12 Jan 2006 22:29:31 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 92385127CE for ; Thu, 12 Jan 2006 22:29:29 +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 27276-01-2 for ; Thu, 12 Jan 2006 22:29:28 +0100 (CET) Original-Received: from pushingtin.mr.itd.umich.edu (pushingtin.mr.itd.umich.edu [141.211.14.78]) by ronja.ntg.nl (Postfix) with SMTP id 31EBC127BF for ; Thu, 12 Jan 2006 22:29:27 +0100 (CET) Original-Received: from eecs4327u07.engin.umich.edu (eecs4327u07.engin.umich.edu [141.213.51.135]) by pushingtin.mr.itd.umich.edu (smtp) with ESMTP id k0CLTQJa019150 for ; Thu, 12 Jan 2006 16:29:26 -0500 X-X-Sender: adityam@eecs4327u07.engin.umich.edu Original-To: mailing list for ConTeXt users In-Reply-To: <43C69632.1040906@wxs.nl> 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:25132 Archived-At: On Thu, 12 Jan 2006, Hans Hagen wrote: > Aditya Mahajan wrote: > >> Most math in latex is *not* same as tex math. Though, most that can be done >> with latex can also be done in tex, but latex does provide a nice interface >> which sadly is missing in context. amsl and nath modules provide some of >> this functionality but a lot still needs to be done to make Context math >> handling as easy as it is in Latex. > > > Do you mean that everything between $ $ and \begin{math} \end{math} is > different? > > a + b > \int ... > \sqrt > > etc is not different is it? No, I mean the complicated math is much harder in context. Consider \begin{align} a &= b \\ c &= d \notag \\ &= f \notag \\ &= g \end{align} which will typeset as a = b (1) c = d = f = g (2) There is no Context way to do it, and one has to resort to plain tex \placeformula $$ \eqalignno{ a &= b &\formulanumber \cr c &= d \cr &= f \cr &= g \formulanumber} $$ Context gives the same result, but the input syntax is much more verbose than the latex syntax. Latex also has a lot of other useful enviromnemts like \begin{equation} \begin{split} a &= b \\ &= c \end{split} \end{equation} Again, the same effect can be achieved in plain tex, but it is more verbose. amsmath also has some useful environments like multalign and aligned, gathered, faligned, alignat, etc. Some of their functionality can be achieved using \start stop array from amsl but the amsmath environments have a lot more features. There are certain features that are much more difficult to achieve using context. Consider equation subnumbering. In latex, it is as simple as \begin{subequations} \begin{align} a &= b \\ c &= d \end{align} \end{subequations} Compare this from how to do this in context (see the wiki). You have to *manually* set the number of the subequation. Actually, for equation numbering and refering, the context way is rather limited. Consider something like an align environment a &= b\\ c &= d\\ e &= f Suppose, I want to refer to the second equation. In latex, I can simply add \label{eq:2} and the end of c&= d and then \ref{eq:2}. For context, the reference label goes at the top, with \placeformula[eqs]. But I am not sure, how to give individual labels to each equations. Browse through http://www-sop.inria.fr/miaou/latex/voss-math.pdf which explains almost all math tricks in latex. For some of the more complicated stuff, compare the latex code and the context code to achieve that result. Context has all the features, but for complicated maths, they are low level tricks. There is no upper layer like amsmath making life easier for the user. It will be nice to have such a layer. Aditya