On Fri, 22 Sep 2006 13:50:59 -0600 Bob Lounsbury <[EMAIL PROTECTED]> 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. > > Hi I have the same issue with my supervisor. I have spent last two weekends and most of today looking for a way to do this and am at my wits end on how to do this smoothly. Can anybody suggest a clean, efficient and reliable way to do this? There are problems in graphics, tables, cross-references and bibliography. All of which make LyX a joy and conversion to .doc a pain. I found that all had problems with this, ie: oolatex, htlatex, ConvTex, thh, hevea and the internal LyX html tools. So far the most acceptable and least pain free was to use oolatex, but the .doc still needs to be edited in OOo as doc as cross references were incorrect and bibliography was left out. why oolatex? 1) makes only one file whereas html conversion can make several (latex2html can make only 1 file); 2) made a .sxw which can be edited by OOo which can be later saved to doc and why this one is the choice: 3) the only tool that embeds the graphics within the file whereas html can only link to outside files. oolatex is a script from the tex4ht family which includes htlatex. How I did this: (for Linux) 1) edit LyX file: to remove all "paragraph" ie change to "standard" 2) make graphics as eps or jpeg 3) if eps: correct image sizing though images are a bit blurry, slow response from OOo 4) if jpeg: very small image sizing, clear images and snappy reponse from OOo 5) set formatting of all graphic floats to "justify" 6) save LyX file in tmp directory eg ../tmp as this will make lots of temporary files 7) export LyX file: file -> export -> LaTeX(pdflatex) 8) open xterm and go to ../tmp as made above 9) run latex and bibtex on .tex: eg latex foo.tex; bibtex foo.tex; latex foo.tex; latex foo.tex 10) run oolatex on .tex: eg /usr/share/tex4ht/oolatex foo.tex 11) run OOo and open .sxw: ie goto to ../tmp and open foo.sxw 12) check formatting and graphic sizing 13) save as .doc 14) close file, keep OOo running 15) open .doc and check formatting, graphics and referencing 16) may have to open .sxw to copy references to .doc 17) save .doc 18) open again in OOo for final check to see if graphics and references are present 19) final QA check with MSwordview2003 (via wine) 20) it works! celebrate! I took notes on the pros and cons of the other tools and can post them on request. HTH Russell