Go to the first, previous, next, last section, table of contents.


PAGE1 and PAGEN

The PAGE1 and PAGEN variables set the number of records per page for the first page and every other page respectively. They are normally both set to one. Unlike the other environment variables these are set with two unique predefined macros. Each macro can also be used to define the text body associated with the start of the first page or every other page. In the example program fragment below the number of records is set to three on the first page and four on every subsequent page.

%%PAGE01 3
%%PAGENN 4

The PAGE01 and PAGENN predefined macros can also take a second numeric argument. This is the number of lines per page. If the number of lines per page is execeeded then this will cause a page break irrespective of the number of records per page. The number of records per page however is not reset, and so this also will cause a page break. By setting one or other of these paramaters to 0 then the behaviour can be defined as n records per page, or n lines per page. It is illegal to set both parameters to 0. The default with no arguments specified is 0 for lines per page (not used) and infinite for records per page (there will be no automatic page breaks). Note that lines per page includes lines from the header and footer text bodies, but that records per page doesn't. This mechanism can be used to handle variable length records in plaintext based output, it is of less use for LaTeX output. If there is no PAGE01 definition then all pages will use the definition given for PAGENN. See section PAGE01 and section PAGENN for further details.

Note that the GPPPAGE01, TEXPAGE01, GPPPAGENN and TEXPAGENN predefined macros which the above two replace are deprecated and should not be used.


Go to the first, previous, next, last section, table of contents.