Prev Next Index-> contents reference index search external Up-> overview format table align overview-> License why Install get_started running files titles+headings cross format spellchecking latex other browser glossary wish_list whatsNew format-> nobreak pre codep codei color hilite th center table list special font table-> align align Headings-> Syntax See Also Description Horizontal Vertical Example Reference

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 centeralign middle$$table line one pre$$ column one align leftcnext 1,2 align bottomrnext 2,1 align centeralign middlecnext 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