ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Bruce H. Wagner" <bhwagner@gtcinternet.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	david-arnold@redwoods.edu
Subject: Re: align question
Date: Fri, 14 Jul 2006 22:56:57 -0700	[thread overview]
Message-ID: <p06230909c0de329a0e98@[4.246.253.163]> (raw)
In-Reply-To: <Pine.WNT.4.63.0607150119310.3500@nqvgln>

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

  reply	other threads:[~2006-07-15  5:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-15  5:07 David Arnold
2006-07-15  5:21 ` Aditya Mahajan
2006-07-15  5:56   ` Bruce H. Wagner [this message]
2006-07-16  5:36     ` Aditya Mahajan
2006-07-17  9:48     ` Hans Hagen
2006-07-18 15:12       ` Aditya Mahajan
2006-07-18 18:40         ` Bruce H. Wagner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='p06230909c0de329a0e98@[4.246.253.163]' \
    --to=bhwagner@gtcinternet.com \
    --cc=bruce-wagner@redwoods.edu \
    --cc=david-arnold@redwoods.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).