summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/metapost/context
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/metapost/context')
-rwxr-xr-xMaster/texmf-dist/metapost/context/third/gnuplot/mp-gnuplot.mp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Master/texmf-dist/metapost/context/third/gnuplot/mp-gnuplot.mp b/Master/texmf-dist/metapost/context/third/gnuplot/mp-gnuplot.mp
index 4b8e1c49256..a83c7fd03c8 100755
--- a/Master/texmf-dist/metapost/context/third/gnuplot/mp-gnuplot.mp
+++ b/Master/texmf-dist/metapost/context/third/gnuplot/mp-gnuplot.mp
@@ -532,6 +532,16 @@ boolean context_gnuplot ; context_gnuplot := true;
let,=;;
enddef;
+ % this is only for mkiv
+ % in mkii, \sometxt behaves as an image and has no problems
+ % while in mkiv it falls back to textext.drt,
+ % and that one has problems if comma gets redefined,
+ % so we need to change definition of comma back to its original value first
+ vardef textext@#(expr txt) =
+ let,=@;
+ rawtextext(txt)
+ enddef ;
+
% converts the whole argument into a picture
%
% The problem is that \sometxt[gp]{text} is the very last command and cannot be captured as an image otherwise