diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-06-12 00:08:48 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-06-12 00:08:48 +0200 |
commit | 36ee3b791e253a00877a7b25e2d94b1dfc90a174 (patch) | |
tree | 51cddb18e68861f7ccbf6069e047fe0d3972961f /metapost | |
parent | e8dc7842e52c4509ce38115c521672198beafca3 (diff) | |
download | context-36ee3b791e253a00877a7b25e2d94b1dfc90a174.tar.gz |
2019-06-11 19:28:00
Diffstat (limited to 'metapost')
-rw-r--r-- | metapost/context/base/mpiv/mp-mlib.mpiv | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/metapost/context/base/mpiv/mp-mlib.mpiv b/metapost/context/base/mpiv/mp-mlib.mpiv index c79cb4870..a6ac3db3f 100644 --- a/metapost/context/base/mpiv/mp-mlib.mpiv +++ b/metapost/context/base/mpiv/mp-mlib.mpiv @@ -190,8 +190,16 @@ extra_beginfig := extra_beginfig & "mfun_reset_tex_texts ;" ; % and once at the end because we need to flush missing ones. boolean mfun_onetime_textext ; mfun_onetime_textext := false ; +numeric mfun_global_textext ; mfun_global_textext := 0 ; -def notcached = withprescript "tx_cache=no" enddef ; +def keepcached = + hide(mfun_global_textext := mfun_global_textext + 1;) + withprescript ("tx_cache=" & decimal mfun_global_textext) +enddef ; + +def notcached = + withprescript "tx_cache=no" +enddef ; % todo: onetime |