PS TEXT FORMAT Reference Manual

Introduction to TFORM
11387 Tandem Computers Incorporated 3–69
LETTER appends numbers to the address variable name to identify the
individual lines of an address. If you use ADDRESS as the name, for
example, you can access individual address lines as variables anywhere in
the body of the letter by referring to \(ADDRESS1\), \(ADDRESS2\), and
so on. Data blocks can contain varying numbers of address lines, but never
less than one. If you want, that one line can be a blank line. This would tell
TFORM to simply omit printing any inside address.
The ADDRESS macro includes all of the address lines (lines that precede
the pattern in the data block) in the inside address; lines that follow the
pattern are items to be used later in the text of the letter.
Here’s an example of a letter body
\STYLE MARGIN TOP 1 INCH
\STYLE MARGIN LEFT 1 INCH
\STYLE MARGIN RIGHT 1 INCH
\ADDRESS
Dear \(nickname\),
The Hunt Club Breakfast was a smashing success! The \(amount\)
you contributed helped put us over the top. Now we can buy our own
radio-controlled stuffed fox on wheels, so that we can pursue our
avocation without interference from those environmentalists.
Gratefully,
3
2
1
3
1
These STYLE commands format the margins of the form letter.
2
This command calls the ADDRESS macro.
3
Indirect variables \(
nickname
\) and \(
amount
\) are embedded in
the letter body file.