#### 27.6.1 Choosing how to insert code in extracts

You can specify code to be inserted in extract files by any of the methods listed in Table 27-2. Code can be placed at any of the following locations in an extract file:

- Within the <head> element, after the <title> element
- At the beginning of the <body> element
- Just before the end of the <body> element.

Table 27-2 Extract code insertion methods

Precedence | Type | Code insertion method | Ref.
Highest | Marker | Make code the text (maximum 256 characters) of a marker placed anywhere in the extract | 27.8.1
Intermediate | Configuration section | Assign code to the paragraph format designated to start the extract (see 27.4.2.1) | 27.6.3
Lowest | Configuration keyword | Assign code to an [Inserts] keyword | 27.6.2

The methods in Table 27-2 are listed in order of precedence. For example, if you use both an ExtrHead PI marker containing HTML code and supply an [Inserts]ExtrHead entry specifying HTML code, DITA2Go inserts the marker code in the <head> element of the extract and ignores the [Inserts]ExtrHead entry. This allows you to override code specified in the configuration file for any extracts that require different code.

Previous Topic: 27.6 Inserting HTML code in split and extract files

Next Topic: 27.6.2 Assigning code to [Inserts] keywords for splits and extracts

Parent Topic: 27.6 Inserting HTML code in split and extract files

Sibling Topics:

27.6.2 Assigning code to [Inserts] keywords for splits and extracts

27.6.3 Using special sections to insert code in extracts

Table of Contents • Index