Elided page numbers in registers
Another question on registers (just getting into indexing!). I have a book which numbers its pages by chapter, and so page numbers are 1/1, 1/2 ... for the pages of chapter 1, and then 2/1, 2/2 ... for the pages of chapter 2. I have page ranges in my index, such as 1/1-1/3, or 2/24-2/26. I would like these ranges to be elided - in other words, the first one would read 1/1-3 (remove repeated chapter number), and the second would read 2/24-6 (remove repeated chapter number and also the repeated 2 in page number). Question: is there an already existing system to do this? I guess no :-) Followup: I would be willing to help to code this if it doesn't exist (I have some experience with such systems) if someone can point me at the right bit of code to look at (things seem to be changing around texutils, newtexexec etc. so I don't want to start at the wrong place). Thanks... Duncan
Duncan Hothersall wrote:
Another question on registers (just getting into indexing!).
I have a book which numbers its pages by chapter, and so page numbers are 1/1, 1/2 ... for the pages of chapter 1, and then 2/1, 2/2 ... for the pages of chapter 2.
I have page ranges in my index, such as 1/1-1/3, or 2/24-2/26.
I would like these ranges to be elided - in other words, the first one would read 1/1-3 (remove repeated chapter number), and the second would read 2/24-6 (remove repeated chapter number and also the repeated 2 in page number).
Question: is there an already existing system to do this? I guess no :-)
And I add one more related question: Is it possible to mix \start...\stopregister with just \register? According to this minimal example not. If there is not some secret for me, can it be extended? Please, focus on Duncan: ---------------------------------------------- \defineregister[Name][Names] \setupregister[Name][pagestyle=\it] \setupregister[Name][bf][pagestyle=\bf] \starttext Names: \Name[bf::]{Hans} \Name{Taco} \startregister[Name][bf::]{Duncan} \page[yes] \Name{Hans} \stopregister[Name][bf::]{Duncan} \page[yes] \Name{Duncan} \placeregister[Name] \stoptext ---------------------------------------------- Thanks vit
Followup: I would be willing to help to code this if it doesn't exist (I have some experience with such systems) if someone can point me at the right bit of code to look at (things seem to be changing around texutils, newtexexec etc. so I don't want to start at the wrong place).
Thanks...
Duncan _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- ======================================================= Ing. Vít Zýka, Ph.D. TYPOkvítek database publishing databazove publikovani data maintaining and typesetting in typographic quality priprava dat a jejich sazba v typograficke kvalite tel.: (+420) 777 198 189 www: http://typokvitek.com =======================================================
participants (2)
-
Duncan Hothersall
-
Vit Zyka