next up previous
Next: Verbatim Output Up: Environments Previous: Lists


Because LATEX will almost always convert a sequence of spaces into a single space, it can be rather difficult to lay out tables. See what happens in this example
Income Expenditure R...
...9s 11d happiness \\
20s 0d 20s 1d misery \\

The tabbing environment overcomes this problem. Within it you set tabstops and tab to them much like you do on a typewriter. Tabstops are set with the \= command, and the \> command moves to the next stop. The \\ command is used to separate each line. A line that ends \kill produces no output, and can be used to set tabstops:
Income \=Expenditure \...
...1d \>Happiness \\
20s 0d \>20s 1d \>Misery \\

Unlike a typewriter's tab key, the \> command always moves to the next tabstop in sequence, even if this means moving to the left. This can cause text to be overwritten if the gap between two tabstops is too small.

Kevin Cooper 2002-03-01