On 6/22/2014 10:30 PM, Sanjoy Mahajan wrote:
I think the following minimal example is giving an incorrect index. As
ascii, the index comes out as
a
area 1
ellipse 1
see United Kingdom, area
whereas the "see United Kingdom, area" should be indented the same
as the ellipse second-level entry. It comes out okay if I delete the
\index{area+ellipse} entry.
can you play with:
\unprotect
\unexpanded\def\startregisterseewords
{\par % \ifhmode\crlf\fi
\begingroup
\setfalse\c_strc_registers_page_done
\dostarttagged\t!registerpage\empty
\useregisterstyleandcolor\c!pagestyle\c!pagecolor}
\unexpanded\def\stopregisterseewords
{\dostoptagged
\endgroup}
\protect
(P.S. What's the setupregister key that puts the "see ..." entry in
italic? I seem to have turned it off in my environment file somewhere.
Oh, it's 'pagestyle', but then how can one separately set the style of
the pagenumbers from the style of the "see ..."?)
That aside, here's the example (run with 2014.05.17 MkIV):
\setupregister[index][n=1]
\starttext
hello \index{area}area and \index{area+ellipse}area of an ellipse
\seeindex{area+United Kingdom}{United Kingdom, area}
\blank[3*big]
\placeindex[criterium=all]
\stoptext
search for 'processors'
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________