[tex4ht] Bug report: Error with biblatex \printshorthands

Harri Kiiskinen harri.kiiskinen at utu.fi
Tue Aug 25 12:53:56 CEST 2009


Hello!

Using TeX4ht 20090611 (Debian testing) and biblatex 0.8g.
For compatibility with new biblatex, the .4ht file has been replaced with this:
http://tug.org/~cvr/biblatex.4ht

Command line 

/usr/share/tex4ht/oolatex printshorthandbug.tex (see attached files)

gives

--- xtpipes error 29 --- At <sax content-handler="xtpipes.util.ScriptsManager,tex4ht.OoFilter" lexical-handler="xtpipes.util.ScriptsManagerLH" > : While parsing file file:/home/harri/Projects/TeX4ht/bug_printshorthand_example/printshorthandbug.tmp: : org.xml.sax.SAXParseException: The element type "office:text" must be terminated by the matching end-tag "</office:text>".
--- Warning --- System return: 256

xmllint on file printshorthandbug.tmp gives:

----
printshorthandbug.tmp:54: parser error : Opening and ending tag mismatch: text line 42 and list-item
            </text:list-item></text:list>
                             ^
printshorthandbug.tmp:54: parser error : Opening and ending tag mismatch: body line 42 and list
            </text:list-item></text:list>
                                         ^
printshorthandbug.tmp:55: parser error : Opening and ending tag mismatch: document-content line 5 and text
   <!--end of section*--></office:text></office:body> 
                                       ^
printshorthandbug.tmp:55: parser error : Extra content at the end of the document
   <!--end of section*--></office:text></office:body> 
----

In the .tmp file, the list and list-item tags do not have corresponding opening tags.


Example files to reproduce the bug attached.

All the best,

Harri K.

-------------- next part --------------
\documentclass{article}
\usepackage[style=authoryear]{biblatex}
\bibliography{printshorthandbug}
\begin{document}
Example citation: \cite{CatoAgr(HooperAsh1934)}

\printshorthands
\end{document}
-------------- next part --------------
@Book{CatoAgr(HooperAsh1934),
  author       = {M. Porcius Cato},
  editor       = {Hooper, W. D. and Ash, H. B.},
  gender       = {sm},
  pagination   = {none},
  title	       = {Cato and Varro on Agriculture},
  address      = {Cambridge, Mass.},
  year	       = 1934,
  shorthand  = {Cato \textit{de agr.}},
  hyphenation  = {english},
  publisher    = {Harvard University Press},
  number       = 283,
  series       = {Loeb Classical Library},
  keywords     = {edsource}
}


More information about the tex4ht mailing list