On 2013-11-07 honyk wrote:
1) when a range for my subject index entry is specified and the text between doesn't overflow to the next page, even in this case the range of pages 1-1 is created. Is there any option to normalize it to a single page number?
\startregister[index][range_01]{primary} Dummy text. \stopregister[index][range_01]
... 3) when several single index entries are used on consecutive pages, the result 1,2,3,4,5 is produced. Is there any option to create a range from this?
(A) I've found a promising option compress=no|yes|all in an experimental test case located in the strc-reg.mkiv file. The corresponding lua code seems to be performing some cleanup of page ranges, but when I define it same way, there is no difference in my output (still 1-1): \startregister[index][range_01]{primary} Dummy text. \stopregister[index][range_01] \placeregister[index][compress=yes] Is it necessary to switch it on somehow? (B) I've also found a special syntax for collapsing pages in http://wiki.contextgarden.net/Registers [[Command/{{{1}}}|\{{{1}}}]] - but I have no idea how to appply it. I already use the 'command' parameter to switch the index group letter to upper case: \setupregister[index][n=2,command=\Word,style=normal] Can these commands be combined together somehow? Or is it obsolete in favor of (A)? Thanks, Jan
participants (1)
-
honyk