Next in thread →
Next in month →
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 ----- Original Message ----- From: "Jirka Kosek" <> To: "Tiru R Bokka" <> Cc: "docbook-apps" <>; "'Raju Kavalla'" <> 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: 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 ------------------------------------------------------------------
Next in thread →
Next in month →