docbook-apps

  • 1.  Continued lines in index

    Posted 09-27-2013 17:50
    Has anyone implemented a way to get a "continued" line in a printed index?

    That is, when a primary term that has a lot of secondaries breaks across a page boundary, many indexes will include a line like this at the top of the new page:

    Bieber, Justin (continued)
    greatest hits
    ...

    Right now, in this case, the stylesheets would start that page with "greatest hits" rather than a reiteration of the primary term.

    Any suggestions would be welcome.

    Dick Hamilton
    -------
    XML Press
    XML for Technical Communicators
    http://xmlpress.net
    hamilton@xmlpress.net






  • 2.  Re: [docbook-apps] Continued lines in index

    Posted 09-27-2013 18:38
    Hi Dick,
    Yes, I did this for a client using the same mechanism that can be used for
    tables, as described in:

    http://www.sagehill.net/docbookxsl/TableTemplateCust.html#TableContinuedLabel

    You need to customize this template from fo/autoidx.xsl:

    <xsl:template match="indexterm" mode="index-primary">

    and put the content inside a single-cell fo:table, as described in that
    section. The method depends on the FO processor. I don't think FOP supports
    the retrieve-table-marker property yet, though. Sorry, I can't give you the
    code from that client.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net

    --------------------------------------------------
    From: "Richard Hamilton" <hamilton@xmlpress.net>
    Sent: Friday, September 27, 2013 10:49 AM
    To: "apps docbook" <docbook-apps@lists.oasis-open.org>
    Subject: [docbook-apps] Continued lines in index

    > Has anyone implemented a way to get a "continued" line in a printed index?
    >
    > That is, when a primary term that has a lot of secondaries breaks across a
    > page boundary, many indexes will include a line like this at the top of
    > the new page:
    >
    > Bieber, Justin (continued)
    > greatest hits
    > ...
    >
    > Right now, in this case, the stylesheets would start that page with
    > "greatest hits" rather than a reiteration of the primary term.
    >
    > Any suggestions would be welcome.
    >
    > Dick Hamilton
    > -------
    > XML Press
    > XML for Technical Communicators
    > http://xmlpress.net
    > hamilton@xmlpress.net
    >
    >
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >
    >



  • 3.  Re: [docbook-apps] Continued lines in index

    Posted 09-27-2013 19:02
    Hi Bob,

    Thanks for the pointer. If I can make this work (probably not for a few weeks), and have a reasonably clean implementation, I'll post the result (my client is me this time around:-).

    Thanks,
    Dick
    -------
    XML Press
    XML for Technical Communicators
    http://xmlpress.net
    hamilton@xmlpress.net



    On Sep 27, 2013, at 11:37 AM, Bob Stayton wrote:

    > Hi Dick,
    > Yes, I did this for a client using the same mechanism that can be used for tables, as described in:
    >
    > http://www.sagehill.net/docbookxsl/TableTemplateCust.html#TableContinuedLabel
    >
    > You need to customize this template from fo/autoidx.xsl:
    >
    > <xsl:template match="indexterm" mode="index-primary">
    >
    > and put the content inside a single-cell fo:table, as described in that section. The method depends on the FO processor. I don't think FOP supports the retrieve-table-marker property yet, though. Sorry, I can't give you the code from that client.
    >
    > Bob Stayton
    > Sagehill Enterprises
    > bobs@sagehill.net
    >
    > --------------------------------------------------
    > From: "Richard Hamilton" <hamilton@xmlpress.net>
    > Sent: Friday, September 27, 2013 10:49 AM
    > To: "apps docbook" <docbook-apps@lists.oasis-open.org>
    > Subject: [docbook-apps] Continued lines in index
    >
    >> Has anyone implemented a way to get a "continued" line in a printed index?
    >>
    >> That is, when a primary term that has a lot of secondaries breaks across a page boundary, many indexes will include a line like this at the top of the new page:
    >>
    >> Bieber, Justin (continued)
    >> greatest hits
    >> ...
    >>
    >> Right now, in this case, the stylesheets would start that page with "greatest hits" rather than a reiteration of the primary term.
    >>
    >> Any suggestions would be welcome.
    >>
    >> Dick Hamilton
    >> -------
    >> XML Press
    >> XML for Technical Communicators
    >> http://xmlpress.net
    >> hamilton@xmlpress.net
    >>
    >>
    >>
    >>
    >> ---------------------------------------------------------------------
    >> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    >> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >>
    >>




  • 4.  Re: [docbook-apps] Continued lines in index

    Posted 09-27-2013 21:31
    Thanks Richard for the question.
    I'm working on a series of books where the continuation will occur
    frequently.
    Thanks Bob for you helpful reply as always.
    Richard I'll be waiting for an update, as my project is rather long term.
    Regards Paul


    On Fri, Sep 27, 2013 at 4:32 PM, Richard Hamilton <hamilton@xmlpress.net>wrote:

    > Hi Bob,
    >
    > Thanks for the pointer. If I can make this work (probably not for a few
    > weeks), and have a reasonably clean implementation, I'll post the result
    > (my client is me this time around:-).
    >
    > Thanks,
    > Dick
    > -------
    > XML Press
    > XML for Technical Communicators
    > http://xmlpress.net
    > hamilton@xmlpress.net
    >
    >
    >
    > On Sep 27, 2013, at 11:37 AM, Bob Stayton wrote:
    >
    > > Hi Dick,
    > > Yes, I did this for a client using the same mechanism that can be used
    > for tables, as described in:
    > >
    > >
    > http://www.sagehill.net/docbookxsl/TableTemplateCust.html#TableContinuedLabel
    > >
    > > You need to customize this template from fo/autoidx.xsl:
    > >
    > > <xsl:template match="indexterm" mode="index-primary">
    > >
    > > and put the content inside a single-cell fo:table, as described in that
    > section. The method depends on the FO processor. I don't think FOP
    > supports the retrieve-table-marker property yet, though. Sorry, I can't
    > give you the code from that client.
    > >
    > > Bob Stayton
    > > Sagehill Enterprises
    > > bobs@sagehill.net
    > >
    > > --------------------------------------------------
    > > From: "Richard Hamilton" <hamilton@xmlpress.net>
    > > Sent: Friday, September 27, 2013 10:49 AM
    > > To: "apps docbook" <docbook-apps@lists.oasis-open.org>
    > > Subject: [docbook-apps] Continued lines in index
    > >
    > >> Has anyone implemented a way to get a "continued" line in a printed
    > index?
    > >>
    > >> That is, when a primary term that has a lot of secondaries breaks
    > across a page boundary, many indexes will include a line like this at the
    > top of the new page:
    > >>
    > >> Bieber, Justin (continued)
    > >> greatest hits
    > >> ...
    > >>
    > >> Right now, in this case, the stylesheets would start that page with
    > "greatest hits" rather than a reiteration of the primary term.
    > >>
    > >> Any suggestions would be welcome.
    > >>
    > >> Dick Hamilton
    > >> -------
    > >> XML Press
    > >> XML for Technical Communicators
    > >> http://xmlpress.net
    > >> hamilton@xmlpress.net
    > >>
    > >>
    > >>
    > >>
    > >> ---------------------------------------------------------------------
    > >> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > >> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    > >>
    > >>
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >