docbook-apps

  • 1.  Re: [docbook-apps] individual indentation for sect1 - sect3

    Posted 12-20-2006 06:39
    I can give you two basic guidelines for indents in XSL-FO:

    a. start-indent on an fo:block is an absolute value measured from the region boundary, regardless of the indents of the fo:blocks it might be nested inside.

    b. margin-left is a relative indent, that is, relative to the left edge (indent) of the fo:block that contains it.

    You can accomplish what you want by setting start-indent values with the attribute-sets that the stylesheets provide. For example, put these in your customization layer:


    <xsl:param name="body.start.indent">0.5in</xsl:param>


    <xsl:attribute-set name="component.title.properties">
    <xsl:attribute name="start-indent">0in</xsl:attribute>
    </xsl:attribute-set>


    <xsl:attribute-set name="section.properties">
    <xsl:attribute name="start-indent">1.5in</xsl:attribute>
    </xsl:attribute-set>


    <xsl:attribute-set name="section.title.properties">
    <xsl:attribute name="start-indent">1.5in</xsl:attribute>
    </xsl:attribute-set>


    <xsl:attribute-set name="section.level1.properties">
    <xsl:attribute name="start-indent">1in</xsl:attribute>
    </xsl:attribute-set>


    <xsl:attribute-set name="section.title.level1.properties">
    <xsl:attribute name="start-indent">0.5in</xsl:attribute>
    </xsl:attribute-set>


    <xsl:attribute-set name="section.title.level2.properties">
    <xsl:attribute name="start-indent">1.0in</xsl:attribute>
    </xsl:attribute-set>


    Bob Stayton
    Sagehill Enterprises
    DocBook Consulting
    bobs@sagehill.net





  • 2.  AW: [docbook-apps] individual indentation for sect1 - sect3

    Posted 12-20-2006 13:14
    Thanksm that worked.

    I thought this would be more difficult :-)



    Hinrich



    _____

    Von: Bob Stayton [mailto:bobs@sagehill.net]
    Gesendet: Mittwoch, 20. Dezember 2006 07:39
    An: Hinrich Aue; docbook-apps@lists.oasis-open.org
    Betreff: Re: [docbook-apps] individual indentation for sect1 - sect3



    I can give you two basic guidelines for indents in XSL-FO:



    a. start-indent on an fo:block is an absolute value measured from the
    region boundary, regardless of the indents of the fo:blocks it might be
    nested inside.



    b. margin-left is a relative indent, that is, relative to the left edge
    (indent) of the fo:block that contains it.



    You can accomplish what you want by setting start-indent values with the
    attribute-sets that the stylesheets provide. For example, put these in your
    customization layer:





    <xsl:param name="body.start.indent">0.5in</xsl:param>





    <xsl:attribute-set name="component.title.properties">
    <xsl:attribute name="start-indent">0in</xsl:attribute>
    </xsl:attribute-set>





    <xsl:attribute-set name="section.properties">
    <xsl:attribute name="start-indent">1.5in</xsl:attribute>
    </xsl:attribute-set>





    <xsl:attribute-set name="section.title.properties">
    <xsl:attribute name="start-indent">1.5in</xsl:attribute>
    </xsl:attribute-set>





    <xsl:attribute-set name="section.level1.properties">
    <xsl:attribute name="start-indent">1in</xsl:attribute>
    </xsl:attribute-set>





    <xsl:attribute-set name="section.title.level1.properties">
    <xsl:attribute name="start-indent">0.5in</xsl:attribute>
    </xsl:attribute-set>





    <xsl:attribute-set name="section.title.level2.properties">
    <xsl:attribute name="start-indent">1.0in</xsl:attribute>
    </xsl:attribute-set>





    Bob Stayton
    Sagehill Enterprises
    DocBook Consulting
    bobs@sagehill.net