Automatic pagination
If the row axis is too long for the page, Quantum prints as much as will fit on the first page and then reprints the column headings at the start of the next page before printing the rest of the row axis. If the column axis is too wide for the page, Quantum prints the full row axis with as much of the column axis as will fit on the first page. It then starts a new page and reprints the row axis with the remainder of the column axis.
Quantum repeats the table headings and the base row or column, as appropriate, before printing the rest of the table. Any texts created by
foot and
bot statements are also carried forward. The table number remains the same, but the page number increases by 1. For more information about
foot, see
Printing text at the foot of a table. For more information about
bot, see
Printing text at the bottom of a page.
When a table is very large and has both its row and column axes split across pages, Quantum normally prints all the pages which make up the full column heading before it prints those containing the continuation of the row axis.
For example, if the table spec is:
tab age region
l age
val c(110,111)Base;11-20 yrs;21-34 yrs;35-54 yrs;55+ yrs
l region
col 112;Base;North;North East;NorthWest;East;West;South;
+South East;South West;Central
and each page has room for five columns and three rows, Quantum prints the table in the following order:
Page 1 North North Base North East West East Base 11-20 yrs 21-34 yrs
--------------------------------------------------------------- Page 2 South South West South East West Central Base 11-20 yrs 21-34 yrs
--------------------------------------------------------------- Page 3 North North Base North East West East Base 35-54 yrs 55+ yrs
--------------------------------------------------------------- Page 4 South South West South East West Central Base 35-54 yrs 55+ yrs
--------------------------------------------------------------- |
To change the pagination so that rows take precedence over columns, place the keyword rinc (short for ‘rows in columns’) on the a, flt, sectbeg or tab statement. The order of printing for the example is then:
Page 1 North North Base North East West East Base 11-20 yrs 21-34 yrs
--------------------------------------------------------------- Page 2 North North Base North East West East Base 35-54 yrs 55+ yrs
--------------------------------------------------------------- Page 3 South South West South East West Central Base 11-20 yrs 21-34 yrs
--------------------------------------------------------------- Page 4 South South West South East West Central Base 35-54 yrs 55+ yrs
--------------------------------------------------------------- |
See also