[LON-CAPA-users] best way to include image?

Guy Albertelli II lon-capa-users@mail.lon-capa.org
Wed, 5 Feb 2003 17:29:57 -0500 (EST)

Hi All,

There are two suggested ways:

1) <img src="bluh.png" TeXwidth="30" TeXheight="40" width="200" />

You can publish both an eps and a png, but if the eps isn't published
it will be auto converted from the png/gif/jpg.

The TeXwidth and height attributes are optional and are in mm.
If you want you can specify 0, 1, or both attributes.

If you specify a only a HTML standard width parameter it will use that
scaling a pixel to .3 mm

If you use a variable in the src="" you _must_ have an <allow> in the
file for each possible image that could be included.

<web> <img src="bluh.png" /></web>
<tex> \includegraphics{bluh} </tex>
<allow src="/res/ful/path/to/image/bluh.png" />

This form can be used if you don't like the default <img> conversion
method display.

This format will not auto convert, you will need to publish both an
eps and the png, gif, or jpg.

You will need to have a valid <allow> tag with no wildcards. But you
only need to mention the gif, or jpg, or png, the eps will
automatically also be handled.

guy@albertelli.com          BM: n^20 t20 z20 qS 
Guy Albertelli -7-7-5-  O-
    I seldom buy things that have wacky smiling cartoon cephalopods 
    on the package.                 -Kibo