macro file

macro file


lpi Index Level margins, Output Processor
Syntax .macro file file.reference
.mf file.reference
Category Output Processor
Type Command
Description defines the file name that contains OP macro items.

Macros may contain multiple OP commands and text.

A macro is an item in the given file.reference with an item-id of the format ".macroid". The item-id of the macro must begin with a period (".").

The "macro file" name cannot consist of any periods (".").  

Items from the macro file are included in OP documents by entering the item-id of the macro in the document.

Any string preceded by a period (".") that is not a standard OP command is treated as a macro.

A macro can reside in the file being edited, or in another file.

If a macro file name has not been declared, OP looks for the macro in the current file.

After the macro has been processed, control returns to the original document item.
Options
See Also OP commands mf Output Processor
Example The item to process resides in the "templates" file, with an item-id of ".fax".

u document letter

01 This letter is to inform you of the following information.
02 .macro file templates
03 .fax
04
05 Sincerely yours,
06
07 Your Name Here

The item to process resides in the "templates" file, with an item-id of ".fax".

u document letter

01 This letter is to inform you of the following information.
02 .macro file templates,
03 .fax
04
05 Sincerely yours,
06
07 Your Name Here

The item to process resides on the current account and same file ("document") with an item-id of ".fax".

u document letter

01 This letter is to inform you of the following information.
02
03 .fax
04
05 Sincerely yours,
06
07 Your Name Here
Warnings
Compatibility D3 7.0 AP
lpi Index Level margins, Output Processor