|
Prev | Next | array |
| Syntax |
$latex \begin{array}{c1 ... cn} |
A(1,1) & ... & A(1,n) \\ | |
... & ... & ... \\ | |
A(m,1) & ... & A(m,n) | |
\end{array} $$ | |
| See Also | table |
l means align to the left,
c means align each to the center,
and r means align to the right.
$latex
\begin{array}{clcr}
a+b++c & uv & x-y & 27 \\
a+b & u+v & z & 134 \\
a & 3u+vw & xyz & 2,978
\end{array}
$$
results in the following output
\begin{array}{clcr}
a+b++c & uv & x-y & 27 \\
a+b & u+v & z & 134 \\
a & 3u+vw & xyz & 2,978
\end{array}
$latex \begin{array}[r]{c1 ... cn}
In this case the value of r
specifies how each row is aligned where
t means align the top,
c means align the center,
and b means align the bottom.
For example, the input
$latex
\begin{array}[t]{cc}
\begin{array}{c} a \\ b \end{array}
&
\begin{array}{cc} a & b \end{array}
\end{array}
$$
results in the following output
\begin{array}[t]{cc}
\begin{array}{c} a \\ b \end{array}
&
\begin{array}{cc} a & b \end{array}
\end{array}