PS TEXT FORMAT Reference Manual

Overview of TFORM Capabilities
2–32 11387 Tandem Computers Incorporated
Creating Your Own Macros
and Functions
You can create your own macros with the MACRO construct, a series of
commands and text that work together somewhat like a subroutine. The
lines between the MACRO BEGIN command and the corresponding
ENDMACRO command define the actions of the macro; these actions can
be almost anything you want within the TFORM environment.
You can also create your own functions with the FUNCTION construct.
The FUNCTION construct is very similar to the MACRO construct, in that
both are able to accept and process arguments. However, the FUNCTION
construct defines an expression and returns its value; it cannot produce any
lines of text.
Section 3 contains the descriptions of the MACRO and FUNCTION
constructs; see Appendix G for example macros, functions, and their
applications.