From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92563 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \doifnotmodeelse - undefined control sequence error? Date: Tue, 15 Sep 2015 15:33:08 +0200 Message-ID: <55F81E14.5010203@gmail.com> References: <55F7E55D.1060207@gyza.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0032489094==" X-Trace: ger.gmane.org 1442324094 5119 80.91.229.3 (15 Sep 2015 13:34:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Sep 2015 13:34:54 +0000 (UTC) To: hajtmar@gyza.cz, mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 15 15:34:42 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZbqNX-0004B1-EH for gctc-ntg-context-518@m.gmane.org; Tue, 15 Sep 2015 15:34:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9E3D21020F for ; Tue, 15 Sep 2015 15:34:34 +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 yu5EWiGWPmY2 for ; Tue, 15 Sep 2015 15:34:33 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 07EEE1022E for ; Tue, 15 Sep 2015 15:33:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4B09D101F6 for ; Tue, 15 Sep 2015 15:33:22 +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 yauubFfa_bDn for ; Tue, 15 Sep 2015 15:33:17 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id EDFB7101E8 for ; Tue, 15 Sep 2015 15:33:12 +0200 (CEST) Original-Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [IPv6:2a00:1450:400c:c05::22a]) by filter4-ams.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t8FDXBi2006583 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 15 Sep 2015 15:33:11 +0200 Original-Received: by wicgb1 with SMTP id gb1so29106848wic.1 for ; Tue, 15 Sep 2015 06:33:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=XGZYqS8zypzFKcG4IzuRZfsJN9FEIYnPJ8jrMIy+T40=; b=QhM4q+SVRLWugFRUVe/yDkmNZI5445Ejwf756enSZnRscVPzHr5nU4Cf312fZV76IS k0QE+oeGIAFkNLhkEaC7tEKpImiO0gar9JYQwP9fKG26lVfaPfc6oz2EpDcjOWVWBVZs NMX5jJ89aRHSpFWMN0ME2BueUrTkL87ZMmJazYLmyzdxOnNpVRhS2e38xWCo9LLD10Tc BahutPbxDNwTbfIl1sdovgQ5IwDSh0pbw4LuRwLtkQqEo4022jHhfk9BkO1YfPSpsSwt 4pN4jQBGj/l1lmeoZJxBBU7G/CUr39GgfmxOyCUryPjKKxVIOU3W0E5hHlQWPYRGznYc GjdA== X-Received: by 10.180.107.1 with SMTP id gy1mr7676432wib.56.1442323991134; Tue, 15 Sep 2015 06:33:11 -0700 (PDT) Original-Received: from keima.localdomain (x2f222fe.dyn.telefonica.de. [2.242.34.254]) by smtp.googlemail.com with ESMTPSA id bs8sm21127495wjc.47.2015.09.15.06.33.10 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Sep 2015 06:33:10 -0700 (PDT) User-Agent: Postbox 4.0.4 (Macintosh/20150825) In-Reply-To: <55F7E55D.1060207@gyza.cz> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::22a; country=BE; region=Brussels Capital; city=Brussels; latitude=50.8466; longitude=4.3528; http://maps.google.com/maps?q=50.8466,4.3528&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01Phpxbna - 650086bfd9d2 - 20150915 (trained as not-spam) Received-SPF: pass (filter4-ams.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c05::22a as permitted sender) receiver=filter4-ams.mf.surf.net; client-ip=2a00:1450:400c:c05::22a; envelope-from=; helo=mail-wi0-x22a.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:92563 Archived-At: This is a multi-part message in MIME format. --===============0032489094== Content-Type: multipart/alternative; boundary="------------050907060800040303020700" This is a multi-part message in MIME format. --------------050907060800040303020700 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Jaroslav Hajtmar > 15. September 2015 11:31 > Hello ConTeXist. > > I do not know if I'm not mistake somewhere, but it seems to me that=20 > the macro \doifnotmodeelse does not work. Can anyone verify this? There is no command with this name because there is no need for it and=20 it won=E2=80=99t be different from \doifmodeelse with the exception that = the=20 second and third arguments are switched. Below is a short summary of the=20 available mode tests. The \doifmode{}{} command is used when you want to show/enable something=20 when the requested mode is enabled. The \doifnotmode{}{} command is used when you to show/enable something=20 when the requested mode is disable or not set. With the \doifelsemode{}{}{} (you can also use the alternative name=20 \doifmodeelse) you can show/enable different things dependent whether=20 the requested mode is enabled or disabled. Wolfgang --------------050907060800040303020700 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
15= .=20 September 2015 11:31
Hello ConTeXist.

I do not know if I'm not mistake somewhere, but it seems to me that=20 the=20 macro \doifnotmodeelse does not work. Can anyone verify this?
There is no command with this name because there is no need for it and=20 it won=E2=80=99t be different from \doifmodeelse with the exception that = the=20 second and third arguments are switched. Below is a short summary of the available mode tests.

The \doifmode{}{} command is used when you want to show/enable something when the requested mode is enabled.

The \doifnotmode{}{} command is used when you to show/enable something=20 when the requested mode is disable or not set.

With the \doifelsemode{}{}{} (you can also use the alternative name=20 \doifmodeelse) you can show/enable different things dependent whether=20 the requested mode is enabled or disabled.

Wolfgang
--------------050907060800040303020700-- --===============0032489094== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0032489094==--