From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22887 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: getvariable Date: Thu, 06 Oct 2005 14:45:06 +0200 Message-ID: <43451C52.8060203@gmx.net> References: <4344D2E1.3010701@wxs.nl> <4344F611.6010900@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1128602691 6928 80.91.229.2 (6 Oct 2005 12:44:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2005 12:44:51 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 06 14:44:49 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 1ENV77-0007bv-Bw for gctc-ntg-context-518@m.gmane.org; Thu, 06 Oct 2005 14:44:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D58171277F; Thu, 6 Oct 2005 14:44:44 +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 24839-04; Thu, 6 Oct 2005 14:44:39 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D10E2127B0; Thu, 6 Oct 2005 14:44:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5D3AD1276F for ; Thu, 6 Oct 2005 14:44:38 +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 24694-05 for ; Thu, 6 Oct 2005 14:44:37 +0200 (CEST) Original-Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id 5BB131276C for ; Thu, 6 Oct 2005 14:44:37 +0200 (CEST) Original-Received: (qmail invoked by alias); 06 Oct 2005 12:44:36 -0000 Original-Received: from i5387D2EB.versanet.de (EHLO [192.168.0.3]) [83.135.210.235] by mail.gmx.net (mp016) with SMTP; 06 Oct 2005 14:44:36 +0200 X-Authenticated: #24293357 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Enigmail-Version: 0.93.0.0 X-Y-GMX-Trusted: 0 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:22887 Archived-At: Thomas A. Schmitz wrote: > Peter, thanks for your help yet again! > > On Oct 6, 2005, at 12:01 PM, Peter Rolf wrote: > >> This should work. > > > OK, so I'm not completely off the mark... > maybe we're both :) >> The only thing that is missing, is a call (at the end >> of \setupcrop) to a separate routine (based on your \doifelse >> construct), which sets up the background. >> >> Or have i missed something? :) >> > Actually, this part of the code works. I have defined overlays/layers > and a variable PageBackground and in my doifelse want this > > \let\PageBackground\empty > \def\CameraMarks{Camera} > \def\CrossMarks{Cross} > > \doifelse{\getvariable{Crop}{mark}{camera} > {\let\PageBackground\CameraMarks} > {\doifelse{\getvariable{Crop}{mark}{cross} > {\let\PageBackground\CrossMarks} > {\relax} > > For debugging purposes, I just have this > > \doifelse{\GetMark}{camera} > {mark defined as \getvariable{Crop}{mark}} > {mark not defined: \getvariable{Crop}{mark}} > > which will print out a message. \getvariable{Crop}{mark} however, is > either empty or has the value I predefine when I initialize it, it does > not take the user-supplied value within the module (if I insert this > doifelse thing into the document, it does return the correct value > because then the \setup-command has been read before.) > Normally there is no magic in setting variables. So double check the code where you set (\setvariables[Crop][...]) the variables. Maybe a typo (lowercase namespace,.. ). Peter > Thanks, and best > > Thomas > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > >