Rik Kabel schrieb am 28.09.2024 um 03:44:
Hello experts,

Is there a way to generate an entry without a page number in an register that has page numbers enabled? This would enabled /See also/ entries to be generated with something like

    
\setregisterentry[TopicIndex][keys:2=zzz,entries:1=punctuation,entries:2={{\em
    See also} marking}]%

I do see that there is an alternative key defined for the command, but no explanation of what the alternatives are and if any would help.

You have to set "ownnumber=yes" but I don't think the feature is supported at the moment (or I failed to set the correct values) but you can use the following method to get rid of the pagenumber.

%%%% begin example
\defineregister
  [TopicIndex]

\defineregister
  [SeeTopicIndex]
  [TopicIndex]
  [pagecommand=\gobbleoneargument]

\starttext

\samplefile{lorem}
\setregisterentry[TopicIndex][entries:1=punctuation]%
\samplefile{lorem}
\setregisterentry[SeeTopicIndex][entries:1=punctuation,entries:2={{\em See also} marking}]%
\samplefile{lorem}

\placeregister[TopicIndex,SeeTopicIndex][n=1]

\stoptext
%%%% end example

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to