Next: , Up: tabular


8.23.1 \multicolumn

Synopsis:

     \multicolumn{cols}{pos}{text}

The \multicolumn command makes an entry that spans several columns. The first mandatory argument, cols, specifies the number of columns to span. The second mandatory argument, pos, specifies the formatting of the entry; c for centered, l for flushleft, r for flushright. The third mandatory argument, text, specifies what text to put in the entry.

Here's an example showing two columns separated by an en-dash; \multicolumn is used for the heading:

     \begin{tabular}{r@{--}l}
     \multicolumn{2}{c}{\bf Unicode}\cr
        0x80&0x7FF   \cr
       0x800&0xFFFF  \cr
     0x10000&0x1FFFF \cr
     \end{tabular}