From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114189 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joel via ntg-context Newsgroups: gmane.comp.tex.context Subject: How to manually adjust the sort order of items appearing in a custom index? Date: Mon, 17 Jan 2022 15:53:11 +0000 (UTC) Message-ID: <1764709421.567903.1642434791573@mail.yahoo.com> References: <1764709421.567903.1642434791573.ref@mail.yahoo.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3543565164360491740==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35206"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joel To: "ntg-context@ntg.nl" Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 17 16:53:46 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n9UKI-0008zX-4C for gctc-ntg-context-518@m.gmane-mx.org; Mon, 17 Jan 2022 16:53:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 955D7286924; Mon, 17 Jan 2022 16:53:20 +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 GlMGVpZ25D9F; Mon, 17 Jan 2022 16:53:19 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 73445280F96; Mon, 17 Jan 2022 16:53:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EFB01280F96 for ; Mon, 17 Jan 2022 16:53:17 +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 Kz-AOqSlRsG3 for ; Mon, 17 Jan 2022 16:53:17 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=74.6.134.123; helo=sonic315-13.consmr.mail.bf2.yahoo.com; envelope-from=uaru99@yahoo.com; receiver= Original-Received: from sonic315-13.consmr.mail.bf2.yahoo.com (sonic315-13.consmr.mail.bf2.yahoo.com [74.6.134.123]) (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 D945D280211 for ; Mon, 17 Jan 2022 16:53:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1642434795; bh=6pKSAQjPz7k0Rae9wR0Ot8eXp7CxZw3MzKiauOZkVo0=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=f4fiYkir+grsFqga+txKLfkGm8CEmuyIXSKeywM0khL/l+U+e/R0pg+VD0YUkD2FAiil7uIVnYjjpe+uK5ZeLx0YraN/MFC/7A0g3c3/IREl/4UypCXzDBL5YP6veO0ZsMUXoqKdXpyyQeV2vLaDR7v/UhX+sVB9+qvxGjPQVvI3LLgQtGmDBt3SDcp56z+tt2eDxs/TEWYYrmGqOyRw9m8KuvnrMRgVmpidw/jUqPDPD7uVEqGArK/oYhPQHnKPLOGtfNyjj32bm349pyMT5HpjkaO7+GzRZm7rUjMq2f5pNzyFoz8qmTuEq1aVPIXJJeZjaMQ5VkuBsiFMmZ+gBQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1642434795; bh=eCl0T1m705ykHLMlttdSuolGj8ed7zVimtP07ArJcf/=; h=X-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gZOPUqqbQoWzaM9Z1CmLbBcPrDjhJS5ku7qVKKZ_zRytXbCs2IoSdTq_A.CPFDoInK ubiZLEk9um_bbT51S7Qxeq4nrxfgGFQYSJ4Ydf2nH1JBj3IFZZm7PYM9UQ4ygka7CT.YH_NB1dP7 d9DRt61qWCQSW_XNm85cKed6r8E3Z_R3Cnvchr_HKv X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.bf2.yahoo.com with HTTP; Mon, 17 Jan 2022 15:53:15 +0000 X-Mailer: WebService/1.1.19594 YMailNorrin 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.io gmane.comp.tex.context:114189 Archived-At: --===============3543565164360491740== Content-Type: multipart/alternative; boundary="----=_Part_567902_1496105034.1642434791572" ------=_Part_567902_1496105034.1642434791572 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I created a custom index that displays a list of "Important Dates" appearin= g in my book. It lists the year, a short description of what happened, and = should show the page number. I'm running into two errors though: First, if the date is the same year, it is sorting alphabetically, example,= ,,, \dateis{1900s+1912}{Yet another event happened} \dateis{1900s+1912}{Another event happened} ...will print the wrong one first in the index.. 1912 - Another even happened 1912 - Yet another event happened. Is there a way to manually tell it to display one first? I don't want to ad= d visible month and day details, that would be even more confusing to the i= ndex as I have to print it in American order. Second, when it compiles it is not printing the page number, instead prints= "[Entry not flushed]". -- Joel Here is my minimum working example: \defineregister[listdates][compress=3Dyes] \setupregister[listdates][style=3Dsansbold, textstyle=3Dslanted, n=3D1, pag= enumber=3Dyes] \define[2]\dateis{% =C2=A0=C2=A0 =C2=A0\listdates{#1~\emdash ~#2}% }% \starttext \dateis{1900s+1911}{Some event happened} \dateis{1900s+1912}{Yet another event happened} \dateis{1900s+1912}{Another event happened} \startchapter[title=3DImportant Dates] =C2=A0=C2=A0 =C2=A0\placelistdates \stopchapter \stoptext ------=_Part_567902_1496105034.1642434791572 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I created a custom index that displays a = list of "Important Dates" appearing in my book. It lists the year, a short = description of what happened, and should show the page number.

I'm r= unning into two errors though:

First, if the date is the same year, = it is sorting alphabetically, example,,,,

\dateis{1900s+1912}{Yet an= other event happened}
\dateis{1900s+1912}{Another event happened}
...will print the wrong one first in the index..

1912 - Another eve= n happened
1912 - Yet another event happened.

Is there a way to manually tell it to display one first= ? I don't want to add visible month and day details, that would be even mor= e confusing to the index as I have to print it in American order.
=
Second, when it compiles it is not printing the page number, instead pr= ints "[Entry not flushed]".

-- Joel

Here is my minimum workin= g example:


\defineregister[listdates][compress=3Dyes]
\setupr= egister[listdates][style=3Dsansbold, textstyle=3Dslanted, n=3D1, pagenumber= =3Dyes]

\define[2]\dateis{%
    \listdates{#1~\emd= ash ~#2}%
}%

\starttext

\dateis{1900s+1911}{Some event hap= pened}
\dateis{1900s+1912}{Yet another event happened}
\dateis{1900s+= 1912}{Another event happened}

\startchapter[title=3DImportant Dates]=
    \placelistdates
\stopchapter

\stoptext
------=_Part_567902_1496105034.1642434791572-- --===============3543565164360491740== 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== --===============3543565164360491740==--