Next in thread → Next in month →

Re: [docbook-apps] Indexterms with emphasis and citetitle elements

From
Pc Thoms <>
Date
2016-01-11T12:14:48+00:00
ID
CAHZ81Ou8yOkDqnONBLowyj-dojNB6tv+cNatU_EzP=
Thread
Re: [docbook-apps] Indexterms with emphasis and citetitle elements
Thanks Bob:
I appreciate this - will look forward to seeing this a built in feature in the future.

On Sun, Jan 10, 2016 at 1:25 PM, Bob Stayton <> wrote:
Hi,

This requires a customization, although it would make a fine feature at some point as it has been requested before.

You'll need to customize the template in fo/autoidx.xsl that starts with:

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

In your customized version of the template, change

  <xsl:value-of select="primary"/>

which just selects the text content of the <primary> element to:

  <xsl:apply-templates select="primary/node()"/>

which will apply templates to format the content of the element.

If you want secondary and tertiary entries to also get such formatting, you'll need to also customize

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

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

Bob Stayton

Sagehill Enterprises



On 1/9/2016 5:02 AM, Pc Thoms wrote:

When generating an index using 1.79.0 the <emphasis/> and <citetitle/>

elements do not produce any italicized text in an index generated in

pdf, or xhtml.

Would like this to work.
Next in thread → Next in month →