From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71543 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \doifmode and friends Date: Tue, 4 Oct 2011 20:32:03 +0200 Message-ID: <1D2F24AE-FAE2-4125-A675-55B94EDFC356@googlemail.com> References: <5BB4EE38-171A-4DF4-BE0B-2484B95BDCAF@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1317753161 7987 80.91.229.12 (4 Oct 2011 18:32:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 Oct 2011 18:32:41 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 04 20:32:37 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RB9n4-0002a2-Eu for gctc-ntg-context-518@m.gmane.org; Tue, 04 Oct 2011 20:32:30 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D90E3CAFEC; Tue, 4 Oct 2011 20:32:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6WsfkajYv6Ae; Tue, 4 Oct 2011 20:32:27 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 498D6CAFC2; Tue, 4 Oct 2011 20:32:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 09A31CAFC2 for ; Tue, 4 Oct 2011 20:32:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mumGfH8EMOoE for ; Tue, 4 Oct 2011 20:32:12 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 61339CAFB5 for ; Tue, 4 Oct 2011 20:32:12 +0200 (CEST) Original-Received: from mail-ey0-f169.google.com (mail-ey0-f169.google.com [209.85.215.169]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p94IW8UV030850 for ; Tue, 4 Oct 2011 20:32:10 +0200 Original-Received: by eye13 with SMTP id 13so1047014eye.14 for ; Tue, 04 Oct 2011 11:32:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=wE/qpLYjPpAzvruHVKj2qh353b/Tv9iS80258NNa+8Q=; b=OVR6ldyTg492wNedkQe6Dk86vnWh9d3ITHcioXffg6VXiND9hjVi9BWRTEISVKtuUw 0TW/fPSVvBqIMx5k2nBjUlAMiEpT8UoV/bYMAO3GN9RV2ZBlHOBPUzT64ruZUd9KiQk1 kDzAO/CU+iFyaEEiEuN/McMwaFQH1jIPyOc28= Original-Received: by 10.223.76.10 with SMTP id a10mr2201270fak.30.1317753128846; Tue, 04 Oct 2011 11:32:08 -0700 (PDT) Original-Received: from [192.168.2.31] (p5482C118.dip.t-dialin.net. [84.130.193.24]) by mx.google.com with ESMTPS id a1sm26402431fab.4.2011.10.04.11.32.06 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 04 Oct 2011 11:32:07 -0700 (PDT) In-Reply-To: <5BB4EE38-171A-4DF4-BE0B-2484B95BDCAF@uva.nl> X-Mailer: Apple Mail (2.1244.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0cFEGw994 - 9e3f81220d58 - 20111004 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:71543 Archived-At: Am 04.10.2011 um 20:19 schrieb Meer, H. van der: > I find that "abc \doifmode{mode}{text} more text" can introduce extra whitespace. I conclude therefore that there is no \ignorespaces at work here. As a consequence the \doifmode does not completely disappear if mode is not satisfied. > Is this intentional or should this behaviour be changed? You can use the annotation module, it supports this function. \usemodule[annotation] \defineannotation[test][alternative=text] \starttext Can you see this \test{hidden} text? \setupannotation[test][alternative=none] Can you see this \test{hidden} text? \stoptext Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________