Package: dblatex Version: 0.2.12-1 When I attempt to transform a XML DocBook document with MathML equations to PDF using dblatex, an error occurs in some cases. It works on most occasions, but there is a problem with equations that have a new line inside. An example file is attached. It is valid because it transforms well with xsltproc. But dblatex produces the following error:
Build the book set list... Build the listings... XSLT stylesheets DocBook - LaTeX 2e (0.2.12-1) =================================================== Build test.pdf pdflatex failed test.tex:59: Package array Error: Empty preamble: `l' used. test.tex:59: leading text: $ \begin{array}{} test.tex:59: Missing $ inserted. test.tex:59: leading text: $ \begin{array}{}\frac{{d}^{2}x}{d{z}^{2}} test.tex:59: Missing $ inserted. (snip.. the lines repeate several times) test.tex:59: Missing } inserted. test.tex:59: leading text: ...c{{d}^{2}x}{d{z}^{2}}-{\beta }^{2}x=0\\ \\ A possible reason for transformation failure is invalid DocBook (as reported by xmllint) I am using Debian unstable/experimental, updated practically on a daily basis, kernel 2.6.30-1-amd64, libc6 2.10.1-0exp2.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://docbook.org/xml/4.2/docbookx.dtd"> <article lang="cs"> <para><math:math xmlns:math="http://www.w3.org/1998/Math/MathML"> <math:semantics> <math:mtable> <math:mtr> <math:mrow> <math:mfrac> <math:mrow> <math:msup> <math:mi>d</math:mi> <math:mn>2</math:mn> </math:msup> <math:mi>x</math:mi> </math:mrow> <math:mrow> <math:mi>d</math:mi> <math:msup> <math:mi>z</math:mi> <math:mn>2</math:mn> </math:msup> </math:mrow> </math:mfrac> <math:mrow> <math:mi/> <math:mo math:stretchy="false">−</math:mo> <math:mi/> </math:mrow> <math:msup> <math:mo math:stretchy="false">β</math:mo> <math:mn>2</math:mn> </math:msup> <math:mi>x</math:mi> <math:mrow> <math:mi/> <math:mo math:stretchy="false">=</math:mo> <math:mi/> </math:mrow> <math:mn>0</math:mn> </math:mrow> </math:mtr> <math:mtr/> <math:mtr> <math:mrow> <math:mfrac> <math:mrow> <math:msup> <math:mi>d</math:mi> <math:mn>2</math:mn> </math:msup> <math:mi>y</math:mi> </math:mrow> <math:mrow> <math:mi>d</math:mi> <math:msup> <math:mi>z</math:mi> <math:mn>2</math:mn> </math:msup> </math:mrow> </math:mfrac> <math:mrow> <math:mi/> <math:mo math:stretchy="false">+</math:mo> <math:mi/> </math:mrow> <math:msup> <math:mo math:stretchy="false">β</math:mo> <math:mn>2</math:mn> </math:msup> <math:mi>y</math:mi> <math:mrow> <math:mi/> <math:mo math:stretchy="false">=</math:mo> <math:mi/> </math:mrow> <math:mn>0</math:mn> </math:mrow> </math:mtr> </math:mtable> <math:annotation math:encoding="StarMath 5.0">{ d rsup{2} x } over {d z rsup{2} } `- `%beta rsup{2} x `=` 0 newline newline { d rsup{2} y } over {d z rsup{2} } `+ `%beta rsup{2} y `=` 0</math:annotation> </math:semantics> </math:math></para> </article>