From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29382 Path: news.gmane.org!not-for-mail From: "Bruce H. Wagner" Newsgroups: gmane.comp.tex.context Subject: Re: align question Date: Fri, 14 Jul 2006 22:56:57 -0700 Message-ID: References: Reply-To: bruce-wagner@redwoods.edu, 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 1152946907 31494 80.91.229.2 (15 Jul 2006 07:01:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 Jul 2006 07:01:47 +0000 (UTC) Cc: mailing list for ConTeXt users , david-arnold@redwoods.edu Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 15 09:01:39 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 1G1e9e-0006oE-Sf for gctc-ntg-context-518@m.gmane.org; Sat, 15 Jul 2006 09:01:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CE88E12815; Sat, 15 Jul 2006 09:01:34 +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 16945-02; Sat, 15 Jul 2006 09:01:29 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 509561288C; Sat, 15 Jul 2006 09:01:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 326531288C for ; Sat, 15 Jul 2006 07:57:50 +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 14385-03 for ; Sat, 15 Jul 2006 07:57:44 +0200 (CEST) Original-Received: from mail1.gtcinternet.com (mail.gtcinternet.com [64.79.162.74]) by ronja.ntg.nl (Postfix) with SMTP id 79BA412815 for ; Sat, 15 Jul 2006 07:57:39 +0200 (CEST) Original-Received: from [10.0.64.8] (localhost [127.0.0.1]) by mail1.gtcinternet.com (GTC mailer) with ESMTP id AEAC01FFD3; Fri, 14 Jul 2006 22:57:32 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by mail1.gtcinternet.com (GTC mailer) with ESMTP id 93E1520044; Fri, 14 Jul 2006 22:57:32 -0700 (PDT) Original-Received: from [4.246.253.163] (dialup-4.246.248.162.Dial1.SanJose1.Level3.net [4.246.248.162]) by mail1.gtcinternet.com (GTC mailer) with ESMTP id 52F361FFD3; Fri, 14 Jul 2006 22:57:30 -0700 (PDT) In-Reply-To: Original-To: Aditya Mahajan X-Virus-Scanned: by amavisd-new at gtcinternet.com X-Virus-Scanned: amavisd-new at ntg.nl X-Mailman-Approved-At: Sat, 15 Jul 2006 09:01:20 +0200 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:29382 Archived-At: At 10:21 PM -0700 7/14/06, Aditya Mahajan wrote: >On Fri, 14 Jul 2006, David Arnold wrote: > >> On another matter, I'm having some alignment issues. Consider the >> following code: >> >> \starttext >> >> \startformula >> \startalign[n=4,{left, middle, middle, middle}] >> aaa&b&cccc&d\\ >> a&bbb&c&ddd >> \stopalign >> \stopformula >> >> \stoptext >> > > Compile this and you will notice that the alignment parameters {left, > > middle, middle, middle} are ignored. And you can change these to >> anything else (left, middle, right), with absolutely no change. Any >> idea what is going on here? > >Wrong syntax. It should be > >\startalign[n=4,align={left,....}] > >I would strongly suggest to use > >\NC aaaa \NC bb \NC d \NR > >instead of "raw" & and \\. > > >Aditya The "align=" seems to make no difference. In fact, I had tried including it before. Also, I'm finding that the {left,middle, middle, middle} parameters are still ignored when using the Context syntax \NC \NR, as in: \startformula \startalign[n=4,align={left, middle, middle, middle}] \NC aaa\NC b\NC cccc\NC d\NR \NC a\NC bbb\NC c\NC ddd\NR \stopalign \stopformula Interestingly enough, the alignment is slightly different than I get when using the LaTeX syntax, but I still can't get alignment to work correctly. Incidentally, the reason I am using the LaTeX syntax is that we are translating LaTeX code into Context automatically using a perl script, and it's therefore much easier to stick to whatever LaTeX code works. Basically, I just want something comparable to the array environment in LaTeX, which works very nicely. Thanks, Bruce -- __________________________________________________________________________ Bruce H. Wagner e-mail: bruce-wagner@redwoods.edu Department of Mathematics phone: 707-476-4207 College of the Redwoods fax: 707-476-4424 7351 Tompkins Hill Road WWW: http://online.redwoods.edu/instruct/bwagner Eureka, CA 95501