From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43880 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: first steps with \dosingleempty Date: Thu, 11 Sep 2008 10:12:50 +0200 Message-ID: <115224fb0809110112k3dea0942k388641b35aa0e0fb@mail.gmail.com> References: <48C8C705.5090100@wxs.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: ger.gmane.org 1221121184 20242 80.91.229.12 (11 Sep 2008 08:19:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2008 08:19:44 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 11 10:20:30 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KdhPh-0000YM-KK for gctc-ntg-context-518@m.gmane.org; Thu, 11 Sep 2008 10:20:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 977791FDE0; Thu, 11 Sep 2008 10:19:27 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11404-01; Thu, 11 Sep 2008 10:18:51 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 704D51FF13; Thu, 11 Sep 2008 10:14:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F2D9E1FF13 for ; Thu, 11 Sep 2008 10:14:06 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 04970-10-17 for ; Thu, 11 Sep 2008 10:13:22 +0200 (CEST) Original-Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.154]) by ronja.ntg.nl (Postfix) with ESMTP id 3BAF21FEFA for ; Thu, 11 Sep 2008 10:12:52 +0200 (CEST) Original-Received: by yw-out-1718.google.com with SMTP id 5so76533ywm.74 for ; Thu, 11 Sep 2008 01:12:51 -0700 (PDT) Original-Received: by 10.103.241.5 with SMTP id t5mr1648476mur.72.1221120770478; Thu, 11 Sep 2008 01:12:50 -0700 (PDT) Original-Received: by 10.103.215.10 with HTTP; Thu, 11 Sep 2008 01:12:50 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:43880 Archived-At: On Thu, Sep 11, 2008 at 9:56 AM, Goebel, Juergen wrote: > Hans Hagen wrote: > >> \unexpanded\def\Geb{\dosingleempty\doMyGeb} >> >> \def\doMyGeb[#1]#2#3% >> {, x \iffirstargument Aha \fi >> \doifsomethingelse{#2}{#2}{...}\space >> \doifsomethingelse{#3}{#3}{...}% >> \par} > > Thanks a lot, elegant and much shorter. > But, alas, I can't test it yet since the > \doifsomethingelse seems to be somewhat > newer. My oldtimer (according to Hraban) > shall really be updated during the next > days or weeks ... You could use \doifelsenothing with reverse order for the second and third argument, \doifsomethingelse was included after the TL 2008 ConTeXt release. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________