PS TEXT FORMAT Reference Manual
Examples of Function and Macro Constructs
11387 Tandem Computers Incorporated G-9
If you run the above macro with a program (in this case a macro named
simplex), the result would look like this:
 **************************************************
 This simplex macro disables left/right alternation
 of headers and footers, for printing single-sided
 draft copies.
 **************************************************
 \IMACRO simplex BEGIN LOCAL rtside
 \ IF ARG(0)<1
 \ ASSIGN rtside 1
 \ EXITMACRO
 \ ENDIF
 \ IF UPPER(ARG(1,1))="ON"
 \ ASSIGN rtside 1
 \ ELSE
 \ ASSIGN rtside 0
 \ ENDIF
 \ENDMACRO simplex
Note You can change the bullet character, “*”, to another character, such as “+”, if you wish.










