This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Font Size of Chapter and Section ???


On Fri, Aug 29, 2003 at 10:23:21AM +0200, jochen.gerstl@de.abb.com wrote:
> 
> Hello to all,
> 
> I can change the body.font.size without any problems.
> 
> But I'am not be able to changed the font size for Chapter and Section
> Titles.
> 
> I tried it  that way:
> 
> <xsl:param name="body.font.master">10</xsl:param>
> 
> <xsl:attribute-set name="formal.title.properties"
> use-attribute-sets="normal.para.spacing">
>   <xsl:attribute name="font-weight">bold</xsl:attribute>
>   <xsl:attribute name="font-size">
>     <xsl:value-of select="$body.font.master * 1.2"></xsl:value-of>
>     <xsl:text>pt</xsl:text>
>   </xsl:attribute>
>   <xsl:attribute name="hyphenate">false</xsl:attribute>
>   <xsl:attribute name="space-after.minimum">0.4em</xsl:attribute>
>   <xsl:attribute name="space-after.optimum">0.6em</xsl:attribute>
>   <xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
> </xsl:attribute-set>
> 
> So I would expect a Title fontsize of 12pt but in reality I get size
> greater 40pt, which is a little bit to much.

Especially if you are expecting 12pt!

For chapter and section titles sizes, see various sections in:
http://www.sagehill.net/docbookxsl/PrintCustomEx.html

You can set the font size for each level of the hierarchy.
> 
> What am I doing wrong ??

The formal.title.properties parameter is used for
tables, figures, and example titles.

> By the way, docbook is printing just before the chapter tiltle the
> "Chapter" in german "Kapitel". How can I suppress this feature ?

See:
http://www.sagehill.net/docbookxsl/CustomGentext.html#CustomGenText

You want to customize the 'chapter' item under the 'title-numbered'
context in the common/de.xml file.  

-- 

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

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]