op.macro.file

Command/Output Processor: Commands, Releases: AP

Sets the file.reference that contains OP macro items.

Syntax

.macro file file.reference .mf file.reference

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.

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 'dm' account 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 dm,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

See Also

Command Name Type Description
op.commands Definition Summary of OP commands.
op.mf Command see 'macro file'.
op Introductory Text formatting

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.