tabbing
\begin{tabbing} row1col1 \= row1col2 \= row1col3 \= row1col4 \\ row2col1 \> \> row2col3 \\ ... \end{tabbing}
The tabbing
environment provides a way to align text in
columns. It works by setting tab stops and tabbing to them much as
was done on an ordinary typewriter. It is best suited for cases where
the width of each column is constant and known in advance.
This environment can be broken across pages, unlike the tabular
environment.
The following commands can be used inside a tabbing
enviroment:
\\
tabbing\=
(tabbing)\>
(tabbing)\<
\+
\-
\'
(tabbing)\>
,
\<
, \'
, \\
, or \kill
command, to the right
of the previous column, flush against the current column's tab stop.
\`
(tabbing)\`
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.
\a
(tabbing)tabbing
environment, the commands \=
, \'
and
\`
do not produce accents as usual (see Accents). Instead,
the commands \a=
, \a'
and \a`
are used.
\kill
\\
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.
\poptabs
\pushtabs
.
\pushtabs
tabbing
environment.
\tabbingsep
\'
.
This example typesets a Pascal function in a traditional format:
\begin{tabbing} function \= fact(n : integer) : integer;\\ \> begin \= \+ \\ \> if \= n $>$ 1 then \+ \\ fact := n * fact(n-1) \- \\ else \+ \\ fact := 1; \-\- \\ end;\\ \end{tabbing}