Learn how to use HTML conversion macros in Adobe FrameMaker
You
can use the following
tables on the HTML reference
page to define HTML conversion macros:
The HTML System Macros table, which contains eight predefined macro names you can use to perform special functions at the start or end of Web pages.
The HTML Cross-Reference Macros table, which contains replacement text for FrameMaker cross-references.
The HTML General Macros table, which contains general-purpose macros that you define (for example, the title of the converted document).
After a macro is defined, you can use it by name in other macros, or you can map to it in the HTML Mapping table. The macro name appears in the To drop-down list in the HTML Setup dialog box, so you can map a format to it without editing the Mapping table directly.
For examples of HTML conversion macros, see the reference pages of the templates that are included with FrameMaker.
Choose
to display the HTML page.Edit a macro in a table, or create a row (by pressing Ctrl+ Return) and enter a new macro starting with a macro name. (You cannot add macros to the HTML System Macros table; you can only edit their replacement text.)
Replacement text can contain any mixture of text, HTML codes, and FrameMaker building blocks. Be sure that you enter valid HTML code; FrameMaker does not check the HTML syntax.
You can use the following building blocks in HTML conversion macros to include special types of text.
Building block |
Description |
---|---|
|
See “Including source information in cross references” and “Including character styles in cross-references” for details. |
|
Contains the text of the variable |
|
Contains the text of the first heading that appears in the current document |
|
Contains the URL of the next HTML subdocument |
|
Contains the URL of the previous HTML subdocument |
|
Contains the URL of the parent HTML document |
Building blocks are enclosed in angle brackets (< >) and begin with a dollar sign ($). Enter these building blocks in all lowercase letters.
HTML system macros are a special case because you can redefine them, but you cannot add new ones.
These macros
are especially useful when splitting up documents into separate
HTML files. For example, you can define the StartOfSubDoc
macro
so that your company logo appears at the top of every new Web page.
In these descriptions, the parent document refers to the first Web page and subdocument refers to a document linked to the parent document.
System macro |
Use |
---|---|
|
Inserts text at the top of the topmost Web page |
|
Inserts text at the end of the topmost Web page |
|
Inserts text at the top of each subdocument except the first and last |
|
Inserts text at the end of each subdocument except the first and last |
|
Inserts text at the top of only the first subdocument created |
|
Inserts the replacement text at the end of only the first subdocument |
|
Inserts the replacement text at the top of only the last subdocument created |
|
Inserts the replacement text at the end of only the last subdocument |