ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \seeindex with subentries
@ 2018-06-08 19:44 Henning Hraban Ramm
  2018-06-08 20:06 ` Alan Braslau
  0 siblings, 1 reply; 2+ messages in thread
From: Henning Hraban Ramm @ 2018-06-08 19:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1069 bytes --]

This MWE:

"""
\setupinteraction[state=start]
\setupregister[index][n=1]

\starttext
My \index{dog}dog is a \index{dog+bullterrier}bullterrier.
He doesn't like \index{cat}cats.
There are a lot of \index{cat+stray}stray cats, but only a few of them are \index{cat+Siamese}Siamese. I don’t think there are \index{cat+Burmese}Burmese cats.

\seeindex{cat+obese}{cat+Siamese}
\seeindex{hound}{dog}

\completeindex

\stoptext
"""

... shows two problems at once:

"""
c
cat 1
  Burmese 1, see cat+Siamese
  Siamese 1
  stray 1
d
dog 1
  bullterrier 1
h
hound see dog
"""

While the reference "hound see dog" is properly formatted, cat+obese is missing (i.e. sorted under Burmese) while there is no \index{cat+obese}, and the reference "cat+Siamese" is shown as-is, not properly formatted.

That means, refering to index sub-entries is broken at the moment (current beta and at least several previous).


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

[-- Attachment #2: seeindex.tex --]
[-- Type: application/octet-stream, Size: 424 bytes --]


\setupinteraction[state=start]
\setupregister[index][n=1]

\starttext
My \index{dog}dog is a \index{dog+bullterrier}bullterrier.
He doesn't like \index{cat}cats.
There are a lot of \index{cat+stray}stray cats, but only a few of them are \index{cat+Siamese}Siamese. I don’t think there are \index{cat+Burmese}Burmese cats.

\seeindex{cat+obese}{cat+Siamese}
\seeindex{hound}{dog}

\completeindex

\stoptext

[-- Attachment #3: Type: text/plain, Size: 492 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] 2+ messages in thread

* Re: \seeindex with subentries
  2018-06-08 19:44 \seeindex with subentries Henning Hraban Ramm
@ 2018-06-08 20:06 ` Alan Braslau
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Braslau @ 2018-06-08 20:06 UTC (permalink / raw)
  To: Henning Hraban Ramm; +Cc: mailing list for ConTeXt users

This has been reported before...

BTW, how should cat+Siamese be formatted?

cat 1
  Burmese 1
  obese, see Siamese

or

cat 1
  Burmese 1
  obese, see cat, Siamese


Clearly the second case would be needed for
\seeindex{pet+obese}{cat+Siamese}
with

pet
  obese, see cat, Siamese


Alan


On Fri, 8 Jun 2018 21:44:13 +0200
Henning Hraban Ramm <texml@fiee.net> wrote:

> This MWE:
> 
> """
> \setupinteraction[state=start]
> \setupregister[index][n=1]
> 
> \starttext
> My \index{dog}dog is a \index{dog+bullterrier}bullterrier.
> He doesn't like \index{cat}cats.
> There are a lot of \index{cat+stray}stray cats, but only a few of
> them are \index{cat+Siamese}Siamese. I don’t think there are
> \index{cat+Burmese}Burmese cats.
> 
> \seeindex{cat+obese}{cat+Siamese}
> \seeindex{hound}{dog}
> 
> \completeindex
> 
> \stoptext
> """
> 
> ... shows two problems at once:
> 
> """
> c
> cat 1
>   Burmese 1, see cat+Siamese
>   Siamese 1
>   stray 1
> d
> dog 1
>   bullterrier 1
> h
> hound see dog
> """
> 
> While the reference "hound see dog" is properly formatted, cat+obese
> is missing (i.e. sorted under Burmese) while there is no
> \index{cat+obese}, and the reference "cat+Siamese" is shown as-is,
> not properly formatted.
> 
> That means, refering to index sub-entries is broken at the moment
> (current beta and at least several previous).
> 
> 
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD

___________________________________________________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2018-06-08 20:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-08 19:44 \seeindex with subentries Henning Hraban Ramm
2018-06-08 20:06 ` Alan Braslau

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).