docbook-apps

  • 1.  Indices

    Posted 09-23-2007 06:15
    I'm looking at the emacs texinfo markup.

    It has indexterms marked by 'class', e.g. index terms for variables,
    functions, keys etc.

    Is there such capability in docbook please?

    I can use

    <indexterm class='variable'>
    <primary>track-eol</primary>
    </indexterm>

    But is there any mechanism to group index entries by some attribute
    value? I don't think the zone attribute is applicabe?

    regards

    --
    Dave Pawson
    XSLT, XSL-FO and Docbook FAQ
    http://www.dpawson.co.uk




  • 2.  Re: [docbook-apps] Indices

    Posted 09-23-2007 08:57
    Hi Dave,

    On Sonntag, 23. September 2007, Dave Pawson wrote:
    > I'm looking at the emacs texinfo markup.
    >
    > It has indexterms marked by 'class', e.g. index terms for variables,
    > functions, keys etc.
    >
    > Is there such capability in docbook please?

    If I understood you correctly, you want to group some index entries into
    *separate* indices, or in other words, a "specialized index". Right?


    > I can use
    >
    > <indexterm class='variable'>
    > <primary>track-eol</primary>
    > </indexterm>
    >
    > But is there any mechanism to group index entries by some attribute
    > value? I don't think the zone attribute is applicabe?

    Use the "type" attribute (»Specifies the target index for this term«). Try
    this:

    <indexterm type="variable">
    <primary>track-eol</primary>
    </indexterm>

    Don't forget to insert the following line (generally at the end of your
    document):

    <index type="variable"/>

    All index entries marked with "type" and its value "variable" is shown
    under this index. For more information, see [1].

    Hope this helps. :)


    Bye,
    Tom

    ----------
    [1] http://www.sagehill.net/docbookxsl/IndexSpecial.html


    --
    Thomas Schraitle



  • 3.  Re: [docbook-apps] Indices

    Posted 09-23-2007 09:00
    Thomas Schraitle wrote:
    > Hi Dave,
    >
    > On Sonntag, 23. September 2007, Dave Pawson wrote:
    >> I'm looking at the emacs texinfo markup.
    >>
    >> It has indexterms marked by 'class', e.g. index terms for variables,
    >> functions, keys etc.
    >>
    >> Is there such capability in docbook please?
    >
    > If I understood you correctly, you want to group some index entries into
    > *separate* indices, or in other words, a "specialized index". Right?

    Yes, emacs has a number of seperate indices.


    > Use the "type" attribute (»Specifies the target index for this term«). Try
    > this:
    >
    > <indexterm type="variable">
    > <primary>track-eol</primary>
    > </indexterm>
    >
    > Don't forget to insert the following line (generally at the end of your
    > document):
    >
    > <index type="variable"/>
    >
    > All index entries marked with "type" and its value "variable" is shown
    > under this index. For more information, see [1].
    (And thanks Bob ... again :-)
    >
    > Hope this helps. :)

    Yes :-) Very much.

    Thanks Thomas.

    regards



    --
    Dave Pawson
    XSLT, XSL-FO and Docbook FAQ
    http://www.dpawson.co.uk