Thank you very much for your example -- it really helps a lot!

That’s one smart trick for the endnotes. It will do fine for my current project, but obviously it will not work for footnotes directly on the pages.
I had somehow hoped that there would be something like „if within some environment/command" to the processors. With this also the formating of the items within the captions could be done automatically.

A real problem though is that adding
\setupregister [index] [compress=yes]
will wrongly compress e.g. "aaa 1, 2, 1n“ to "aaa 1–1n“. I’ll need to use compressed ranges and would be happy with a result, where formatted numbers a subsumed under the regular ones.
You don’t happen to know how to make this work correctly, do you?

Best,
Florian.



On 2017-04-26 09:18, Florian Grammel wrote:
Back in april 2012 Robert Blackstone asked some questions about indexing
http://www.mail-archive.com/ntg-context@ntg.nl/msg63134.html
i.a.:

For a book in the area of musicology I would like to make one register with 
entries of different kinds, distinguishable by their appearance in the  
register (or index or whatever).
The index entries will mostly be authors, including composers, musical terms 
and musical compositions. The titles of the compositions and the foreign words 
are set in italic characters throughout in the text of the book.
What I would like is to be able to distinguish all entries according to whether 
they are treated in the text, are shown in a musical example, or are mentioned 
only in a foot- or endnote.

In many books page numbers indicating illustrations are set in italics. 
Pagenumbers indicating foot- or endnotes often have a suffix "n".

His other question were resolved, but this one remained unanswered, apart from that two other users also wanted to do exactly the same thing.

I would like to do something very similar and was wondering: Has this been addressed/solved since then?


Perhaps the following can help. It has separate user page numbers for the main matter and back matter, with a suffixed ‘n’ for the items indexed from backmatter pages, but no suffix on the backmatter page numbers. The index entries for figures are rubricated and have a leading ‘f’.

\defineprocessor [backpart] [style=slanted,right=n]
\defineprocessor [Figure] [style=\tf,color=red,left=f]
\defineconversionset [backpart:pagenumber][][backpart->o]
\setupuserpagenumber[way=byblock]
\setuppagenumbering [location=none]
\setupheadertexts[{\convertedcounter[userpage][numberconversionset=number]}]
\setupnote[footnote][location=none]
\useMPlibrary[dum]
\starttext
\startbodymatter
\startchapter[title=A chapter]
  \index{aaa}This is in the main body.\footnote{\index{bbb}This is a footnote.}
\stopchapter
\startchapter[title={Another chapter}]
  \index{aaa}This is in the main body.\footnote{\index{bbb}This is a footnote.}
  \startplacefigure[location=default,
      title={Body illustration\index[Figure->]{ccc}}]
    \externalfigure[dummy][]
  \stopplacefigure
\stopchapter
\stopbodymatter
\page
\startbackmatter
\startchapter[title=An appendix]
  This is in the backmatter.\index{aaa}\footnote{\index{bbb}This is a footnote.}
  \startplacefigure[location=default,
      title={Appendix illustration\index[Figure->]{ddd}}]
    \externalfigure[dummy][]
  \stopplacefigure
\stopchapter
\startchapter[title=Notes]
  \placenotes[footnote]
\stopchapter
\startchapter[title=Index]
  \placeregister[index]
\stopchapter
\stopbackmatter
\stoptext

--
Rik