From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31905 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: \write \getvariable and expansion Date: Fri, 17 Nov 2006 21:47:25 -0500 (EST) Message-ID: 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 1163818130 29698 80.91.229.2 (18 Nov 2006 02:48:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 18 Nov 2006 02:48:50 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 18 03:48:39 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 1GlGFB-0002tU-35 for gctc-ntg-context-518@m.gmane.org; Sat, 18 Nov 2006 03:47:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 74CC71FF78; Sat, 18 Nov 2006 03:47:14 +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 29087-02-2; Sat, 18 Nov 2006 03:47:05 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4DE4F1FF71; Sat, 18 Nov 2006 03:47:05 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BE97E1FF77 for ; Sat, 18 Nov 2006 03:47:01 +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 29087-02 for ; Sat, 18 Nov 2006 03:46:55 +0100 (CET) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by ronja.ntg.nl (Postfix) with SMTP id 63E431FF71 for ; Sat, 18 Nov 2006 03:46:54 +0100 (CET) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY hellskitchen.mr.itd.umich.edu ID 455E743D.A359A.1460 ; 17 Nov 2006 21:47:26 -0500 Original-To: mailing list for ConTeXt users 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:31905 Archived-At: 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. % \immediate\write \scratchwrite {\expanded{\date[\getvariable{test}{date}]}} % \expanded{\immediate\write \scratchwrite \date[\getvariable{test}{date}]}} \immediate\closeout\scratchwrite \stoptext Thanks, Aditya