From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50276 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: What is equivalent of latex math aligned in ConTeXt? Date: Mon, 11 May 2009 14:16:11 -0400 (EDT) Message-ID: References: <4A08626A.9040507@telefonica.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242065936 25181 80.91.229.12 (11 May 2009 18:18:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 May 2009 18:18:56 +0000 (UTC) Cc: Xan To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 11 20:18:46 2009 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 lo.gmane.org with esmtp (Exim 4.50) id 1M3a5N-0006yD-Cy for gctc-ntg-context-518@m.gmane.org; Mon, 11 May 2009 20:18:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 646A21FF1D; Mon, 11 May 2009 20:18:44 +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 07782-01-2; Mon, 11 May 2009 20:17:40 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 086A61FCEF; Mon, 11 May 2009 20:17:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 503CA1FBBA for ; Mon, 11 May 2009 20:17:03 +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 04572-03 for ; Mon, 11 May 2009 20:16:33 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by ronja.ntg.nl (Postfix) with ESMTP id 58A9B1FF00 for ; Mon, 11 May 2009 20:16:33 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4BIGVOC015283 for ; Mon, 11 May 2009 20:16:32 +0200 Original-Received: FROM [192.168.2.8] (c-76-127-178-8.hsd1.ct.comcast.net [76.127.178.8]) By hackers.mr.itd.umich.edu ID 4A086B7D.A89C6.5068 ; Authuser adityam; 11 May 2009 14:16:29 EDT In-Reply-To: <4A08626A.9040507@telefonica.net> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) 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: 223335833 - 8a1d437d76f8 - 20090511 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:50276 Archived-At: On Mon, 11 May 2009, Xan wrote: > Hi, > > I read the document "Using \startalign and friends" of Aditya (that it's > good) and I can't find anything under ams aligned. Is this an equivalent in > ConText? Strictly speaking, none. You can fake aligned and gathered with matrices. > For example, what is the equivalent of: > > \begin{equation*} > \left.\begin{aligned} > & 2^2 | n_0\\ > & 4^2 | n_0 + 2 \Rightarrow (2^2)^2 | n_0 +2 \Rightarrow 2^2 | n_0 +2 \text{ > ya que } 2^2 | (2^2)^2 > \end{aligned}\right\} \Rightarrow 2^2 | (n_0 + 2 - n_0) \Rightarrow 2^2 | 2 > \end{equation*} > > in ConTeXt? > > I tried something like: > > \startformula > \startmathalignment > \NC \startaligned > \NC \lambda_{0, \lvert k - s \rvert} (n) \NC < f(n) \NR > \NC \text{ per a $n$ suficientment gran } \NC \NR > \stopaligned \NC \iff > \startaligned > \NC \lambda_{s, k} (n) \NC < f(n) \NR > \NC \text{ per a $n$ suficientment gran } \NC \NR > \stopaligned \NR[+] > \NC \lambda_{s, k} (n) < f(n) \text{ per a $n$ suficientment gran } \NC \iff > \lambda_{0, \lvert k - s \rvert} (n) < f(n) + C \text{ per a $n$ > suficientment gran } \NR[+] > \stopmathalignment > \stopformula > > but " Undefined control sequence" appears to me. Of course. The command \startaligned is not defined. Here is one way to do this. \definemathmatrix[rightbrace] [align=left, left={\left.}, right={\right\}}, style=\displaystyle] \starttext \startformula \startrightbrace \NC 2^2 | n_0 \NR \NC 4^2 | n_0 + 2 \Rightarrow (2^2)^2 | n_0 +2 \Rightarrow 2^2 | n_0 +2 \text{ ya que } 2^2 | (2^2)^2 \NR \stoprightbrace \Rightarrow 2^2 | 2 \stopformula \stoptext I would also use \implies instead of \Rightarrow (slightly different spacing). 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________