Prev Next align

Setting Alignment of Cells in Tables

Syntax
$align location$$

See Also
table , array

Description
Set the alignment for all subsequent table commands where location is one of the following: left, center, right, top, middle, bottom.

Horizontal
The location values left, center, and right set the horizontal alignment for the data in each cell of a subsequent table. The default value for the horizontal alignment is left.

Vertical
The location values top, middle, and bottom set the vertical alignment for the data in each cell of a subsequent table. The default value for the vertical alignment is top.

Example
The input
 

$align center$$ $align middle$$ $table
line one
$pre
$$
column one
$align left$$ $cnext
1,2
$align bottom$$ $rnext
2,1
$align center$$ $align middle$$ $cnext
line two
$pre
$$
column two
$tend

results in
line one
column one
1,2
2,1 line two
column two

Reference
If an alignment command appears inside a cell of a table, it only affects subsequent cells; i.e., it only takes affect at the next table , rnext or cnext command. A horizontal or vertical alignment has effect until it is changed or until the end of the current section (which ever comes first).
Input File: align.omh