From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22881 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: getvariable Date: Thu, 6 Oct 2005 10:53:57 +0200 Message-ID: References: <4344D2E1.3010701@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1128588997 27306 80.91.229.2 (6 Oct 2005 08:56:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2005 08:56:37 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 06 10:56:32 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1ENRXC-0005Is-AE for gctc-ntg-context-518@m.gmane.org; Thu, 06 Oct 2005 10:55:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BF8CC127A3; Thu, 6 Oct 2005 10:55:25 +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 23059-03; Thu, 6 Oct 2005 10:55:22 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3B09A12784; Thu, 6 Oct 2005 10:55:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7D92912784 for ; Thu, 6 Oct 2005 10:55:21 +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 22906-04-4 for ; Thu, 6 Oct 2005 10:55:20 +0200 (CEST) Original-Received: from mailout09.sul.t-online.com (mailout09.sul.t-online.com [194.25.134.84]) by ronja.ntg.nl (Postfix) with ESMTP id 824101276B for ; Thu, 6 Oct 2005 10:55:20 +0200 (CEST) Original-Received: from fwd31.aul.t-online.de by mailout09.sul.t-online.com with smtp id 1ENRX5-0003qc-06; Thu, 06 Oct 2005 10:55:19 +0200 Original-Received: from [192.168.0.2] (GQcBrcZvwenL+QcnptbGWluTPSKKvdXH5zSpReorO85fBHLVZofBc7@[84.172.121.20]) by fwd31.sul.t-online.de with esmtp id 1ENRWr-20GBEm0; Thu, 6 Oct 2005 10:55:05 +0200 In-Reply-To: <4344D2E1.3010701@wxs.nl> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.734) X-ID: GQcBrcZvwenL+QcnptbGWluTPSKKvdXH5zSpReorO85fBHLVZofBc7@t-dialin.net X-TOI-MSGID: 1d5ab5c0-985f-4b8e-848c-0ffda07629c7 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22881 Archived-At: Sorry, I was trying to be general instead of specific and was unclear. Here's what I want: \usemodule[MyCrop] \setupcrop[mark=camera,info=yes] % or \setupcrop[mark=cross,info=no] or any combination My idea was to have nested \doifelse statements in the module itself (I got this idea from page-lay.tex): \doifelse{\getvariable{Crop}{mark}{camera} {==> make page background camera-crops} {\doifelse{\getvariable{Crop}{mark}{cross} {==> make page background cross-crops} {do nothing} My problem right now is that the assignment by the user given in the \setup-command is not read before the \doifelse within the module gets executed, so it always defaults to the "do nothing" part because the variables are empty. I hope that's clearer... Thanks for your help! The different backgrounds are working, I just need this last piece to process user input. Best Thomas On Oct 6, 2005, at 9:31 AM, Hans Hagen wrote: > I'm not sure what you mean