1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
<html>
<head><title>array</title></head>
<body>
<h1>array</h1>
<P>
</P>
<PRE>
\begin{array}{col1col2...coln}
column 1 entry & column 2 entry ... & column n entry \\
.
.
.
\end{array}
</PRE>
<P>
Math arrays are produced with the array environment. It has a single
mandatory argument describing the number of columns and the alignment
within them. Each column, <CODE>coln</CODE>, is specified by a single letter
that tells how items in that row should be formatted.
</P>
<UL>
<LI>
<CODE>c</CODE> -- for centred
<LI>
<CODE>l</CODE> -- for flush left
<LI>
<CODE>r</CODE> -- for flush right
</UL>
<P>
Column entries must be separated by an <CODE>&</CODE>. Column entries may
include other LaTeX commands. Each row of the array must be terminated
with the string <CODE>\\</CODE>.
</P>
<P>
Note that the <CODE>array</CODE> environment can only be used in math mode, so
normally it is used inside an <CODE>equation</CODE> environment.
</P>
<p>--><a href="index.html">LaTeX index</a>
</body>
</html>
|