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.orgBetreff: 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
Original Message -----
From: Hinrich <mailto:hinrich.aue@lci-software.com> Aue
To: docbook-apps@lists.oasis-open.org
Sent: Monday, December 18, 2006 8:17 AM
Subject: [docbook-apps] individual indentation for sect1 - sect3
Hello everybody,
I'm trying to change the indentation for sect1 to sect3 individually.
The indentation should become smaller. In section 3 the body should not be
indented.
Like this:
Chapter
Sect1
Text text text
Text text text
Text text text
Text text text
Sect2
Text text
Text text
Text text
Text text
Sect3
Text text
Text text
Text text
Text text
Is this actually possible?
I do not understand the indenting completely.
I guess you need indentation for the title and for the body. is the
indentation relative to the level?
Is there a detailed description somewhere?
Thanks,
Hinrich