Edit Links |
Tools /
LyX2OpenOfficeCategories: Tag me, Lyx file conversion << | Page list | >>There are 3 main methods of converting LyX documents to Open Document Format (the format used by OpenOffice): By python script, bash script, and by a converter installed in LyX. More detailed information about both methods follows. Via a Python scriptCollection of Python scripts to convert LyX to OpenOffice (Linux on PC, Mac OS X or WINDOWS). Version 4Please refer to the version 4 directory and check out the ReadMe file. Version 3 is apparently no longer available at this site. Version 3LINUX: readme: readmelyx2oo.txt needed files: ConvTex.zip Mac OS X: readme: ReadMeMac.txt needed files: ConvTex.dmg (PPC), ConvTex-intel.dmg (Intel) Windows XP: readme: ReadMeXP.txt needed files: ConvTexWin.zip Windows 98: readme: ReadMe98.txt needed files: ConvTexWin98.zip Documentation: To preview the documentation, download needed files: ConvTex.lyx.zip Via a converterThe internal LyX converter works differently before and after LyX 1.5.3. Pre-1.5.3, everything must be configured manually, but post 1.5.3, everything is configured automatically if the Tex4ht package is installed. requirements: Tex4ht (http://tug.org/tex4ht/) LyX 1.5.3As of LyX 1.5.3 (possibly even 1.5.1), when the "htlatex" program is installed (from the Tex4ht package), LyX can automatically detect the program and install the OpenDocument converter automatically. Nothing more is necessary, it's all configured automatically when LyX is reconfigured by [Tools]->[Reconfigure], and restarted. This works on:
It also works on Windows, but not out of the box. If you use MikTeX, tex4ht has to be properly configured by editing the file md C:\tex4ht md C:\tex4ht\texmf junction C:\tex4ht\texmf\tex4ht "C:\Program Files\MiKTeX 2.8\tex4ht" where it is assumed that on XP you can try md C:\tex4ht md C:\tex4ht\texmf linkd c:\tex4ht\texmf\tex4ht "C:\Program Files\MiKTeX 2.8\tex4ht" If you use the Cygwin teTeX, you can easily install tex4ht by following the instructions here: http://drupal.star.bnl.gov/STAR/blog-entry/jeromel/2009/jan/13/oolatex-and-tex4ht Any further reports of this working should be placed here. LyX Pre-1.5.3You just have to add the following converter in Tools->Preferences->Converters: LaTeX (plain) -> Open Document converter: htlatex $$i 'xhtml,ooffice' 'ooffice/! -cmozhtf' '-coo' '-cvalidate' extra flag: needaux
When it Doesn't WorkFirst thing to try: disable "Use hyperref support" in Document -> Settings... -> PDF properties and/or delete any \usepackage{hyperref} in the preamble. This may solve the problem instantly. If lyx presents you with a "file not found" error box every time you attempt to preview in OpenDocument, your LaTeX install may have a corrupt file. To diagnose the problem, have LyX export a document to LaTeX, and then attempt to export to DVI: lyx --export latex (document).lyx pplatex latex (document).tex The last 2 or 3 lines of output from the second command are the most informative: (/usr/share/texmf-texlive/tex/latex/base/t1enc.def)latex: ~/.texmf-var/fonts/tfm/jknappen/ec/ecrm1200.tfm: No such device or address (document).dvi: (document).dvi: No such file or directory At this point, you should remove the "No such device or address" file (in this case, |