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

To specify a predetermined location for HTML code, you can assign the code to a keyword in the [Inserts] section. For example:

    [Inserts]
    Top=<$TopNavTable><br />
    Bottom=<br /><$BtmNavTable>

Table 27-3 lists the basic [Inserts] location keywords, and for each keyword describes where the HTML code assigned to that keyword would be invoked in an output file.

Table 27-3 Basic macro-insertion keywords and locations

[Inserts] keyword | Location of macro in HTML file
    TopicBreak
| Before the <title> element (between topics) when files are not split
    Head
| Within the <head> element, after the <title> element
    HeadEnd
| At the very end of the <head> element
    Frames
| Between <head> and <body> elements, for framesets (split files only)
    Top
| At the beginning of the <body> element.
    Bottom
| Just before the end of the <body> element.
    End
| After the end of the <body> element (to close noframes; split files only)

[Inserts] file-type prefixes

Table 27-4 lists prefixes for the basic keywords (except TopicBreak), and for each prefix describes the type of file where HTML code assigned to a keyword with that prefix would be invoked.

Table 27-4 Keyword prefixes for split or extract code insertion

[Inserts] keyword prefix | Type of split or extract file where applicable
    First
| First split part
    Split
| Split parts between the first and the last
    Last
| Last split part
    Nonsplit
| Files that are not split (among files that are split); use only with Top or Bottom
    Extr
| Extract file; use only with Head, Top, or Bottom

[Inserts] location/file-type variants

Table 27-5 combines prefixes and keywords to show all the keyword variants you can use in the [Inserts] section, by type of file and by location within a file.

Table 27-5 Code insertion keywords for split and extract files

Solitary file | First* split file | Intermediate split files | Last** split file | Non-split file (among splits) | Extract file
    Head
    FirstHead
    SplitHead
    LastHead
    ---
    ExtrHead
    HeadEnd
    FirstHeadEnd
    SplitHeadEnd
    LastHeadEnd
    ---
    ExtrHeadEnd
    Frames
    FirstFrames
    SplitFrames
    LastFrames
    ---
    ---
    Top
    FirstTop
    SplitTop
    LastTop
    NonsplitTop
    ExtrTop
    Bottom
    FirstBottom
    SplitBottom
    LastBottom
    NonsplitBottom
    ExtrBottom
    End
    FirstEnd
    SplitEnd
    LastEnd
    ---
    ---
* If FirstBottom is not defined, SplitBottom is used. If SplitBottom is not defined, Bottom is used. If any others are not defined, the corresponding non-First form is used. ** If any of the first three is not defined, the corresponding Split form is used; otherwise the non-Last form (as for the last two).

Previous Topic: 27.6.1 Choosing how to insert code in extracts

Next Topic: 27.6.3 Using special sections to insert code in extracts

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

Sibling Topics:

27.6.1 Choosing how to insert code in extracts

27.6.3 Using special sections to insert code in extracts

Table of Contents • Index