Aditya, Thanks for the information. Since you indicated that \startalign worked correctly on your system, I decided that I should first check to see if I had the latest Context. After updating, the problems that I was having disappeared. So you'll be glad to know that \startalign does indeed appear to work as it should. Sorry about the false alarm.
I'll try out the \startmatrix options as well to see if those will fit my needs better for some constructions. Thanks for the detailed syntax. ---Bruce At 8:12 AM -0700 7/18/06, Aditya Mahajan wrote: >On Mon, 17 Jul 2006, Hans Hagen wrote: > >> Bruce H. Wagner wrote: >>> >>> >>> 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. >>> >> Aditya is in more or less charge of the specification/tryout part of >the math >> extensions and taco/myself implement things based on that input, so i >suggest >> that the two of you come up with specs > >Context supports everything that latex array provides, with a slightly >different syntax. Some extract from the update on myway on alignment >(I am still working on it) > >% \def\ShowExample >% {\hairline >% \typebuffer >% \hairline >% \getbuffer} > > >\CONTEXT\ provides \tex{startmatrix} for generic alignment mechanism. >\startbuffer >\startformula > \startmatrix > \NC A \NC B \NC C \NR > \NC a \NC b \NC c \NR > \NC 1 \NC 2 \NC 3 \NR > \stopmatrix >\stopformula >\stopbuffer >\ShowExample > >It can take a \type<<left=>> and \type<<right=>> option which can be >used to >typeset matrices >\startbuffer >\startformula > I = \startmatrix[left={\left(\,},right={\,\right)}] > \NC 1 \NC 0 \NC 0 \NR > \NC 0 \NC 1 \NC 0 \NR > \NC 0 \NC 0 \NC 1 \NR > \stopmatrix >\stopformula >\stopbuffer >\ShowExample > >It is possible to \tex{definemathmatrix} to use the construct >repeatedly. >\startbuffer >% Paranthesis >\definemathmatrix > [pmatrix] > [left={\left(\,},right={\,\right)}] > >% Brackets >\definemathmatrix > [bmatrix] > [left={\left[\,},right={\,\right]}] > >% Curly braces >\definemathmatrix > [Bmatrix] > [left={\left\{\,},right={\,\right\}}] > >% vertical bars >\definemathmatrix > [vmatrix] > [left={\left\vert\,},right={\,\right\vert}] > >% double vertical bars >\definemathmatrix > [Vmatrix] > [left={\left\Vert\,},right={\,\right\Vert}] > >\startformula > I = \startpmatrix > \NC 1 \NC 0 \NC 0 \NR > \NC 0 \NC 1 \NC 0 \NR > \NC 0 \NC 0 \NC 1 \NR > \stoppmatrix > = \startbmatrix > \NC 1 \NC 0 \NC 0 \NR > \NC 0 \NC 1 \NC 0 \NR > \NC 0 \NC 0 \NC 1 \NR > \stopbmatrix > = \startBmatrix > \NC 1 \NC 0 \NC 0 \NR > \NC 0 \NC 1 \NC 0 \NR > \NC 0 \NC 0 \NC 1 \NR > \stopBmatrix >\stopformula >\startformula > \startvmatrix > \NC a \NC b \NR > \NC c \NC d \NR > \stopvmatrix > \quad > \startVmatrix > \NC a \NC b \NR > \NC c \NC d \NR > \stopVmatrix >\stopformula >\stopbuffer >\ShowExample > >It is possible to change the alignment of columns using \type{align=} >option. >\startbuffer >\startformula > \text{Let } A = \startpmatrix[align={left,right}] > \NC 1 \NC 2 \NR > \NC 3 \NC -5 \NR > \stoppmatrix >\stopformula >\stopbuffer >\ShowExample -- __________________________________________________________________________ Bruce H. Wagner e-mail: [EMAIL PROTECTED] 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 _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context