From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22895 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: getvariable Date: Thu, 6 Oct 2005 23:11:52 +0200 Message-ID: References: <4344D2E1.3010701@wxs.nl> <4344F611.6010900@gmx.net> <43451C52.8060203@gmx.net> <66FE32A2-F72F-4705-8803-A00CA3237719@uni-bonn.de> <43458422.4010300@gmx.net> 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 1128633353 19393 80.91.229.2 (6 Oct 2005 21:15:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2005 21:15:53 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 06 23:15:51 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 1ENd36-0005Xr-HL for gctc-ntg-context-518@m.gmane.org; Thu, 06 Oct 2005 23:13:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 91B6312801; Thu, 6 Oct 2005 23:13:07 +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 28118-02; Thu, 6 Oct 2005 23:13:03 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C12BB127ED; Thu, 6 Oct 2005 23:13:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 40D90127ED for ; Thu, 6 Oct 2005 23:13:01 +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 27948-08 for ; Thu, 6 Oct 2005 23:13:00 +0200 (CEST) Original-Received: from mailout06.sul.t-online.com (mailout06.sul.t-online.com [194.25.134.19]) by ronja.ntg.nl (Postfix) with ESMTP id 42968127EB for ; Thu, 6 Oct 2005 23:13:00 +0200 (CEST) Original-Received: from fwd27.aul.t-online.de by mailout06.sul.t-online.com with smtp id 1ENd2x-0002wB-09; Thu, 06 Oct 2005 23:12:59 +0200 Original-Received: from [192.168.0.2] (r1nJdiZvrex01ykkd8xeuVZxvU5gJLe0z+3fj0-a0LttrYu4a5bmrZ@[84.172.121.20]) by fwd27.sul.t-online.de with esmtp id 1ENd2t-0heeOW0; Thu, 6 Oct 2005 23:12:55 +0200 In-Reply-To: <43458422.4010300@gmx.net> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.734) X-ID: r1nJdiZvrex01ykkd8xeuVZxvU5gJLe0z+3fj0-a0LttrYu4a5bmrZ@t-dialin.net X-TOI-MSGID: 91d09571-24e5-4485-b23e-0734e273731d 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:22895 Archived-At: Peter, I appreciate your helping me. And I have no clue what's going wrong. On Oct 6, 2005, at 10:08 PM, Peter Rolf wrote: >> > I'm just guessing (taken from my own pile of mistakes). > Hmm, is it a problem of setting the variable, or it's interpretation? > Can you find out, if the variable is set correctly in your \setupcrop > macro? Just add > > \writestatus{[CROP]}{crop mark is: \getvariable{Crop}{mark}}% For debugging, I've narrowed the module down to 8 lines: \def\setupcrop{\setvariables[Crop]} \setvariables[Crop][mark=cross,info=yes] \processaction[\getvariable{Crop}{mark}][ camera =>\def\PageBackground{\CameraMarks}, cross =>\def\PageBackground{\CrossMarks}, default=>\def\PageBackground{}, unknown=>\def\PageBackground{}]% \writestatus{[CROP]}{crop mark is: \getvariable{Crop}{mark}} my testfile: \usemodule[t-crop] \setupcrop[mark=camera,info=yes] \starttext Hello! \stoptext Output in log: (/Users/tas/Library/texmf/tex/t-crop.tex [CROP] : crop mark is: cross If second line of module is commented out, I get: [CROP] : crop mark is: So it's a problem of actually setting the variable. > > > The error can't hide forever ;) > Maybe it can't hide forever, but it looks like it can run... Thanks for your help. I'll be away tomorrow and will try more on the weekend. Best Thomas