[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: 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: ziegler@mpi-sb.mpg.de Tel.: (+49) 0681 9325-127
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]