Prev Next Index-> contents reference index search external Up-> overview format table 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 Headings-> Syntax See Also Description table cnext rnext tend Example Nesting Alignment Cend and Rend

Specifying a Table and Its Rows and Columns

Syntax
$table  $cnext  $rnext  $tend 
list , pre , center , array

Description
These commands are used to create tables.

table
The command $table begins a new table. A new row and new column are automatically stated at the beginning of every table. cnext The command $cnext marks the end of the current column and the beginning of the next column.

rnext
The command $rnext marks the end of the current column, the end of the current row, the beginning of the next row, and the beginning of the next column. tend The command $tend marks the end of the current column, the end of the current row, and the end of the current table. The current table corresponds to the previous $table command in the OMhelp input stream. (Note that $tend is used instead of  to terminate a table).

Example
The input  $table 1$cnext 2 $cnext 3$rnext 4 $cnext 5$cnext 6 $tend  results in the output  1 2 3 4 5 6 Nesting You can nest one table inside of another. For example, the input $table $table 1$rnext 2 $rnext 3$tend $cnext$table 4 $rnext 5$rnext 6 $tend$tend  results in output
 1 2 3
 4 5 6

Alignment
You can use the center command to center the table. The default horizontal and vertical alignment for data in each cell is left and top. You can use the align command to change this alignment.

Cend and Rend
The cnext command used to be called cend and the rnext command used to be called rend. In order to not have to change existing OMhelp input files, the older versions of these commands still work.
Input File: table.omh