From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46932 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Using defaults and indexes Date: Wed, 21 Jan 2009 16:02:10 +0100 Message-ID: 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 1232550329 10212 80.91.229.12 (21 Jan 2009 15:05:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Jan 2009 15:05:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 21 16:06:42 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 1LPeds-0004i9-A7 for gctc-ntg-context-518@m.gmane.org; Wed, 21 Jan 2009 16:05:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2B1661FE0D; Wed, 21 Jan 2009 16:04:00 +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 25905-03; Wed, 21 Jan 2009 16:02:55 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C40A01FDFF; Wed, 21 Jan 2009 16:02:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 462361FCB7 for ; Wed, 21 Jan 2009 16:02:51 +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 27706-04-3 for ; Wed, 21 Jan 2009 16:02:13 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by ronja.ntg.nl (Postfix) with ESMTP id 2ECB61FD7E for ; Wed, 21 Jan 2009 16:02:13 +0100 (CET) Original-Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.245]) by filter2-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0LF2BAk005270 for ; Wed, 21 Jan 2009 16:02:12 +0100 Original-Received: by rv-out-0708.google.com with SMTP id f25so3975008rvb.14 for ; Wed, 21 Jan 2009 07:02:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=Lm/NwoQJX2aRNukihZrNl18Izqslt+zvyWh/Ul4Qw7w=; b=bYZRU8CGVWLt2POHPxWcNZGK2gn+JhU5cwtdsNG1UtREEWUhjhkHoU2k5qvxfCxGlG d8L6nW+cAyLNbDGvx0I6dvUdJwAc/ZOagBNWI3rMvKvKl9yQoqCi5toqq4CGOjicDF4S QLXsBxbtHQTXUMxvdQe3GVCQEp78WPQIpD7CY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=CXeZNhzsoWh2Y1PcaLT2xf0VaIQgU2bKcyYNoxi8235ddqivtyogKh3794KXW0fiBg GUwXAZitoOl7bU+vOk79XYzZA4tALGl1rbD1L/bQJxPiisVsYmKO3w/9prWr7DzDdiaN HfqFKe06ZoWWrI7/aytEJBhdXI2tSd/pij64Q= Original-Received: by 10.141.50.11 with SMTP id c11mr2746218rvk.45.1232550130805; Wed, 21 Jan 2009 07:02:10 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.198.245; 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: 168626347 - 96e3fb8bc5b3 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:46932 Archived-At: In my template I have: \long\def\letterclosing#1#2{ \blank[line]#1, \blank[3*line]#2 } And in the main file I have: \letterclosing{Hoogachtend}{Cecil Westerhof} But I would like to have this as the default, so I could use: \letterclosing Beside that I would like to have the possibility to use: \letterclosing{business} or \letterclosing{family} This would then use defined values. 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. Is this something that can be done? -- Cecil Westerhof ___________________________________________________________________________________ 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 ___________________________________________________________________________________