* second-level seeindex entry nested too deeply
@ 2014-06-22 20:30 Sanjoy Mahajan
2014-06-23 8:59 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Sanjoy Mahajan @ 2014-06-22 20:30 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: second-level seeindex entry nested too deeply
2014-06-22 20:30 second-level seeindex entry nested too deeply Sanjoy Mahajan
@ 2014-06-23 8:59 ` Hans Hagen
2014-06-23 10:01 ` Sanjoy Mahajan
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2014-06-23 8:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: second-level seeindex entry nested too deeply
2014-06-23 8:59 ` Hans Hagen
@ 2014-06-23 10:01 ` Sanjoy Mahajan
0 siblings, 0 replies; 3+ messages in thread
From: Sanjoy Mahajan @ 2014-06-23 10:01 UTC (permalink / raw)
To: Hans Hagen, mailing list for ConTeXt users
Hans Hagen <pragma@wxs.nl> writes:
> 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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-23 10:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-22 20:30 second-level seeindex entry nested too deeply Sanjoy Mahajan
2014-06-23 8:59 ` Hans Hagen
2014-06-23 10:01 ` Sanjoy Mahajan
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).