Tables and axes > Introduction to axes > Subheadings and extra text > Statements for extra text > Suppressing text-only rows
 
Suppressing text-only rows
Quick reference
To suppress text-only rows if all count-creating elements in the block are suppressed, type:
n03[element_text];nz
More information
Text-only rows created with n03 statements can be suppressed if all count-creating rows between them and the next text-only element, the next base or the end of the axis, whichever comes first, are also suppressed. This facility is not applicable in column axes where n03 columns are always ignored.
To flag an n03 as eligible for suppression, use the option nz. For example:
n03Preferred green;nz
When Quantum decides whether to print n03s flagged in this way it considers two things:
It goes to the first text-only row and scans the following elements to see whether this n03 is one of a block. If so, it checks whether all n03s in the block are flagged with nz. If they are not, Quantum marks all the texts as printable and skips to the next n03.
If all elements in the text-only block are flagged with nz, Quantum then scans all count-creating elements between that block and the next text-only element, or the next base which follows at least one row of non-base figures, or the end of the axis, whichever comes first. If all those count-creating elements are suppressed, Quantum suppresses the text-only elements as well.
These two steps are repeated until the end of the axis.
Here is a sample axis:
n10base
n03First group. Both rows and all;nz
n03elements flagged for suppression;nz
col 10;one;%nz;two;%nz;three;%nz

n03Second group. Both rows and some;nz
n03elements flagged for suppression;nz
col 11;first;%nz;second;third;%nz

n03Third group. One row and all;nz
n03elements flagged for suppression
col 12;one;%nz;two;%nz;three;%nz

n03Fourth group. No rows and some
n03elements flagged for suppression
col 13;first;%nz;second;third;%nz
In the first group, the two text-only rows will be suppressed if rows one, two and three are suppressed.
In the second group, the text-only elements will never be suppressed because the second element on the col statement is never suppressed.
In the third group, the first text-only element will never be suppressed even if all rows in the group are suppressed because the second n03 has no nz.
In the fourth group the text-only elements will never be suppressed because they are not flagged with nz.
See also
Statements for extra text