TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For an equation that has an array we use \\ for new row as well, and \newline didn't work, and this is understood by the tabular environment as a new row! Would appreciate all the help!

share|improve this question
Welcome to TeX.SX! It would be good if you would show the code of this equation, so we can help to fix it. – Stefan Kottwitz May 25 '11 at 16:54
\begin{tabular}{p{10em }p{4em }} $\mathbf{P} = \left[ \begin{array}{cc} 1 - \alpha & \alpha \\beta & 1 - \beta \end{array} \right]$ & – emy May 25 '11 at 16:59
You can edit your question to add the source code. Please indent it by 4 spaces or use the '101010' button to format it as code. – Martin Scharrer May 25 '11 at 17:13
Try to wrap the whole array inside braces { } and see if it helps. – Martin Scharrer May 25 '11 at 17:13
An array environment should be in math mode, so surround it with $ signs. – egreg Jun 18 '11 at 22:09

With regard to the code snippet you provided in a comment: Yes, this array may be put into a cell of a tabular environment, and no, \newline is not understood as a new row inside a p column.



A & Bla\newline bla \\
\( \mathbf{P} = \left[ \begin{array}{cc} 1 - \alpha & \alpha \\ \beta & 1 - \beta \end{array} \right] \) & D

share|improve this answer

For smaller (single column) inclusions of an array/tabular-style object in your table, you may also consider using the the makecell package in the following way:

    A & B & C \\
    D & \makecell[c]{$E$ \\ F} & G \\
    H & I & J
share|improve this answer

Use minipage:

\begin{tabular}{p{10em }p{4em }} 
  \begin{minipage}{10em} %%
    \begin{math} %%
      \mathbf{P} = \left[ \begin{array}{cc} %%
          1 - \alpha & \alpha \\ %%
          \beta & 1 - \beta %%
        \end{array} \right] %%
    \end{math} %%
  \end{minipage} & \it table \\
  \it table & \it table
share|improve this answer
Why the minipage? Your code works without it. Also, you should use \itshape instead of \it. – Gonzalo Medina Jun 15 '11 at 19:57
minipage is my goto for solving these kinds of problems. Good to know it's not absolutely necessary. – Justin Bailey Jun 15 '11 at 20:09

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.