ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Hiding the content (drawing empty boxes?)
Date: Thu, 07 Jul 2005 23:57:23 +0200	[thread overview]
Message-ID: <42CDA543.7060809@wxs.nl> (raw)
In-Reply-To: <42CDA274.6030503@gmail.com>

Mojca Miklavec wrote:
> Hello,
> 
> Some TeX challenge (probably not solvable?): for gurus only.
> 
> Is there a way to somehow
> 
> \starthidden
> ...
> \stophidden,
> 
> which would leave exactly the same amount of blank space as if the 
> content would be typeset?
> 
> Adam suggested to use transparent font colour, but this doesn't solve 
> the problem as this won't stop the images, frames and nested 
> \color[red]{font color changing commands} being displayed.
> 
> I tried to adapt the macro \demobox from the TeXBOOK which processes 
> token by token and draws an empty box instead of that token. It works 
> perfectly as long as there is only plain text between the braces, but as 
> soon there is something more complex, it breaks. This behaviour is 
> probably to be expected, but I have no idea how to let all the commands 
> do what they are expected to do and only prohibit placing any boxes with 
> some content.

well, how about:

\defineproperty[mojcas-secrets][layer][state=top]

\starttext

\input tufte

\startproperty[mojcas-secrets]\input knuth \stopproperty

\input tufte

\stoptext


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

  reply	other threads:[~2005-07-07 21:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-07 21:45 Mojca Miklavec
2005-07-07 21:57 ` Hans Hagen [this message]
2005-07-07 22:33   ` Mojca Miklavec
2005-07-07 23:13     ` Adam Lindsay
2005-07-08  7:12       ` Hans Hagen
2005-07-08  8:40         ` Patrick Gundlach
2005-07-08  9:23         ` Adam Lindsay
2005-07-08 10:50           ` Mojca Miklavec
2005-07-08 12:33             ` Hans Hagen
2005-07-08 16:43               ` Mojca Miklavec

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=42CDA543.7060809@wxs.nl \
    --to=pragma@wxs.nl \
    --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).