[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] reducing font size of programlistings
Actually, if you want a line-height of 1.5 for everything *except*
programlisting, then you can put this attribute in the root.properties
attribute-set in your customization:
<xsl:attribute name="line-height">1.5</xsl:attribute>
and then put this one in the verbatim.properties attribute-set:
<xsl:attribute name="line-height">1</xsl:attribute>
Any properties in the root.properties attribute-set are inherited by all
blocks in the document, unless they are overridden with a different value.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Jirka Kosek" <jirka@kosek.cz>
To: "Tiru R Bokka" <trb@amplisoft.com>
Cc: "docbook-apps" <docbook-apps@lists.oasis-open.org>; "'Raju Kavalla'"
<rkavalla@binnisoft.com>
Sent: Monday, August 30, 2004 11:18 AM
Subject: Re: [docbook-apps] reducing font size of programlistings
Tiru R Bokka wrote:
> How can we specify a different font size just for programlisting elements?
Add following into your customization layer:
<xsl:attribute-set name="verbatim.properties">
<xsl:attribute name="font-size">8pt</xsl:attribute>
</xsl:attribute-set>
> We also want to use a line-height of > 1 (either 1.5 or 1.8) for
everything
> except these programlistings. What is the best way to accomplish this?
You can add as many FO properties as you want into the attribute set
mentioned above.
Jirka
--
------------------------------------------------------------------
Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz
------------------------------------------------------------------
Profesion�ln� �kolen� a poradenstv� v oblasti technologi� XML.
Pod�vejte se na n� nov� spu�t�n� web http://DocBook.cz
------------------------------------------------------------------
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]