LyXError exporting to Open Document Format (ODF)

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
skypatcher
Posts: 1
Joined: Mon Jan 16, 2012 6:30 am

Error exporting to Open Document Format (ODF)

Post by skypatcher »

Hi:

I am using LyX 2.0.2 and the latest version of MikTeX 2.9 (ran the updater just now: Jan15) on 64bit Win7 Prof (SP1). When I export my manual.tex to HTML, it prints the following message many times:

Code: Select all

Trying to make PK font ecrm1000 at 8000 DPI...
miktex-makepk: Specified BDPI (8000) doesn't match ljfour resolution (600).
dvips: Font ecbx1000 not found; characters will be left blank.
dvips: Font ecrm1000 not found; characters will be left blank.
dvips: Font ecti1000 not found; characters will be left blank.
But the HTML preview seems OK. It failed to process transparent PNG. But there is a easy work around: supply my own transparent image later.

However, when I tried to export to Open Document TeXt (ODT) many times, it never work! Here are the error message.

Code: Select all

C:\MyTemp\lyx\lyx_tmpdir.gq8096\lyx_tmpbuf2>tex4ht manual.tex  -i/tex4ht/ht-fonts/"ooffice/! -cmozhtf" -ewin32/tex4ht.env 
 ----------------------------
 tex4ht.c (2010-12-16-08:39 Windows MiKTeX)
 tex4ht manual.tex 
   -i/tex4ht/ht-fonts/ooffice/! 
   -cmozhtf 
   -ewin32/tex4ht.env 
 (C:/Program Files (x86)/MiKTeX 2.9/tex4ht/base/win32/tex4ht.env)
 (C:/Program Files (x86)/MiKTeX 2.9/fonts/tfm/public/cm/cmtt10.tfm)
 (C:/Program Files (x86)/MiKTeX 2.9/tex4ht/ht-fonts/alias/cm/cmtt.htf)
 Searching `lm-rep-cmtt.htf' for `cmtt10.htf'
 (C:/Program Files (x86)/MiKTeX 2.9/tex4ht/ht-fonts/unicode/lm/lm-rep-cmtt.htf)

 C:\MyTemp\lyx\lyx_tmpdir.gq8096\lyx_tmpbuf2>t4ht manual.tex "-cooxtpipes -coo" -ewin32/tex4ht.env 
 --- error --- Illegal storage address
 ----------------------------
 t4ht.c (2010-12-16-08:47 MiKTeX)
 t4ht manual.tex 
   -cooxtpipes 
   -coo 
   -ewin32/tex4ht.env 
 (C:/Program Files (x86)/MiKTeX 2.9/tex4ht/base/win32/tex4ht.env)
 Entering manual.lg
Error: Cannot view file
----------------------------------------
File does not exist: C:/MyTemp/lyx/lyx_tmpdir.gq8096/lyx_tmpbuf2/manual.odt
 Error while previewing format: odt
Can someone please help?

Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

dragoshenron
Posts: 4
Joined: Fri Sep 16, 2011 4:20 pm

Error exporting to Open Document Format (ODF)

Post by dragoshenron »

Hello.
I got a very very similar error

Code: Select all

11:39:41.572: Exporting ...
11:39:41.635: (buffer-export odt)
11:39:41.853: pplatex "AM-v3.tex"
11:39:42.150: This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
11:39:42.166: entering extended mode
11:39:42.166: (C:\Temp\lyx_tmpdir.Hp4900\lyx_tmpbuf2\AM-v3.tex
11:39:42.166: LaTeX2e <2011/06/27>
11:39:42.166: Babel <v3.8m> and hyphenation patterns for english, dutch, italian, loaded.
11:39:42.166: 
11:39:45.760: pplatex: Process input file AM-v3.dvi
11:39:45.760: pplatex: Copy data to AM-v3.dvi
11:39:45.869: pplatex "AM-v3.tex"
11:39:45.947: This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
11:39:45.963: entering extended mode
11:39:45.963: (C:\Temp\lyx_tmpdir.Hp4900\lyx_tmpbuf2\AM-v3.tex
11:39:45.963: LaTeX2e <2011/06/27>
11:39:45.963: Babel <v3.8m> and hyphenation patterns for english, dutch, italian, loaded.
11:39:45.963: 
11:39:49.572: pplatex: Process input file AM-v3.dvi
11:39:49.588: pplatex: Copy data to AM-v3.dvi
11:39:49.697: mk4ht oolatex "AM-v3.tex"
11:39:49.853: mk4ht (Version 1.1)
11:39:49.885: htlatex AM-v3.tex "xhtml,ooffice" "ooffice/! -cmozhtf" "-cooxtpipes -coo"
11:39:49.947: 
11:39:49.963: C:\Temp\lyx_tmpdir.Hp4900\lyx_tmpbuf2>latex  \makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.
11:39:49.963: c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode###
11:39:49.963: #1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode "xhtml,ooffice".a.b.c.\input  AM-v3.tex 
11:39:49.978: This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
11:39:49.994: entering extended mode
11:39:49.994: LaTeX2e <2011/06/27>
11:39:49.994: Babel <v3.8m> and hyphenation patterns for english, dutch, italian, loaded.
11:39:49.994: (C:\Temp\lyx_tmpdir.Hp4900\lyx_tmpbuf2\AM-v3.tex
11:39:51.135: 
11:39:51.135: C:\Temp\lyx_tmpdir.Hp4900\lyx_tmpbuf2>latex  \makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.
11:39:51.135: c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode###
11:39:51.135: #1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode "xhtml,ooffice".a.b.c.\input  AM-v3.tex 
11:39:51.135: This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
11:39:51.135: entering extended mode
11:39:51.135: LaTeX2e <2011/06/27>
11:39:51.135: Babel <v3.8m> and hyphenation patterns for english, dutch, italian, loaded.
11:39:51.135: (C:\Temp\lyx_tmpdir.Hp4900\lyx_tmpbuf2\AM-v3.tex
11:39:51.760: 
11:39:51.760: C:\Temp\lyx_tmpdir.Hp4900\lyx_tmpbuf2>latex  \makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.
11:39:51.760: c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode###
11:39:51.760: #1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode "xhtml,ooffice".a.b.c.\input  AM-v3.tex 
11:39:51.760: This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
11:39:51.760: entering extended mode
11:39:51.760: LaTeX2e <2011/06/27>
11:39:51.760: Babel <v3.8m> and hyphenation patterns for english, dutch, italian, loaded.
11:39:51.760: (C:\Temp\lyx_tmpdir.Hp4900\lyx_tmpbuf2\AM-v3.tex
11:39:52.400: 
11:39:52.400: C:\Temp\lyx_tmpdir.Hp4900\lyx_tmpbuf2>tex4ht AM-v3.tex  -i/tex4ht/ht-fonts/"ooffice/! -cmozhtf" -ewin32/tex4ht.env 
11:39:52.463: ----------------------------
11:39:52.463: tex4ht.c (2010-12-16-08:39 Windows MiKTeX)
11:39:52.463: tex4ht AM-v3.tex 
11:39:52.463:   -i/tex4ht/ht-fonts/ooffice/! 
11:39:52.463:   -cmozhtf 
11:39:52.463:   -ewin32/tex4ht.env 
11:39:52.463: (C:/Documents and Settings/masolina/Application Data/MiKTeX/2.9/tex4ht/base/win32/tex4ht.env)
11:39:52.463: (C:/Program Files/MiKTeX 2.9/fonts/tfm/jknappen/ec/ecti0800.tfm)
11:39:52.463: (C:/Documents and Settings/masolina/Application Data/MiKTeX/2.9/tex4ht/ht-fonts/alias/ec/ec.htf)
11:39:52.463: Searching `lm-ec.htf' for `ecti0800.htf'
11:39:52.463: (C:/Documents and Settings/masolina/Application Data/MiKTeX/2.9/tex4ht/ht-fonts/unicode/lm/lm-ec.htf)
11:39:52.478: 
11:39:52.478: C:\Temp\lyx_tmpdir.Hp4900\lyx_tmpbuf2>t4ht AM-v3.tex "-cooxtpipes -coo" -ewin32/tex4ht.env 
11:39:52.478: --- error --- Illegal storage address
11:39:52.541: ----------------------------
11:39:52.541: t4ht.c (2010-12-16-08:47 MiKTeX)
11:39:52.541: t4ht AM-v3.tex 
11:39:52.541:   -cooxtpipes 
11:39:52.541:   -coo 
11:39:52.541:   -ewin32/tex4ht.env 
11:39:52.541: (C:/Documents and Settings/masolina/Application Data/MiKTeX/2.9/tex4ht/base/win32/tex4ht.env)
11:39:52.541: Entering AM-v3.lg
11:39:52.557: Successful export to format: odt
And even it is reported "Successful export to format: odt" actually this is not happening.

I hope some could debug this.

Thanks in advance
dragoshenron
Posts: 4
Joined: Fri Sep 16, 2011 4:20 pm

Error exporting to Open Document Format (ODF)

Post by dragoshenron »

One hint:
About the command

Code: Select all

tex4ht AM-v3.tex  -i/tex4ht/ht-fonts/"ooffice/! -cmozhtf" -ewin32/tex4ht.env 
I think there is a mess with the inverted commas
Also, if you run the command

Code: Select all

tex4ht AM-v3.tex  -i/tex4ht/ht-fonts/ooffice/! -ewin32/tex4ht.env 
no error is given (but I can't by now run it inside lyx)
wjconrad
Posts: 1
Joined: Thu Jan 31, 2013 9:51 pm

Re: Error exporting to Open Document Format (ODF)

Post by wjconrad »

I'm on Lyx 2.0.5, Windows 7 x67. I noticed the Lyx package with Miktex 2.9 didn't ship with the full tex4ht package so I installed that, but I still can't get OpenOffice export to work at all.

LyxHTML export works, but straight HTML tries to run a Python script and fails, apparently LyX isn't finding any Python install.

I'm not seeing error messages in Document -> Latex log either. All I see is LaTex loading my document and nothing thereafter. I know that " an error occured while running mk4ht oolatex "document.tex" " from the error popup and the progress bar in the bottom right corner but beyond that I'm clueless.

I've already tried the wiki solution of copying the binaries with no luck. (Though the article does say it's for pre-1.6.2) http://wiki.lyx.org/Tools/LyX2OpenOffice

I'm going to fully update all the MikTex packages next to see if that helps.
Post Reply