[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
\begin{equation*}
\begin{matrix}
\begin{matrix}
A & B &
\end{matrix}\\
\begin{pmatrix}
a & b\\
c & d
\end{pmatrix}
\begin{matrix}
C\\
D
\end{matrix}
\end{matrix}
\end{equation*}
2. TeX has a macro "\bordermatrix" but this puts row signifiers on the
*left*
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
www.tug.org/tex-archive/info/math/voss/mathmode/Mathmode.pdf
--
Krishnan
More information about the texhax
mailing list