12.13 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 12-3
shows what the image looks like.
Figure 12-3 Made with Mif2Go
To include this image, invoke predefined macro
<$_madewith> (see §27.1.4 Using
predefined macros). For example, to place the image at
the bottom of the first page of your HTML output:
You can specify the following for the "Made with
Name and location
Mif2Go produces the "Made with Mif2Go" image as an external graphics file
named madewithm2g.jpg, located in the project
folder. You can specify a different name and location; for example:
; MadeWithImageFile = name to use for "Made with
Mif2Go" .jpg graphic
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:
; WriteMadeWithGraphic = Macro (default, write
graphic if its macro
; is used), Always (even if macro
is not used), or Never (even if
; macro is used).
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.
You can specify attributes for the "Made with
Mif2Go" graphic; the default attributes
are as follows:
; 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
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:
; MadeWithPara = Yes (default, put macro inside
<p>...</p> tags) or 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:
; MadeWithLink = Yes (default, use link to omsys
home page in macro)
; or No
> 12 Converting to HTML > 12.13 Adding a "Made with Mif2Go" label or button