second-level seeindex entry nested too deeply
![](https://secure.gravatar.com/avatar/04cfbd1c38bcc2b54ab30e598516cfbc.jpg?s=120&d=mm&r=g)
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. (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
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/04cfbd1c38bcc2b54ab30e598516cfbc.jpg?s=120&d=mm&r=g)
Hans Hagen
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
That fixed the original test file. But the problem resurfaced upon adding one more level of nesting (the "more nesting..." line). Here's the revised minimal example. \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 \setupregister[index][n=1] \starttext hello \index{area}area and \index{area+ellipse}area of an ellipse more nesting \index{area+ellipse+today}area of an ellipse today \seeindex{area+United Kingdom}{United Kingdom, area} \blank[3*big] \placeindex[criterium=all] \stoptext -Sanjoy
participants (2)
-
Hans Hagen
-
Sanjoy Mahajan