ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Duncan Hothersall <dh@capdm.com>
Subject: Urgent index problem
Date: Mon, 28 Mar 2005 17:20:54 +0100	[thread overview]
Message-ID: <42482EE6.301@capdm.com> (raw)

I am one night from a deadline and I have just noticed that my index is 
silently ignoring some entries... Help!!

The following demonstrates the problem (tested on live.contextgarden.net):

--
\starttext
\startregister[index]{this term+in+particular} This term is discussed 
from the start of this page.\page[yes]
Some more text about the term, and another page.\page[yes]
And the end of the info about that term. \stopregister[index]{this 
term+in+particular}\page[yes]
A page unrelated to that term.\page[yes]
\index{this term+in+particular} And then another page on exactly the 
same term.\page[yes]
\placeindex\page[yes]
Disaster! The entry on page 5 has been eaten!
\stoptext
--

So we have the same terms referenced as a span over pages 1 to 3, and as 
a single entry on page 5. But only the span appears, not the second 
entry! The .tuo file contains:

\registerentry{index}{t}
\registerentrya{index}{this term}
\registerentryb{index}{in}
\registerentryc{index}{particular}
\registerfrom{index}{,}{1}{2::0:0:0:0:0:0:0::1}{1}
\registerpage{index}{,}{3}{2::0:0:0:0:0:0:0::5}{5}
\registerto{index}{,}{2}{2::0:0:0:0:0:0:0::3}{3}

so it looks like the sorting of these by page numbers has broken, and 
ConTeXt thinks that page 5 is between pages 1 and 3.

I hope someone can help...

Duncan

             reply	other threads:[~2005-03-28 16:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-28 16:20 Duncan Hothersall [this message]
     [not found] <20050328194852.C549A12863@ronja.ntg.nl>
2005-03-29  7:20 ` Duncan Hothersall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42482EE6.301@capdm.com \
    --to=dh@capdm.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).