# [OS X TeX] Labeling the rows and columns of a matrix

Axel E. Retif axel.retif at mac.com
Thu Sep 27 16:39:58 EDT 2007

On  27 Sep, 2007, at 15:33, Axel E. Retif wrote:

> On  27 Sep, 2007, at 13:34, Jon Breitenbucher wrote:
>
>> I've done some looking around and searching the forum and haven't
>> found a solution to my dilemma. I have students that want to
>> create a matrix with the rows labeled and the columns labeled with
>> the labels being appropriately centered and outside any
>> delimiters. Is this possible? I'm sure it is since I have seen
>> such matrices in books, but it must be the case that one can't use
>> a matrix environment. Do I need to look at tabular?
>
>
> From
>
> http://www.ctan.org/tex-archive/info/math/voss/mathmode/
> Mathmode.pdf (p. 22):
>
> \documentclass{article}
> \usepackage{amsmath}

%%% There is really no need for the amsmath package with this.

> \begin{document}
>
> $> \bordermatrix{% > & 0 & 1 & 2 \cr > 0 & A & B & C \cr > 1 & d & e & f \cr > 2 & 1 & 2 & 3 \cr > } >$
>
> \end{document}
>
> Best,
>
> Axel