[NTG-context] Reset environment between MetaPost graphics?
Hans Hagen
j.hagen at xs4all.nl
Thu Jan 20 15:47:18 CET 2022
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)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
More information about the ntg-context
mailing list