PS TEXT FORMAT Reference Manual

Introduction to TFORM
3–20 11387 Tandem Computers Incorporated
Tips
You can put any information in CONTENTS fields that you want, but
for a useful table of contents entry you must usually include the page
number symbol () in one of the fields if you want TFORM to include the
page number on which that entry appears. When TFORM finds the
CONTENTS command with such a symbol, it fills in the current page
number for you. Assume that TFORM finds the following command
when formatting page 36 of a document
\CONTENTS "Part 3|Advanced TFORM|Page #"
The contents page that TFORM prints would contain this entry
Part 3 Advanced TFORM Page 36
Although you can use the CONTENTS command yourself to add
additional titles to the table of contents, the CONTENTS command is
also embedded in the LEVEL command. This means that all section
headings you provide for the LEVEL command are saved by
CONTENTS. If TFORM does not find a CONTENTS command forcing
a partial table of contents (which would be a CONTENTS command
with no
title
) within the file, TFORM automatically generates a table
of contents when it comes to the end of the file.
If you enter a CONTENTS command with no
title
and fail to precede
it with a NEW command, TFORM will include the partial table of
contents right at that point in the current page. On the other hand, you
might want to do this by using CONTENTS commands to collect a list
of topics, and then printing them as part of your text without having to
retype them.