From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58176 Path: news.gmane.org!not-for-mail From: Troy Henderson Newsgroups: gmane.comp.tex.context Subject: Re: MetaPost Animation Date: Fri, 16 Apr 2010 07:51:53 -0500 Message-ID: References: <4BC817C7.8070207@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1271422351 13595 80.91.229.12 (16 Apr 2010 12:52:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Apr 2010 12:52:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 16 14:52:29 2010 connect(): No such file or directory Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O2l25-0003ok-7l for gctc-ntg-context-518@m.gmane.org; Fri, 16 Apr 2010 14:52:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A19C2C9C85; Fri, 16 Apr 2010 14:52:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id pO11cwGgdIcd; Fri, 16 Apr 2010 14:52:28 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D48FEC9C87; Fri, 16 Apr 2010 14:52:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0154AC9C87 for ; Fri, 16 Apr 2010 14:52:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id PMK5D7n7pKTF for ; Fri, 16 Apr 2010 14:51:55 +0200 (CEST) Original-Received: from mail-iw0-f201.google.com (mail-iw0-f201.google.com [209.85.223.201]) by balder.ntg.nl (Postfix) with ESMTP id CFA80C9C85 for ; Fri, 16 Apr 2010 14:51:54 +0200 (CEST) Original-Received: by iwn39 with SMTP id 39so993715iwn.2 for ; Fri, 16 Apr 2010 05:51:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=0fiVqOTwkNbq6nE0CMEZot8IBBMb6gsOYc7su51w/e8=; b=RuQKfyNEQKQo3lCOUCxIDTKCQ4Xc3EWjySVWvuWmlV1Bc+sxva67Z7ULRPeL9i/gvq Z8qU1HfCggEIRcQ56WW9Nr0t8EUq9vrvFct/KxsgoRk0w4xwP90m320/wRxZnEZgU+Ph f9K9ULC9UjbhkjoyXcxC1fJobjdAyys0oYiuU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=FZQ4KSdts78wZdtqZvNQz0lZSpfv+tbWU2h93mnbZfTVZ5/cFDBo8RcpgQW8U0MhaR f6zgfGM8dijXuqiqgD+599C8S7EZQLXosFdRifGxCHHKT9m1Ryx9/0OsRSYTcsEcFSxO 6SX+ficycYn2G18xdNLakwNqr7feI30HEem/A= Original-Received: by 10.231.152.133 with HTTP; Fri, 16 Apr 2010 05:51:53 -0700 (PDT) In-Reply-To: <4BC817C7.8070207@wxs.nl> Original-Received: by 10.231.174.137 with SMTP id t9mr530751ibz.98.1271422313757; Fri, 16 Apr 2010 05:51:53 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:58176 Archived-At: >> \def\MyGraphics#1{% Thanks for the replies folks. The example that I posted is a simple example. The example that I'm working on (displaying successive terms in a Taylor series) requires a bit of computations, and I don't want to have to go back and do each computation for each value of #1. That is, I want to build a table of numerical values (numeric Y[][]) and be able to address those values from my \startMPcode section. If I have two different \startMPcode ... \stopMPcode sections, is there a way (perhaps it does this by default) to have the variables stored in the first block available in the second block? In pure MetaPost, I can do numeric a:=4; beginfig(1); label(decimal(a),origin); endfig; beginfig(2); label(decimal(a),origin); endfig; end and both figures have the value of 'a' available to them because 'a' was defined before each figure. What is the ConTeXt way of doing this? Thanks, Troy ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________