From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id EC73620101 for ; Tue, 26 Mar 2024 22:37:11 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 7A1C5483D92 for ; Tue, 26 Mar 2024 22:35:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=gmail.com Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sNf2rnxtS4g6 for ; Tue, 26 Mar 2024 22:35:57 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id EB07D483D95 for ; Tue, 26 Mar 2024 22:35:04 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 1B0DC483BB9 for ; Tue, 26 Mar 2024 22:34:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id birsnnprJG1o for ; Tue, 26 Mar 2024 22:34:38 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.45; helo=mail-wr1-f45.google.com; envelope-from=bowenalan03@gmail.com; receiver= Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id A872F483BB7 for ; Tue, 26 Mar 2024 22:34:38 +0100 (CET) Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-33ec7e38b84so4247798f8f.1 for ; Tue, 26 Mar 2024 14:34:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711488878; x=1712093678; darn=ntg.nl; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=SMzmmZnp+IFQBP9uWMV+BGAEM0n0m4na2yMcSUC0WhI=; b=gbXqMX6NE7D9lChmOF5ABeMJRAAmLPJvfFU8gonQ2iu7Z2fRWl77ErkoIDDfYxYtiI Z2OTVoT+LMzKRvy1Ekq6y2UQS6HRFP9m1biWe26TT0bXdaQ9JBeg8oj/1kBSrm6L9jX4 +KGlDm3D2gp8JU19n4Lpfbn9sRl6mFjNsTdAZG5CS6aksubMeJWMAf7klWgzjlO/l7GQ k2R95V66R+0fXemLMKQm1E6nJkDbdoCJI/GZwxrPWs2gb/JMrEKF2fspApNZxAohRnj3 WheJijPA2LQWoNAddFOGEbfK35I4W3kKenQWAKvmNLaGurEnHCJ/Nj1yW9zsmlF/fa5N gJ3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711488878; x=1712093678; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=SMzmmZnp+IFQBP9uWMV+BGAEM0n0m4na2yMcSUC0WhI=; b=X0hHSrRzSqx0ElWpvjlDcofY87vzaOu4xof2VJHPMarKfB2R9TCj3n7WrhuhlVdgyx 0TmTWv6ZG3SDfVR2UMKKUGryxIQ5uggXSTl0bjNGTxguo7Lzh0FzlNqeK75fxKYqNrB0 vryVZutpinoZO802xf5FbwzoLHOU2ka2kXXCpyHGNo++yHcefUmWwzeKUpjnUZbWmfCc qoZyLJCPlO2r6vnhsUHf0cqnOUfyuOQ7qfUrj4wVuggph4gLQuNB7rpdHiYwkidRIn6+ p78PaHmoJp2SZsTRFGXyJyUy4fgfsOw6JBTrS4/2GE6CXSe3UxLvyLZJl+hpf1F8ZeDC 7JqA== X-Gm-Message-State: AOJu0YyKdpkT4utbkVyMgkfe2bZaZRDxMtUGJu4V4SEMcp2FCcsE5jnK HVlylck3fQmJ3ZTTy44D+2GTAiBlf2peoMdPscDf0gR+2ldQoAdD+acCghWmd24cfjxScSuCGU3 +iCJJ4m7cKGk4EfIdZ5UAW7UJEYV7zkLIQtM= X-Google-Smtp-Source: AGHT+IE+AeS3SNgmn3c5gpOOVCtsAhepJzCpnGZq+RzA9CpNhgJkgfGVXfkPQ15U2yhH0XC9/sbA0SegrAX0TLrRoXI= X-Received: by 2002:a5d:6da3:0:b0:33d:754c:70fc with SMTP id u3-20020a5d6da3000000b0033d754c70fcmr2182240wrs.14.1711488877736; Tue, 26 Mar 2024 14:34:37 -0700 (PDT) MIME-Version: 1.0 From: Alan Bowen Date: Tue, 26 Mar 2024 17:34:26 -0400 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: ZCOA452Q55LL5W7VMIDMAQ2ZVJJWJHXQ X-Message-ID-Hash: ZCOA452Q55LL5W7VMIDMAQ2ZVJJWJHXQ X-MailFrom: bowenalan03@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] start/end pages in ToC List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============7603677788500984840==" --===============7603677788500984840== Content-Type: multipart/alternative; boundary="000000000000983e3b0614970e58" --000000000000983e3b0614970e58 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Our journal is currently in the process of moving to continuous publication of items in a given volume as they are ready. This entails re-jigging the ToC so that it now includes the start and end page numbers of each item. So far, I have everything pretty much in the right place, but for the page numbers I am getting only =E2=80=9C??=E2=80=9D. I am not sure why this is h= appening and would be grateful if someone could tell me why or point me to documentation that explains the problem and how to solve it. Many thanks in advance. My minimalish working example: \definehead[SourceTitle][chapter] \setuphead[SourceTitle][page=3Dyes, footer=3D{ItemData}] \definehead[StudyTitle][chapter] \setuphead[StudyTitle][page=3Dyes, footer=3D{ItemData}] \definetext[ItemData][footer][ {\at[\Reference]=E2=80=93 \at[\namedstructureuservariable{}{authorInitials}endPage]} ] \setuplist[SourceTitle][ state=3Dstart, textcolor=3Dblack, alternative=3Dstartendpages, criterium=3Dall, headnumber=3Dno, interaction=3Dpage, numberalign=3Dflushright, before=3D{\blank[2.2ex, fixed]}, inbetween=3D\endgraf, ] \setuplist[StudyTitle][ state=3Dstart, textcolor=3Dblack, alternative=3Dstartendpages, criterium=3Dall, headnumber=3Dno, interaction=3Dall, numberalign=3Dflushright, before=3D{\blank[2.2ex, fixed]}, inbetween=3D\endgraf, ] \define\ToCEntry{% \structurelistuservariable{author}\crlf \structurelistuservariable{title}\hfill% \at[\structurelistuservariable{reference}]=E2=80=93% \at[\structurelistuservariable{authorInitials}endPage] } \definelistalternative[startendpages] [renderingsetup=3Dlist:startendpages] \startsetups[list:startendpages] {\ToCEntry} \vglue1pc \stopsetups \starttext {\tfa\bf Contents} \blank[line, fixed] \WORD{Sources} \blank[halfline, fixed] \placelist[SourceTitle][criterium=3Dall] \blank[line, fixed] \WORD{Studies} \blank[halfline, fixed] \placelist[StudyTitle][criterium=3Dall] \page[makeup] \setnumber[userpage][1] \def\Reference{RefSo01} \startSourceTitle[reference=3D{\Reference}, bookmark=3DSource01, title=3D{}][ title=3DSource01, author=3DAuthor01, authorInitials=3DABC, reference=3D{\Reference}, ] \input knuth \page \dorecurse{25}{\input ward\par} \reference[ABCendPage]{} \stopSourceTitle \page[makeup] \setnumber[userpage][1] \def\Reference{RefSo02} \startSourceTitle[reference=3D{\Reference}, bookmark=3DSource02, title=3D{}][ author=3DAuthor02, title=3DSource02, authorInitials=3DPQR, reference=3D{\Reference}, ] \input knuth \page \dorecurse{10}{\input ward\par} \reference[PQRendPage]{} \stopSourceTitle \page[makeup] \setnumber[userpage][1] \def\Reference{RefSt01} \startStudyTitle[reference=3D{\Reference}, bookmark=3DStudy01, title=3D{}][ author=3DAuthor03, title=3DStudy01, authorInitials=3DXYZ, reference=3D{\Reference}, ] \input knuth \blank[big] \page \dorecurse{15}{\input ward\par} \reference[XYZendPage]{} \stopStudyTitle \page[makeup] \stoptext Alan --000000000000983e3b0614970e58 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Our journal is currently=C2=A0in the process of moving to = continuous publication of items in a given volume as they are ready. This e= ntails re-jigging the ToC so that it now includes the start and end page nu= mbers=C2=A0of each=C2=A0item. So far, I have everything=C2=A0pretty much in= the right place, but for the page numbers I am getting only =E2=80=9C??=E2= =80=9D. I am not sure why this is happening and would be grateful if someon= e could tell me why or point me to documentation=C2=A0that explains the pro= blem and how to solve it.

Many thanks in advance.
<= div class=3D"gmail_default" style=3D"font-family:trebuchet ms,sans-serif"><= br>
My minimalish=C2=A0working example:

\definehead[Sou= rceTitle][chapter]
\setuphead[SourceTitle][page=3Dyes,
footer=3D{= ItemData}]

\definehead[StudyTitle][chapter]
\setuphead[StudyTitle= ][page=3Dyes,
footer=3D{ItemData}]

\definetext[ItemData][foot= er][
{\at[\Reference]=E2=80=93
\at[\namedstructureuservariable{}{au= thorInitials}endPage]}
]
\setuplist[SourceTitle][
state=3Ds= tart,
textcolor=3Dblack,
alternative=3Dstartendpages,
criter= ium=3Dall,
headnumber=3Dno,
interaction=3Dpage,
numberalign= =3Dflushright,
before=3D{\blank[2.2ex, fixed]},
inbetween=3D\endg= raf,
]

\setuplist[StudyTitle][
state=3Dstart,
textcol= or=3Dblack,
alternative=3Dstartendpages,
criterium=3Dall,
he= adnumber=3Dno,
interaction=3Dall,
numberalign=3Dflushright,
= before=3D{\blank[2.2ex, fixed]},
inbetween=3D\endgraf,
]

\= define\ToCEntry{%
\structurelistuservariable{author}\crlf
\struct= urelistuservariable{title}\hfill%
\at[\structurelistuservariable{refe= rence}]=E2=80=93%
\at[\structurelistuservariable{authorInitials}endPage= ]
}

\definelistalternative[startendpages]
[renderingset= up=3Dlist:startendpages]

\startsetups[list:startendpages]
{\T= oCEntry}
\vglue1pc
\stopsetups

\starttext

{\tfa\bf Cont= ents}

\blank[line, fixed]
\WORD{Sources}
\blank[halfline, fixe= d]
\placelist[SourceTitle][criterium=3Dall]

\blank[line, fixed]\WORD{Studies}
\blank[halfline, fixed]
\placelist[StudyTitle][crite= rium=3Dall]

\page[makeup]

\setnumber[userpage][1]
\def\Ref= erence{RefSo01}
\startSourceTitle[reference=3D{\Reference},
bookmar= k=3DSource01,
title=3D{}][
title=3DSource01,
author=3DAuthor= 01,
authorInitials=3DABC,
reference=3D{\Reference},
]
\in= put knuth
\page
\dorecurse{25}{\input ward\par}
\reference[ABCendP= age]{}
\stopSourceTitle
\page[makeup]

\setnumber[userpage][1]<= br>\def\Reference{RefSo02}
\startSourceTitle[reference=3D{\Reference}, bookmark=3DSource02,
title=3D{}][
author=3DAuthor02,
tit= le=3DSource02,
authorInitials=3DPQR,
reference=3D{\Reference}, ]

\input knuth
\page
\dorecurse{10}{\input ward\par}
\re= ference[PQRendPage]{}
\stopSourceTitle
\page[makeup]

\setnumbe= r[userpage][1]
\def\Reference{RefSt01}
\startStudyTitle[reference=3D{= \Reference},
bookmark=3DStudy01,
title=3D{}][
author=3DAutho= r03,
title=3DStudy01,
authorInitials=3DXYZ,
reference=3D{\Re= ference},
]
\input knuth
\blank[big]
\page
\dorecurse{15}{= \input ward\par}
\reference[XYZendPage]{}
\stopStudyTitle
\page[ma= keup]
\stoptext

Alan

--000000000000983e3b0614970e58-- --===============7603677788500984840== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ --===============7603677788500984840==--