From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13005 Path: main.gmane.org!not-for-mail From: Patrick Gundlach Newsgroups: gmane.comp.tex.context Subject: Re: parameter mechanism Date: Wed, 27 Aug 2003 18:55:05 +0200 Organization: privat Sender: ntg-context-admin@ntg.nl Message-ID: References: <3F4CB2F0.2020705@arcor.de> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1062004391 3654 80.91.224.253 (27 Aug 2003 17:13:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Aug 2003 17:13:11 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Wed Aug 27 19:13:09 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19s3r3-00043p-00 for ; Wed, 27 Aug 2003 19:13:09 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id B0D5710B87; Wed, 27 Aug 2003 19:13:05 +0200 (MEST) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by ref.ntg.nl (Postfix) with ESMTP id 1B4D010B85 for ; Wed, 27 Aug 2003 19:01:44 +0200 (MEST) Original-Received: from [212.227.126.161] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19s3fz-0008Rh-00 for ntg-context@ntg.nl; Wed, 27 Aug 2003 19:01:43 +0200 Original-Received: from [62.72.92.71] (helo=levana) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 19s3fy-00023D-00 for ntg-context@ntg.nl; Wed, 27 Aug 2003 19:01:43 +0200 Original-Received: from [192.168.1.2] (helo=burger.local) by levana with esmtp (Exim 3.35 #1 (Debian)) id 19s3ZV-0000PQ-00 for ; Wed, 27 Aug 2003 18:55:01 +0200 Original-Received: from schnee.local (localhost [127.0.0.1]) by burger.local (8.12.9/8.12.9) with ESMTP id h7RGt5hX010793 for ; Wed, 27 Aug 2003 18:55:05 +0200 (CEST) Original-Received: (from pg@localhost) by schnee.local (8.12.9/8.12.2/Submit) id h7RGt5fW010792; Wed, 27 Aug 2003 18:55:05 +0200 (CEST) X-Authentication-Warning: schnee.local: pg set sender to patrick@gundla.ch using -f Original-To: ntg-context@ntg.nl X-Lieblings-Musik: the_capricorns In-Reply-To: <3F4CB2F0.2020705@arcor.de> (Peter Rolf's message of "Wed, 27 Aug 2003 15:32:32 +0200") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (darwin) Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:13005 Hello Peter, I am not so sure if I can help you, but I'll give it a try. The examples are taken from my t-layout module. I wanted to have \ShowLayout[a=b,c=d] but with the possibility to say \ShowLayout without [ ]. So I define \ShowLayout as \def\ShowLayout{\dosingleempty\doShowLayout} and \doShowLayout as \def\doShowLayout[#1]{% \getparameters[ShowLayout][#1] (some not important stuff) } to access a value, just use \getvalue{ShowLayout....} where ... is your keyword. I hope I did not forget anything. Patrick -- Silent is the goldfish in its bowl