This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] reducing font size of programlistings
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: "Jirka Kosek" <jirka at kosek dot cz>, "Tiru R Bokka" <trb at amplisoft dot com>
- Cc: "docbook-apps" <docbook-apps at lists dot oasis-open dot org>, "'Raju Kavalla'" <rkavalla at binnisoft dot com>
- Date: Mon, 30 Aug 2004 14:34:48 -0700
- Subject: Re: [docbook-apps] reducing font size of programlistings
- References: <200408301416.i7UEGJLJ021509@baughmanhousing.com> <41336F83.4010306@kosek.cz>
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
------------------------------------------------------------------