PS TEXT FORMAT Reference Manual

Overview of TFORM Capabilities
11387 Tandem Computers Incorporated 2–13
Handling Page Breaks There are two ways of handling page breaks with TFORM: you can let
TFORM make page breaks arbitrarily or you can tell TFORM whenever you
want to start a new page.
As TFORM formats, it keeps track of the number of lines remaining in the
text region of the current page. In the absence of any instruction from you,
TFORM automatically stops formatting text when no more free lines are
left, prints the page footer (if any), and advances to the next page.
If you want to tell TFORM when to start a new page, use the NEW
command. Just before the line with which you want the new page to
start, type:
\NEW
If you want the text to print on the next odd or the next even page, you can
type either NEW ODD or NEW EVEN. In that case, TFORM advances
either one or two pages, as necessary, incrementing the page counter
accordingly. For example, if the current page is page 3 and you type a
NEW ODD command, TFORM prints a blank page 4 (with headers and
footers), and then begins printing page 5.
In addition to this direct page control, you can exert a kind of conditional
page control with TFORM. You can tell it when you want some block of
text kept together—either on the current page if that’s possible or, if not, at
the top of a new page. You do this with the KEEP command. If you want
the next ten lines kept together on a page, for example, type:
\KEEP 10
If there isn’t enough space on the current page to accommodate the
formatted equivalent of the next ten lines of text in your file, TFORM stops
formatting text on the current page, prints the footer (if any), and begins the
next page with the text that follows the KEEP command.