docbook-apps

Re: [docbook] chapter space after

  • 1.  Re: [docbook] chapter space after

    Posted 08-06-2008 19:49
    Moving to docbook-apps

    On Wed, Aug 6, 2008 at 3:40 PM, Andreas Peter <info@minimag.de> wrote:

    > I´ve searched the web for a solution about space before and after for
    > chapter titles. I want to generate a space after of each chapter title, but
    > unfortunately I can´t find any solution to this :-( Are there any
    > attribute-sets for this?

    Do you mean vertical space in FO output for PDF?

    Here's the section from my customization layer that does that:

    <xsl:attribute-set name="formal.title.properties"
    use-attribute-sets="normal.para.spacing">
    <xsl:attribute name="font-weight">bold</xsl:attribute>
    <xsl:attribute name="font-size">
    <xsl:value-of select="$body.font.master * 1"/>
    <xsl:text>pt</xsl:text>
    </xsl:attribute>
    <xsl:attribute name="hyphenate">false</xsl:attribute>
    <xsl:attribute name="text-align">left</xsl:attribute>
    <xsl:attribute name="space-after.minimum">0.4em</xsl:attribute>
    <xsl:attribute name="space-after.optimum">0.6em</xsl:attribute>
    <xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
    </xsl:attribute-set>

    Peter