Prev Next Index-> contents reference index search external Up-> overview latex array overview-> License why Install get_started running files titles+headings cross format spellchecking latex other browser glossary whatsNew latex-> symbol diacritical stdfun subsup frac sqrt array left_right under_over stackrel latexfont latexcomment LatexMacro mathml diff_xml_htm array Headings-> Syntax See Also Description Example Row Alignment

Latex Array Command

Syntax
latex \begin{array}{c1 ... cn} A(1,1) & ... & A(1,n) \\ ... & ... & ... \\ A(m,1) & ... & A(m,n) \end{array} See Also table Description Display in Latex mode the array A with j-th column is aligned according to the value of cj where l means align to the left, c means align each to the center, and r means align to the right. Example The input 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}$ Row Alignment The first line in the syntax above can have the formlatex \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}$
Input File: latex/array.omh