docbook-apps

  • 1.  Customizing chapter titles so that autolabels and titles are on two lines

    Posted 01-09-2013 22:01
    Hello,

    I am trying to find a way to customize the titles of my chapters so that
    the autolabel and the title appear on two lines as shown below:

    Chapter 1
    This is my chapter title

    Does anyone have an idea?

    -Gabriela



  • 2.  Re: [docbook-apps] Customizing chapter titles so that autolabels and titles are on two lines

    Posted 01-09-2013 22:43
    Hi Gabriela,
    There is an example in this reference for doing just that:

    http://www.sagehill.net/docbookxsl/TitleFontSizes.html#ChapterTitles

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net


    From: Gabriela Simonka
    Sent: Wednesday, January 09, 2013 2:00 PM
    To: docbook-apps@lists.oasis-open.org
    Subject: [docbook-apps] Customizing chapter titles so that autolabels and titles are on two lines


    Hello,


    I am trying to find a way to customize the titles of my chapters so that the autolabel and the title appear on two lines as shown below:

    Chapter 1
    This is my chapter title

    Does anyone have an idea?

    -Gabriela



  • 3.  Re: [docbook-apps] Customizing chapter titles so that autolabels and titles are on two lines

    Posted 01-10-2013 17:37
      |   view attached
    Thanks Bob! Works great.

    I noticed that there is a typo/inconsistency in the template name
    (*chapappendix.title* vs *chappendix.title*) used in steps 2 and 3 in
    the example of the reference you gave me.

    <xsl:template name="chapappendix.title">
    <xsl:param name="node" select="."></xsl:param>

    ...
    </xsl:template>


    <t:titlepage t:element="chapter" t:wrapper="fo:block"></t:titlepage>
    font-family="{$title.fontset}">
    <t:titlepage-content t:side="recto" margin-left="{$title.margin.left}">
    *
    param:node="ancestor-or-self::chapter[1]"/>
    ...



    -Gabriela

    On 09/01/2013 5:42 PM, Bob Stayton wrote:
    > Hi Gabriela,
    > There is an example in this reference for doing just that:
    > http://www.sagehill.net/docbookxsl/TitleFontSizes.html#ChapterTitles
    > Bob Stayton
    > Sagehill Enterprises
    > bobs@sagehill.net <mailto:bobs@sagehill.net>
    >
    > *From:* Gabriela Simonka <mailto:gabriela@inrosoftware.com>
    > *Sent:* Wednesday, January 09, 2013 2:00 PM
    > *To:* docbook-apps@lists.oasis-open.org
    > <mailto:docbook-apps@lists.oasis-open.org>
    > *Subject:* [docbook-apps] Customizing chapter titles so that
    > autolabels and titles are on two lines
    >
    > Hello,
    >
    > I am trying to find a way to customize the titles of my chapters so
    > that the autolabel and the title appear on two lines as shown below:
    >
    > Chapter 1
    > This is my chapter title
    >
    > Does anyone have an idea?
    >
    > -Gabriela


    --
    *Gabriela Simonka *
    Technical Writer
    Rédactrice technique
    ------------------------------------------------------------------------
    INRO
    376 Victoria Avenue, Suite 200
    Westmount, Montréal QC Canada H3Z 1C3
    tel +1 514-369-2023 x233
    fax +1 514-369-2026
    www.inrosoftware.com <http: www.inro.ca=""> INRO
    <http: www.inrosoftware.com="">
    ------------------------------------------------------------------------

    DISCLAIMER: This message, including attachments, may contain
    confidential information for the sole use of the intended recipient(s).
    Any unauthorized use, disclosure, viewing, copying, alteration, or
    distribution of any information in this message is prohibited. If you
    have received this message in error please notify the sender immediately.

    AVIS DE CONFIDENTIALITÉ : Ce message, y compris les fichiers joints,
    pourrait contenir des renseignements confidentiels à l'intention
    exclusive du (des) destinataire(s) prévu(s). L'utilisation, la
    divulgation, la lecture, la reproduction, la modification ou la
    distribution non autorisées en tout ou en partie du contenu de ce
    message sont interdites. Si vous avez reçu ce message par erreur,
    veuillez communiquer avec l'expéditeur sans délai.


    </http:></http:></mailto:docbook-apps@lists.oasis-open.org></mailto:gabriela@inrosoftware.com></mailto:bobs@sagehill.net></t:titlepage-content>


  • 4.  Re: [docbook-apps] Customizing chapter titles so that autolabels and titles are on two lines

    Posted 01-10-2013 17:45
      |   view attached
    Ah, thanks for noticing the typo. I'll add that to the errata and fix it for the next release.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net


    From: Gabriela Simonka
    Sent: Thursday, January 10, 2013 9:37 AM
    To: docbook-apps@lists.oasis-open.org
    Subject: Re: [docbook-apps] Customizing chapter titles so that autolabels and titles are on two lines


    Thanks Bob! Works great.

    I noticed that there is a typo/inconsistency in the template name (chapappendix.title vs chappendix.title) used in steps 2 and 3 in the example of the reference you gave me.

    <xsl:template name="chapappendix.title">
    <xsl:param name="node" select="."></xsl:param>

    ...
    </xsl:template>

    <t:titlepage t:element="chapter" t:wrapper="fo:block"></t:titlepage>
    font-family="{$title.fontset}">
    <t:titlepage-content t:side="recto" margin-left="{$title.margin.left}">

    param:node="ancestor-or-self::chapter[1]"/>
    ...

    -Gabriela

    On 09/01/2013 5:42 PM, Bob Stayton wrote:

    Hi Gabriela,
    There is an example in this reference for doing just that:

    http://www.sagehill.net/docbookxsl/TitleFontSizes.html#ChapterTitles

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net


    From: Gabriela Simonka
    Sent: Wednesday, January 09, 2013 2:00 PM
    To: docbook-apps@lists.oasis-open.org
    Subject: [docbook-apps] Customizing chapter titles so that autolabels and titles are on two lines


    Hello,


    I am trying to find a way to customize the titles of my chapters so that the autolabel and the title appear on two lines as shown below:

    Chapter 1
    This is my chapter title

    Does anyone have an idea?

    -Gabriela




    --
    Gabriela Simonka
    Technical Writer
    Rédactrice technique
    --------------------------------------------------------------------------

    INRO
    376 Victoria Avenue, Suite 200
    Westmount, Montréal QC Canada H3Z 1C3
    tel +1 514-369-2023 x233
    fax +1 514-369-2026
    www.inrosoftware.com

    --------------------------------------------------------------------------

    DISCLAIMER: This message, including attachments, may contain confidential information for the sole use of the intended recipient(s). Any unauthorized use, disclosure, viewing, copying, alteration, or distribution of any information in this message is prohibited. If you have received this message in error please notify the sender immediately.

    AVIS DE CONFIDENTIALITÉ : Ce message, y compris les fichiers joints, pourrait contenir des renseignements confidentiels à l'intention exclusive du (des) destinataire(s) prévu(s). L'utilisation, la divulgation, la lecture, la reproduction, la modification ou la distribution non autorisées en tout ou en partie du contenu de ce message sont interdites. Si vous avez reçu ce message par erreur, veuillez communiquer avec l'expéditeur sans délai.


    </t:titlepage-content>