# \colspan¶

Command in package table.

## Synopsis¶

\colspan[align][valign]{count}


## Description¶

This command is only allowed inside a table cell. It spreads the cell over count columns.
The optional arguments align and valign specify the horizontal and vertical align of the
cell content. Possible values are "r", "c", "l" for align, meaning "right" resp. "left" resp.
"centered", and "t", "m", "b" for valign", meaning "top" resp. "middle" resp. "bottom". If
omitted, the default horizontal resp. vertical align is applied, which is left-middle.

This command provides the same functionality as the standard LateX \multicolumn command, but
its syntax is different.

## Example 1¶

\begin{table}
A A A & B B B & C C C \\
D \newline D & \colspan{2} E \\
G & H   & I
\end{table}


Result, as rendered by your browser

 A A A B B B C C C D D E G H I

## Example 2¶

\begin{table}
A A A & B B B & C C C \\
D \newline D  & \colspan[c][t]{2} E \\
G & H   & I
\end{table}


Result, as rendered by your browser

 A A A B B B C C C D D E G H I

## Example 3¶

\begin{table}
A A A & B B B & C C C \\
D \newline D  & \colspan[r][b]{2} E \\
G & H   & I
\end{table}


Result, as rendered by your browser

 A A A B B B C C C D D E G H I

This page is generated automatically and each change here will be replaced on a next update.

Add picture from clipboard (Maximum size: 500 MB)