From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21244 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Hiding the content (drawing empty boxes?) Date: Thu, 07 Jul 2005 23:57:23 +0200 Message-ID: <42CDA543.7060809@wxs.nl> References: <42CDA274.6030503@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1120773458 21301 80.91.229.2 (7 Jul 2005 21:57:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Jul 2005 21:57:38 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 07 23:57:30 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DqeMr-00032F-6a for gctc-ntg-context-518@m.gmane.org; Thu, 07 Jul 2005 23:57:13 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AA61412829; Thu, 7 Jul 2005 23:57:12 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26822-01; Thu, 7 Jul 2005 23:57:06 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 82F8B12800; Thu, 7 Jul 2005 23:57:06 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7E35E12800 for ; Thu, 7 Jul 2005 23:57:05 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26821-04-4 for ; Thu, 7 Jul 2005 23:57:04 +0200 (CEST) Original-Received: from mailrelay02.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 6745D127F3 for ; Thu, 7 Jul 2005 23:57:03 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j67Luwct018859 for ; Thu, 7 Jul 2005 23:56:58 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 7891931214; Thu, 7 Jul 2005 23:21:10 +0200 (CEST) Original-Received: from [10.100.1.53] (unknown [10.100.1.53]) by server-1.pragma-net.nl (Postfix) with ESMTP id 3C38631212 for ; Thu, 7 Jul 2005 21:21:09 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <42CDA274.6030503@gmail.com> X-Virus-Scanned: ClamAV version 0.85.1, clamav-milter version 0.85 on mailrelay02 X-Virus-Status: Clean X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21244 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21244 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 -----------------------------------------------------------------