Placing text in the body of the table
Quick reference
To place text in the main body of the table, type:
n03[element_text] [ coltxt[pos[±n] ]=cell_text
pos is l, r or c: the justification of cell_text in each cell. Typing +n or -n defines additional movement by n spaces relative to the main justification.
More information
You can also use an n03 to place text in the body of the table, above or below the cell values. An example is to print a row of hyphens above a total or subtotal row to separate it more clearly from the rows which are included in it. The text to print is defined on an n03 statement with the option keyword coltxt=:
Syntax
n03[element_text] ;coltxt[pos[±n] ]=cell_text
Parameters
element_text
This is an optional element text.
pos
This defines the position of the cell text in the column, and is one of l (left justify), r (right justify) or c (center). The default is right justification.
±n
This defines an optional offset from the main justification. For example, l+2 means two character positions to the right of full left justification. If the offset would cause the text to be placed in an illegal position on the page, the characters affected are silently ignored. The default is +0.
cell_text
This is the text to be printed in each cell in the row. If this is too long to fit in column width, it is silently truncated.
Example
Suppose the row axis counts self-employed people. The data has been coded to the nearest 1,000, so that a 1 in column 132 means that there were up to 999 self-employed people. The axis is as follows:
l people
n10Base
n03Thousands of people
n03;coltxtr+2=000's
n01Under 1000;c=c132'1'
n011000-2000;c=c132'2'
n012001-3000;c=c132'3'
n013001-4000;c=c132'4'
n014001-5000;c=c132'5'
n03;coltxt=----
n04Total
If you tabulate this against an axis defining the region in which the survey was carried out, you can see, to the nearest thousand, the number of self-employed people in each region. coltxt prints headings at the top of each column of figures (underneath the base) and again before the total row. The first coltxt element is offset to the right of the figures by two character positions, whereas the second one uses the default of right justification.
Base Kent Surrey Sussex Essex
Base 50 10 14 10 16 Thousands of People 000's 000's 000's 000's 000's Under 1000 7 1 2 2 2 1000-2000 7 1 3 0 3 2001-3000 3 1 1 0 1 3001-4000 3 1 1 1 0 4001-5000 5 1 1 1 2 ---- ---- ---- ---- ---- Total 25 5 8 4 8 |
See also