[NTG-context] How to create an index that refers to multiple other books?

Joel uaru99 at yahoo.com
Wed Jan 19 03:17:55 CET 2022


 I tried adding 'pageprefixsegments' to setupregister, but cannot find any value that adds anything, ex. pageprefixsegments={WB1}
pageprefixsegments=part: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


    On Tuesday, January 18, 2022, 07:41:15 AM MST, Henning Hraban Ramm via ntg-context <ntg-context at 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, formatting, 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 \setupregister to add the part number in front of 
the page number.

Otherwise, I guess it would be possible to read the .tuc files of the 
other products to create index entries. (Some Lua programming; shouldn’t 
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 at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki    : http://contextgarden.net
___________________________________________________________________________________
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220119/58dabf4d/attachment.htm>


More information about the ntg-context mailing list