From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71547 Path: news.gmane.org!not-for-mail From: "Meer, H. van der" Newsgroups: gmane.comp.tex.context Subject: Re: \doifmode and friends Date: Tue, 4 Oct 2011 21:17:13 +0000 Message-ID: <7E11B7F1-5A78-48E0-BAB5-D2C3360F6EFE@uva.nl> 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1317763057 11826 80.91.229.12 (4 Oct 2011 21:17:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 Oct 2011 21:17:37 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 04 23:17:32 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 1RBCMl-0001aN-5j for gctc-ntg-context-518@m.gmane.org; Tue, 04 Oct 2011 23:17:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 21CE3CAFC9; Tue, 4 Oct 2011 23:17:30 +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 qMS0SVIqNcAb; Tue, 4 Oct 2011 23:17:27 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A2DC3CAFB5; Tue, 4 Oct 2011 23:17:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 83FFBCAFB5 for ; Tue, 4 Oct 2011 23:17: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 ZOxrRymda-ev for ; Tue, 4 Oct 2011 23:17:15 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id AD61DCA680 for ; Tue, 4 Oct 2011 23:17:15 +0200 (CEST) Original-Received: from jansen.uva.nl (jansen.uva.nl [146.50.108.229]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p94LHFq4027370 for ; Tue, 4 Oct 2011 23:17:15 +0200 Original-Received: from ketelaar.uva.nl ([fe80::cc61:4c73:c438:df97]) by jansen.uva.nl ([146.50.108.229]) with mapi id 14.01.0289.001; Tue, 4 Oct 2011 23:17:14 +0200 Thread-Topic: [NTG-context] \doifmode and friends Thread-Index: AQHMgsItaGZNUVgL3EuX23VSTvuvZJVsYlyAgAAB34CAACqwAA== In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [82.95.102.36] Content-ID: <019AC154CA66994083611DD2A37D037F@uva.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=146.50.108.229; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bFEJhfOo - 8fb305795b53 - 20111004 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:71547 Archived-At: On 4 okt. 2011, at 20:44, Wolfgang Schuster wrote: > > Am 04.10.2011 um 20:37 schrieb Aditya Mahajan: > >> On Tue, 4 Oct 2011, Meer, H. van der wrote: >> >>> 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? >> >> Can you provide a minimal example. I don't get any extra spaces >> >> \enablemode[test] >> \starttext >> A\doifmode{test}{B}C >> >> A\doifmode{notest}{B}C >> \stoptext > > > There is a unwanted space in the second paragraph. I dare voicing a different opinion. Allthough there indeed is both a space before the \doifmode as well as after it, I am aware of that but that is besides my point. I expected the \doifmode to vanish completely when the condition is not met. As is the case, even if the condition is not met it has a measurable effect because of the extra space being typeset. To be more explicit, my expectations were: A \doifmode{condition-not-met}{B} C resulting in: AC whereas it becomes: A C. > > \enablemode[test] > > \starttext > > A \doifmode{test}{B} C > > A \doifmode{notest}{B} C > > \stoptext > > Wolfgang > ___________________________________________________________________________________ Hans van der Meer ___________________________________________________________________________________ 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 ___________________________________________________________________________________