Tables are defined with the tabular environment. It has an argument that specifies the number of columns and their formatting. In the simplest case it contains a letter for each column, specifying the alignment as

l left-aligned
r right-aligned
c centered

A table with 3 columns, first one centered, the other two right-aligned:


The body of the table is given by a line of rows, seperated by \\. Each row contains an item for each column, separated by &.

The simple table above, defining the alignment letters, was produced with:

      l  &   left-aligned \\
      r  &   right-aligned \\
      c  &   centered

previous    contents     next

Peter Junglas 15.5.2000