Advanced tables and statistics > Laser printed tables with PostScript > Text alignment in row axes
 
Text alignment in row axes
Quick reference
To determine the justification of words or sections in row texts, use the characters:
Character
Description
}
right-justify the following text
{
left-justify the following text
^
center the following text
~
end of text block
and place the statement:
n03#& character
at the start of the axis, where character is one of the special characters shown above.
{, }, ^ and ~ may also be used with row texts which need to be laid out in a particular format. For example, where the row texts are scores you might want to print the factors directly underneath one another rather than just in the next free column, thus:
Excellent     (+2)
Very Good     (+1)
Average       (0)
Poor          (-1)
Very Bad      (-2)
In order to have row texts aligned in columns you need to start the axis with an n03 statement of the form:
n03#&             X
where X is one of the special characters { } or ^. The number of spaces between the & and the special formatting character depends on where you want the aligned column to start. For example, if you want text to be aligned on column 20, type 19 spaces and then the formatting character in the 20th position.
Then in the individual elements, put ~ immediately before the first character which is to be part of the aligned column (for example, the scores). Long texts before the ~ are folded, but texts after it are squashed if they do not fit in the remaining space in the side text.
Example
This example lines up the first character of each score in column 20. Notice the { for left-justification on the n03#& statement and the ~ on the elements:
n03#&                   {
n10Base
n01Excellent ~(+2);fac=2;c=c237'1'
n01Very Good ~(+1);fac=1;c=c237'2'
n01Average ~(0);fac=0;c=c237'3'
n01Poor ~(-1);fac=-1;c=c237'4'
n01Very Bad ~(-2);fac=-2;c=c237'5'
Since this is a simple axis it could have been written using a col statement:
n03#&                   {
col 237;Base;Excellent ~(+2);%fac=2-1;Very Good ~(+1);
+Average ~(0);Poor ~(-1);Very Bad ~(-2)
See also
Laser printed tables with PostScript