From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31907 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: \write \getvariable and expansion Date: Sun, 19 Nov 2006 10:39:33 +0100 Message-ID: <45602655.9040404@elvenkind.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1163929405 20198 80.91.229.2 (19 Nov 2006 09:43:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Nov 2006 09:43:25 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 19 10:43:22 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org 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 1GljCr-00032R-4t for gctc-ntg-context-518@m.gmane.org; Sun, 19 Nov 2006 10:43:21 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 990D81FF3B; Sun, 19 Nov 2006 10:42:37 +0100 (CET) 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 03168-03; Sun, 19 Nov 2006 10:42:36 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 41F0B1FF16; Sun, 19 Nov 2006 10:39:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C37FE1FF32 for ; Sun, 19 Nov 2006 10:39:02 +0100 (CET) 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 03168-01 for ; Sun, 19 Nov 2006 10:38:55 +0100 (CET) Original-Received: from post-23.mail.nl.demon.net (post-23.mail.nl.demon.net [194.159.73.193]) by ronja.ntg.nl (Postfix) with SMTP id 2E2671FE3D for ; Sun, 19 Nov 2006 10:38:53 +0100 (CET) Original-Received: from boo.demon.nl ([82.161.175.147]:35659 helo=[10.10.0.3]) by post-23.mail.nl.demon.net with esmtp (Exim 4.51) id 1Glj9B-000Ks1-Gf for ntg-context@ntg.nl; Sun, 19 Nov 2006 09:39:33 +0000 User-Agent: Mozilla Thunderbird 1.0.6-7.6.20060mdk (X11/20050322) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31907 Archived-At: Aditya Mahajan wrote: > Hi, > > Can someone explain what should be the correct order of expansion > here. I want to enter the date entered as a variable to a file. > > \setvariables > [test] > [date={d=11,m=11,y=2006}] > > \starttext > > The date entered was \expanded{\date[\getvariable{test}{date}]}. > > \immediate\openout \scratchwrite test-001 > \immediate\write \scratchwrite {The date entered was} > % None of these work. The best you can get is: \immediate\write\scratchwrite{\noexpand\date[\getvariable{test}{date}]} (The variable is expanded, but \date is not) Greetings, Taco