Dean O'Connor wrote:
I have freshly installed the lastest Lyx 1.4.2 r1, using the net
installer.
I can creates docs and view DVI without problems. Looks great.
But if I try to Export (or View) to HTML I get an "error occurred whilst
running htlatex" errors.
Firstly error is that htlatex still has problems with paths with spaces
in it, so in Lyx opts I have to change Temp (and prob Working) directory
from the Windows defaults to something like c:\docs and c:\tmp
When that is fixed I get the show stopper error where it shows a temp
file name (cut off screen tho).
Previously in 1.4.1, this would complete hang htlatex (for me) and I'd
have to kill the htlatex.exe process to recover.
For Exporting to Word I get a similar error, but this shows just the
file name (original without full path, not a tmp file) followed by args.
Exporting to OO.Writer there is no error, but no output either.
Exporting to PDF is fine.
Now this thread talks about same problem and someone gives a workaround,
but that work around doesn't seem to work.
http://www.mail-archive.com/[email protected]/msg48496.html
If I type that dos command I get this error: "htlatex: the batch script
could not be found."
I have tried adding C:\texmf\miktex\bin to my PATH.
Also this guy has a similar dos command that also gives me same error.
http://www.goland.org/lyx/#x1-90008
If it really is a known bug, can someone (a dev?) possibly give some
explanation and possible a work around that works.
I have looked in the dev mail achive a bit, see some sorta related hits,
but nothing concrete.
A workaround/fix that allows me to still use the File -> Export would be
niiiice :)
Cheers
Dean.
I wrote one of those messages, Steogeb is Stephen with my fingers
on the wrong keys. The export from LyX to html doesn't work. But
htlatex from the command line *always* works to produce html.
htlatex uses ImageMagick and Ghostscript and I didn't see you
mention having them installed and in your Windows path. My path:
c:\imagemagick;C:\ghostgum\gsview;C:\gs\gsv8.51\bin;C:\perl;C:\Python24;
C:\aspell;C:\aspell\bin;C:\texmf\miktex\bin;C:\Msys\1.0\bin; {C:\lyx\~}
I also have those in LyX->Tools->Preferences->Paths->Path_prefix:
I don't think you need Perl anymore, Aspell is optional, and
Msys/Python might not be used in this case. Make sure you have
these programs installed and in your Path because other LyX
activities may invoke them, especially Imagemagick and Ghostscript.
Another problem is if you have convert.exe or Ghostscript in
the Path from other programs ahead of the ones you need. Cygwin
is a prime example, if you have it, put it at the end of Path.
I don't know where your installer puts these helper apps because
I have them already installed and it doesn't install anything.
But, I think python and the shell/Msys are in the LyX directory.
Which means you need to check on GS* and Imagemagick.
This is not working because of your environment _not a bug_.
Also oolatex is htlatex dressed up with command line options:
http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn3.html
"Different variants of the htlatex command may be invoked by
introducing the commands as arguments to a driver named mk4ht.
When provided without arguments, the driver lists the commands
it recognizes.
mk4ht mzlatex filename "html,3" (htlatex filename "html,3,xhtml,mozilla"
" -cmozhtf")
mk4ht oolatex filename (htlatex filename "xhtml,ooffice" "ooffice/!
-coo") ...
OpenOffice and MS Word
A translation for an OpenOffice format can be requested by the
\oolatex command. The command is a variant of htlatex in which
the first list of options holds the entries xhtml,ooffice, the
second list holds the entry -cmozhtf preceded by a space, and
the third list contains -coo (htlatex filename "xhtml,ooffice"
"ooffice/! -cmozhtf" "-coo" "-cvalidate"). The output of a command
oolatex filename is a zipped file named with a .sxw extension."
I have used "htlatex foo.tex" producing foo.html and imported
it into Word with excellent results. If you searched for this
I've provided urls which prove it amongst those posts. one was
Gumm's website and the other demoarticle.html.
Importing the html into OpenOffice and exporting to Word
was nearly just as good as directly importing into Word.
I haven't compared it to the oolatex->.sxw->Word method.
Ares got this to work also. But he wasn't pleased with the
default .png output that displays equations in the doc.
So he used "htaltex foo.tex "html,jpg" which are larger
files. For some systems, the default .pngs works very well.
--
Stephen
"Once you eliminate the impossible, whatever remains, no matter
how improbable, must be the truth." SH: Sherlock Holmes (Doyle)