OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] computeroutput inside a section title

This is what the 'em' unit is for.  1em is equivalent to "the same font size as the containing content", so if you want to always use a slightly smaller point size for your monospaced font than for your variable width fonts, you just change inline.monoseq to use "font-size='0.85em'".

On Nov 6, 2007 1:55 PM, Jacques Foucry <jacques@foucry.net> wrote:

Sometimes in my book I need to use my monospaced fonts inside a
section title.

<info><title>About <computeroutup>/etc/postfix/main.cf</

I defined my section title like that:

       <xsl:attribute-set name="section.title.level1.properties">
               <xsl:attribute name="color">
                       <xsl:value-of select="$title.color"/>
               <xsl:attribute name="font-weight">normal</xsl:attribute>
               <xsl:attribute name="font-size">
                       <xsl:value-of select="$body.font.master * 1.3"/>

And my computerouput font like that:

       <xsl:template match="d:computeroutput">
               <fo:inline font-size="8.2pt">
                       <xsl:call-template name="inline.monoseq"/>

So in a title the font size is to small.

Is it possible to define something like:

if computeroutput is used in a title the font size is... ?

And if yes, how can I do that ?

Thanks in advance,
« Mac OS X Server à votre Service » est épuisé.
Vous pouvez désormais l'acquérir en PDF
<http://www.foucry.net/Redaction/service/service.html >

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]