From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77515 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: about \startformula\startalign error Date: Sun, 22 Jul 2012 21:30:48 -0400 (EDT) Message-ID: References: <8114F18A-AD46-42BF-AE96-5435E9957659@me.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1343007066 9087 80.91.229.3 (23 Jul 2012 01:31:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 23 Jul 2012 01:31:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 23 03:31:02 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1St7UB-0001Fc-UO for gctc-ntg-context-518@m.gmane.org; Mon, 23 Jul 2012 03:31:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8B9051023C; Mon, 23 Jul 2012 03:30:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id z2gi7IaCNhNj; Mon, 23 Jul 2012 03:30:57 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 046ED101F2; Mon, 23 Jul 2012 03:30:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D72B0101F2 for ; Mon, 23 Jul 2012 03:30:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id fCbfw2BlOyxX for ; Mon, 23 Jul 2012 03:30:54 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id A25D8101EE for ; Mon, 23 Jul 2012 03:30:53 +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.14.3/8.14.3/Debian-9.4) with ESMTP id q6N1UpKn011369 for ; Mon, 23 Jul 2012 03:30:52 +0200 Original-Received: FROM adi-netbook (bas3-montreal02-1096682554.dsl.bell.ca [65.94.12.58]) By hackers.mr.itd.umich.edu ID 500CA949.5B268.4809 ; Authuser adityam; 22 Jul 2012 21:30:49 EDT In-Reply-To: <8114F18A-AD46-42BF-AE96-5435E9957659@me.com> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) 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: 06HBBuP8B - 5fd0e0f0078f - 20120723 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:77515 Archived-At: On Mon, 23 Jul 2012, dalyoung wrote: > I have two more questions. > > 1. In the output of the following code, 'x' in the first column is > vertically centered, but matrix in the second column is not(located at > top). What option can solve this? Normally matrices are centered on the math axis (and their location can be controlled by location=(low|lohi|high) keys, but for some reason that is not working in a table. > \starttable[|c|c|w4cm|w4cm|] The normal syntax is w(4cm) ... > \HL > \NC A \VL B \VL C \VL D \NC\SR > \HL > \NC $x$ \VL \startmatrix > \NC x' = \NC \NR > .\NC y' = \NC \NR > \stopmatrix \VL \VL \NC\SR The matrix should be in math mode $\startmatrix ... \stopmatrix$ > \HL > \stoptable > > > 2. In the output of the following code, the matrix in the second column is vertically centered, but 'x' in the first column is located at the bottom. > > \starttext > \starttable[|c|c|w4cm|w4cm|] > \HL > \NC A \VL B \VL C \VL D \NC\SR > \HL > \NC $y$ \VL {\framed[frame=off, align=normal]{\startformula\startalign > \NC x' = \NC \NR > \NC y' = \NC \NR > \stopalign\stopformula}} \VL \VL \NC\LR > \HL > \stoptable > \stoptext > > Both of them are good for compiling, but need a slight touch. Use the \frame aligning options (better to hide this in a macro): \starttext \starttable[|c|c|] \HL \NC A \VL B \VL \SR \HL \NC $x$ \VL \framed[frame=no,height=fit, strut=no, location=lohi,align=normal]{ \setupformula[spacebefore=,spaceafter=] \startformula \startalign \NC x' \NR \NC y' \NR \stopalign \stopformula} \VL \SR \HL \stoptable \stoptext 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________