[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Formatting chapter and section titles
Hello all, I've got a few questions regarding the formatting and lay-out of chapter and section titles. Thanks in advance for any help/advice. Erik Leunissen -------------- 1. How can I suppress a trailing dot in automatic component/section labels? This parameter in a customization layer: <xsl:param name="section.autolabel" select="1"></xsl:param> generates section labels like: "2.3. Some dummy section title" I'd prefer to omit the trailing dot in the section number and make it appear as: "2.3 Some dummy section title" Is that possible (as well for sections as for chapters)? If so, how should I proceeed? 2. How can I customize chapter labels to: - omit the word "Chapter" and use the number only. - separate the chapter number from its title with white space? 3. How can I insert white space around chapter titles? Desired effect (the plus sign denoting extra white space): --------------------------------------------------------------- + + + Chapter 3. Getting started + + + This is the first paragraph of chapter 3. Bla, bla ... and bla and bla, ... 3.1. First section in chapter 3 --------------------------------------------------------------- I use the following snippet as part of a customization layer, but it inserts white space before the first child following the paragraph title (e.g. a paragraph) and the first section in that chapter, which is not what I intended. # +v <xsl:attribute-set name="component.title.properties"> <xsl:attribute name="font-size"> <xsl:value-of select="$body.font.master * 3.0"></xsl:value-of> <xsl:text>pt</xsl:text> </xsl:attribute> <!-- the following lines do not have the desired effect --> <xsl:attribute name="space-before">2.0em</xsl:attribute> <xsl:attribute name="space-before.minimum">1.0em</xsl:attribute> <xsl:attribute name="space-before.optimum">2.0em</xsl:attribute> <xsl:attribute name="space-before.maximum">3.0em</xsl:attribute> <xsl:attribute name="space-after">2.0em</xsl:attribute> <xsl:attribute name="space-after.minimum">1.0em</xsl:attribute> <xsl:attribute name="space-after.optimum">2.0em</xsl:attribute> <xsl:attribute name="space-after.maximum">3.0em</xsl:attribute> </xsl:attribute-set> # -v Observed effect: --------------------------------------------------------------- Chapter 3. Getting started + + + This is the first paragraph of chapter 3. Bla, bla ... and bla and bla, ... + + + 3.1. First section in chapter 3 --------------------------------------------------------------- # end of message
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]