ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Joel via ntg-context <ntg-context@ntg.nl>
To: Mailing List for ConTeXt Users <ntg-context@ntg.nl>
Cc: Joel <uaru99@yahoo.com>
Subject: [NTG-context] How to fix indexes displaying [entry not flushed] with hidden data?
Date: Sun, 7 May 2023 15:28:06 +0000 (UTC)	[thread overview]
Message-ID: <80982913.2809844.1683473286109@mail.yahoo.com> (raw)
In-Reply-To: <80982913.2809844.1683473286109.ref@mail.yahoo.com>


[-- Attachment #1.1: Type: text/plain, Size: 1714 bytes --]

I have a document that needs to place some "hidden" data. In other words, there is an entire \input file with an article, but it doesn't get rendered visibly. However, the indexes, registers, and bibliography need to still function as if it were displayed right there on the page.
It should be as if the data actually is all there, on a single page, but either compressed inside a single invisible pixel off or plain invisible to readers, not using any physical space on the page.

I tried two methods suggested at Stack Exchange for hiding the data:
1. \startnointerference
2. \setbox\scratchbox=\vbox{}
These both successfully seem to place the data there, without it actually being visible and bibliograhy entries still function fine.

The problem is, index and customer registers are getting confused:
When one goes to render the page numbers in \placeindex, it gets confused, displaying the message: "[entry not flushed]" instead of the page number. When I render this minimum working example below, the index is populated with [entry not flushed] instead of page numbers. Note that if I delete the test "This is invisible text."and recompile, I can get a successful render. The problem is, I have text that needs to remain invisible.

\starttext

    \index{birds}
    \index{insects}


        \startnointerference
            \index{spiders}
            \index{bears}
            \index{rabbits}
            This is invisible text.
        \stopnointerference
    
    \input knuth
    
    \placeindex
        
\stoptext


How to fix indexes displaying [entry not flushed] with hidden data?
--Joel


[-- Attachment #1.2: Type: text/html, Size: 3065 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

           reply	other threads:[~2023-05-07 15:28 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <80982913.2809844.1683473286109.ref@mail.yahoo.com>]

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=80982913.2809844.1683473286109@mail.yahoo.com \
    --to=ntg-context@ntg.nl \
    --cc=uaru99@yahoo.com \
    /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).