From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68842 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: unusual behaviour of \if(x) Date: Wed, 1 Jun 2011 15:36:45 +0200 Message-ID: <5E0002C6-DFC0-4069-8134-CEBBE0BED41D@googlemail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1306935422 31822 80.91.229.12 (1 Jun 2011 13:37:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Jun 2011 13:37:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 01 15:36:58 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 1QRlbW-0003Wr-3W for gctc-ntg-context-518@m.gmane.org; Wed, 01 Jun 2011 15:36:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5DE6ACAD48; Wed, 1 Jun 2011 15:36:57 +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 weFSAxEVbrAn; Wed, 1 Jun 2011 15:36:54 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 59337CAD38; Wed, 1 Jun 2011 15:36:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4B51BCAD38 for ; Wed, 1 Jun 2011 15:36:53 +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 8R9zpEiG4YhK for ; Wed, 1 Jun 2011 15:36:51 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 19672CAD29 for ; Wed, 1 Jun 2011 15:36:51 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p51DanNm023426 for ; Wed, 1 Jun 2011 15:36:49 +0200 Original-Received: by fxm18 with SMTP id 18so61178fxm.14 for ; Wed, 01 Jun 2011 06:36:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=/xIEMLWQThBw95b6bfgXUwDsZ56bTuX9rd6Ubql5a5c=; b=NJmySS8LESpzBNv3prnO+Yf2DsCUkzFkxj2l/i3dKJc/97UXzNeq4rKVR4X5IHO3nQ Os8P4bNC1MymdeymwJenNmbdxkhdPeP368aKYv055eDwFpIc6MfTjUtomwH7gCfjZ3i4 954xGVaHhUemzb7qp4P+dryCWRlYF9CdoldVA= DomainKey-Signature: a=rsa-sha1; c=nofws; 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; b=N30vuD+g1GAlZJfo0uqwIxj8eg9OmAXOblF7gSvJR8236zfv8qBK+RCzLnybTGaOX4 Okge7sxYr4M9VeoakYv+fYBxJKTyKm/DnBAKoOQ+yD+pQcbSoRU5fJ9YXO07jNbE9BgF N3uSiopyO2ur9U0vQ1tlf6HL4IBtaU5+/zAHk= Original-Received: by 10.223.98.141 with SMTP id q13mr8195656fan.96.1306935409121; Wed, 01 Jun 2011 06:36:49 -0700 (PDT) Original-Received: from [192.168.2.34] (p5B0EFF6E.dip.t-dialin.net [91.14.255.110]) by mx.google.com with ESMTPS id b22sm421507fak.1.2011.06.01.06.36.47 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Jun 2011 06:36:48 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; 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: 0rEOBANbq - cd5708e22a95 - 20110601 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:68842 Archived-At: Am 01.06.2011 um 15:26 schrieb Mojca Miklavec: > Dear magitians, > = > I discovered this in LaTeX, but ConTeXt behaves the same (plain TeX > behaves differently). Can somebody please explain me why this code > fails to work? (A workaround is to move \newif on top which I'm > willing to do, but I'm still curious.) > = > \starttext > = > \ifx\hbox\undefined > \message{invisible to tex} > \newif\ifabc \abcfalse > \ifabc \message{abc true breaks} \else \message{abc false breaks} \fi > \fi > = > \stoptext > = > = > systems : begin file iftest at line 1 > abc false breaks > ! Extra \fi. > l.7 \fi The \ifx ends with the first \fi from \ifabc which isn=92t defined and ignored by TeX, the last \fi is left which generates the error message Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________