Bug#400045: dblatex: problem with and underscore in </span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=debian-bugs-dist@lists.debian.org&q=from:%22G%C3%A1bor+Gomb%C3%A1s%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Gábor Gombás</span></span></a></span> <span class="date"><a href="/search?l=debian-bugs-dist@lists.debian.org&q=date:20061123" rel="nofollow">Thu, 23 Nov 2006 09:13:21 -0800</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre>Package: dblatex Version: 0.2-2 Severity: normal </pre><pre> 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" "<a rel="nofollow" href="http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"">http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"</a>;> <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] </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg272252.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="thrd2.html#272253">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="mail2.html#272253">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg272254.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="Bug#400045: dblatex: problem with <anchor/> and underscore in <title>"> <input type="hidden" name="msgid" value="20061123164813.4633.36998.reportbug@boogie.lpds.sztaki.hu"> <input type="hidden" name="relpath" value="debian-bugs-dist@lists.debian.org/msg272253.html"> <input type="submit" value=" Gábor Gombás "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="debian-bugs-dist@lists.debian.org"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search debian-bugs-dist"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/debian-bugs-dist@lists.debian.org/">debian-bugs-dist - all messages</a></li> <li class="icons-about"><a href="/debian-bugs-dist@lists.debian.org/info.html">debian-bugs-dist - about the list</a></li> <li class="icons-expand"><a href="/search?l=debian-bugs-dist@lists.debian.org&q=subject:%22Bug%23400045%5C%3A+dblatex%5C%3A+problem+with+%3Canchor%5C%2F%3E+and+underscore+in+%3Ctitle%3E%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg272252.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg272254.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> <a href="#"><img src="/debian-bugs-dist@lists.debian.org/logo.png" alt="debian-bugs-dist"></a> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">20061123164813.4633.36998.reportbug@boogie.lpds.sztaki.hu</li> </ul> </div> </body> </html>