From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46949 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Using defaults and indexes Date: Wed, 21 Jan 2009 20:12:53 +0100 Message-ID: References: <30C27B4C-BEC1-47D7-82B1-643F689EC3A5@gmail.com> <347A8F55-E522-40FF-AC23-3B747205425C@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232565380 1743 80.91.229.12 (21 Jan 2009 19:16:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Jan 2009 19:16:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 21 20:17:32 2009 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 1LPiZu-0005M8-72 for gctc-ntg-context-518@m.gmane.org; Wed, 21 Jan 2009 20:17:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 07AE71FE5D; Wed, 21 Jan 2009 20:16:08 +0100 (CET) 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 07119-02-4; Wed, 21 Jan 2009 20:14:50 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B888B1FE25; Wed, 21 Jan 2009 20:14:45 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BBA801FE25 for ; Wed, 21 Jan 2009 20:14:43 +0100 (CET) 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 02018-03-8 for ; Wed, 21 Jan 2009 20:13:40 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by ronja.ntg.nl (Postfix) with ESMTP id 03E101FB74 for ; Wed, 21 Jan 2009 20:13:40 +0100 (CET) Original-Received: from mail-ew0-f13.google.com (mail-ew0-f13.google.com [209.85.219.13]) by filter1-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0LJDcjY025944 for ; Wed, 21 Jan 2009 20:13:38 +0100 Original-Received: by ewy6 with SMTP id 6so2080453ewy.2 for ; Wed, 21 Jan 2009 11:13:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=gjBMNpnOLTecvY1MRNiGe55+jOA6lkI/pu1/gWgTgG0=; b=ZhW38eUYQ8JH/s6BWjyBoCCVMUX6XsKv6rCo14moDBbcO9L/7pVg0OwgOD/Pj9iLw1 Hs0nobk5AYUKmGMkq3BQ03k4SG7IBfOkKc43H8VzQeytda9SeSf6VjjQktWaJ/4naeA5 vGfq/eX+1UWbfvp1H5xmZAKn36f3/ddp/Oh2M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=Mh0JeZQov0ye8vviiA7ERtU7paE/mAPwX7R5x0gNXyIHOcuNC2hoOdylqYGDUV+HC8 YMFgPp2zGoqeCMT7gB6ubjleSc03j1aZBfWiT4DbqaiGKvEIfH+zkX0BrWnlOmmJIoCI OvnCp7dN2q191PLnFzVhfwUA6h6O8FkPzFvjM= Original-Received: by 10.86.94.11 with SMTP id r11mr667920fgb.53.1232565211859; Wed, 21 Jan 2009 11:13:31 -0800 (PST) Original-Received: from ?10.70.144.130? (8.106.113.82.net.de.o2.com [82.113.106.8]) by mx.google.com with ESMTPS id l12sm1806201fgb.58.2009.01.21.11.13.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 21 Jan 2009 11:13:31 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.219.13; 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: 168744133 - 743825ff79f3 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:46949 Archived-At: Am 21.01.2009 um 19:28 schrieb Cecil Westerhof: > 2009/1/21 Wolfgang Schuster : >>>>> When the first parameter is filled, but not with a recognized >>>>> value, >>>>> then the second parameter should be filled. If not, the >>>>> compilation of >>>>> the file should generate an error. >> >> I did only what you wrote. > > I was not clear enough again. > What I mend was that when there is not a recognized value, then the > output file should not be generated. When you give a return the file > is still generated. But that is only a minor. (Maybe what I want is > not possible.) \long\def\letterbody#1% {\def\@@letterbody{{\blank[line]\setupindenting[yes,medium]#1\par}}} \def\letterclosing {\dodoublegroupempty\doletterclosing} \def\doletterclosing#1#2% {\ifsecondargument \dodoletterclosing{#1}{#2}% \else \doifelsenothing{#1} {\dodoletterclosing{Hoogachtend,}{Cecil Westerhof}}% {\processaction [#1] [ family=>{\dodoletterclosing{Informal closing,}{Cecil Westerhof}}, business=>{\dodoletterclosing{Formal closing}{Cecil Westerhof}}, unknown=>{\message{Warning: Wrong keyword for \string \letterclosing.}}]}% \fi} \def\dodoletterclosing#1#2% {\@@letterbody \blank[line]#1\blank[3*line]#2} \starttext \letterbody{\dorecurse{2}{\input knuth\par}} \letterclosing{unknown} \stoptext Best wishes 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 ___________________________________________________________________________________