Edit Links |
Tools /
LyX2OpenOfficeCategories: Lyx file conversion << MifToLyx | Page list | SVG Files and Inkscape >>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://www.tug.org/applications/tex4ht/mn.html) 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 Debian's current Lenny release, 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 WorkIf 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, |