From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60905 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: checking for module parameters Date: Fri, 13 Aug 2010 05:16:40 +0200 Message-ID: <4C64B918.8050504@googlemail.com> References: <20100812222047.GB18623@aides> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1281669422 15837 80.91.229.12 (13 Aug 2010 03:17:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Aug 2010 03:17:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 13 05:17:01 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OjklR-0000Fv-F8 for gctc-ntg-context-518@m.gmane.org; Fri, 13 Aug 2010 05:17:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0FEE6CA3E3; Fri, 13 Aug 2010 05:17:01 +0200 (CEST) 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 I0Q9xs7NEuz5; Fri, 13 Aug 2010 05:16:49 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5B611CA3DE; Fri, 13 Aug 2010 05:16:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DB68ACA3DE for ; Fri, 13 Aug 2010 05:16:46 +0200 (CEST) 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 bqjZ4BTZ66d0 for ; Fri, 13 Aug 2010 05:16:44 +0200 (CEST) Original-Received: from mail-ey0-f169.google.com (mail-ey0-f169.google.com [209.85.215.169]) by balder.ntg.nl (Postfix) with ESMTP id 502AECA3DA for ; Fri, 13 Aug 2010 05:16:44 +0200 (CEST) Original-Received: by eyg7 with SMTP id 7so101397eyg.14 for ; Thu, 12 Aug 2010 20:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=gAmgyUWw5FEdfeSkt7JsvIksQ2ChFpdKFJKcGhNJlUk=; b=f/h5xaIu0zD4Vyxtl6hdBndAo99KT1VJzc0Jbmkw/ikL30uLr5uiLH2hzFWnK3qLy3 OI1NHM87TAlF/Y0OEFCn7EwXZZWVtitZ/KmPBzgG/N9g5AeUDK3r4H9kRQp7VljhUHXM aJ/akQg5t1PW5W08sA1b31KOuzRRoRoX3/QA4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=CRKB6DiXvFezt7NlkaSahm55SN2Wa3IMaJUiiTGxXWRmLcGyAsUgv/NcgrNt9vo/f1 FhSo9BUkrn7mpp1JuT8+vn8JvaSRjSYr3clyKnRfsZrYJdAjGYnX9VgfuWEVkHkWMwrp UtSs9i8i3tEXGG/BPgm47L+2zE8AS2UjToN04= Original-Received: by 10.213.104.137 with SMTP id p9mr556795ebo.83.1281669403977; Thu, 12 Aug 2010 20:16:43 -0700 (PDT) Original-Received: from meta.fritz.box (dslb-188-098-006-030.pools.arcor-ip.net [188.98.6.30]) by mx.google.com with ESMTPS id a48sm3338289eei.6.2010.08.12.20.16.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 12 Aug 2010 20:16:43 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 In-Reply-To: <20100812222047.GB18623@aides> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:60905 Archived-At: Am 13.08.10 00:20, schrieb Philipp Gesang: > Hi, > > is there a way to check whether an option was specified through \usemodul= e? > Couldn't find anything like that in core-fil.mkiv. > > I'd imagined some branching as with the system macros: > > =B7=B7=B7=B7=B7=B7 Wishful thinking =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7 > > \doifmoduleparameter{modulename}{key} % in the modul= e code > {\somecommand[\moduleparameter{modulename}{key}]} > > \usemodule % user code > [modulename] > [key=3Dval] > > =B7=B7=B7=B7=B7 /Wishful thinking =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7 > > Thanks for any suggestions, You can set a empty value for the kay in your module and check if the = user has set a value with \usemodule: \setupmodule[key=3D] \doifsomething{\currentmoduleparameter{key}}{\setupsomething[key=3D\current= moduleparameter{key}]} For a better answer i have to know for what purpose you need this = information. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________