#### 37.1.1 Defining macros

To define a macro, create a configuration-file section with the name of the macro as the section name. This section can go in your project configuration file, or in a macro library file; see §37.1.1.2 Understanding where you can define named macros.

For example, to define macro $OurLogo for HTML output:

[OurLogo]
<hr /><br /><img src="ourlogo.jpg" /><br /><hr /><br />

The content of the macro begins on the next line after the section name, and ends at the start of the next section, or at the end of the configuration file. The name must consist only of letters and digits. Do not include punctuation or spaces in a macro name.

In this section:

§37.1.1.1 Understanding what a macro definition can include

§37.1.1.2 Understanding where you can define named macros

§37.1.1.3 Escaping special characters in macro definitions

§37.1.1.4 Managing line breaks in macro definitions

§37.1.1.5 Including comments in macro definitions

§37.1.1.6 Obtaining RTF code for macro definitions

Previous Topic: 37.1 Defining and invoking macros

Next Topic: 37.1.1.1 Understanding what a macro definition can include

Parent Topic: 37.1 Defining and invoking macros

Sibling Topics:

37.1.2 Invoking a macro

37.1.3 Nesting macros

37.1.4 Using predefined macros

Table of Contents • Index