Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

15 Converting to DITA XML > 15.7 Specifying options for images in DITA XML > 15.7.2 Specifying what to include in a <fig> wrapper


15.7.2 Specifying what to include in a <fig> wrapper

When Mif2Go wraps image and title in a <fig> element, by default Mif2Go closes the <fig> element before moving on to the following content. To direct Mif2Go to include in <fig> any following elements that are valid:

[DITAOptions]

; CloseFigAfterImage = Yes (default) or No (leave fig open for more)

CloseFigAfterImage = No

By default, Mif2Go wraps all contiguous images and their titles in a single <fig> element. To make sure each of a series of images is wrapped in its own <fig> element:

[DITAOptions]

; MultiImageFigures = Yes (default)

; or No (allow only one image in a fig)

MultiImageFigures = No

When an unstructured FrameMaker document includes several images in a row with only their titles in between, by default Mif2Go assumes that these titles follow their respective images. To specify that figure titles precede their images instead:

[DITAOptions]

; FigureTitleStartsFigure = No (default, title is below image),

; or Yes (title is above image)

FigureTitleStartsFigure = Yes

To prevent an image in an anchored frame from being wrapped in a <fig> element, assign the NoFig format property to the anchor paragraph format. For example:

[HTMLParaStyles]

; NoFig is used in DITA for a graphic anchor para to prevent wrapping

; of the image inside it in a fig tag.

GraphAnchor = NoFig

This works only if the FrameMaker anchor format is used consistently for images that should not be wrapped, and not for any that should be wrapped.

To make sure images with one particular FrameMaker anchor format are wrapped, when the rest are not (for example):

[HTMLParaStyles]

; Figure is used in DITA for a graphic anchor para to ensure wrapping

; of the image inside it in a fig tag.

SpecialGraphAnchor = Figure

* = NoFig

See §4.6 Using wildcards in configuration settings.



15 Converting to DITA XML > 15.7 Specifying options for images in DITA XML > 15.7.2 Specifying what to include in a <fig> wrapper