Tables

$\bullet$
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

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

\begin{tabular}{crr}

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

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

   \begin{tabular}{ll}
      l  &   left-aligned \\
      r  &   right-aligned \\
      c  &   centered
   \end{tabular}
  

previous    contents     next

Peter Junglas 15.5.2000