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.
\\
must be used to specify the end of each row of the table,
except for the last, where it is optional—unless an \hline
command (to put a rule below the table) follows.
The mandatory and optional arguments consist of:
width
tabular*
environment. There must be
rubber space between columns that can stretch to fill out the specified
width.
pos
t
b
cols
l
r
|
@{
text}
\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}
\parbox[t]{
wd}
command. However, a \\
may not
appear in the item, except in the following situations:
minipage
, array
, or tabular
.
\parbox
.
\centering
, \raggedright
, or \raggedleft
declaration. The latter declarations must appear inside braces or an
environment when used in a p
-column element.
*{
num}{
cols}
*-expression
.
Parameters that control formatting:
\arrayrulewidth
|
, \hline
, and
\vline
in the tabular
and array
environments; the
default is ‘.4pt’.
\arraystretch
tabular
and array
environments; default is ‘1’, for no scaling.
\doublerulesep
||
in the tabular
and array
environments; default is ‘2pt’.
\tabcolsep
These commands can be used inside a tabular
environment: