On 08/03/2006, at 10:06 PM, Stephen Harris wrote:
----- Original Message ----- From: "Lee Yeoh" <[EMAIL PROTECTED]>
Hi,
I've just dowloaded Lyx 1.3.7, and am using it on a mac OS X
10.4.5. I'm finding it very cool, a little bit of a learning
curve to start with, but pretty good in the end.
I'm specifically having problems converting to html (I want some
documents on my palm v.4.1, which seems to have no DVI viewer or
decent PDF viewer available, unfortunately).
I can export fine, but the html file appears to reference
several .png files for some of the mathematical symbols that
aren't created. I thought it might have had something to do with
not having libpng, so i got that too, but that made no difference.
I googled exhaustively, and checked the wiki, but to no avail. If
anyone can help me out it would be much appreciated.
Thanks,
Lee.
I would go to a temp directory under the /texmf tree and
place the .tex file which you want to convert there.
Run "htlatex foo.tex" from the command line.
This should generate an html file plus a bunch of png
files (maybe in sub-directory of the temp directory).
Now load the file in a web browser. Does it display
properly? If not, check to see if the png file actually
exists but the path to it is incorrect in the html source.
If it works on your machine, then it should work later.
on the Palm. If it doesn't display on the Palm later then
the html file and image files (which are in another sub-dir
having the same name) both haven't been transported
to the Palm. In the Html file under View, you can see
the source which can be edited in a text editor. I've
had to edit the source because the directory on the
machine one have moved the html file and sub-dir to,
doesn't have the same directory structure as the machine
that the html file was created on (also check image filename).
htlatex or some other html converter comes bundled with
Latex and LyX invokes htlatex to convert html files. The
conversions always have to be proofread. And there is a
htlatex webpage that explains how to tweak the conversion
with different switches from the command line. If you have
some png images which display then edit the source code
to make any images which don't display appear by using
the format; model the typing structure that does work.
I haven't had the experience where some png files were
not generated. Do all the images appear if you View the
document in pdf format before exporting to html?
Regards,
Stephen
Hi Stephen,
Thanks for the quick reply. I ran the command line htlatex, and it
appeared to create similar files as when I originally tried it (using
the export html menu item). There were no png files created at all.
There were none in the same directory (as referenced in the html
file), and I tried a search for the name, but found nothing. PDF
seems to display fine...
Actually, reading the terminal output, there are a whole lot of error
messages around the png conversion stage, for example:
System call: convert -trim +repage -density 110x110 -transparent
'#FFFFFF' zzPhysics.ps Physics21x.png
sh: line 1: convert: command not found
I suppose I didn't download some part that I was meant too, but I had
another look and couldn't see anything obvious. Any hints?
Thanks again,
Lee.