* Index range with page number suffix
@ 2020-09-24 6:05 Duncan Hothersall
0 siblings, 0 replies; only message in thread
From: Duncan Hothersall @ 2020-09-24 6:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 632 bytes --]
(Using mkiv.)
I have an index in which some entries need suffixes on the page numbers,
for which I have used processors.
For index ranges, I need the page number suffix only to appear on the end
page number, not the start page number.
The below MWE produces an index entry: sausage 1i-2i
What I need is: sausage 1-2i
Is this possible?
MWE
\defineprocessor[important][right={\it{i}}]
\starttext
\samplefile{knuth}
\startregister[index][sausage][important->sausage]{sausage}
\dorecurse{6}{\samplefile{knuth}}
\stopregister[index][sausage]{sausage}
\samplefile{knuth}
\page
\placeindex
\stoptext
Thanks in advance,
Duncan
[-- Attachment #1.2: Type: text/html, Size: 1255 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-09-24 6:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-24 6:05 Index range with page number suffix Duncan Hothersall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).