28.9.2 Invoking macros at predetermined points in output
You can specify macros to be invoked at several predetermined points in HTML or RTF output, by assigning the macros to keywords. Locations for macro insertion depend on the type of output:
RTF macro insertion points for Word
RTF macro insertion points for WinHelp
To insert macros in HTML output:
; location = macro to insert, can call another macro
; TopicBreak is placed between topics when files are not split
; Entities is placed before the head element
; Head is placed after the title element within the head element
; Frames is placed between the head and body (for Framesets)
; Top is placed at the beginning of the body element
; Bottom is placed just before the ending of the body
; End is placed after the ending of the body (to close noframes)
For split and extract files, you can use variants of the [Inserts] keywords to restrict the types of files to which an inserted macro should apply; see §18.5.2 Assigning code to [Inserts] keywords for splits and extracts.
<SCRIPT LANGUAGE="JavaScript">
if (self.top.frames.length != 0)
self.top.location=self.location;
RTF macro insertion points for Word
To insert macros (or other content) in RTF output for Word:
; location = content to insert, which may be a Mif2Go macro
RTF macro insertion points for WinHelp
To insert macros (or other content) in RTF output for WinHelp:
; location = content to insert, which may be a macro
> 28 Working with macros > 28.9 Deploying macros and macro variables > 28.9.2 Invoking macros at predetermined points in output