Bob Lounsbury wrote:

On Sep 22, 2006, at 1:14 PM, TechTonics wrote:

Bob Lounsbury wrote:
Hi,
What do you have to do to export in these formats. Neither work for me on 1.4.3 with XP.
Thanks,
Bob Lounsbury

I don't think they work. Export the file as .tex from LyX.
Then from the command line "htlatex foo.tex" = foo.html
which can be directly imported into Word, = foo.doc
htlatex is part of the TeX4ht package:

When I do: "htlatex foo.tex=foo.html" it returns: "Please type another input file name" so I type "foo.tex" and everything seems to work except that I get a bunch of different foo files like "foo.log, foo.aux, foo.idv", but no foo.html file anywhere. The TeX4ht package was already installed by MikTeX.

What I'm really trying to do is get a good output from LyX into Word (Since my advisors want a Word document to read for my thesis) with pictures and most formatting complete. Any suggestions would be greatly appreciated. Thanks.


Did you follow the installation instructions at the website
I provided? Do you have ImageMagick installed? Do you have
your programs in Windows Path. htlatex yourfilename.tex
will output yourfilename.html which Word imports as
yourfilename.doc You will need to install htlatex properly.

-------------------------------------------------------------

http://facweb.arch.ohio-state.edu/pviton/support/tex4ht.html

2.1  Installation

3. You must install ImageMagick (IM) yourself. (Instructions below in section 6). You must also ensure that IM places itself in your PATH statement before the system32 folder of your Windows installation (because system32 contains another program called convert.exe).

--------------------------------------------------------------------

As you might imagine, porting LyX (Latex) to Word has been discussed
on the LyX mailing list, often in conjunction to htlatex. The archive
http://www.mail-archive.com/[email protected]/
is one resource to find answers. Place the keyword, such as htlatex,
in the Find window and do a search. Below is one such result:

------------------------------------------------

Re: miktex 2.5 WinLyX

Uwe Stöhr
Thu, 10 Aug 2006 04:06:30 -0700

TechTonics wrote:


    I have the complete download and completely installed Miktex2.5.

    tex4ht.cab\texmf\miktex\bin

This path sounds like the package is installed for MiKTeX 2.4 and not for 2.5.

However, use MiKTeX's package manager to assure that you've installed the correct package "tex4ht" AND "miktex-tex4ht". If they are installed, update MiKTeX because just yesterday came out a bugfix release including a new text4ht version.

Then you should have the file htlatex.bat in ~\miktex\bin


Do you mean that htlatex works for you from either LyX or the command line?

I tested it from within LyX and found the bug that tex4ht doesn't support paths with spaces - I hate this kind of bugs more and more!.

LyX's temp directory path contains spaces.

But anyway, could you please file a bug report at MiKTeX sourceforge project page.

thanks and regards Uwe


The Miktex update manager can download and install this
if you don't have it. www.miktex.org


Good night and good luck,
Stephen


Reply via email to