[texhax] Matrix problem

E. Krishnan ekmath at asianetindia.com
Wed Apr 12 18:03:05 CEST 2006

On Tue, 11 Apr 2006, Emrah Akyar wrote:

> Can someone tell me how to create the matrix like:
>   A B
> ( a b ) C
> ( c d ) D
> I want to type the column and row headers top of the each column and right
> of the each row outside the matrix brackets.

1. A quick trick would be to use the "amsmath" package and type

        A & B & 
        a & b\\
        c & d

2. TeX has a macro "\bordermatrix" but this puts row signifiers on the 

3. Herbert Voss has written a document named "mathmode.pdf" which shows 
   how  the "\bordermatrix" macro can be tweaked to meet different 
   requirements. It is available at



More information about the texhax mailing list