Package: tex4ht
Version: 20070904-1
Severity: normal

I'm trying to convert a LaTeX manuscript to OpenDocument (.odt) using
oolatex.  An odt file is generated, and OpenOffice attempts to open
it.  It gets stuck and fails, however, saying "Read-Error. Format
error discovered in the file in sub-document content.xml at
354,2(row,col)."

Looking inside the odt archive at content.xml, line 354 says
"</math:mrow>", the full context being

<table:table-row><table:table-cell table:style-name="equ-cell"><text:p
text:style-name="equ-p">                          
<!--l. 183--><draw:frame draw:style-name="mml-display"
draw:name="mobj-39"                           
text:anchor-type="paragraph" draw:z-index="0" ><draw:object      
xlink:href="./self-dispersion-m39"          
xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"
/></draw:frame>        
</math:mrow>
   </math:msub        
   >self= 4<!--l. 184--><draw:frame draw:style-name="mml-inline"
draw:name="mobj-40"                    
text:anchor-type="as-char" draw:z-index="0" >

(is </math:mrow> valid without an opening <math> ? My xhtml is rusty,
I think it's ok as an empty node)

This point in the manuscript is the same point where the oolatex run
complained with
! Argument of \new:mfont has an extra }.
<inserted text> 
                \par 
l.184   U_\mathrm{
                  self}= 4\pi kT   \sum_{n=0}^{\infty}{'}



I don't know why oolatex is complaining about the \mathrm box, I'm
pretty sure it's standard LaTeX (running latex normally does not give
the same error).  Breaking at this point must be what's generating the
broken odt code which OpenOffice cannot read.

Instead of writing $U_\mathrm{self}$, I can add extra braces
$U_{\mathrm{self}}$.  oolatex is then happy.  But since this is not
required for normal LaTeX, it's an onerous demand and prone to
repeating the same problem any time you try to convert any normal LaTeX
document.



-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22 (PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages tex4ht depends on:
ii  libc6                      2.6.1-6       GNU C Library: Shared libraries
ii  libkpathsea4               2007.dfsg.1-1 TeX Live: path search library for 
ii  tex4ht-common              20070904-1    LaTeX and TeX for Hypertext (HTML)
ii  texlive-base-bin           2007.dfsg.1-1 TeX Live: Essential binaries

tex4ht recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to