LAST-PAGE
Syntax
LAST-PAGE position [pre_txt_lit[post_txt_lit]]
Description
Places the last page number on each page, as in page n of m.
The text strings specified in pre_txt_lit and post_txt_lit are printed immediately before and after the number.
Using LAST-PAGE causes SQR and SQRT to delay printing until the last page has been processed so that the number of the last page is known.
Parameters
| Parameter | Description |
|---|---|
|
position |
Specifies the position for printing the last page number. See the POSITION command for a description of the position parameter. |
|
pre_txt_lit |
Specifies a text string to be printed before the last page number. |
|
post_txt_lit |
Specifies a text string to be printed after the last page number. |
Example
The following example illustrates the LAST-PAGE command:
begin-footing 1
page-number (1,37) 'Page ' ! Will appear as
last-page () ' of ' '.' ! "Page 12 of 25."
end-footing
See PAGE-NUMBER, BEGIN-HEADING, BEGIN-FOOTING