On Thu, 2022-01-20 at 15:47 +0100, Hans Hagen via ntg-context wrote:
> On 1/20/2022 3:26 PM, Aditya Mahajan via ntg-context wrote:
>
> > AFAIK, there is no in-built support for this.
>
> FYEO:
>
> \starttext
>
> \startMPcode
> u = 123;
> \stopMPcode
>
>
On 1/20/2022 3:42 PM, Hans Hagen via ntg-context wrote:
next upload:
\resetMPinstance[metafun:1]
but try to avoid this because reloading takes time
Hans
-
Hans Hagen | PRAGMA ADE
On 1/20/2022 3:26 PM, Aditya Mahajan via ntg-context wrote:
AFAIK, there is no in-built support for this.
FYEO:
\starttext
\startMPcode
u = 123;
\stopMPcode
\ctxlua{metapost.reset("metafun:1")}
\startMPcode
u = 123;
\stopMPcode
\stoptext
(the instance is reported on the console)
On 1/20/2022 2:59 PM, Vincent Hennebert via ntg-context wrote:
Hi,
Say I’m writing a document containing many independent MetaPost
figures. I don’t want to bother with enclosing each and every graphics
in a ‘begingroup...endgroup’ with the appropriate ‘save’ statement. But
I don’t want
On Thu, 20 Jan 2022, Vincent Hennebert via ntg-context wrote:
> Hi,
>
> Say I’m writing a document containing many independent MetaPost
> figures. I don’t want to bother with enclosing each and every graphics
> in a ‘begingroup...endgroup’ with the appropriate ‘save’ statement. But
> I don’t
Hi,
Say I’m writing a document containing many independent MetaPost
figures. I don’t want to bother with enclosing each and every graphics
in a ‘begingroup...endgroup’ with the appropriate ‘save’ statement. But
I don’t want variables from previous graphics to leak into following
ones either.