PS TEXT FORMAT Reference Manual

Introduction to TFORM
3–74 11387 Tandem Computers Incorporated
TFORM saves the section designator in the system variable
SYS_SECTION_NUM, where you can access it. TFORM saves the
section title in the system variable SYS_LEVEL0_TITLE. Here are two
ways in which you can use these values
\HEADER 1 "||\\(sys_level0_title\\)"
\FOOTER "||\\(sys_section_num\\)-#"
Use of the “\\(
exp
\\)” double indirection escape sequence is
described in detail in Section 4.
LEVEL
int string
A LEVEL
int
command defines a level 1 through level 10 section
heading. Each of the LEVEL 1 through LEVEL 10 commands takes a
string as the text for the heading. TFORM prints the string at the point
where the LEVEL
int
command appears, in the format and style
defined by the LEVEL FORMAT
int
and LEVEL STYLE
int
commands.
TFORM saves the string in the SYS_LEVEL
n
_TITLE system variable
(where
n
is the same number as that of the LEVEL command) for your
use. An example of such a LEVEL command is
\LEVEL 2 "The ASSIGN Command"
You must enter LEVEL commands in descending order. You mustn’t
enter a LEVEL 3 command, for example, without at least one LEVEL 1
and at least one LEVEL 2 command preceding it. (LEVEL 0 commands
needn’t be present, however.)
LEVEL FORMAT
The LEVEL FORMAT commands control the format TFORM uses to
print section headings. The following paragraphs describe the different
modifiers of the LEVEL FORMAT command.