We are currently working on fixing cross-references as well as shared
register information between products in a ConTeXt project structure.
Much is possible, but not all is fully worked out.
My current use is a multi-volume book, sharing Tables of Contents
between the two volumes. As a teaser,
\placelist [part,chapter,section,subsection]
[criterium=product,reference=VolumeII]
will include the TOC of VolumeII in product VolumeI.
Once we have this figured-out, I will have to create a wiki page.
Alan
On Fri, 24 Feb 2023 05:43:01 +0000 (UTC)
Joel via ntg-context <[email protected]> wrote:
> 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=yes]
> \setupregister[learnedshort][style=sansbold, textstyle=slanted, n=2,
> pagenumber=yes, indicator=no] %
> \defineregister[learnedlong][compress=yes]
> \setupregister[learnedlong][style=sansbold, textstyle=slanted, n=2,
> pagenumber=yes, indicator=no] %
> \define[1]\learnedis{%
> \txt{} \getvalue{#1}
> \learnedshort{#1}
> \learnedlong{#1}
> }
> \define[1]\learned{%
> \learnedshort{#1}
> \learnedlong{\getvalue{#1}}
> }
>
> \starttext
>
> \learnedis{blah blah}
>
> \input knuth
>
> \learnedis{some more}
>
>
> \startchapter[title=Standards]
> \placelearnedshort
> \stopchapter
>
> \stoptext
>
>
> My question is, can I have references to the Workbook page numbers in
> the textbook? 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
--
Alan Braslau
816 West Mountain Avenue
Fort Collins, CO 80521 USA
mobile: (970) 237-0957
Conserve energy! ;-)
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________