I have a document with thousands of index entries. Here’s a sample code:
\starttext
Some people lived in \index{cliff-dwelling}cliff-dwellings, while others lived in \index{lean-to}lean-tos.
\placeindex
\stoptext
This produces an index like this:
c
cliff-dwelling 1
l
lean-to 1
I’d like to create an index with much more sub-categories to find the same entries, for instance, a category of “dwellings”:
c
cliff-dwelling 1
d
dwellings
cliff-dwelling 1
lean-to 1
l
lean-to 1
As I’m aware, the way to code this is as follows:
\starttext
Some people lived in \index{cliff-dwelling}\index{dwellings+cliff-dwelling}cliff-dwellings, while others lived in \index{lean-to}\index{dwellings+lean-to}lean-tos.
\placeindex
\stoptext
--Joel