Re: [docbook-apps] Font familiy of some automatically generated index-entries

From
Koachim Yiegler
Date
2004-02-10T11:09:00+00:00
ID
Thread
Re: [docbook-apps] Font familiy of some automatically generated index-entries
Bob Stayton wrote:
> 
> But actually, you can accomplish this without customizing the
> stylesheet at all.  You can do it entirely in your source document.
> The sortas attribute can be used to separate them:
> 
> <indexterm><primary>stack</primary></indexterm>
> <indexterm><primary sortas="stack classname">
>      <classname>stack</classname></primary></indexterm>
> 
> If all the instances of the classname indexterm have a sortas attribute
> that differs from the non-classname indexterms, then they will be treated
> as different index entries.  You'll have to be careful to get them to sort
> together if you have other "stack somethings".  You'll have to come
> up with a naming scheme, maybe using a character that occurs
> before all letters in the sort order.

I've tried this with the three instances of the indexterm for "node" in 
my document:

<indexterm><primary sortas="node general">node</primary></indexterm>
...

<indexterm><primary sortas="node general">node</primary></indexterm>
...
<indexterm><primary sortas="node 
typename"><type>node</type></primary></indexterm>

Now, as you said, I got 2 different index entries, one for nodes (of a 
graph) in general rendered in proportional font, one for the C++ type 
node in fixed font.

But unfortunately, the page numbers are repeated twice:

node, 192, 261, 267
node, 192, 261, 267

Instead, the output should be:

node, 192, 261
node, 267

Greetings,
Joachim

-- 
Joachim Ziegler                       Stuhlsatzenhausweg 85
Max-Planck-Institut für Informatik    66123 Saarbrücken, Germany
Email:           Tel.: (+49) 0681 9325-127