Paragraph Tables _________


tabbing Environment

      \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.

\=
The \= command sets a tab stop at the current position.

\>
The \> command causes LaTeX to advance to the next tab stop.

\<
The \< 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.

\+
The \+ command moves the left margin of the next and all the following commands one tab stop to the right.

\- (tabbing)
The \- command moves the left margin of the next and all the following commands one tab stop to the left.

\A
The \' 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
The \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.



tabular Environment

      \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
Specifies the vertical position; default is alignment on the centre 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 centred 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:
  1. inside an environment like minipage, array, or tabular.
  2. inside an explicit \parbox.
  3. 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.


Related Commands

The following is a list of commands that are only used within a tabular environment.
\cline{i-j}
The \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
The \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}
The \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
for centred,
l
for flushleft,
r
for flushright.
The third mandatory argument, text, specifies what text is to make up the entry.

\vline
The \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.


LaTeX2e manual: v1.0 - (2/95).