\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.
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:
\=
\>
\<
\+
\-
\'
\>
,
\<
, \'
, \\
, or \kill
command, to the right
of the previous column, flush against the current column's tab stop.
\`
\`
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
\\
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.
\pushtabs
tabbing
environment.
\pushtabs
\pushtabs
.
\a
tabbing
environment, the commands \=
, \'
and
\`
do not produce accents as normal. Instead, the commands
\a=
, \a'
and \a`
are used.
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}