### 28.9.1 Understanding where to use macros and macro variables

You can use a macro to insert HTML or RTF code in any of the following places:

• before, after, or in place of:

– a paragraph or character format

– a graphic or a group of graphics

– a table or a group of tables

• within table cells

• at any point in the text, using an HTML Macro or Code marker

• at fixed points in an HTML file, such as <head>, or at start and end of <body>

• at fixed points in an RTF file, such as in the header or footer, or at top or bottom.

You can give a macro variable an initial value in [MacroVariables] (see §28.3.2 Assigning values to macro variables); however, you can use macro variables only in the following two contexts:

• within Mif2Go macros

• within system commands (see §34.4 Executing operating-system commands).

Configuration settings whose values are not themselves macros cannot include macro variables.

| 28.9 Deploying macros and macro variables |  | 28.9.2 Invoking macros at predetermined points in output |