Hi Massi, yes, that was a very good idea! I can detect if the element <indexentry> occurs within a footnote by testing \xmldoiftext {#1} {ancestor::footnote} and then apply a processor to these entries. That would be a good solution for the time being. Thanks and all best Thomas On 5/2/24 17:55, mf wrote:
I did something like that, with a processor that added a "n" after the occurrence page number.
Since you typeset XML, maybe you can detect that an index (register) reference happens inside a note from the DOM element you are typesetting.
Then you use a command like this:
\index[NoteProcessor->sortkey]{index term}
where NoteProcessor is defined like this:
\defineprocessor[NoteProcessor][right={\itx n}]
In this case I'm adding a smaller "n" to the right of the page number of the occurrence.
Adding the \high style is not difficult:
\defineprocessor[NoteProcessor][right=\high{n}]
but replacing a fixed "n" with the footnote number is quite challenging.
The second argument of \defineprocessor has a "command=\...##1" option that could be exploited, but I don't know exactly what gets passed to that custom command as ##1; maybe the page number of the occurrence.
In that case, I'd look for a way to store the association between that occurrence and the footnote number, and retrieve that in the custom command.
Massi
-- Prof. Dr. Thomas A. Schmitz Institut für Klassische und Romanische Philologie Universität Bonn Rabinstr. 8 53111 Bonn http://www.philologie.uni-bonn.de/de/personal/schmitz