LAST-PAGE

Function

Places the last page number on each page, as in “page n of m”.

Syntax

LAST-PAGE position [pre_txt_lit[post_txt_lit]]

Arguments

position

Position for printing the last page number.

pre_txt_lit

Text string printed before the last page number.

post_txt_lit

Text string printed after the last page number.

Description

The text strings specified in pre_txt_lit and post_txt_lit are printed immediately before and after the number.

Using LAST-PAGE causes the SQR and SQRT executables to delay printing until the last page has been processed so that the number of the last page is known.

Examples

begin-footing 1
  page-number(1,37)  'Page ' Will appear as
  last-page ()  ' of ' '.' ! "Page 12 of 25."
end-footing

See Also

PAGE-NUMBER, BEGIN-HEADING, and BEGIN-FOOTING