ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Troy Henderson <thenders@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: MetaPost Animation
Date: Fri, 16 Apr 2010 07:51:53 -0500	[thread overview]
Message-ID: <t2hcf53c9501004160551k5593c18bpe93f1a46a236dd6d@mail.gmail.com> (raw)
In-Reply-To: <4BC817C7.8070207@wxs.nl>

>> \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
___________________________________________________________________________________


  reply	other threads:[~2010-04-16 12:51 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-15 17:53 Troy Henderson
2010-04-16  7:36 ` Boštjan Vesnicer
2010-04-16  7:54   ` Hans Hagen
2010-04-16 12:51     ` Troy Henderson [this message]
2010-04-16 14:19       ` Boštjan Vesnicer
2010-04-16 14:43       ` Wolfgang Schuster
     [not found] <20050330203818.ADE29128CA@ronja.ntg.nl>
2005-03-31  1:48 ` Beginnner's question: fumbling with font finding failures Paul R Martin
2005-03-31 11:53   ` Thomas A.Schmitz
2005-03-31 12:50     ` Metapost animation Albrecht Kauffmann
  -- strict thread matches above, loose matches on Subject: below --
2004-09-13 16:57 Michal Kvasnicka
2004-09-13 17:14 ` Henning Hraban Ramm
2004-09-13 19:40 ` Patrick Gundlach
2004-09-14  8:27   ` Michal Kvasnicka
2004-09-14  8:21     ` Patrick Gundlach
2004-09-14 16:33 ` Hans Hagen
2004-09-14 19:18   ` Michal Kvasnicka
2004-09-15  8:22     ` Hans Hagen
2004-09-16 17:05       ` Michal Kvasnicka
2005-05-19 14:28       ` Mojca Miklavec
2005-05-19 14:39         ` luigi.scarso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=t2hcf53c9501004160551k5593c18bpe93f1a46a236dd6d@mail.gmail.com \
    --to=thenders@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).