tabular
\begin{tabular}[pos]{cols}
column 1 entry & column 2 entry ... & column n entry \\
.
.
.
\end{tabular}
or
\begin{tabular*}{width}[pos]{cols}
column 1 entry & column 2 entry ... & column n entry \\
.
.
.
\end{tabular*}
These environments produce a box consisting of a sequence of rows of
items,aligned vertically in columns. The mandatory and optional
arguments consist of:
- width Specifies the width of the tabular* environment. There
must be rubber space between columns that can stretch to fill out
the specified width.
- pos Specified the vertical position; default is alignment on
the center of the environment.
- t - align on top row
- b - align on bottom row
- cols Specifies the column formatting. It consists of a
sequence of the following specifiers, corresponding to the
sequence of columns and intercolumn material.
- l - A column of left-aligned items.
- r - A column of right-aligned items.
- c - A column of centered items.
- | - A vertical line the full height and depth of the
environment.
- @{text} - This inserts text in every row. An @-expression
suppresses the intercolumn space normally inserted between
columns; any desired space between the inserted text and the
adjacent items must be included in text. An \extracolsep{wd}
command in an @-expression causes an extra space of width wd
to appear to the left of all subsequent columns, until
countermanded by another \extracolsep command. Unlike
ordinary intercolumn space, this extra space is not
suppressed by an @-expression. An \extracolsep command can
be used only in an @-expression in the cols argument.
- p{wd} - Produces a column with each item typeset in a parbox
of width wd, as if it were the argument of a \parbox[t]{wd}
command. However, a \\ may not appear in the item, except in
the following situations: (i) inside an environment like
minipage, array, or tabular, (ii) inside an explicit \parbox,
or (iii) in the scope of a \centering, \raggedright, or
\raggedleft declaration. The latter declarations must appear
inside braces or an environment when used in a p-column
element.
- *{num}{cols} - Equivalent to num copies of cols, where num is
any positive integer and cols is any list of
column-specifiers, which may contain another *-expression.
See also: Environments,