[NTG-context] Math: Matrix question

2006-06-15 Thread Tobias Burnus
Hello,

maybe someone has an idea how to typeset the following

c d
 a [E F]
 b [G H]

Where EFGH is a matrix surrounded by ( ) and with a b c d I want to
label the columns and rows.
I especially struggle with aligning c and d and having the parenteses.

Any ideas are highly welcome.

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


Re: [NTG-context] Math: Matrix question

2006-06-15 Thread Otared Kavian
Hi Tobias,

Probably it is possible to do want with mathalign stuff developped in  
ConTeXt, but the following gives a reasonable result (using only  
Plain TeX commands...):

$$\eqalign{
\matrix{ \hphantom{\left({E}\right.} c  d \cr} \cr
\matrix{
a\cr
b\cr}\; \pmatrix{
E  F \cr
G  H \cr} \cr
}$$

\bye

Best regards: OK

On 15 juin 2006, at 13:30, Tobias Burnus wrote:

 Hello,

 maybe someone has an idea how to typeset the following

 c d
  a [E F]
  b [G H]

 Where EFGH is a matrix surrounded by ( ) and with a b c d I  
 want to
 label the columns and rows.
 I especially struggle with aligning c and d and having the parenteses.

 Any ideas are highly welcome.

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

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


Re: [NTG-context] Math: Matrix question

2006-06-15 Thread Tobias Burnus
Otared Kavian schrieb:
 Hi Tobias,

 Probably it is possible to do want with mathalign stuff developped in  
 ConTeXt, but the following gives a reasonable result (using only  
 Plain TeX commands...):
   
Well, this was the work-around I used, however, if I replace E by
, then the alignment gets lost.
(I worked around with \,\\quad\qquad etc., but this is not so nice.)

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


Re: [NTG-context] Math: Matrix question

2006-06-15 Thread Aditya Mahajan
On Thu, 15 Jun 2006, Tobias Burnus wrote:

 Hello,

 maybe someone has an idea how to typeset the following

c d
 a [E F]
 b [G H]

 Where EFGH is a matrix surrounded by ( ) and with a b c d I want to
 label the columns and rows.
 I especially struggle with aligning c and d and having the parenteses.

Plain tex provides \bordermatrix. Not configurable, but will suit your 
needs.

\startformula
\bordermatrix{
   a  b  c  d \cr
   e  f  g  h \cr
   i  j  k  l \cr}
\stopformula

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