Formatting abstract in chapter.titlepage

View: New views
3 Messages — Rating Filter:   Alert me  

Formatting abstract in chapter.titlepage

by spr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
~spr

Re: Formatting abstract in chapter.titlepage

by Bob Stayton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...


----- Original Message -----
From: "spr" <spremi@...>
To: <docbook-apps@...>
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@...
> For additional commands, e-mail: docbook-apps-help@...
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...


RE: Formatting abstract in chapter.titlepage

by Mauritz Jeanson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> -----Original Message-----
> From: spr
>
> 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?


Perhaps it has something to do with this bug:
http://tinyurl.com/2xmw3x

/MJ




---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...