Bug#926377: dblatex: Should handle
without a bit better</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=debian-bugs-dist@lists.debian.org&q=from:%22Petter+Reinholdtsen%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Petter Reinholdtsen</span></span></a></span> <span class="date"><a href="/search?l=debian-bugs-dist@lists.debian.org&q=date:20190404" rel="nofollow">Thu, 04 Apr 2019 01:54:22 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre> Package: dblatex Version: 0.3.10-2 Severity: normal</pre><pre> I believe dblatex should handle <figure> without <title> a bit better. At the moment it generated invalid latex and latex report the problem in a way that is very hard to understand. Here is an example docbook file demonstrating the problem: <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.5//EN" "<a rel="nofollow" href="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"">http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"</a>;> <book> <bookinfo> <title>Example demonstrating dblatex failing on blank textobject</title> </bookinfo> <preface> <title>test</title> <!-- A missing figure.title causes dblatex to fail. The <figure> part is a fragment of docbook code generated by pandoc from rst. --> <figure> <mediaobject> <imageobject> <imagedata fileref="media/logo-noark5-kjerne.png" /> </imageobject> <textobject><phrase></phrase></textobject> </mediaobject> </figure> <para>text is good</para> </preface> </book> It could either insert \caption{} or something like that when there is no title, or perhaps \caption{Title missing} to make the problem more visible in the PDF. I solved it by adjusting my rst files to provide figure titles, but it took a while to figure out what was wrong... -- Happy hacking Petter Reinholdtsen </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg1673780.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="thrd4.html#1673782">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="mail5.html#1673782">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg1673783.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#926377: dblatex: Should handle <figure> without <title> a bit better"> <input type="hidden" name="msgid" value="sa6zhp6m9w8.fsf@meta.reinholdtsen.name"> <input type="hidden" name="relpath" value="debian-bugs-dist@lists.debian.org/msg1673782.html"> <input type="submit" value=" Petter Reinholdtsen "> </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%23926377%5C%3A+dblatex%5C%3A+Should+handle+%3Cfigure%3E+without+%3Ctitle%3E+a+bit+better%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg1673780.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg1673783.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">sa6zhp6m9w8.fsf@meta.reinholdtsen.name</li> </ul> </div> </body> </html>