Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

21 Mapping text formats to HTML/XML > 21.11 Converting footnotes to HTML or XML > 21.11.4 Formatting jump footnote text with macros


21.11.4 Formatting jump footnote text with macros

By default, Mif2Go removes any paragraph start/end coding within a footnote. However, for Jump footnotes (see §21.11.1 Configuring and placing footnotes) you can provide HTML formatting by specifying macros to precede and follow each footnote.

To surround footnotes with HTML code:

[HtmlOptions]

; FootnoteStartCode macro is used after <a name=...>

;  of each Jump footnote

;FootnoteStartCode =

; FootnoteEndCode macro is used at end of each Jump footnote

;FootnoteEndCode =

For example, if some footnotes include bulleted lists, you could assign starting and ending macro code to the paragraph formats you use for list items in footnotes. Suppose you use formats FootBullet1 and FootBullet2 (for bullet items indented within other bullet items). You could specify the following settings, macros, and macro variables:

[HTMLOptions]

FootnoteEndCode = <$FootEnd>

[HtmlParaStyles]

FootBullet1 = CodeStart NoAnum

FootBullet2 = CodeStart NoAnum

[ParaStyleCodeStart]

FootBullet1 = <$FootBullStart1>

FootBullet2 = <$FootBullStart2>

[FootBullStart1]

<$_if ($$F2Started)></ul>\n<$$F2Started=0><$_endif>\

<$_if not ($$F1Started)><ul type="disc">\n<$$F1Started=1><$_endif>\

<li>\

[FootBullStart2]

<$_if not ($$F2Started)><ul type="circle">\n<$$F2Started=1><$_endif>\

<li>\

[FootEnd]

<$_if ($$F2Started)></ul>\n<$$F2Started=0><$_endif>\

<$_if ($$F1Started)></ul>\n<$$F1Started=0><$_endif>\

[MacroVariables]

; Put any macro definition sections before this section.

F1Started = 0

F2Started = 0

This macro code provides the proper <ul> and <li> coding for the bulleted paragraphs.

Note:  In HTML the convention is not to use </li>, because this closing tag can create extra unwanted spacing in some browsers. However, </li> is required in XHTML and XML.

If you code numbered footnotes as <li> items, they should be in an <ol> block, which provides the numbering. Numbering restarts at 1 for each HTML page. See §21.12.2 Converting list formats to HTML list styles.



21 Mapping text formats to HTML/XML > 21.11 Converting footnotes to HTML or XML > 21.11.4 Formatting jump footnote text with macros