Description of problem: When I create a book and include indexes where the <indexterm>s are used to define a startofrange and endofrange, the index entry should look like this: Subject start-end For example: Publican tools 101-125 Instead the output generated is like the following: Subject start-end, end For example: Publican tools 101-125, 125 Version-Release number of selected component (if applicable): Seen in Publican 2.8 on Fedora 16 64 bit. Probably affects other versions and OS versions. How reproducible: 100% Steps to Reproduce: 1. Create a document. At some point add an index tag as follows: <index /> 2. At the beginning of the document, add an indexterm tag as follows: <indexterm class="startofrange" id="StartOfPTR"> <primary>Whatever</primary></indexterm> 3. At the end of the range, put this indexterm: <indexterm class="endofrange" startref="StartOfPTR"> <primary>Whatever</primary></indexterm> 4. Build a pdf document. Actual results: When the index is generated, you get something like: Whatever 10-22, 22 The last page in the range - 22 - has been duplicated. Expected results: When the index is generated, you should get this: Whatever 10-22 Additional info: None.
Hi, I believe there may be an error in your example, to quote the docbook guide: Place an IndexTerm at the beginning of the range with Class set to StartOfRange and give this term an ID. Place another IndexTerm at the end of the range with StartRef pointing to the ID of the starting IndexTerm. This second IndexTerm must be empty. Your endofrange indexterm is not empty. If you remove all content does it work? e.g. <indexterm class="endofrange" startref="StartOfPTR" /> FYI we don't override any of the index code.
Hi Jeff, Yes that fixed it - thanks. My own source of information was http://www.sagehill.net/docbookxsl/GenerateIndex.html#Indexterms and there, the example given is as follows: <indexterm class="startofrange" id="makestuff"> <primary>Makefiles</primary></indexterm> ... <indexterm class="endofrange" startref="makestuff"> <primary>Makefiles</primary></indexterm> So that's where my error comes from. I think we can close this one. Thanks again. Cheers, Norm.
Cool, there are probably some people who would want it displayed that way :)