Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

13 Converting to HTML/XHTML > 13.15 Adding a “Made with Mif2Go” label or button


13.15 Adding a “Made with Mif2Go” label or button

You can include in your HTML output a small JPEG image that indicates the output was created using Mif2Go; Figure 13-3 shows what the image looks like.

Figure 13-3 Made with Mif2Go


 

To include this image, invoke predefined macro <$_madewith> (see §28.1.4 Using predefined macros). For example, to place the image at the bottom of the first page of your HTML output:

[Inserts]

FirstBottom=<div align="center"><$_madewith></div>

You can specify the following for the “Made with Mif2Go” graphic:

Name and location

When to produce

Image attributes

Enclosing tags

Link to Omni Systems

Name and location

Mif2Go produces the “Made with Mif2Go” image as an external graphics file named madewithm2g.jpg, located in the project directory. You can specify a different name and location; for example:

[HtmlOptions]

; MadeWithImageFile = name to use for "Made with Mif2Go" .jpg graphic

; MadeWithImageFile=madewithm2g.jpg

MadeWithImageFile=./Graphics/m2glabel.jpg

If you specify a different location, Mif2Go places the graphic in that location, and also sets the <img src=...> reference in the HTML output to point to that location. Therefore you should specify a path that will be valid on the server where you put the HTML files. You would not want to use a local absolute path, for example. Probably a relative path would be best, one that works both locally and on the server where the output is to be deployed.

When to produce

You can specify whether Mif2Go should write the “Made with Mif2Go” graphic only if you use predefined macro <$_madewith>, always (whether or not you use the macro), or never:

[HtmlOptions]

; WriteMadeWithGraphic = Macro (default, write graphic if its macro

;  is used), Always (even if macro is not used), or Never (even if

;  macro is used).

WriteMadeWithGraphic=Macro

You could produce the graphic once, by invoking the macro, then replace the predefined macro with your own macro that references the graphic; then you can set the value of WriteMadeWithGraphic to Never for future runs of the same conversion.

Image attributes

You can specify attributes for the “Made with Mif2Go” graphic; the default attributes are as follows:

[HtmlOptions]

; MadeWithAttributes = attributes of <img> tag to use for macro

MadeWithAttributes=border="0" alt="Made with Mif2Go" height="48" width="78"

You must list the attributes all on one line. If you change the size of the graphic, try to preserve the aspect ratio. If your output will be viewed with a Netscape browser, include a title attribute as well as the alt attribute.

Enclosing tags

You can specify whether the <img> tag for the “Made with Mif2Go” graphic should be enclosed in <p>...</p> tags. The default is to do so; for XML output, you would want to omit these tags:

[HtmlOptions]

; MadeWithPara = Yes (default, put macro inside <p>...</p> tags) or No

MadeWithPara=No

Link to Omni Systems

By default, a link to the Omni Systems Web site is included in the “Made with Mif2Go” graphic; you can omit this link:

[HtmlOptions]

; MadeWithLink = Yes (default, use link to omsys home page in macro)

;  or No

MadeWithLink=No



13 Converting to HTML/XHTML > 13.15 Adding a “Made with Mif2Go” label or button