Package: dblatex Version: 0.2-2 Severity: normal
Hi, It seems there is a strange interaction between anchors and underscores that makes dblatex to barf. Here is a reduced test case (stripped down from a file generated by gtk-doc-tools): <?xml version="1.0"?> <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> <refentry id="foo"> <refsect1 role="details"> <title><anchor id="Foo-ErrorCode" role="enum"/>enum Foo_ErrorCode</title> </refsect1> </refentry> Running "dblatex t.xml" gives the following (the root element warning is not important, I get the same error if I XInclude the file from the main XML document): Build the listings... XSLT stylesheets DocBook - LaTeX 2e (0.2-2) =================================================== *** Warning: the root element is not an article nor a book *** Warning: element wrapped with article This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) entering extended mode pdflatex failed /tmp/tmpSfZGA3/t_tmp.tex:52: Missing $ inserted. /tmp/tmpSfZGA3/t_tmp.tex:52: leading text: \subsection*[{enum Foo_ /tmp/tmpSfZGA3/t_tmp.tex:52: Extra }, or forgotten $. /tmp/tmpSfZGA3/t_tmp.tex:52: leading text: \subsection*[{enum Foo_ErrorCode} /tmp/tmpSfZGA3/t_tmp.tex:56: Missing $ inserted. /tmp/tmpSfZGA3/t_tmp.tex:56: leading text: \end{document} /tmp/tmpSfZGA3/t_tmp.tex:56: pdfTeX warning (ext4): destination with the same identifier (name{foo}) has been already used, duplicate ignored /tmp/tmpSfZGA3/t_tmp.tex:56: leading text: \end{document} Error: pdflatex compilation failed If I either remove the <anchor/> tag or change the underscore in the title to something else, then dblatex works just fine. Gabor -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages dblatex depends on: ii docbook-xml 4.4-5 standard XML documentation system, ii gs-gpl [gs-pdfencrypt] 8.54.dfsg.1-5 The GPL Ghostscript PostScript int ii python 2.4.3-11 An interactive high-level object-o ii python-support 0.5.5 automated rebuilding support for p ii tetex-extra 3.0.dfsg.3-1 Additional TeX input files of teTe ii transfig 1:3.2.5-alpha7-5 Utilities for converting XFig figu ii xsltproc 1.1.18-1 XSLT command line processor dblatex recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]