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] Formatting abstract in chapter.titlepage


I'm not able to duplicate the problem regarding the order of the elements. 
When I have an abstract inside a chapterinfo element, and your customization 
of the titlepage spec file is used, the abstract appears before the table of 
contents.  Did you do other customizations of the template for chapter?

Regarding the abstract.properties attribute set, it appears that it is 
applied only to abstract when processed without a mode.  But abstract is 
always processed in titlepage.mode, so that would be a bug in the 
stylesheets.  I think perhaps the titlepage.mode was added after the 
original template was created, and the property set was never moved over to 
the new mode.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- 
From: "spr" <spremi@yahoo.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Monday, February 11, 2008 11:36 AM
Subject: [docbook-apps] Formatting abstract in chapter.titlepage


>
> I created a book with multiple chapters. Each chapter has an abstract.
>
> I wanted the page sequence in the chapter.titlepage to be:
>    - Chapter Title
>    - Chapter Abstract
>    - Chapter ToC
>
> I changed the spec for the chapter.titlepage as:
>
>    <t:titlepage
>      t:element    = "chapter"
>      t:wrapper    = "fo:block"
>      font-family  = "{$title.fontset}">
>
>      <t:titlepage-content
>        t:side       = "recto"
>        margin-left  = "{$title.margin.left}">
>
>        <title
>          t:named-template = "component.title"
>          param:node       = "ancestor-or-self::chapter[1]"
>          font-size        = "&hsize5;"
>          font-weight      = "bold"/>
>
>        <subtitle
>          space-before     = "0.5em"
>          font-style       = "italic"
>          font-size        = "&hsize2;"
>          font-weight      = "bold"/>
>
>        <abstract />
>
> ...and so on ...
>
> However, I still get the sequence as:
>    - Chapter Title
>    - Chapter ToC
>    - Chapter Abstract
>
> After many failed attempts, i tried to format the abstract such that i can
> visually separate it from ToC with this customization:
>
> <xsl:attribute-set name="abstract.properties">
>
>    <xsl:attribute name  = "margin-top">0.5in</xsl:attribute>
>
>    <xsl:attribute name  = "margin-left">1.0in</xsl:attribute>
>
>    <xsl:attribute name  = "font-weight">bold</xsl:attribute>
>
>    <xsl:attribute name  = "color">#000044<xsl:attribute>
>
> </xsl:attribute-set>
>
> Here, other than "bold" all attributes seem to be ignored.
>
> I am not really sure where I could be going wrong?
>
> ~spr
> -- 
> View this message in context: 
> http://www.nabble.com/Formatting-abstract-in-chapter.titlepage-tp15418997p15418997.html
> Sent from the docbook apps mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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]