_________
\begin{tabbing} text \= more text \= still more text \= last text \\ second row \> \> more \\ . . . \end{tabbing}The
tabbing
environment provides a way to align text in columns.
It works by setting tab stops and tabbing to them much the way you do with
an ordinary typewriter. The following is a list of the commands that
are used in the tabbing
environment.
\=
\=
command sets a tab stop at the current position.
\>
\>
command causes LaTeX to advance to the next tab stop.
\<
\<
command allows you to put something to the left of the local
margin without changing the margin. This command can only be used at
the start of the line.
\+
\+
command moves the left margin of the next and all the following
commands one tab stop to the right.
\- (tabbing)
\-
command moves the left margin of the next and all the following
commands one tab stop to the left.
\A
\'
command moves everything that you have typed so far in the
current column, everything starting from the most recent \>
, \\<
,
\
', \\
, or \kill
command, to the right of the previous column,
flush against the current column's tab stop.
\'
- The `\`
command allows you to put text flushed right against any tab
stop, including tab stop 0. However, it can't move text to the right of
the last column because there's no tab stop there. The \`
command
moves all the text that follows it, up to the \\
or \end{tabbing}
command that ends the line, to the right margin of the tabbing
environment. There must be no \>
or \
' command between the \`
and
the command that ends the line.
\kill
\kill
command allows you to set tab stops without producing text.
It works just like the \\
except that it throws away the current line
instead of producing output for it. The effect of any \=
, \+
or
\-
commands in that line remain in effect.
\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
tabular*
environment. There must be
rubber space between columns that can stretch to fill out the
specified width.
pos
t
- align on top row
b
- align on bottom row
cols
l
r
c
|
@{text}
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}
\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}
num
copies of cols
, where
num
is any positive integer and cols
is any list of column-specifiers, which may contain
another *-expression.
tabular
environment.
\cline{i-j}
\cline
command draws horizontal lines across the columns
specified, beginning in column i and ending in column j,
which are identified in the mandatory argument.
\hline
\hline
command will draw a horizontal line the width of the table.
It's most commonly used to draw a line at the top, bottom, and between
the rows of the table.
\multicolumn{cols}{pos}{text}
\multicolumn
is used to make an entry that spans several columns.
The first mandatory argument, cols, specifies the number of columns to
span. The second mandatory argument, pos, specifies the formatting of
the entry:
c
l
r
\vline
\vline
command will draw a vertical line extending the full height
and depth of its row. An \hfill
command can be used to move the line
to the edge of the column. It can also be used in an @-expression.