[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] size of monospaced text in section title
On Mon, May 19, 2003 at 04:40:49PM +0200, ABX wrote: > Is there any way to follow with size of monospaced font when inlined in section > title ? I have syntax as follow: > > <book> > ... > <section> > <title>The '<filename>my_file.inc</filename>' include file</title> > <para> > The <filename>my_file.inc</filename> ... > </para> > </section> > ... > </book> > > when I render it with a few recent releases of DocBook XSL set (1.6?.?) together > with xsltproc (probably not recent but XSL file are rather more important here) > I get the same size of letters in title and in para while other text is much > larger in title than in para. What I have to change in my customization (listed > furter) to connect size of font in <filename> content with size of rest of title > > <xsl:attribute-set name="monospace.properties"> > <xsl:attribute name="font-family"> > <xsl:value-of select="$monospace.font.family"/> > </xsl:attribute> > <xsl:attribute name="font-size"> > <xsl:value-of select="$body.font.master"/> > <xsl:text>pt</xsl:text> > </xsl:attribute> > </xsl:attribute-set> Remove these lines from your customization: <xsl:attribute name="font-size"> <xsl:value-of select="$body.font.master"/> <xsl:text>pt</xsl:text> </xsl:attribute> They are hardcoding all elements that use monospace.properties to the body font size, regardless of the context. When you remove them, the monospace font will inherit the font-size of the containing element. -- Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 The SCO Group fax: (831) 429-1887 email: bobs@sco.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]