From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105461 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: How to sort list of sections? Date: Fri, 8 Nov 2019 13:44:07 -0500 Message-ID: References: <20191107132233.5240@Huxley> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1889251938892819378==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="137744"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Firefox/60.0 Thunderbird/60.9.1 To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 08 19:44:34 2019 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 esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iT9FJ-000Zia-Oz for gctc-ntg-context-518@m.gmane.org; Fri, 08 Nov 2019 19:44:33 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B2C07162725; Fri, 8 Nov 2019 19:44:11 +0100 (CET) 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 TjRYSzqEY0LU; Fri, 8 Nov 2019 19:44:10 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D3426162CBB; Fri, 8 Nov 2019 19:44:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D6A48162CB9 for ; Fri, 8 Nov 2019 19:44:09 +0100 (CET) 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 HMbneG7MoXjE for ; Fri, 8 Nov 2019 19:44:09 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=166.84.1.89; helo=mailbackend.panix.com; envelope-from=context@rik.users.panix.com; receiver= Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 31AFE162725 for ; Fri, 8 Nov 2019 19:44:08 +0100 (CET) Original-Received: from [192.168.201.21] (cpe-72-228-11-252.nycap.res.rr.com [72.228.11.252]) by mailbackend.panix.com (Postfix) with ESMTPSA id 478q1M5QGjzk0c for ; Fri, 8 Nov 2019 13:44:07 -0500 (EST) In-Reply-To: <20191107132233.5240@Huxley> Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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:105461 Archived-At: This is a multi-part message in MIME format. --===============1889251938892819378== Content-Type: multipart/alternative; boundary="------------0D80009E15F6D3540606F4B1" Content-Language: en-US This is a multi-part message in MIME format. --------------0D80009E15F6D3540606F4B1 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 11/7/2019 16:22, jdh wrote: > I get no difference using criterium=previous versus criterium=local. > Try this extended example to see the difference:  \setuphead[section][number=no]  \starttext  \startchapter[title=foo]       \placelist[section][criterium=local,order=title]       \startsection[title={Beta}]  \input sapolsky \stopsection       \startsection[title={Alpha}] \input sapolsky \stopsection  \stopchapter  \startchapter[title=bar]       \placelist[section][criterium=local,order=title]       \startsection[title={Alpha}] \input sapolsky \stopsection       \startsection[title={Delta}] \input sapolsky \stopsection  \stopchapter  \startchapter[title=indices]   First local:       \placelist[section][criterium=local,order=title]   Now previous:       \placelist[section][criterium=previous,order=title]  \stopchapter  \stoptext -- Rik --------------0D80009E15F6D3540606F4B1 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 11/7/2019 16:22, jdh wrote:
I get no difference using criterium=previous   versus   criterium=local.

Try this extended example to see the difference:

 \setuphead[section][number=no]
 \starttext
 \startchapter[title=foo]
      \placelist[section][criterium=local,order=title]
      \startsection[title={Beta}]  \input sapolsky \stopsection
      \startsection[title={Alpha}] \input sapolsky \stopsection
 \stopchapter
 \startchapter[title=bar]
      \placelist[section][criterium=local,order=title]
      \startsection[title={Alpha}] \input sapolsky \stopsection
      \startsection[title={Delta}] \input sapolsky \stopsection
 \stopchapter
 \startchapter[title=indices]
  First local:
      \placelist[section][criterium=local,order=title]
  Now previous:
      \placelist[section][criterium=previous,order=title]
 \stopchapter
 \stoptext

--
Rik

--------------0D80009E15F6D3540606F4B1-- --===============1889251938892819378== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============1889251938892819378==--