From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: multipage metapost output from ConTeXt
Date: Mon, 27 Nov 2023 23:25:33 +0100 (CET) [thread overview]
Message-ID: <p964q4nr-50p0-5615-q409-149o5r005r2n@hzvpu.rqh> (raw)
In-Reply-To: <8D8705B2-A753-4B9F-8409-84A65CBE6D1A@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 569 bytes --]
On Mon, 27 Nov 2023, Fabrice L wrote:
> Hi,
>
> It is fun fact very easy to do. You just use \startMPpage (…) \stopMPpage multiple times. Here is an example which build an animation of a particle moving according to a Brownian motion.
A very similar option is to pass a variable to a metapost drawing. This is what I use:
https://adityam.github.io/context-blog/post/metapost-animation/
It only works when viewed in acrobat, you can just comment out the animation part and wrap it in \startTEXpage .. \stopTEXpage to get multi-page animation.
Aditya
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2023-11-27 22:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-27 18:49 [NTG-context] " Emanuel Han via ntg-context
2023-11-27 19:56 ` [NTG-context] " Fabrice L
2023-11-27 22:25 ` Aditya Mahajan [this message]
2023-11-29 11:25 ` Emanuel Han via ntg-context
2023-12-02 11:22 ` Emanuel Han via ntg-context
2023-12-02 11:54 ` fv leung
2023-12-02 16:22 ` Mikael Sundqvist
2023-12-02 17:08 ` Emanuel Han via ntg-context
2023-12-02 18:46 ` Mikael Sundqvist
2023-12-02 22:51 ` Emanuel Han via ntg-context
2024-01-06 16:33 ` Emanuel Han via ntg-context
2023-12-04 16:35 ` Fabrice L
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=p964q4nr-50p0-5615-q409-149o5r005r2n@hzvpu.rqh \
--to=adityam@umich.edu \
--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).