tags:

views:

2356

answers:

2

So, I have an example matrix here:

\[
\begin{pmatrix}
t   & 1-t &  -1 &  0  &  0  \\
0   &  t  & 1-t &  -1 &  0  \\
0   &  0  &  t  & 1-t &  -1 \\
-1  &  0  &  0  &  t  & 1-t \\
1-t &  -1 &  0  &  0  &  t
\end{pmatrix}
\]

I wish to add labels to the columns and rows (such as a, b, c, d and the like) which go above and to the left (both outside) of the matrix, but are obviously aligned with said columns and rows.

How do I go about doing this?

Thanks for any potential help.

+1  A: 

table or longtable environments could be used instead of pmatrix.

J.F. Sebastian
Yeah. CTAN doesn't turn up anything that looks promising at all.
dmckee
Hmmm... table looks like it could be a possibility, but I would much rather have the ability to keep the delimiters of pmatrix, since it is a matrix which corresponds to a knot diagram...
bowenthebeard
+7  A: 

You need to use \bordermatrix. There's an example at http://www.math.harvard.edu/texman/node25.html.

Fantastic! This is *exactly* what I wanted. Thanks so much Andrew!
bowenthebeard