ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] How to place text, but make it completely hidden from viewers?
       [not found] <1426675340.522184.1715302438686.ref@mail.yahoo.com>
@ 2024-05-10  0:53 ` Joel via ntg-context
  0 siblings, 0 replies; only message in thread
From: Joel via ntg-context @ 2024-05-10  0:53 UTC (permalink / raw)
  To: Mailing List for ConTeXt Users; +Cc: Joel


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

I have found a few situations is confusing/breaking ConTeXt:
- Footnotes inside tables, figures, frames, margins (won't render the cited item).
- Custom index items inside those items (displays "entry not flushed").
My workaround has been to define a size 0 font \tfz, then put it in a block like this:

    {\tfz%    \starteffect[hidden]%
        \cite[author1912]    \stopeffect%
    }%
The problem this seems to create, is sometimes if placed between two passages, it interprets a need to create two paragraph breaks:
\input knuth
    {\tfz%    \starteffect[hidden]%
        \cite[author1912]    \stopeffect%
    }%
\input knuth
It creates a paragraph break after the first knuth, then another after the hidden text, thereby creating a "double spaced" break between two paragraphs. Note the above code is used in many macros, so I don't have full control always where it appears, but its making the double-spaced break everywhere.

Is there either (1) something can enter before this code that essentially has the effect of "backup to the previous paragraph" or (2) some other method of hiding text that makes it present on the page, but just not visible to the reader, that won't create a double spaced break, or take up any space what-so-ever?
--Joel

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

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

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-10  0:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1426675340.522184.1715302438686.ref@mail.yahoo.com>
2024-05-10  0:53 ` [NTG-context] How to place text, but make it completely hidden from viewers? Joel via ntg-context

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