From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/98268 Path: news.gmane.org!.POSTED!not-for-mail From: Florian Grammel Newsgroups: gmane.comp.tex.context Subject: Re: compressing register ranges Date: Fri, 16 Jun 2017 23:06:00 +0200 Message-ID: <438C23C3-4F39-4CC6-84A3-9CEC200B97ED@gmail.com> References: <0C408FAB-C8BC-452F-8DC3-D2A7DA337996@gmail.com> <013B24C2-C880-4754-B882-541C89FBD61C@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: multipart/mixed; boundary="===============6178495876703210605==" X-Trace: blaine.gmane.org 1497647184 7300 195.159.176.226 (16 Jun 2017 21:06:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Jun 2017 21:06:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 16 23:06:18 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLyRd-0001bq-Nu for gctc-ntg-context-518@m.gmane.org; Fri, 16 Jun 2017 23:06:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0CC261040CA; Fri, 16 Jun 2017 23:06:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6fLCdgO1yRbR; Fri, 16 Jun 2017 23:06:15 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 645541040C7; Fri, 16 Jun 2017 23:06:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 726641040C7 for ; Fri, 16 Jun 2017 23:06:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X-TGuWUAEJNo for ; Fri, 16 Jun 2017 23:06:13 +0200 (CEST) Original-Received: from mail-lf0-f46.google.com (mail-lf0-f46.google.com [209.85.215.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id AD03D1040C6 for ; Fri, 16 Jun 2017 23:06:03 +0200 (CEST) Original-Received: by mail-lf0-f46.google.com with SMTP id m77so31109346lfe.0 for ; Fri, 16 Jun 2017 14:06:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=8Tqln0rTHo4I8wJ+wa2fBSTWsQw4ktDO+iajhZ9+p9I=; b=MipgcB4GHwpMgKMHfApOXhfiQPindFlqERvHh0qWFsf922iEoT6uvGHTHq56RDyyM8 HRSD7MXs3JOnFKAGgccM1JE0X8Hc6+1p2RzRldDYQt8kgg4cY9gJhFOqQRpXUV+2VOhZ NtQET19JOkeUVkBF4dOUmEiAG1N1YgsyjLVMPoBzEV8OMgDIpCpsLKaGnFZB3OYFz80z dnBql0OtKEawtYeZMYVQ1UbOw/bf2uIjRGsPPEZYIc9S1qCmIuspgU+3mIaPCCaOWhm+ Xa1olcIuGhvXMYMPLnOF7mFnmHJSe8NTULLJHxHGWrpXqyuRQpBhw9pQeMK4qheEp+AF 1krw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=8Tqln0rTHo4I8wJ+wa2fBSTWsQw4ktDO+iajhZ9+p9I=; b=cKWRsxImlBiOefbXXsHMdHgwJowcbq2Jw0/40w64vy9jE/q1uLqazg/6yo9qpemMTi EDJyMNXKrUcsjBClBC5tuew50aPn//qrYt0WxUtr+DmM9+mgdihOgVdkRqIH1Tjxp4YJ nK8LtlCf8Gj2W5MH4BVALpFyiKjUSIpgAw3K92PggR2GU1t30H37pk0Ia4znMDDguxQc Ze+C/Ob/NGTSHeVXaxO4CsSfvCK+Hkw5vU1Kq/nroVkStSSfekvt8tkzkH0sql7+LR9S +d3S2PYpVuZKO852abPBagYT1XMrWWcGumjJ2mlPRLeKDsqNa8BCVybw9A65LggP99pJ 7yOg== X-Gm-Message-State: AKS2vOzQGwn2qX2oyTUvNlDZPJiMrTPxO72JPV2fNp6FImb+SYASb/Rv 8fKr++SypDvxmb5y X-Received: by 10.25.145.25 with SMTP id t25mr4224986lfd.139.1497647162376; Fri, 16 Jun 2017 14:06:02 -0700 (PDT) Original-Received: from [10.24.5.239] (n9pl6h.static.netgroup.dk. [83.221.156.121]) by smtp.gmail.com with ESMTPSA id i13sm673094ljb.55.2017.06.16.14.06.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Jun 2017 14:06:01 -0700 (PDT) In-Reply-To: <013B24C2-C880-4754-B882-541C89FBD61C@fiee.net> X-Mailer: Apple Mail (2.3273) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:98268 Archived-At: --===============6178495876703210605== Content-Type: multipart/alternative; boundary="Apple-Mail=_22B068EE-1746-4507-A8ED-A9D0C18FDE0D" --Apple-Mail=_22B068EE-1746-4507-A8ED-A9D0C18FDE0D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii >> Using [compress=3Dall] for registers yields somewhat puzzling results = (1.0.4 (TeX Live 2017)). >> I would expect the register of the following code to become one = single range "1--7", though context produces "1--2, 3--7". >> Is this the expected behaviour? >> And if so: is there another switch to get the ranges to be collapsed = completely? >>=20 >> Also: There wouldn't be a shorthand to define explicit ranges? LaTeX = has \index{Demorange|(} to \index{Demorange|)} which is actually very = convenient. >=20 > ConTeXt has \startregister, see = http://wiki.contextgarden.net/Registers#Collapse_Page_Numbers I shoud probably have been more specific: While \startregister as such = works for me, it=20 1) isn't collapsed as expected together with ordinary single = register-entries (my main problem, cf mwe below) 2) is a bit cumbersome to use as it requires the user to keep = track of keys, as explained in your link from contextgarden. Best, Florian. >=20 > \defineregister [demo] [demoes] > \starttext >=20 > 1 > \demo{Demorange} >=20 > \page[yes] >=20 > 2 > \demo{Demorange} >=20 > \page[yes] >=20 > 3 > \startregister[demo][demorange]{Demorange} >=20 > \page[yes] >=20 > 4 > \demo{Demorange}=20 >=20 > \page[yes] >=20 > 5 >=20 > \page[yes] >=20 > 6 > \stopregister[demo][demorange] >=20 > \page[yes] >=20 > 7 > \demo{Demorange}=20 >=20 > \page[yes] >=20 > \placeregister [demo] [compress=3Dall] >=20 > \stoptext ____________________________________________ Florian Grammel Copenhagen, Denmark --Apple-Mail=_22B068EE-1746-4507-A8ED-A9D0C18FDE0D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Using = [compress=3Dall] for registers yields somewhat puzzling results (1.0.4 = (TeX Live 2017)).
I would expect the register of the = following code to become one single range "1--7", though context = produces "1--2, 3--7".
Is this the expected behaviour?
And if so: is there another switch to get the ranges to be = collapsed completely?

Also: There wouldn't = be a shorthand to define explicit ranges? LaTeX has \index{Demorange|(} = to \index{Demorange|)} which is actually very convenient.

ConTeXt has \startregister, see = http://wiki.contextgarden.net/Registers#Collapse_Page_Numbers






= --Apple-Mail=_22B068EE-1746-4507-A8ED-A9D0C18FDE0D-- --===============6178495876703210605== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============6178495876703210605==--