From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/117082 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joel via ntg-context Newsgroups: gmane.comp.tex.context Subject: How to add data from another PDF in index? Date: Fri, 24 Feb 2023 05:43:01 +0000 (UTC) Message-ID: <2021680421.176841.1677217381054@mail.yahoo.com> References: <2021680421.176841.1677217381054.ref@mail.yahoo.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5803215175527293817==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38646"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joel To: Mailing List for ConTeXt Users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 24 06:46:02 2023 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 1pVQu9-0009q3-Kr for gctc-ntg-context-518@m.gmane-mx.org; Fri, 24 Feb 2023 06:46:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B6CF13804AD; Fri, 24 Feb 2023 06:43: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 0gbe2EPTfUxH; Fri, 24 Feb 2023 06:43:08 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5E2B9380639; Fri, 24 Feb 2023 06:43:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B798E3804AD for ; Fri, 24 Feb 2023 06:43:06 +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 YYDdDSQAi1p8 for ; Fri, 24 Feb 2023 06:43:05 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=74.6.134.125; helo=sonic315-15.consmr.mail.bf2.yahoo.com; envelope-from=uaru99@yahoo.com; receiver= Original-Received: from sonic315-15.consmr.mail.bf2.yahoo.com (sonic315-15.consmr.mail.bf2.yahoo.com [74.6.134.125]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A55183800C4 for ; Fri, 24 Feb 2023 06:43:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677217384; bh=ayEg8To8QI/y293d/744TKLo5XCo235JpRY5+shbYF8=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=sj4mLmDfB5sF4uNesK++/1yDCRSQqRR89CzITa4+B/7+LsodExhc+1g3HvTYPSaiQ43+h7O7Y5hPjDAbNMNuf8xhMqOM45LFQPpUhFmptw2vw+czoVU/77mkWZAXqNeSHqajDPtLSSC/XNRslaWKY84KWt4QaE5UJ4IEigcjKllGtFVvwzDAB8ZJP6NfxAgVMS3nwahMMCWOPj3e3QQHW0dPCULEIUJUwurz4OTFicRaxmWgSTUk6cpHzHqih1SBTA+S2hANSpQk6m9OP7G7VPr93Vk17uM05S90VecD5bvLGUB2Zr0X/6fT8d5vViH9hhr6iW/XzsZY5H8wW1yYPw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677217384; bh=KB83+ltAHqmmlQ17InSOp8HzdYoGz4NIdJKH5y0NC88=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b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4cwZt6CvgmZJGch_avL..dlK lVkQf2PZcYIdMLYYhqBAZDHdjEgfUGJjECcY1PE9QK19wvIhfcu0fwqmqnmFfS9CRRnzX2.3taaG _rGJOYVdUslP7rKBzalZOhFGU0q6nAIxnPYuzrNASN X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.bf2.yahoo.com with HTTP; Fri, 24 Feb 2023 05:43:04 +0000 X-Mailer: WebService/1.1.21221 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:117082 Archived-At: --===============5803215175527293817== Content-Type: multipart/alternative; boundary="----=_Part_176840_1110768870.1677217381053" ------=_Part_176840_1110768870.1677217381053 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I am making a textbook and workbook set. I have this custom index using this code, in both the textbook and workbook= : % \defineregister[learnedshort][compress=3Dyes] \setupregister[learnedshort][style=3Dsansbold, textstyle=3Dslanted, n=3D2, = pagenumber=3Dyes, indicator=3Dno] % \defineregister[learnedlong][compress=3Dyes] \setupregister[learnedlong][style=3Dsansbold, textstyle=3Dslanted, n=3D2, p= agenumber=3Dyes, indicator=3Dno] % \define[1]\learnedis{% =C2=A0=C2=A0 =C2=A0\txt{} \getvalue{#1} =C2=A0=C2=A0 =C2=A0\learnedshort{#1} =C2=A0=C2=A0 =C2=A0\learnedlong{#1} } \define[1]\learned{% =C2=A0=C2=A0 =C2=A0\learnedshort{#1} =C2=A0=C2=A0 =C2=A0\learnedlong{\getvalue{#1}} } \starttext \learnedis{blah blah} \input knuth \learnedis{some more} =C2=A0=C2=A0 =C2=A0\startchapter[title=3DStandards] =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\placelearnedshort =C2=A0=C2=A0 =C2=A0\stopchapter =C2=A0=C2=A0 =C2=A0 \stoptext My question is, can I have references to the Workbook page numbers in the t= extbook? And visa-versa? For instance, the Textbook index currently looks like this: ------------- Standards blah blah 1 some more 2 -------------- With the data in the Workbook it might look like this: Standards blah blah 1, WB: 1, 3-8 some more 2, WB: 8-9 yet more WB: 10, 12 -------------- Is this possible to merge index information like this? --Joel ------=_Part_176840_1110768870.1677217381053 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I am making a textbook and workbook set.

I have this custom index using this code, in both the textbo= ok and workbook:

%
\defineregister[learnedshort][= compress=3Dyes]
\setupregister[learnedshort][style=3Dsansbold, textstyle= =3Dslanted, n=3D2, pagenumber=3Dyes, indicator=3Dno]
%
\defineregiste= r[learnedlong][compress=3Dyes]
\setupregister[learnedlong][style=3Dsansb= old, textstyle=3Dslanted, n=3D2, pagenumber=3Dyes, indicator=3Dno]
%
= \define[1]\learnedis{%
    \txt{} \getvalue{#1}
 =    \learnedshort{#1}
    \learnedlong{#1}
}<= br>\define[1]\learned{%
    \learnedshort{#1}
 &n= bsp;  \learnedlong{\getvalue{#1}}
}

\starttext

\learn= edis{blah blah}

\input knuth

\learnedis{some more}

    \startchapter[title=3DStandards]
    =     \placelearnedshort
    \stopchapter    
\stoptext


My question is, can I have references to the Work= book page numbers in the textbook? And visa-versa?

Fo= r instance, the Textbook index currently looks like this:

-------------

Standards

blah blah 1

some more 2
--------------

With the data in the Workbook it might look like this:

Standards

blah blah 1, WB: 1, 3-8

some more 2, WB: 8-9

yet more WB: 10, 12

--------------

Is this possi= ble to merge index information like this?

--Joel
------=_Part_176840_1110768870.1677217381053-- --===============5803215175527293817== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5803215175527293817==--