#### 37.2.2 Modifying DITA2Go-supplied macro definitions

You can modify the macro definitions included in the macro libraries supplied with your DITA2Go distribution, located in %OMSYSHOME%\d2g\macros. However, if you change anything in those files, whenever you update DITA2Go you will need to run a file comparison program to see if anything has been added or changed by Omni Systems developers; see §1.3.8 Obtain a file comparison tool (optional).

An alternative is to create your own macro library file and copy into it any macros you want to alter; see §37.2.4 Including macro definitions in your own macro library.

One sample macro is a proposed definition for a spacer for indenting graphics and tables. A macro variable is suggested for use with this macro (see §37.3 Using macro variables):

    [Spacer]
    <img src="1p.gif" height="10" width="<$$spacerwidth>" alt="[spacer]">

    [MacroVariables]
    spacerwidth=80

You can copy these definitions into your own macro library file, and modify them as you wish.

Previous Topic: 37.2.1 Understanding DITA2Go-supplied macro libraries

Next Topic: 37.2.3 Storing a macro definition in a separate file

Parent Topic: 37.2 Accessing DITA2Go macro libraries

Sibling Topics:

37.2.1 Understanding DITA2Go-supplied macro libraries

37.2.3 Storing a macro definition in a separate file

37.2.4 Including macro definitions in your own macro library