Tables and axes > Using axes as columns > Manual set-up > Banner text
 
Banner text
Quick reference
To define column headings, type:
g col1_text [col2_text...]
More information
Column headings must be written on g statements exactly as they are to appear in the printed output. An axis can contain as many as 20 g statements grouped together to form blocks of column text.
For example:
g Marital Status
g    Base Single Married Divorced Widowed
g    ----    ------  -------  --------  -------
An axis can contain more than one block of g statements as long as each group is followed by a p statement. For more information about the p statement, see Printing numbers in columns.
The texts on each line of the second block will be placed adjacent to those on the first. It does not matter if some blocks have more g statements than others: Quantum always starts with the bottom line in each block, and adds extra spaces where necessary.
g          - - - - This is the First Block - - -
g   Base   Column 1   Column 2   Column 3   Column 4
g   ----   --------   --------   --------   --------
p      x          x          x          x          xg  - Second Block - -
g  Column 5   Column 6
g  --------   --------
p         x          x
When printed in the table, the two blocks will be printed as one:
       - - - - This is the First Block - - -  - Second Block - -
 Base  Column 1  Column 2  Column 3  Column 4  Column 5  Column 6
 ----  --------  --------  --------  --------  --------  --------
Column headings start in the column immediately after the g, and are in the table in the column after the end of the side-text. Thus, if the row-text width is 24 characters, the column headings start in print position 25 unless you leave extra spaces before the leftmost text on the first block of g statements.
See also
Manual set-up