I was to slow in informing you that after getting your 1st response I installed the gnuwin32 patch program and patched the original L2H files ( with some tweaking, one patch had to be done by hand).
I got the patched l2h installed and can now run it to get jpg output, but...
Some questions/problems:
1) My jpg figure is still converted. Is this because inside lyx I have specified output scale to 20%?
2) Run l2h from inside LyX:
(by specifying latex->html coverter in prefs)
The command is: latex2html -debug -no_subdir -split 2 -show_section_numbers -image_type jpg test4.tex
In this case I get a reduced color (256) jpg image, I'd rather have it in the orginal color if possible (let say at a color depth of 24).
In the "pstoimg.bat" and "latex2html.bat" files there are some comments about color depth etc. but I have not been able to figure out the right option. Is there a setting somewhere in l2h files? But this may interfere whith the creation of gif images which needs 256 colors?
I also saw a message on the l2h mailing list that there may be a environment variable "$ENV{DEPTH}=24"? I tried it out but didn't make a difference
3) Export to latex from LyX. Run L2H from command prompt with above call.
3.1) If I don't specify a bounding box (in .bb file) for the jpg file I get tiny image about 20x20 pixels, in grayscale.
3.2) if I specify a bounding box I get the correct image size but a grayscale in 256(?) grayscales. This image looks actually better than the color image with 256 color but I'd rather have an image with 24 bit color depth. Why grayscale and not color, when exporting html from LyX gives a color image?
(I have hope/wish that I can run L2H from inside LyX so I don't need to deal with bounding boxes). Maybe I am asking to much...
If any of the above questions are more relevant for the L2H mailing list I would gladly post them there as well.
Thanks for the help
jorgen
Herbert Voss wrote:
jorgen johansson wrote:
I had seen the patch when I was surfing around for info, but I wasn't sure if this was what was I looking for.
with the patched version you can simply run latex2html texfile, then all jpg images are unchanged or with the image_type option other formats are converted to jpg.
You'll find it here
http://www.perce.de/LaTeX/misc/l2h_jpg.tgz it includes the patched source and a precompiled Linux version
Herbert
