Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to accomplish this in LaTeX.

        j
    ⎡a  b  c⎤
    |d  e  f|
    ⎣h  i  j⎦

so that the "j" is aligned with the center of the matrix.

It seems like I can't use the \begin{align} in LaTeX while also using the \begin{matrix} environment, because any & inside the matrix environment will not apply to the align environment

share|improve this question

migrated from stackoverflow.com Mar 9 '12 at 12:31

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 3 down vote accepted

Another array around the matrix should do the trick:

\begin{array}{c}
  j \\
  \left[
  \begin{array}{ccc}
    a & b & c \\
    d & e & f \\
    h & i & j % you forgot g! ;)
  \end{array}
  \right]
\end{array}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.