From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114211 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joel via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: How to create an index that refers to multiple other books? Date: Wed, 19 Jan 2022 02:17:55 +0000 (UTC) Message-ID: <224865198.941964.1642558675055@mail.yahoo.com> References: <83836089.771099.1642511796159.ref@mail.yahoo.com> <83836089.771099.1642511796159@mail.yahoo.com> <397011194.769157.1642512479502@mail.yahoo.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3220189811554461370==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5477"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joel To: Henning Hraban Ramm via ntg-context Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 19 03:18:41 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 1nA0YZ-0001G3-GE for gctc-ntg-context-518@m.gmane-mx.org; Wed, 19 Jan 2022 03:18:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id ED672283A5E; Wed, 19 Jan 2022 03:18:08 +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 2TqifiRhoFfU; Wed, 19 Jan 2022 03:18:07 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9AEDF282D91; Wed, 19 Jan 2022 03:18:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A6508282D91 for ; Wed, 19 Jan 2022 03:18:05 +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 MfJbXIFWbFfz for ; Wed, 19 Jan 2022 03:18:03 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=74.6.128.84; helo=sonic312-22.consmr.mail.bf2.yahoo.com; envelope-from=uaru99@yahoo.com; receiver= Original-Received: from sonic312-22.consmr.mail.bf2.yahoo.com (sonic312-22.consmr.mail.bf2.yahoo.com [74.6.128.84]) (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 861CA280210 for ; Wed, 19 Jan 2022 03:18:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1642558679; bh=T84zaGz4oEUL448KF183SUyZGrEgNHaiYc4LweBGA8E=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject:Reply-To; b=PtpxRSgnpqnU2mCIvRaLA0/dud4CWJ6aJyrMgxIthM8SnzlOkR3XcQGvPblKRv9lezdez6LbioV78mg2RR6gIMpCQCvl85NftmhI6XTkH5zkfSC9RpyLUnu1PWrf9esxDXJ33UqDeOyYdIwZNsHKfj8yP5psPpjY1KKtCRazPLP+KF9RaIc0JV0YDxbkvkPC+iL68JAh+XY5M/gxOrBUMEq/FprZ7de2R4mkGFzafwS1q3SFK/7pZKW9ntPssYnsmgrqLIZ3nJyTaF5/3YY+fyf7mTDSxYfNYZ0dvGuyHmowN/obYOo0AffW/10oLQWobkd8Eh8ZcIz64gd/jJO6sA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1642558679; bh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lm_u8HBv_MrA8zMLGjuE QEJihyP7PoHaI7wy0L_8SURiD5HpUJu5PoduKrPw6EtwWZHajgpBL5X_815Jcv7z2a.bq2Ouwz73 dLxEecudOLDFkp6SMt0vAHlBsVAQJLN21JdX9nHzKfG45b16k7tEG.dwGoa8Q1AF6W8ZQlvT0iUO W1eS63soMCjqy3XZpVwIpK6BnDpRyg3_zice7EfwiM X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.bf2.yahoo.com with HTTP; Wed, 19 Jan 2022 02:17:59 +0000 In-Reply-To: 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:114211 Archived-At: --===============3220189811554461370== Content-Type: multipart/alternative; boundary="----=_Part_941963_1068013257.1642558675053" ------=_Part_941963_1068013257.1642558675053 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I tried adding 'pageprefixsegments' to setupregister, but cannot find any = value that adds anything, ex. pageprefixsegments=3D{WB1} pageprefixsegments=3Dpart:number How does it work? I'd be fine if the index listed pages like "WB1 3" meanin= g "Workbook 1, page 3", it isn't ideal but is better than not having the in= dex showing anything. --Joel On Tuesday, January 18, 2022, 07:41:15 AM MST, Henning Hraban Ramm via = ntg-context wrote: =20 =20 Am 18.01.22 um 14:27 schrieb Joel via ntg-context: > One possible solution I see, since the textbooks and workbooks share the= =20 > same macros, formatting, fonts, etc. is to just render them as a single= =20 > file, resetting the page number at the start of each new book, then=20 > later use pdfjam to split the files, but I'm not sure how the index=20 > could tell readers which of the five "page 5's" (for example) the index= =20 > is referring to. --Joel In this case, you could use \part per workbook and use=20 pageprefixsegments in \setupregister to add the part number in front of=20 the page number. Otherwise, I guess it would be possible to read the .tuc files of the=20 other products to create index entries. (Some Lua programming; shouldn=E2= =80=99t=20 bee too hard, but still way over my head.) Hraban ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net archive=C2=A0 : https://bitbucket.org/phg/context-mirror/commits/ wiki=C2=A0 =C2=A0 : http://contextgarden.net ___________________________________________________________________________= ________ =20 ------=_Part_941963_1068013257.1642558675053 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I tried adding 'pageprefixse= gments' to setupregister, but cannot find any value that adds anythin= g, ex.
pageprefixsegments=3D{WB1}
page=
prefixsegments=3Dpart:number

How does it = work? I'd be fine if the index listed pages like "WB1 3" meaning "Workbook = 1, page 3", it isn't ideal but is better than not having the index showing = anything.

--Joel

=

=20
=20
On Tuesday, January 18, 2022, 07:41:15 AM MST, Henning = Hraban Ramm via ntg-context <ntg-context@ntg.nl> wrote:


Am 18.01.22 um 14:27 schrieb Joel via= ntg-context:
> One possible solution I see, since the= textbooks and workbooks share the
> same macros, for= matting, fonts, etc. is to just render them as a single
= > file, resetting the page number at the start of each new book, then > later use pdfjam to split the files, but I'm not sure= how the index
> could tell readers which of the five= "page 5's" (for example) the index
> is referring to= . --Joel

In this case, you could use \= part per workbook and use
pageprefixsegments in \setupre= gister to add the part number in front of
the page numbe= r.

Otherwise, I guess it would be poss= ible to read the .tuc files of the
other products to cre= ate index entries. (Some Lua programming; shouldn=E2=80=99t
bee too hard, but still way over my head.)

Hraban

______________________________________________= _____________________________________
If your question is= of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl= / http://www.ntg.nl/mailman/listinfo/ntg= -context
webpage  : http://www.prag= ma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.or= g/phg/context-mirror/commits/
wiki    : http://contextgarden.net
________________= ___________________________________________________________________
------=_Part_941963_1068013257.1642558675053-- --===============3220189811554461370== 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== --===============3220189811554461370==--