[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] How to arange the space of a "list" inside "para"
The space before and after the list comes from the attribute-set named 'list.block.spacing', which is defined in fo/param.xsl. There is no compact version of that attribute-set like there is for list.item.spacing. But you can make the property value conditional with something like this in your customization layer: <xsl:attribute-set name="list.block.spacing"> <xsl:attribute name="space-before.optimum"> <xsl:choose> <xsl:when test="@spacing = 'compact'">0em</xsl:when> <xsl:otherwise>1em</xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:attribute name="space-before.maximum"> <xsl:choose> <xsl:when test="@spacing = 'compact'">0em</xsl:when> <xsl:otherwise>1.2em</xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:attribute name="space-before.minimum"> <xsl:choose> <xsl:when test="@spacing = 'compact'">0em</xsl:when> <xsl:otherwise>0.8em</xsl:otherwise> </xsl:choose> </xsl:attribute> etc. </xsl:attribute-set> The attribute-set is processed for each list, so the spacing attribute can be used to select the value. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Euis Luhuanam" <eluhu6@gmail.com> To: "docbook-apps List" <docbook-apps@lists.oasis-open.org> Sent: Tuesday, July 04, 2006 8:57 PM Subject: [docbook-apps] How to arange the space of a "list" inside "para" > Hi, > > This following, > = = = = = = = = = = = = = = = = = = > <para> > Para blah-blah: > <orderedlist numeration="arabic" spacing="compact"> > <listitem><para>list 1</para></listitem> > <listitem><para>list 2</para></listitem> > <listitem><para>list 3</para></listitem> > </orderedlist> > </para> > = = = = = = = = = = = = = = = = = = > > wil compact lines between "list 1", "list 2", etc; but > not between "Para blah-blah" and "list 1". > > Any clue how to compact that space? > > regards, > > -- > EL6: Euis Luhuanam > > --------------------------------------------------------------------- > 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]