> Am 05.05.2020 um 10:35 schrieb Hynek, Stefan <stefan.hy...@uni-goettingen.de>:
> Hello fellow ConTeXies, 
> since April 2019 it is possible to use \setupregister with
> compress=text which is a fine addition and has its use cases.
> Unfortunately, I am confronted with the demand to style the registers
> with 'f.' for a following single page and else with page ranges. Since
> the Definition of \registerpagerange is not well documented I don't
> know which parameter to check for the conditional statement when
> rewriting it. Could you please give me a hint? 

This doesn’t answer your question, but I found:

\setupregister[index][compress=yes] % 14, 15 becomes 14-15
\setupregister[index][compress=text] % 14, 15 becomes 14f.

To change the "f."/"ff." text, you’d use:


This is defined in tex/context/base/mkiv/lang-txt.lua
and addressed in context/base/mkiv/strc-reg.mkiv in the definition of 

\unexpanded\def\registerpagerange#1#2#3#4#5#6#7#8% #1:class #2:processor  
content, content todo: -- configurable


You should be able to combine the two "else" branches.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net

Reply via email to