OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Section titles bottom of a print page when there is as subtitle

This situation is best served by using a keep-with-next.within-column="always" property.  It currently is applied to the title, but not to a section subtitle.  So the title is kept with the subtitle, but that breaks the connection from the title to the first para.  Fortunately, the following attribute-set is automatically applied (in fo/titlepage-templates.xsl) to both the section title and subtitle, so it should work in your situation:

<xsl:attribute-set name="section.titlepage.recto.style">
  <xsl:attribute name="keep-together.within-column">always</xsl:attribute>
  <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>

Could you please test it and see if it works?

Bob Stayton
Sagehill Enterprises
On 5/21/2017 11:48 PM, Peter Fleck wrote:

How do you stop section titles being at the bottom of a print page when there is as subtitle? ie. If there isn't space for at least one or two lines for the following paragraph the section title moves to the following page.

Here's the xml:

    <title>The Title</title>
    <subtitle>The Subtitle</subtitle>

So at the bottom of the page is the <title> followed by the <subtitle> and then the <para> starts on a new page.

I'm using 1.79.2 with Apache FOP 2.2.

I know I can use <?dbfo-need height="..." ?> but would rather not have to put it in XML if there is an XSL solution.



To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]