From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85139 Path: news.gmane.org!not-for-mail From: Pablo Rodriguez Newsgroups: gmane.comp.tex.context Subject: Re: conditional argument and \doifemptyelse Date: Thu, 07 Nov 2013 20:07:14 +0100 Message-ID: <527BE4E2.8000005@gmx.es> References: <527A97E2.1080003@gmx.es> <0D0FACCC-B06A-433A-B9C0-F73122A23F4B@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1383851248 29694 80.91.229.3 (7 Nov 2013 19:07:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Nov 2013 19:07:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 07 20:07:31 2013 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 1VeUvS-0004uY-PL for gctc-ntg-context-518@m.gmane.org; Thu, 07 Nov 2013 20:07:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BDD6B10206; Thu, 7 Nov 2013 20:07:29 +0100 (CET) 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 A7zDv7XQln4u; Thu, 7 Nov 2013 20:07:27 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 3958C101EF; Thu, 7 Nov 2013 20:07:27 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 58351101EF for ; Thu, 7 Nov 2013 20:07:25 +0100 (CET) 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 U9ZN+H9kqhnD for ; Thu, 7 Nov 2013 20:07:20 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 7D219101EA for ; Thu, 7 Nov 2013 20:07:20 +0100 (CET) Original-Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rA7J7Jpi014643 for ; Thu, 7 Nov 2013 20:07:19 +0100 Original-Received: from localhost.localdomain ([88.9.248.24]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LskfZ-1Vkafm00rJ-012ICL for ; Thu, 07 Nov 2013 20:07:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 In-Reply-To: <0D0FACCC-B06A-433A-B9C0-F73122A23F4B@gmail.com> X-Provags-ID: V03:K0:vt57WxU+4lPgfD29Zj60TdTXQk1/lnuOsQ+4l4pI8nBdw7XVWgE rJWnYo1ZnCQi5C6o7rjkCS9unS76OzU2JctavYDjyTjwv8Fi1/7GQdTFRImHcuUTyYPYYRr F7Y+JMhCsVF1QLmstATZJZWy9FubuaweLpTUSsI9ExIy2Hs7c8nPIXCtow8D0AvZtM0w07Q EraFeZzX0GuPJnixBxjkQ== X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.227.15.19; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NKKH7j4T - c6e928a73785 - 20131107 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85139 Archived-At: On 11/06/2013 10:33 PM, Wolfgang Schuster wrote: > Am 06.11.2013 um 20:26 schrieb Pablo Rodriguez : >> [...] >> Is there no way to make \MyCommand above work with \doifemptyelse even >> if its third argument is not defined? > > \def\MyCommand > {\dotriplegroupempty\doMyCommand} > > \def\doMyCommand#1#2#3% > {#1, #2, \ifthirdargument #3\else #1\fi} > > \starttext > > \MyCommand{first}{second}{third} > > \MyCommand{first}{second} > > \stoptext Wolfgang, many thanks for your reply and the fix. Pablo -- http://www.ousia.tk ___________________________________________________________________________________ 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 ___________________________________________________________________________________