From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85218 Path: news.gmane.org!not-for-mail From: "honyk" Newsgroups: gmane.comp.tex.context Subject: Re: Index - ranges Date: Tue, 12 Nov 2013 22:14:58 +0100 Message-ID: <45540.6222878539$1384290910@news.gmane.org> References: <007801cedc04$43767660$ca636320$@tosovsky@email.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1384290900 20408 80.91.229.3 (12 Nov 2013 21:15:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Nov 2013 21:15:00 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 12 22:15:06 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VgLIg-0004UW-28 for gctc-ntg-context-518@m.gmane.org; Tue, 12 Nov 2013 22:15:06 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 36E18101E7; Tue, 12 Nov 2013 22:15:05 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Se5vKT-vod-K; Tue, 12 Nov 2013 22:15:02 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 209CE101F7; Tue, 12 Nov 2013 22:15:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 57B30101F7 for ; Tue, 12 Nov 2013 22:15:01 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Ot2Hgp0XYZ32 for ; Tue, 12 Nov 2013 22:14:59 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id A0C58101E7 for ; Tue, 12 Nov 2013 22:14:59 +0100 (CET) Original-Received: from fep12.mx.upcmail.net (fep12.mx.upcmail.net [62.179.121.32]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rACLEwX7032651 for ; Tue, 12 Nov 2013 22:14:59 +0100 Original-Received: from edge03.upcmail.net ([192.168.13.238]) by viefep12-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20131112211458.BPXA22403.viefep12-int.chello.at@edge03.upcmail.net> for ; Tue, 12 Nov 2013 22:14:58 +0100 Original-Received: from emk ([78.102.140.101]) by edge03.upcmail.net with edge id olEy1m00L2BTW0m03lEyhT; Tue, 12 Nov 2013 22:14:58 +0100 X-SourceIP: 78.102.140.101 In-Reply-To: <007801cedc04$43767660$ca636320$@tosovsky@email.cz> X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac7cBEDUlNgan24oS22bDAP2MuYbFwD5LQUA Content-Language: cs X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=62.179.121.32; country=AT; latitude=47.3333; longitude=13.3333; http://maps.google.com/maps?q=47.3333,13.3333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NKMJeWtI - 6392fe101cc6 - 20131112 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85218 Archived-At: 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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________