22.3 Including starting code and entity references

You can specify macro code to be inserted at the very beginning of each HTML output file, and entity references to be inserted before the <head> element:

[Inserts]
; location = macro to insert, can call another macro
; BeginFile is placed at the very start of the file
; Entities is placed before the HEAD element 

See §37. Working with macros.

To specify an entity reference, create a macro with the entity reference code as the body of the macro, and indicate that the macro is to be placed before the <head> element. For example:

[Inserts]
Entities=<$MyEntities>
[MyEntities]
<!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1//EN//HTML">
%HTMLlat1;
<!ENTITY % HTMLsymbol PUBLIC "-//W3C//ENTITIES Symbols//EN//HTML">
%HTMLsymbol;

Entity references are placed before the <head> element in each HTML output file, including split and extracted files.

Previous Topic:  22.2.4 Using XHTML tagging rules for HTML

Next Topic:  22.4 Supplying values for the <head> element

Parent Topic:  22. Converting to HTML/XHTML

Sibling Topics:

22.1 Deciding which type of output to produce

22.2 Setting up an HTML project

22.4 Supplying values for the <head> element

22.5 Specifying HTML <body> attributes

22.6 Specifying document-wide properties for HTML

22.7 Defining text colors for HTML

22.8 Importing HTML files as insets

22.9 Providing hover text for links in HTML

22.10 Generating XHTML for Confluence 4.x

22.11 Exporting content for database input

22.12 Specifying a starting topic for HTML or XHTML

22.13 Using framesets

22.14 Passing W3C validation tests