Forum How do I...?

Keeping titles with figures

jean
For the HTML which the DocBook stylesheet generate, this CSS doesn't work:

div.title { page-break-after: avoid }


This does:

div.figure { page-break-inside: avoid }


Why doesn't the first one work? Here is the HTML:

          <div class="figure">
            <a name="d4e142" id="d4e142"></a>

            <p class="title"><b>Figure&nbsp;2.1.&nbsp;System
            overview diagram <em><span class="remark">(from pptx)</span></em></b></p>

            <div class="figure-contents">
              <div class="mediaobject">
                <img src="resources/system-overview.png" alt=
                "System overview diagram (from pptx)">
              </div>
            </div>
          </div>
jean
Both "Overview" and "Concepts" appear on a page of their own, despite the following CSS:

dt span.chapter { page-break-before: avoid }
dt span.chapter { page-break-after: avoid }
dt { page-break-before: avoid }
dt { page-break-after: avoid }
dl { page-break-inside: avoid }


This is the HTML:

    <div class="toc">
      <dl>
        <dt><span class="chapter"><a href="#d4e34">1.
        Overview</a></span></dt>

        <dt><span class="part"><a href="#concepts">I.
        Concepts</a></span></dt>
       ....



Any advice how to prevent this?
mikeday
I think this bug with page break avoid may already be fixed in the next maintenance release, due out soon.
jean
That would be excellent news. I guess licensed users will be notified when updates are released?
mikeday
We normally announce new releases on this forum, and also on freshmeat.net, where people can subscribe to receive new release announcements.
jean
On freshmeat I see we're still on 6.0 rev 4 .. I'd like to start generating PDF to send around, and for that I'd like the TOC to be on one page, without the single-line pages I currently get. Any idea when the next maintenance release will land?
mikeday
Very soon, see the development roadmap.
jean
Cool, so only one issue remaining to be fixed and four packages to be built :D
mikeday
It took a couple of weeks, but the new maintenance release is out today! :)