PS TEXT FORMAT Reference Manual

Escape Sequences
4-10 11387 Tandem Computers Incorporated
In the following example, the ASSIGN command tells TFORM what values
to give to the two variables chapter_name and chapter_number:
20. \ASSIGN chapter_name "Introduction"
21. \ASSIGN chapter_number 1
22. This is Chapter chapter_number: chapter_name.
23. This is Chapter \(chapter_number\): \(chapter_name\).
Because there are no indirection escape sequences to identify the variable
names as variables in line 22, TFORM construes them as text and prints
line 22 as:
This is Chapter chapter_number: chapter_name.
Because line 23 contains indirection escape sequences, which take on the
values of their variables at the time TFORM encounters, TFORM prints line
23 as:
This is Chapter 1: Introduction.
See Section 5 for more details about variables, expressions, and their
evaluation.