force index entries without page number

Hi, I’d like to have an (person) index entry like Ramm, Hraban passim i.e. without actual page number. How can I force that? I also need to be able to refer to it like \seeindex{Hraban}{Ramm, Hraban) Hraban

Il 03/09/20 10:17, Henning Hraban Ramm ha scritto:
Hi,
I’d like to have an (person) index entry like
Ramm, Hraban passim
i.e. without actual page number. How can I force that?
I also need to be able to refer to it like \seeindex{Hraban}{Ramm, Hraban)
\starttext \samplefile{ward}\index{Ward, Peter} \samplefile{sapolsky}\index{Sapolsky, Robert} \seeindex{Ramm, Hraban}{} \seeindex{Hraban}{Ramm, Hraban} \page \placeindex[check=yes] \page \placeindex[check=no] \stoptext Massi

This should be exactly what you asked for: \defineprocessor[passim][right=\quad{\it passim}] \starttext \samplefile{ward}\index{Ward, Peter} \samplefile{sapolsky}\index{Sapolsky, Robert} \seeindex{passim->Ramm, Hraban}{} \seeindex{Hraban}{Ramm, Hraban} \page \placeindex[check=yes] \page \placeindex[check=no] \stoptext Massi

Useful references I consulted to find a solution: https://www.mail-archive.com/ntg-context@ntg.nl/msg88118.html https://wiki.contextgarden.net/Registers#Processors Massi

Hi Massi, thank you!
Am 03.09.2020 um 11:09 schrieb mf
: This should be exactly what you asked for:
\defineprocessor[passim][right=\quad{\it passim}]
I didn’t think to use processors.
\seeindex{passim->Ramm, Hraban}{}
No, this results in "Ramm, Hraban passim see passim" And \index{passim->Ramm, Hraban} results in "Ramm, Hraban passim 1" I.e. I’m still looking for an index entry without "see" or page number.
\placeindex[check=no]
This is essential for references to not (exactly) existing entries, I forgot the option existed. Hraban

Il 03/09/20 11:38, Henning Hraban Ramm ha scritto:
Hi Massi, thank you!
Am 03.09.2020 um 11:09 schrieb mf
: This should be exactly what you asked for:
\defineprocessor[passim][right=\quad{\it passim}]
I didn’t think to use processors.
You need them to get the "passim"; if you include it in the name, then you should adapt also the \seeindex like this: \seeindex{Ramm, Hraban\quad{\it passim}}{} \seeindex{Hraban}{Ramm, Hraban\quad{\it passim}} (i did not test it, i don't know if it works, and anyway i don't like it because it's not clean)
\seeindex{passim->Ramm, Hraban}{}
No, this results in "Ramm, Hraban passim see passim"
Only with check=yes, otherwise it works right.
And \index{passim->Ramm, Hraban} results in "Ramm, Hraban passim 1"
No, see attachment page 2.
I.e. I’m still looking for an index entry without "see" or page number.
\placeindex[check=no]
This is essential for references to not (exactly) existing entries, I forgot the option existed.
Use check=yes Massi

Am 03.09.2020 um 13:32 schrieb mf
: Use check=yes
But I need check=no, because my author has several entries like Miller, Carolyne, born Princess of Sayn-Wittgenstein 123–125 Sayn-Wittgenstein, Carolyne of see Miller, Carolyne i.e. the reference target often has a different wording from the entry, and thus \seeindex{Something}{} always inserts a "see". I don’t know how common these "passim" entries are in scientific works; maybe I could use Mainperson firstpage–lastpage instead to avoid the major hassle of tricking the index mechanisms. Hraban

Il 04/09/20 11:01, Henning Hraban Ramm ha scritto:
Am 03.09.2020 um 13:32 schrieb mf
: Use check=yes
But I need check=no, because my author has several entries like
Miller, Carolyne, born Princess of Sayn-Wittgenstein 123–125
Sayn-Wittgenstein, Carolyne of see Miller, Carolyne
i.e. the reference target often has a different wording from the entry, and thus \seeindex{Something}{} always inserts a "see".
Now I understand. Since I'm working with XML, I'm using registers in an even stricter way: the text I'm indexing is actually the ID of a person in a database. Something like this: <person-ref idref="v18in231">Carolyne</person-ref> in the main text results in a \index[miller_carolyne]{v18in231} In another place of the XML there's a record like this: <person id="v18in231" sort-key="miller_carolyne">Miller, Carolyne ... </person> The deeptextcommand parameter of \setupregister is set to a macro that takes the ID and gives back the text of the person. Maybe in the database there's also another record like this: <see-person id="v18in242" idref="v18in231" sort-key="sayn_wittgenstein_carolyne">Sayn-Wittgenstein, Carolyne <see>Miller, Carolyne</see><see-person> that results in a \seeindex[sayn_wittgenstein_carolyne]{Sayn-Wittgenstein, Carolyne}{Miller, Carolyne}
I don’t know how common these "passim" entries are in scientific works; maybe I could use
Mainperson firstpage–lastpage
instead to avoid the major hassle of tricking the index mechanisms.
in that case \startindex...\stopindex or \startregister...\stopregister could be your friends. Massi

Henning Hraban Ramm schrieb am 03.09.2020 um 10:17:
Hi,
I’d like to have an (person) index entry like
Ramm, Hraban passim
i.e. without actual page number. How can I force that?
I also need to be able to refer to it like \seeindex{Hraban}{Ramm, Hraban)
You can use this when the entry appears only once which replaces the page number with "passim". \define[1]\Passim {passim} \defineprocessor [passim] [command=\Passim] \starttext xxx\index{First} yyy\index[passim->]{Second} zzz\seeindex{Third}{Second} \placeindex \stoptext Wolfgang

Am 04.09.2020 um 11:59 schrieb Wolfgang Schuster
: Henning Hraban Ramm schrieb am 03.09.2020 um 10:17:
Hi, I’d like to have an (person) index entry like Ramm, Hraban passim i.e. without actual page number. How can I force that? I also need to be able to refer to it like \seeindex{Hraban}{Ramm, Hraban)
You can use this when the entry appears only once which replaces the page number with "passim".
\define[1]\Passim {passim}
\defineprocessor [passim] [command=\Passim]
\starttext
xxx\index{First}
yyy\index[passim->]{Second}
zzz\seeindex{Third}{Second}
\placeindex
\stoptext
Hi Wolfgang, forgot to answer: This solution works for me, thank you! Hraban
participants (3)
-
Henning Hraban Ramm
-
mf
-
Wolfgang Schuster