ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Cannot use array in the formula?
@ 2005-05-24  1:58 龙 飞
  2005-05-24  7:09 ` Sytse Knypstra
  2005-05-24 16:11 ` Mojca Miklavec
  0 siblings, 2 replies; 3+ messages in thread
From: 龙 飞 @ 2005-05-24  1:58 UTC (permalink / raw)


I try to use:
\startformula
\left\{ \begin{array}{r@=l}
xx & yy \\
zz & aa
\end{array} \right.
\stopformula
But Context log says 
"Undefined control sequence \begin{array}."
How can I input multi-line equation in ConTeXt? Thanks

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cannot use array in the formula?
  2005-05-24  1:58 Cannot use array in the formula? 龙 飞
@ 2005-05-24  7:09 ` Sytse Knypstra
  2005-05-24 16:11 ` Mojca Miklavec
  1 sibling, 0 replies; 3+ messages in thread
From: Sytse Knypstra @ 2005-05-24  7:09 UTC (permalink / raw)


You can use \TeX commands such as \matrix, \pmatrix, \cases, \eqalign.

Sytse Knypstra

龙 飞 wrote:
> I try to use:
> \startformula
> \left\{ \begin{array}{r@=l}
> xx & yy \\
> zz & aa
> \end{array} \right.
> \stopformula
> But Context log says "Undefined control sequence \begin{array}."
> How can I input multi-line equation in ConTeXt? Thanks
> 
> _________________________________________________________________
> 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cannot use array in the formula?
  2005-05-24  1:58 Cannot use array in the formula? 龙 飞
  2005-05-24  7:09 ` Sytse Knypstra
@ 2005-05-24 16:11 ` Mojca Miklavec
  1 sibling, 0 replies; 3+ messages in thread
From: Mojca Miklavec @ 2005-05-24 16:11 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 580 bytes --]

On 5/24/05, 龙 飞 <longf77@hotmail.com> wrote:
> I try to use:
> \startformula
> \left\{ \begin{array}{r@=l}
> xx & yy \\
> zz & aa
> \end{array} \right.
> \stopformula
> But Context log says
> "Undefined control sequence \begin{array}."

\begin{array} comes from LaTeX.

> How can I input multi-line equation in ConTeXt? Thanks

You can use \matrix from plain TeX:

\startformula
\left\{\matrix{
	xx & yy \cr
	zz & aa}
\right.
\stopformula

I'm not sure if there's any mechanism for automatic (right/left)
alignment. I use \hfill if necessary. (xx\hfill yy\hfill \cr ...)

Mojca

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-05-24 16:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-24  1:58 Cannot use array in the formula? 龙 飞
2005-05-24  7:09 ` Sytse Knypstra
2005-05-24 16:11 ` Mojca Miklavec

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).