[LON-CAPA-users] best way to include image?
Guy Albertelli II
lon-capa-users@mail.lon-capa.org
Wed, 5 Feb 2003 16:40:24 -0500 (EST)
Hi Lars,
> When including a tex-source in lon-capa, included images are usually in
> e-s format. What us the best way to include the image in lon-capa?
To convert the image to png and include the image using HTML.
> 1) Convert manually to another format (png?) for the html view format
> and include both eps and the other format when publishing
Yes.
> 2) Only include eps, and let lon-capa do conversions?
LON-CAPA converts gif/jpg/png to eps, it currently duesn't support the
other direction.
> Is it correct to assume that I exclude the file-extension of the image
> in the specification of the image resource...
>
> Does lon-capa understand \includegraphics so that there are no
> ambiguities when printing or viewing the file? In other words, can I
> semple include an image by inserting:
> <m>
> \includegraphics{epsimage}
> </m>
> and get both correct printing and viewing?
No.
The suggested mechanism is to do something like:
1) Use the <img> tag
<img src="somfile.png" />
This will both view and print properly. You can include tex sizing
infomation by doing
<img src="somefile.pmng" TeXwidth="30" TeXheight="40" />
The 30 and 40 are assumed to be mm
If the .eps version doesn't exist LON-CAPA will convert the png to eps
on demand.
2) Use <web> and <tex> tags
<web>
<img src="somefile.png" />
</web>
<tex>
\includegraphics{somefile}
</tex>
Here you will need to have created/published both the png and eps
images. Also make sure that you have a good valid <allow> at the
bottom, this will make sure both the eps and the png get replicated
and will print properly.
--
guy@albertelli.com BM: n^20 t20 z20 qS
Guy Albertelli -7-7-5- O-
I would love to but . . . I'm building a pig from a kit.